Skip to contentSkip to conversation

ARM: DEBUG defined in MTD via NAND

U-Boot-Users Scott McNutt 2 participants 2 messages Jun 19, 2008

lore
Share & tools
lore
#0 lore raw

lib_arm/board.c now includes nand.h
which in turn includes linux/mtd/mtd.h
which defines DEBUG

So all of the #ifdef DEBUG code is getting built, which I'm sure isn't intentional.

I'm not sure if this was already fixed -- but I couldn't find any patches in the list archive.

Anyone already handle this one?

Regards,
--Scott

#1 lore raw
Quoted 5 lines · Scott McNutt

lib_arm/board.c now includes nand.h
which in turn includes linux/mtd/mtd.h
which defines DEBUG

Quoted 7 lines

So all of the #ifdef DEBUG code is getting built, which I'm sure isn't intentional.

I'm not sure if this was already fixed -- but I couldn't find any patches in the list archive.

Anyone already handle this one?

Ouch. I'll produce a patch shortly.

-Scott