]> git.baikalelectronics.ru Git - uboot.git/commitdiff
eb_cpu5282: Declare diplay_width / display_height as externs
authorTom Rini <trini@konsulko.com>
Mon, 3 May 2021 20:48:55 +0000 (16:48 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 7 Jul 2021 14:17:54 +0000 (10:17 -0400)
The board code here references the display_width / display_height
variables set in the video driver, declare these as externs as gcc-11
will notice and lead to a multiple definition error.

Signed-off-by: Tom Rini <trini@konsulko.com>
board/BuS/eb_cpu5282/eb_cpu5282.c

index 153ed0e963b0dda575df6b107dbeaa9100cb194d..144a08922b103df9d39070cb84eb774fac4eaf91 100644 (file)
@@ -22,8 +22,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #if IS_ENABLED(CONFIG_VIDEO_VCXK)
-unsigned long display_width;
-unsigned long display_height;
+extern unsigned long display_width;
+extern unsigned long display_height;
 #endif
 
 /*---------------------------------------------------------------------------*/