summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/checksum.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/checksum.h')
-rw-r--r--include/asm-powerpc/checksum.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/checksum.h b/include/asm-powerpc/checksum.h
index d8354d8a49c..609ecbbd721 100644
--- a/include/asm-powerpc/checksum.h
+++ b/include/asm-powerpc/checksum.h
@@ -1,5 +1,6 @@
#ifndef _ASM_POWERPC_CHECKSUM_H
#define _ASM_POWERPC_CHECKSUM_H
+#ifdef __KERNEL__
/*
* This program is free software; you can redistribute it and/or
@@ -129,4 +130,5 @@ static inline unsigned long csum_tcpudp_nofold(unsigned long saddr,
}
#endif
+#endif /* __KERNEL__ */
#endif