iwlwifi: export symbols only conditionally
If all the pieces of iwlwifi are built into the kernel then there's no need for it to export its symbols to other modules, so prevent that. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
#include <linux/device.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/export.h>
|
||||
#include "iwl-drv.h"
|
||||
#include "iwl-debug.h"
|
||||
#include "iwl-devtrace.h"
|
||||
|
||||
@@ -85,11 +86,11 @@ void __iwl_ ##fn(struct device *dev, const char *fmt, ...) \
|
||||
}
|
||||
|
||||
__iwl_fn(warn)
|
||||
EXPORT_SYMBOL_GPL(__iwl_warn);
|
||||
IWL_EXPORT_SYMBOL(__iwl_warn);
|
||||
__iwl_fn(info)
|
||||
EXPORT_SYMBOL_GPL(__iwl_info);
|
||||
IWL_EXPORT_SYMBOL(__iwl_info);
|
||||
__iwl_fn(crit)
|
||||
EXPORT_SYMBOL_GPL(__iwl_crit);
|
||||
IWL_EXPORT_SYMBOL(__iwl_crit);
|
||||
|
||||
void __iwl_err(struct device *dev, bool rfkill_prefix, bool trace_only,
|
||||
const char *fmt, ...)
|
||||
@@ -110,7 +111,7 @@ void __iwl_err(struct device *dev, bool rfkill_prefix, bool trace_only,
|
||||
trace_iwlwifi_err(&vaf);
|
||||
va_end(args);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__iwl_err);
|
||||
IWL_EXPORT_SYMBOL(__iwl_err);
|
||||
|
||||
#if defined(CONFIG_IWLWIFI_DEBUG) || defined(CONFIG_IWLWIFI_DEVICE_TRACING)
|
||||
void __iwl_dbg(struct device *dev,
|
||||
@@ -133,5 +134,5 @@ void __iwl_dbg(struct device *dev,
|
||||
trace_iwlwifi_dbg(level, in_interrupt(), function, &vaf);
|
||||
va_end(args);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__iwl_dbg);
|
||||
IWL_EXPORT_SYMBOL(__iwl_dbg);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user