summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-03 16:48:55 -0400
committerTom Rini <trini@konsulko.com>2021-07-07 10:17:54 -0400
commit265724cb22d5317eac626e6e773c53e4a0134170 (patch)
tree060fa9687d1b9a8e07641ada4e7d321851ab03d5 /board
parent8627db79cab3805a493f7454100dcb968ac67862 (diff)
eb_cpu5282: Declare diplay_width / display_height as externs
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>
Diffstat (limited to 'board')
-rw-r--r--board/BuS/eb_cpu5282/eb_cpu5282.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c
index 153ed0e963..144a08922b 100644
--- a/board/BuS/eb_cpu5282/eb_cpu5282.c
+++ b/board/BuS/eb_cpu5282/eb_cpu5282.c
@@ -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
/*---------------------------------------------------------------------------*/