summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-10-30 16:17:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-01 10:08:38 +0100
commit1ba220dcc3a8bd0369555e7c41ed246e889038fe (patch)
tree9d76553c7ed63c40a20de7e48a151dcf8faaa3a5 /include/common.h
parent531c74af49d70b7079488988fa0d11274b4bd599 (diff)
downloadbarebox-1ba220dcc3a8bd0369555e7c41ed246e889038fe.tar.gz
barebox-1ba220dcc3a8bd0369555e7c41ed246e889038fe.tar.xz
include: move ARRAY_AND_SIZE to <linux/kernel.h>
Linux defines this macro at multiple places. We define it once, but in <common.h>, which is a bit heavy weight. Move it next to the ARRAY_SIZE() definition. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211030141739.2207431-5-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index e37630243e..4167d4676e 100644
--- a/include/common.h
+++ b/include/common.h
@@ -88,8 +88,6 @@ enum autoboot_state do_autoboot_countdown(void);
void __noreturn start_barebox(void);
void shutdown_barebox(void);
-#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
-
/*
* The STACK_ALIGN_ARRAY macro is used to allocate a buffer on the stack that
* meets a minimum alignment requirement.