path: root/arch/xtensa
diff options
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-04-18 23:31:28 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-04-26 14:46:51 -0400
commitfa83af7e8f2936732459a2399df87a0b648b454d (patch)
tree860076c80b6651bd0451c904f0c41120d4b6e702 /arch/xtensa
parentbc856a62c8036330cb2d95e24756285c6d8ecba2 (diff)
blackfin: fix ifdef fustercluck in mach-bf538/boards/ezkit.c
This file has lots and lots of ifdef, around structure decls and structure usages. The failure issue was that we would build the BF538-EZKIT_defconfig and get: arch/blackfin/mach-bf538/boards/ezkit.c:924:3: error: 'bfin_lq035q1_device' undeclared here (not in a function) even though the same ifdef _appeared_ to enable both the struct declaration and the code that used it. Yet cpp was telling us we didn't have the struct, but we still had the usage of it. However, _appeared_ is the operative word. After marking all the anonymous #endif with their parent #ifdef config options, it was _then_ clear that there was a misplaced #endif that was hiding the struct declaration. The real guts of the patch boils down to this: -#endif +#endif /* CONFIG_MTD_M25P80 */ +#endif /* CONFIG_SPI_BFIN5XX */ [...] -#endif /* spi master and devices */ but since I had to tag the #endif with their respective #ifdef options to find this misplaced SPI endif, it would be silly to then go and delete them all. So they stay. Cc: Sonic Zhang <sonic.zhang@analog.com> Cc: Bob Liu <lliubbo@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions