linux-next-20110831 build failure in iwlwifi when IWLWIFI_DEBUGFS not set

From: Valdis . Kletnieks
Date: Wed Aug 31 2011 - 15:17:02 EST


Build error in linux-next 20110831:

drivers/built-in.o: In function `iwl_irq_handle_error':
iwl-trans-rx-pcie.c:(.text+0x100ee9): undefined reference to `iwl_dump_csr'
iwl-trans-rx-pcie.c:(.text+0x100ef5): undefined reference to `iwl_dump_fh'

Calling site is iwl-trans-rx-pcie.c, function iwl_irq_handle_error.

The functions are in iwl-trans.c, but hidden behind #ifdef
CONFIG_IWLWIFI_DEBUGFS so if that isn't defined, they don't get built. The
call site already has an IWLWIFI_DEBUG ifdef, looks like iwl_irq_handle_error()
needs some tender loving restructuring.

Attachment: pgp00000.pgp
Description: PGP signature