linux/arch/blackfin
Paul Gortmaker fa83af7e8f 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>
2012-04-26 14:46:51 -04:00
..
boot Kbuild: centralize MKIMAGE and cmd_uimage definitions 2012-03-26 15:49:20 +02:00
configs blackfin: update defconfig for bf527-ezkit 2012-04-06 10:25:03 +08:00
include blackfin: gpio: fix compile error if !CONFIG_GPIOLIB 2012-04-06 10:25:03 +08:00
kernel new helper: ext2_image_size() 2012-03-31 16:03:16 -04:00
lib blackfin: clean up string bfin_dma_5xx after rename. 2012-03-21 11:00:10 +08:00
mach-bf518 arch/blackfin: don't generate random mac in bfin_get_ether_addr() 2012-03-21 11:00:08 +08:00
mach-bf527 arch/blackfin: don't generate random mac in bfin_get_ether_addr() 2012-03-21 11:00:08 +08:00
mach-bf533 blackfin: i2c-lcd: change default clock rate 2012-01-09 10:26:16 +08:00
mach-bf537 Blackfin: pnav: delete duplicate linux/export.h include 2012-03-21 11:00:09 +08:00
mach-bf538 blackfin: fix ifdef fustercluck in mach-bf538/boards/ezkit.c 2012-04-26 14:46:51 -04:00
mach-bf548 bf548: ssm2602: Add ssm2602 platform data into bf548 ezkit board file. 2012-03-21 11:00:10 +08:00
mach-bf561 bf561: add ppi DLEN macro for 10bits to 16bits 2012-03-21 11:00:09 +08:00
mach-common Blackfin: s/#if CONFIG/#ifdef CONFIG/ 2012-03-21 11:00:09 +08:00
mm blackfin: Add export.h to files using EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:01 -04:00
oprofile Blackfin arch: remove hardware PM code, oprofile not use it 2009-01-07 23:14:39 +08:00
ADI_BSD.txt Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
Kconfig blackfin: fix L1 data A overflow link issue 2012-04-06 10:25:02 +08:00
Kconfig.debug Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin 2011-05-25 15:34:14 -07:00
Makefile Blackfin: encode cpu-rev into uImage name 2011-01-10 07:18:27 -05:00