Skip to content

Commit

Permalink
[PATCH] net/wireless/sysfs.c: Shut up build warning
Browse files Browse the repository at this point in the history
net/wireless/sysfs.c:108: warning: ‘wiphy_uevent’ defined but not used

when CONFIG_HOTPLUG=n is because the only usage site of this function
is #ifdef'ed as such, so let's #ifdef the definition also.

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Satyam Sharma authored and David S. Miller committed Sep 26, 2007
1 parent 4942de4 commit 7b5ee3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/wireless/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ static void wiphy_dev_release(struct device *dev)
cfg80211_dev_free(rdev);
}

#ifdef CONFIG_HOTPLUG
static int wiphy_uevent(struct device *dev, char **envp,
int num_envp, char *buf, int size)
{
/* TODO, we probably need stuff here */
return 0;
}
#endif

struct class ieee80211_class = {
.name = "ieee80211",
Expand Down

0 comments on commit 7b5ee3a

Please sign in to comment.