diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2023-07-11 06:30:31 +0300 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2023-07-19 09:21:59 +0300 |
| commit | 057eb10b6d523540012e6947d5c9f63e95244e94 (patch) | |
| tree | 017efec7edb49660748f5938b2bebf72adc9c59c /Makefile | |
| parent | c6a35733b74aeff612398f274ed19a74f81d1f37 (diff) | |
| download | opensbi-1.3.1.tar.xz | |
lib: utils/gpio: Fix RV32 compile error for designware GPIO driverv1.3.1
Currently, we see following compile error in the designeware GPIO driver
for RV32 systems:
lib/utils/gpio/fdt_gpio_designware.c:115:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
115 | chip->dr = (void *)addr + (bank * 0xc);
| ^
lib/utils/gpio/fdt_gpio_designware.c:116:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
116 | chip->ext = (void *)addr + (bank * 4) + 0x50;
We fix the above error using an explicit type-cast to 'unsigned long'.
Fixes: 7828eebaaa77 ("gpio/desginware: add Synopsys DesignWare APB GPIO support")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
