From 685d85540c604164087e21b2ff1bd17251c0ec18 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 28 Sep 2007 19:46:37 +0200 Subject: [PATCH] move ARRAY_SIZE macro to include/common.h --- arch/arm/mach-netx/generic.c | 2 -- include/common.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c index d904908ed..148337f0c 100644 --- a/arch/arm/mach-netx/generic.c +++ b/arch/arm/mach-netx/generic.c @@ -79,8 +79,6 @@ static void memcpy32(void *trg, void *src, int size) *t++ = *s++; } -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - int loadxc(int xcno) { /* stop xmac / xpec */ XMAC_REG(xcno, XMAC_RPU_HOLD_PC) = RPU_HOLD_PC; diff --git a/include/common.h b/include/common.h index de6d47334..8110f1a08 100644 --- a/include/common.h +++ b/include/common.h @@ -169,4 +169,6 @@ int arch_execute(unsigned long address, int argc, char *argv[]); int run_shell(void); +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* __COMMON_H_ */