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/net/profile.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/net/profile.h')
-rw-r--r-- | pfinet/linux-src/include/net/profile.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/pfinet/linux-src/include/net/profile.h b/pfinet/linux-src/include/net/profile.h index 82fad0a3..e4b24e9f 100644 --- a/pfinet/linux-src/include/net/profile.h +++ b/pfinet/linux-src/include/net/profile.h @@ -28,14 +28,14 @@ extern void net_profile_irq_adjust(struct timeval *entered, struct timeval* leav #if CPU == 586 || CPU == 686 -extern __inline__ void net_profile_stamp(struct timeval *pstamp) +static __inline__ void net_profile_stamp(struct timeval *pstamp) { __asm__ __volatile__ (".byte 0x0f,0x31" :"=a" (pstamp->tv_usec), "=d" (pstamp->tv_sec)); } -extern __inline__ void net_profile_accumulate(struct timeval *entered, +static __inline__ void net_profile_accumulate(struct timeval *entered, struct timeval *leaved, struct timeval *acc) { @@ -51,7 +51,7 @@ extern __inline__ void net_profile_accumulate(struct timeval *entered, "0" (acc->tv_usec), "1" (acc->tv_sec)); } -extern __inline__ void net_profile_sub(struct timeval *sub, +static __inline__ void net_profile_sub(struct timeval *sub, struct timeval *acc) { __asm__ __volatile__ ("subl %2,%0\n\t" @@ -61,7 +61,7 @@ extern __inline__ void net_profile_sub(struct timeval *sub, "0" (acc->tv_usec), "1" (acc->tv_sec)); } -extern __inline__ void net_profile_add(struct timeval *add, +static __inline__ void net_profile_add(struct timeval *add, struct timeval *acc) { __asm__ __volatile__ ("addl %2,%0\n\t" @@ -79,7 +79,7 @@ extern long alpha_hi; /* On alpha cycle counter has only 32 bits :-( :-( */ -extern __inline__ void net_profile_stamp(struct timeval *pstamp) +static __inline__ void net_profile_stamp(struct timeval *pstamp) { __u32 result; __asm__ __volatile__ ("rpcc %0" : "r="(result)); @@ -90,7 +90,7 @@ extern __inline__ void net_profile_stamp(struct timeval *pstamp) pstamp->tv_usec = alpha_lo; } -extern __inline__ void net_profile_accumulate(struct timeval *entered, +static __inline__ void net_profile_accumulate(struct timeval *entered, struct timeval *leaved, struct timeval *acc) { @@ -112,7 +112,7 @@ extern __inline__ void net_profile_accumulate(struct timeval *entered, acc->tv_usec = usecs; } -extern __inline__ void net_profile_sub(struct timeval *entered, +static __inline__ void net_profile_sub(struct timeval *entered, struct timeval *leaved) { time_t usecs = leaved->tv_usec - entered->tv_usec; @@ -126,7 +126,7 @@ extern __inline__ void net_profile_sub(struct timeval *entered, leaved->tv_usec = usecs; } -extern __inline__ void net_profile_add(struct timeval *entered, struct timeval *leaved) +static __inline__ void net_profile_add(struct timeval *entered, struct timeval *leaved) { time_t usecs = leaved->tv_usec + entered->tv_usec; time_t secs = leaved->tv_sec + entered->tv_sec; @@ -142,7 +142,7 @@ extern __inline__ void net_profile_add(struct timeval *entered, struct timeval #else -extern __inline__ void net_profile_stamp(struct timeval *pstamp) +static __inline__ void net_profile_stamp(struct timeval *pstamp) { /* Not "fast" counterpart! On architectures without cpu clock "fast" routine is absolutely useless in this @@ -153,7 +153,7 @@ extern __inline__ void net_profile_stamp(struct timeval *pstamp) do_gettimeofday(pstamp); } -extern __inline__ void net_profile_accumulate(struct timeval *entered, +static __inline__ void net_profile_accumulate(struct timeval *entered, struct timeval *leaved, struct timeval *acc) { @@ -175,7 +175,7 @@ extern __inline__ void net_profile_accumulate(struct timeval *entered, acc->tv_usec = usecs; } -extern __inline__ void net_profile_sub(struct timeval *entered, +static __inline__ void net_profile_sub(struct timeval *entered, struct timeval *leaved) { time_t usecs = leaved->tv_usec - entered->tv_usec; @@ -189,7 +189,7 @@ extern __inline__ void net_profile_sub(struct timeval *entered, leaved->tv_usec = usecs; } -extern __inline__ void net_profile_add(struct timeval *entered, struct timeval *leaved) +static __inline__ void net_profile_add(struct timeval *entered, struct timeval *leaved) { time_t usecs = leaved->tv_usec + entered->tv_usec; time_t secs = leaved->tv_sec + entered->tv_sec; @@ -206,7 +206,7 @@ extern __inline__ void net_profile_add(struct timeval *entered, struct timeval #endif -extern __inline__ void net_profile_enter(struct net_profile_slot *s) +static __inline__ void net_profile_enter(struct net_profile_slot *s) { unsigned long flags; @@ -219,7 +219,7 @@ extern __inline__ void net_profile_enter(struct net_profile_slot *s) restore_flags(flags); } -extern __inline__ void net_profile_leave_irq(struct net_profile_slot *s) +static __inline__ void net_profile_leave_irq(struct net_profile_slot *s) { unsigned long flags; @@ -240,7 +240,7 @@ extern __inline__ void net_profile_leave_irq(struct net_profile_slot *s) restore_flags(flags); } -extern __inline__ void net_profile_leave(struct net_profile_slot *s) +static __inline__ void net_profile_leave(struct net_profile_slot *s) { unsigned long flags; save_flags(flags); |