Skip to content

Commit

Permalink
lib/kobject_uevent.c: fix CONIG_NET=n warning
Browse files Browse the repository at this point in the history
lib/kobject_uevent.c:87: warning: 'kobj_bcast_filter' defined but not used

Repairs "hotplug: netns aware uevent_helper"

Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Jun 4, 2010
1 parent ad84563 commit c842128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ int kobject_action_type(const char *buf, size_t count,
return ret;
}

#ifdef CONFIG_NET
static int kobj_bcast_filter(struct sock *dsk, struct sk_buff *skb, void *data)
{
struct kobject *kobj = data;
Expand All @@ -98,6 +99,7 @@ static int kobj_bcast_filter(struct sock *dsk, struct sk_buff *skb, void *data)

return 0;
}
#endif

static int kobj_usermode_filter(struct kobject *kobj)
{
Expand Down

0 comments on commit c842128

Please sign in to comment.