Skip to contentSkip to conversation

Remove duplicate defines for ARRAY_SIZE

PATCH New Kumar Gala 2 participants 2 messages Feb 18, 2008 – Feb 22, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 Remove duplicate defines for ARRAY_SIZE

A few duplicate of the ARRAY_SIZE macro sneaked in since we put the define in common.h.

---
 include/asm-ppc/fsl_law.h |    1 -
 include/asm-ppc/mmu.h     |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
include/asm-ppc/fsl_law.h +0 -1
index 23bd505..e955c75 100644
@@ -3,7 +3,6 @@
 
 #include <asm/io.h>
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #define SET_LAW_ENTRY(idx, a, sz, trgt) \
 	{ .index = idx, .addr = a, .size = sz, .trgt_id = trgt }
 
include/asm-ppc/mmu.h +0 -1
index ec1ca53..5af22af 100644
@@ -427,7 +427,6 @@ extern void disable_tlb(u8 esel);
 extern void invalidate_tlb(u8 tlb);
 extern void init_tlbs(void);
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #define SET_TLB_ENTRY(_tlb, _epn, _rpn, _perms, _wimge, _ts, _esel, _sz, _iprot) \
 	{ .tlb = _tlb, .epn = _epn, .rpn = _rpn, .perms = _perms, \
 	  .wimge = _wimge, .ts = _ts, .esel = _esel, .tsize = _sz, .iprot = _iprot }
Signature · 1 line
1.5.3.8
#1 lore raw

PATCH 1/1 Remove duplicate defines for ARRAY_SIZE

Quoted 4 lines · In message <[email protected]> you wrote:

A few duplicate of the ARRAY_SIZE macro sneaked in since we put the define in common.h.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Your csh still thinks true is false. Write to your vendor  today  and
tell them that next year Configure ought to "rm /bin/csh" unless they
fix  their blasted shell. :-)
                 - Larry Wall in Configure from the perl distribution