diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-01-02 18:38:31 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-01-02 18:48:57 +0100 |
commit | 05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch) | |
tree | 3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/linux-src/include/linux/notifier.h | |
parent | 5714421bb1d066abebc7e993bdf06e655b879b3a (diff) | |
download | hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.gz hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.bz2 hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.zip |
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0
by using static instead of extern in header files.
Diffstat (limited to 'pfinet/linux-src/include/linux/notifier.h')
-rw-r--r-- | pfinet/linux-src/include/linux/notifier.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/linux-src/include/linux/notifier.h b/pfinet/linux-src/include/linux/notifier.h index 1e8bf707..633f61a2 100644 --- a/pfinet/linux-src/include/linux/notifier.h +++ b/pfinet/linux-src/include/linux/notifier.h @@ -26,7 +26,7 @@ struct notifier_block #define NOTIFY_STOP_MASK 0x8000 /* Don't call further */ #define NOTIFY_BAD (NOTIFY_STOP_MASK|0x0002) /* Bad/Veto action */ -extern __inline__ int notifier_chain_register(struct notifier_block **list, struct notifier_block *n) +static __inline__ int notifier_chain_register(struct notifier_block **list, struct notifier_block *n) { while(*list) { @@ -44,7 +44,7 @@ extern __inline__ int notifier_chain_register(struct notifier_block **list, stru * GPL'd */ -extern __inline__ int notifier_chain_unregister(struct notifier_block **nl, struct notifier_block *n) +static __inline__ int notifier_chain_unregister(struct notifier_block **nl, struct notifier_block *n) { while((*nl)!=NULL) { @@ -62,7 +62,7 @@ extern __inline__ int notifier_chain_unregister(struct notifier_block **nl, stru * This is one of these things that is generally shorter inline */ -extern __inline__ int notifier_call_chain(struct notifier_block **n, unsigned long val, void *v) +static __inline__ int notifier_call_chain(struct notifier_block **n, unsigned long val, void *v) { int ret=NOTIFY_DONE; struct notifier_block *nb = *n; |