diff options
Diffstat (limited to 'include/net/dcbevent.h')
| -rw-r--r-- | include/net/dcbevent.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net/dcbevent.h b/include/net/dcbevent.h index bc1e7ef40171..443626ed4cbc 100644 --- a/include/net/dcbevent.h +++ b/include/net/dcbevent.h | |||
| @@ -24,8 +24,26 @@ enum dcbevent_notif_type { | |||
| 24 | DCB_APP_EVENT = 1, | 24 | DCB_APP_EVENT = 1, |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | #ifdef CONFIG_DCB | ||
| 27 | extern int register_dcbevent_notifier(struct notifier_block *nb); | 28 | extern int register_dcbevent_notifier(struct notifier_block *nb); |
| 28 | extern int unregister_dcbevent_notifier(struct notifier_block *nb); | 29 | extern int unregister_dcbevent_notifier(struct notifier_block *nb); |
| 29 | extern int call_dcbevent_notifiers(unsigned long val, void *v); | 30 | extern int call_dcbevent_notifiers(unsigned long val, void *v); |
| 31 | #else | ||
| 32 | static inline int | ||
| 33 | register_dcbevent_notifier(struct notifier_block *nb) | ||
| 34 | { | ||
| 35 | return 0; | ||
| 36 | } | ||
| 37 | |||
| 38 | static inline int unregister_dcbevent_notifier(struct notifier_block *nb) | ||
| 39 | { | ||
| 40 | return 0; | ||
| 41 | } | ||
| 42 | |||
| 43 | static inline int call_dcbevent_notifiers(unsigned long val, void *v) | ||
| 44 | { | ||
| 45 | return 0; | ||
| 46 | } | ||
| 47 | #endif /* CONFIG_DCB */ | ||
| 30 | 48 | ||
| 31 | #endif | 49 | #endif |
