Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266453
b: refs/heads/master
c: 27737aa
h: refs/heads/master
i:
  266451: 8d1f66c
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Oct 6, 2011
1 parent 8c2fafe commit 92d0998
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6bd0e1cb10b6d14dda4a8806d0a2f4f0bbf01931
refs/heads/master: 27737aa3a9f65012b3656b71e0ff230a4811da4d
18 changes: 18 additions & 0 deletions trunk/include/net/dcbevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,26 @@ enum dcbevent_notif_type {
DCB_APP_EVENT = 1,
};

#ifdef CONFIG_DCB
extern int register_dcbevent_notifier(struct notifier_block *nb);
extern int unregister_dcbevent_notifier(struct notifier_block *nb);
extern int call_dcbevent_notifiers(unsigned long val, void *v);
#else
static inline int
register_dcbevent_notifier(struct notifier_block *nb)
{
return 0;
}

static inline int unregister_dcbevent_notifier(struct notifier_block *nb)
{
return 0;
}

static inline int call_dcbevent_notifiers(unsigned long val, void *v)
{
return 0;
}
#endif /* CONFIG_DCB */

#endif

0 comments on commit 92d0998

Please sign in to comment.