[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202301281438.ZNGVwW6S-lkp@intel.com>
Date: Sat, 28 Jan 2023 14:32:29 +0800
From: kernel test robot <lkp@...el.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org
Subject: [net-next:master 12/39] arch/sh/include/asm/checksum_32.h:53:14:
error: implicit declaration of function 'access_ok'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: c2ea552065e43d05bce240f53c3185fd3a066204
commit: 68f4eae781dd25aca2eb84ca2279663689db8d19 [12/39] net: checksum: drop the linux/uaccess.h include
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230128/202301281438.ZNGVwW6S-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=68f4eae781dd25aca2eb84ca2279663689db8d19
git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git fetch --no-tags net-next master
git checkout 68f4eae781dd25aca2eb84ca2279663689db8d19
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash net/netfilter/ipvs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/sh/include/asm/checksum.h:2,
from include/net/checksum.h:21,
from include/net/ip_vs.h:23,
from net/netfilter/ipvs/ip_vs_rr.c:23:
arch/sh/include/asm/checksum_32.h: In function 'csum_and_copy_from_user':
>> arch/sh/include/asm/checksum_32.h:53:14: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration]
53 | if (!access_ok(src, len))
| ^~~~~~~~~
cc1: some warnings being treated as errors
vim +/access_ok +53 arch/sh/include/asm/checksum_32.h
fcfdd0f14f94d4 include/asm-sh/checksum_32.h Paul Mundt 2007-11-11 48
7fe8970a78a193 arch/sh/include/asm/checksum_32.h Al Viro 2020-02-18 49 #define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
fcfdd0f14f94d4 include/asm-sh/checksum_32.h Paul Mundt 2007-11-11 50 static inline
c693cc4676a055 arch/sh/include/asm/checksum_32.h Al Viro 2020-07-11 51 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len)
fcfdd0f14f94d4 include/asm-sh/checksum_32.h Paul Mundt 2007-11-11 52 {
c693cc4676a055 arch/sh/include/asm/checksum_32.h Al Viro 2020-07-11 @53 if (!access_ok(src, len))
c693cc4676a055 arch/sh/include/asm/checksum_32.h Al Viro 2020-07-11 54 return 0;
dc16c8a9ce980d arch/sh/include/asm/checksum_32.h Al Viro 2020-07-12 55 return csum_partial_copy_generic((__force const void *)src, dst, len);
fcfdd0f14f94d4 include/asm-sh/checksum_32.h Paul Mundt 2007-11-11 56 }
fcfdd0f14f94d4 include/asm-sh/checksum_32.h Paul Mundt 2007-11-11 57
:::::: The code at line 53 was first introduced by commit
:::::: c693cc4676a055c4126e487b30b0a96ea7ec9936 saner calling conventions for csum_and_copy_..._user()
:::::: TO: Al Viro <viro@...iv.linux.org.uk>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Powered by blists - more mailing lists