Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: riscv-software-src/opensbi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: riscv-software-src/opensbi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release-1.3.x
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 19, 2023

  1. lib: utils/gpio: Fix RV32 compile error for designware GPIO driver

    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: 7828eeb ("gpio/desginware: add Synopsys DesignWare APB GPIO support")
    Signed-off-by: Anup Patel <apatel@ventanamicro.com>
    Reviewed-by: Xiang W <wxjstz@126.com>
    avpatel committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    057eb10 View commit details
    Browse the repository at this point in the history
Loading