diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-05-20 13:24:18 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-24 14:21:30 -0400 |
commit | 79dec66ca7438d8ed339e513c2b93c055ba2b3e8 (patch) | |
tree | 7046618160fdce12641c57788506cea4498e337a /board/samsung | |
parent | 9d3918f3fd3cf3b84043ba3490e428abceeabd3d (diff) | |
download | u-boot-79dec66ca7438d8ed339e513c2b93c055ba2b3e8.tar.gz u-boot-79dec66ca7438d8ed339e513c2b93c055ba2b3e8.tar.bz2 u-boot-79dec66ca7438d8ed339e513c2b93c055ba2b3e8.zip |
ARM: fix LTO for rockchip and samsung
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>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/common/exynos5-dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/samsung/common/exynos5-dt.c b/board/samsung/common/exynos5-dt.c index 4463cdcb87..1318ea716a 100644 --- a/board/samsung/common/exynos5-dt.c +++ b/board/samsung/common/exynos5-dt.c @@ -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; |