1 --- a/include/net/cfg80211.h
2 +++ b/include/net/cfg80211.h
3 @@ -2443,9 +2443,8 @@ void cfg80211_cqm_rssi_notify(struct net
4 wiphy_printk(KERN_NOTICE, wiphy, format, ##args)
5 #define wiphy_info(wiphy, format, args...) \
6 wiphy_printk(KERN_INFO, wiphy, format, ##args)
8 -int wiphy_debug(const struct wiphy *wiphy, const char *format, ...)
9 - __attribute__ ((format (printf, 2, 3)));
10 +#define wiphy_debug(wiphy, format, args...) \
11 + wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
14 #define wiphy_dbg(wiphy, format, args...) \
15 --- a/net/wireless/core.c
16 +++ b/net/wireless/core.c
17 @@ -921,52 +921,3 @@ static void __exit cfg80211_exit(void)
18 destroy_workqueue(cfg80211_wq);
20 module_exit(cfg80211_exit);
22 -static int ___wiphy_printk(const char *level, const struct wiphy *wiphy,
23 - struct va_format *vaf)
26 - return printk("%s(NULL wiphy *): %pV", level, vaf);
28 - return printk("%s%s: %pV", level, wiphy_name(wiphy), vaf);
31 -int __wiphy_printk(const char *level, const struct wiphy *wiphy,
32 - const char *fmt, ...)
34 - struct va_format vaf;
38 - va_start(args, fmt);
43 - r = ___wiphy_printk(level, wiphy, &vaf);
48 -EXPORT_SYMBOL(__wiphy_printk);
50 -#define define_wiphy_printk_level(func, kern_level) \
51 -int func(const struct wiphy *wiphy, const char *fmt, ...) \
53 - struct va_format vaf; \
57 - va_start(args, fmt); \
62 - r = ___wiphy_printk(kern_level, wiphy, &vaf); \
69 -define_wiphy_printk_level(wiphy_debug, KERN_DEBUG);