From 05e6878c8767cf7006675d5e5a646b2f74aa88c7 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 2 Jan 2016 18:38:31 +0100 Subject: 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. --- pfinet/linux-src/include/asm-i386/checksum.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pfinet/linux-src/include/asm-i386') diff --git a/pfinet/linux-src/include/asm-i386/checksum.h b/pfinet/linux-src/include/asm-i386/checksum.h index add89590..266033a8 100644 --- a/pfinet/linux-src/include/asm-i386/checksum.h +++ b/pfinet/linux-src/include/asm-i386/checksum.h @@ -34,14 +34,14 @@ asmlinkage unsigned int csum_partial_copy_generic( const char *src, char *dst, i * If you use these functions directly please don't forget the * verify_area(). */ -extern __inline__ +static __inline__ unsigned int csum_partial_copy_nocheck ( const char *src, char *dst, int len, int sum) { return csum_partial_copy_generic ( src, dst, len, sum, NULL, NULL); } -extern __inline__ +static __inline__ unsigned int csum_partial_copy_from_user ( const char *src, char *dst, int len, int sum, int *err_ptr) { @@ -58,7 +58,7 @@ unsigned int csum_partial_copy_from_user ( const char *src, char *dst, * This combination is currently not used, but possible: */ -extern __inline__ +static __inline__ unsigned int csum_partial_copy_to_user ( const char *src, char *dst, int len, int sum, int *err_ptr) { -- cgit v1.2.3