IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y
authorRoland Dreier <rolandd@cisco.com>
Sun, 2 Apr 2006 21:39:20 +0000 (14:39 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 2 Apr 2006 21:39:20 +0000 (14:39 -0700)
commit227c939b00cf786b5e2e95fc904518206f478421
treef62cd8a2f0663d3c9853eead57ba91dd9626a572
parentf5545d24b8aa9fccd8071203e83bc9f4b26e17a6
IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y

Change the mthca debugging trace output code so that it can enabled
and disabled at runtime with the debug_level module parameter in
sysfs.  Also, don't allow CONFIG_INFINIBAND_MTHCA_DEBUG to be disabled
unless CONFIG_EMBEDDED is selected.  We want users (and especially
distros) to have this turned on unless they really need to save space,
because by the time we want debugging output, it's usually too late to
rebuild a kernel.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/Kconfig
drivers/infiniband/hw/mthca/Makefile
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_main.c