summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-18 13:48:25 -0700
committerDavid S. Miller <davem@davemloft.net>2013-10-19 19:12:11 -0400
commitc1b1203d65955c179fec617ff17a21273f33a414 (patch)
treea84a93bae0abe5e796dce767a320ab4262ffb63f /net/wireless
parent7e58487b8cf5871d2a0fa03892dbd4b3a620d07f (diff)
net: misc: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/core.h6
-rw-r--r--net/wireless/sysfs.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index b43efac4efca..74beff1e926f 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -234,10 +234,10 @@ struct cfg80211_beacon_registration {
};
/* free object */
-extern void cfg80211_dev_free(struct cfg80211_registered_device *rdev);
+void cfg80211_dev_free(struct cfg80211_registered_device *rdev);
-extern int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
- char *newname);
+int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
+ char *newname);
void ieee80211_set_bitrate_flags(struct wiphy *wiphy);
diff --git a/net/wireless/sysfs.h b/net/wireless/sysfs.h
index 65acbebd3711..b533ed71daff 100644
--- a/net/wireless/sysfs.h
+++ b/net/wireless/sysfs.h
@@ -1,8 +1,8 @@
#ifndef __WIRELESS_SYSFS_H
#define __WIRELESS_SYSFS_H
-extern int wiphy_sysfs_init(void);
-extern void wiphy_sysfs_exit(void);
+int wiphy_sysfs_init(void);
+void wiphy_sysfs_exit(void);
extern struct class ieee80211_class;