summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/checksum_64.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-01-26 10:14:16 +0300
committerDavid S. Miller <davem@davemloft.net>2023-01-27 14:19:46 +0300
commit68f4eae781dd25aca2eb84ca2279663689db8d19 (patch)
treebe273fafd19473e4cf587cbe588512557ff752d5 /arch/x86/include/asm/checksum_64.h
parent9a859da287870715a22ce05d6ae377ae8ac79cc3 (diff)
downloadlinux-68f4eae781dd25aca2eb84ca2279663689db8d19.tar.xz
net: checksum: drop the linux/uaccess.h include
net/checksum.h pulls in linux/uaccess.h which is large. In the x86 header the include seems to not be needed at all. ARM on the other hand does not include uaccess.h, even tho it calls access_ok(). In the generic implementation guard the include of linux/uaccess.h with the same condition as the code that needs it. With this change pre-processed net/checksum.h shrinks on x86 from 30616 lines to just 1193. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/x86/include/asm/checksum_64.h')
-rw-r--r--arch/x86/include/asm/checksum_64.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/checksum_64.h b/arch/x86/include/asm/checksum_64.h
index 407beebadaf4..4d4a47a3a8ab 100644
--- a/arch/x86/include/asm/checksum_64.h
+++ b/arch/x86/include/asm/checksum_64.h
@@ -9,7 +9,6 @@
*/
#include <linux/compiler.h>
-#include <linux/uaccess.h>
#include <asm/byteorder.h>
/**