diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-01-26 08:14:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-27 12:19:46 +0100 |
commit | 68f4eae781dd25aca2eb84ca2279663689db8d19 (patch) | |
tree | be273fafd19473e4cf587cbe588512557ff752d5 /arch/arm/include/asm/checksum.h | |
parent | net: skbuff: drop the linux/net.h include (diff) | |
download | linux-68f4eae781dd25aca2eb84ca2279663689db8d19.tar.xz linux-68f4eae781dd25aca2eb84ca2279663689db8d19.zip |
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/arm/include/asm/checksum.h')
-rw-r--r-- | arch/arm/include/asm/checksum.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/checksum.h b/arch/arm/include/asm/checksum.h index f0f54aef3724..d8a13959bff0 100644 --- a/arch/arm/include/asm/checksum.h +++ b/arch/arm/include/asm/checksum.h @@ -11,6 +11,7 @@ #define __ASM_ARM_CHECKSUM_H #include <linux/in6.h> +#include <linux/uaccess.h> /* * computes the checksum of a memory block at buff, length len, |