diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-09-30 11:12:45 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-18 03:01:57 -0400 |
commit | 8c1dddd6070a900918561f162621ef4957ff36c2 (patch) | |
tree | 2c1a63e4e6cc663f2427b1d1423104c91c9c6825 /net | |
parent | 444e38035eafba2993a690497b205ce385df3a8e (diff) |
mac80211: use __printf attribute in debugfs
The internal function mac80211_format_buffer() has a
printf-style argument list, so add the attribute to
have gcc verify that list.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/debugfs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/debugfs.h b/net/mac80211/debugfs.h index 9be4e6d71d00..214ed4ecd739 100644 --- a/net/mac80211/debugfs.h +++ b/net/mac80211/debugfs.h | |||
@@ -2,9 +2,9 @@ | |||
2 | #define __MAC80211_DEBUGFS_H | 2 | #define __MAC80211_DEBUGFS_H |
3 | 3 | ||
4 | #ifdef CONFIG_MAC80211_DEBUGFS | 4 | #ifdef CONFIG_MAC80211_DEBUGFS |
5 | extern void debugfs_hw_add(struct ieee80211_local *local); | 5 | void debugfs_hw_add(struct ieee80211_local *local); |
6 | extern int mac80211_format_buffer(char __user *userbuf, size_t count, | 6 | int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count, |
7 | loff_t *ppos, char *fmt, ...); | 7 | loff_t *ppos, char *fmt, ...); |
8 | #else | 8 | #else |
9 | static inline void debugfs_hw_add(struct ieee80211_local *local) | 9 | static inline void debugfs_hw_add(struct ieee80211_local *local) |
10 | { | 10 | { |