]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: fix LTO for rockchip and samsung
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:18 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
When building with LTO, the compiler complains about type mismatch of
function usb_gadget_handle_interrupts(). This function is defined
without parameters in files
  arch/arm/mach-rockchip/board.c
  board/samsung/common/exynos5-dt.c
but it should have one parameter, int index.

Fix this.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/board.c
board/samsung/common/exynos5-dt.c

index c386b52987e8c44e903325e4800e265f9c246274..5304eb055c6dca8722dab976eb422ecbbe55c52f 100644 (file)
@@ -139,7 +139,7 @@ static struct dwc3_device dwc3_device_data = {
        .hsphy_mode = USBPHY_INTERFACE_MODE_UTMIW,
 };
 
-int usb_gadget_handle_interrupts(void)
+int usb_gadget_handle_interrupts(int index)
 {
        dwc3_uboot_handle_interrupt(0);
        return 0;
index 4463cdcb87b6aec007bc6b27d616e19124559b30..1318ea716a5c2004c9cf56496b172b461d1fc3be 100644 (file)
@@ -126,7 +126,7 @@ static struct dwc3_device dwc3_device_data = {
        .index = 0,
 };
 
-int usb_gadget_handle_interrupts(void)
+int usb_gadget_handle_interrupts(int index)
 {
        dwc3_uboot_handle_interrupt(0);
        return 0;