[xlnx:xlnx_rebase_v5.4 1005/1697] crypto/af_alg.c:267:54: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 629150468791671b5fde21363e643e87c5815b17
commit: 7132d44df68f906bc3d12d6b1437d208f91c88e5 [1005/1697] crypto: Adds user space interface for ALG_SET_KEY_TYPE
config: alpha-randconfig-s031-20210113 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://github.com/Xilinx/linux-xlnx/commit/7132d44df68f906bc3d12d6b1437d...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 7132d44df68f906bc3d12d6b1437d208f91c88e5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> crypto/af_alg.c:267:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned char const [usertype] *keytype @@ got char [noderef] <asn:1> *optval @@
crypto/af_alg.c:267:54: sparse: expected unsigned char const [usertype] *keytype
crypto/af_alg.c:267:54: sparse: got char [noderef] <asn:1> *optval
vim +267 crypto/af_alg.c
227
228 static int alg_setsockopt(struct socket *sock, int level, int optname,
229 char __user *optval, unsigned int optlen)
230 {
231 struct sock *sk = sock->sk;
232 struct alg_sock *ask = alg_sk(sk);
233 const struct af_alg_type *type;
234 int err = -EBUSY;
235
236 lock_sock(sk);
237 if (ask->refcnt)
238 goto unlock;
239
240 type = ask->type;
241
242 err = -ENOPROTOOPT;
243 if (level != SOL_ALG || !type)
244 goto unlock;
245
246 switch (optname) {
247 case ALG_SET_KEY:
248 if (sock->state == SS_CONNECTED)
249 goto unlock;
250 if (!type->setkey)
251 goto unlock;
252
253 err = alg_setkey(sk, optval, optlen);
254 break;
255 case ALG_SET_AEAD_AUTHSIZE:
256 if (sock->state == SS_CONNECTED)
257 goto unlock;
258 if (!type->setauthsize)
259 goto unlock;
260 err = type->setauthsize(ask->private, optlen);
261 break;
262 case ALG_SET_KEY_TYPE:
263 if (sock->state == SS_CONNECTED)
264 goto unlock;
265 if (!type->setkeytype)
266 goto unlock;
> 267 err = type->setkeytype(ask->private, optval, optlen);
268 }
269
270 unlock:
271 release_sock(sk);
272
273 return err;
274 }
275
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH bpf-next 1/2] trace: bpf: Allow bpf to attach to bare tracepoints
by kernel test robot
Hi Qais,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Qais-Yousef/Allow-attaching-to-b...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8f02e2ee2ac949ce6b4fd3cfd323f2e51...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Qais-Yousef/Allow-attaching-to-bare-tracepoints/20210112-022350
git checkout 8f02e2ee2ac949ce6b4fd3cfd323f2e513a2cac6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/trace/define_trace.h:104,
from include/trace/events/sched.h:740,
from kernel/sched/core.c:10:
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:693:1: note: in expansion of macro 'DECLARE_TRACE'
693 | DECLARE_TRACE(pelt_cfs_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:697:1: note: in expansion of macro 'DECLARE_TRACE'
697 | DECLARE_TRACE(pelt_rt_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:701:1: note: in expansion of macro 'DECLARE_TRACE'
701 | DECLARE_TRACE(pelt_dl_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:705:1: note: in expansion of macro 'DECLARE_TRACE'
705 | DECLARE_TRACE(pelt_thermal_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:709:1: note: in expansion of macro 'DECLARE_TRACE'
709 | DECLARE_TRACE(pelt_irq_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:713:1: note: in expansion of macro 'DECLARE_TRACE'
713 | DECLARE_TRACE(pelt_se_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:717:1: note: in expansion of macro 'DECLARE_TRACE'
717 | DECLARE_TRACE(sched_cpu_capacity_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:721:1: note: in expansion of macro 'DECLARE_TRACE'
721 | DECLARE_TRACE(sched_overutilized_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'DECLARE_TRACE'
725 | DECLARE_TRACE(sched_util_est_cfs_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:729:1: note: in expansion of macro 'DECLARE_TRACE'
729 | DECLARE_TRACE(sched_util_est_se_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:733:1: note: in expansion of macro 'DECLARE_TRACE'
733 | DECLARE_TRACE(sched_update_nr_running_tp,
| ^~~~~~~~~~~~~
kernel/sched/core.c:2828:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2828 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'schedule_tail':
kernel/sched/core.c:4238:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
4238 | struct rq *rq;
| ^~
vim +59 include/trace/bpf_probe.h
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 57
8f02e2ee2ac949 Qais Yousef 2021-01-11 58 #define __BPF_DECLARE_TRACE(call, proto, args) \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 @59 static notrace void \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 60 __bpf_trace_##call(void *__data, proto) \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 61 { \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 62 struct bpf_prog *prog = __data; \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 63 CONCATENATE(bpf_trace_run, COUNT_ARGS(args))(prog, CAST_TO_U64(args)); \
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 64 }
c4f6699dfcb855 Alexei Starovoitov 2018-03-28 65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
drivers/spi/spi-lp8841-rtc.c:63:28: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation)
date: 5 months ago
config: alpha-randconfig-s032-20210113 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/spi/spi-lp8841-rtc.c:112:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:112:41: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:112:41: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:121:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:121:41: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:121:41: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:143:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:143:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:143:33: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:147:41: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:147:41: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:147:41: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:209:21: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *iomem @@ got void [noderef] __iomem * @@
drivers/spi/spi-lp8841-rtc.c:209:21: sparse: expected void *iomem
drivers/spi/spi-lp8841-rtc.c:209:21: sparse: got void [noderef] __iomem *
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: got void *iomem
>> drivers/spi/spi-lp8841-rtc.c:63:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:63:28: sparse: expected void const [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:63:28: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:57:33: sparse: got void *iomem
>> drivers/spi/spi-lp8841-rtc.c:63:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:63:28: sparse: expected void const [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:63:28: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: got void *iomem
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *iomem @@
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: expected void volatile [noderef] __iomem *addr
drivers/spi/spi-lp8841-rtc.c:47:33: sparse: got void *iomem
--
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2135:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2135:41: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2135:41: sparse: got unsigned int [noderef] __iomem *
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:33: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] uid_hi @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:33: sparse: expected unsigned short [usertype] uid_hi
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:33: sparse: got restricted __be16 [usertype]
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:45: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] uid_lo @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:45: sparse: expected unsigned int [usertype] uid_lo
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:45: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:56: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected unsigned short [usertype] seqid @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:56: sparse: expected unsigned short [usertype] seqid
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:157:56: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:306:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem *addr @@ got void *reg @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:306:26: sparse: expected void const [noderef] __iomem *addr
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:306:26: sparse: got void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:336:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:336:33: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:336:33: sparse: got unsigned int [noderef] __iomem *
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:343:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:343:33: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:343:33: sparse: got unsigned int [noderef] __iomem *
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:356:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:356:33: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:356:33: sparse: got unsigned int [noderef] __iomem *
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:397:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:397:33: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:397:33: sparse: got unsigned int [noderef] __iomem *
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:466:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *reg @@ got unsigned int [noderef] __iomem * @@
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:466:41: sparse: expected void *reg
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:466:41: sparse: got unsigned int [noderef] __iomem *
vim +63 drivers/spi/spi-lp8841-rtc.c
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 59
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 60 static inline int
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 61 getmiso(struct spi_lp8841_rtc *data)
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 62 {
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 @63 return ioread8(data->iomem) & SPI_LP8841_RTC_MISO;
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 64 }
7ecbfff6711fb331 Sergei Ianovich 2016-02-23 65
:::::: The code at line 63 was first introduced by commit
:::::: 7ecbfff6711fb331591003ac32c002ce55a0758f spi: master driver to enable RTC on ICPDAS LP-8841
:::::: TO: Sergei Ianovich <ynvich(a)gmail.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[jarkko-linux-tpmdd:tee 6/8] security/keys/trusted-keys/trusted_tee.c:249:1: warning: data definition has no type or storage class
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tee
head: b23555c4d773cde1cffd358609f89810549665f0
commit: b97a775c846a9d1d9558383d43c83b4127a55058 [6/8] KEYS: trusted: Introduce TEE based Trusted Keys
config: alpha-randconfig-s032-20210114 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/co...
git remote add jarkko-linux-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
git fetch --no-tags jarkko-linux-tpmdd tee
git checkout b97a775c846a9d1d9558383d43c83b4127a55058
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> security/keys/trusted-keys/trusted_tee.c:249:1: warning: data definition has no type or storage class
249 | MODULE_DEVICE_TABLE(tee, trusted_key_id_table);
| ^~~~~~~~~~~~~~~~~~~
security/keys/trusted-keys/trusted_tee.c:249:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
>> security/keys/trusted-keys/trusted_tee.c:249:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors
vim +249 security/keys/trusted-keys/trusted_tee.c
243
244 static const struct tee_client_device_id trusted_key_id_table[] = {
245 {UUID_INIT(0xf04a0fe7, 0x1f5d, 0x4b9b,
246 0xab, 0xf7, 0x61, 0x9b, 0x85, 0xb4, 0xce, 0x8c)},
247 {}
248 };
> 249 MODULE_DEVICE_TABLE(tee, trusted_key_id_table);
250
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[ti:ti-linux-5.4.y 8675/12984] include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: c02b2da68c63deb35dc5a7c1b0bbc68e4ee38632
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [8675/12984] net: packet: pass on redundant net info in packet_recvmsg
config: mips-randconfig-r011-20210113 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.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
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout e804afb5449b93d5b543a1685b0b2fab328873fc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/net/cls_cgroup.h:14,
from net/socket.c:95:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/socket.c: In function '__sys_getsockopt':
net/socket.c:2113:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
2113 | int max_optlen;
| ^~~~~~~~~~
--
In file included from net/sysctl_net.c:20:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/l2cap_core.c:37:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/bluetooth/l2cap_core.c: In function 'l2cap_connect':
net/bluetooth/l2cap_core.c:3872:41: warning: comparison is always false due to limited range of data type [-Wtype-limits]
3872 | if (scid < L2CAP_CID_DYN_START || scid > L2CAP_CID_DYN_END) {
| ^
--
In file included from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/smp.c:32:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/bluetooth/smp.c: In function 'smp_irk_matches':
net/bluetooth/smp.c:505:18: warning: variable 'smp' set but not used [-Wunused-but-set-variable]
505 | struct smp_dev *smp;
| ^~~
net/bluetooth/smp.c: In function 'smp_generate_rpa':
net/bluetooth/smp.c:526:18: warning: variable 'smp' set but not used [-Wunused-but-set-variable]
526 | struct smp_dev *smp;
| ^~~
--
In file included from include/net/llc_conn.h:16,
from net/llc/af_llc.c:34:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/llc/af_llc.c: In function 'llc_ui_sendmsg':
net/llc/af_llc.c:974:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
974 | __func__, llc->laddr.lsap, llc->daddr.lsap, rc);
| ^
--
In file included from include/net/inet_sock.h:22,
from include/net/inet_ecn.h:8,
from include/net/codel.h:48,
from include/net/mac80211.h:22,
from net/mac80211/driver-ops.h:11,
from net/mac80211/trace.c:8:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
In file included from net/mac80211/trace.h:2717,
from net/mac80211/trace.c:11:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from net/nfc/nci/../nfc.h:14,
from net/nfc/nci/hci.c:13:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/nfc/nci/hci.c: In function 'nci_hci_resp_received':
net/nfc/nci/hci.c:369:5: warning: variable 'status' set but not used [-Wunused-but-set-variable]
369 | u8 status = result;
| ^~~~~~
vim +/SCM_REDUNDANT +2457 include/net/sock.h
2449
2450 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2451 struct sk_buff *skb)
2452 {
2453 struct skb_redundant_info *sred;
2454
2455 sred = skb_redinfo(skb);
2456 if (sred->lsdu_size)
> 2457 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2458 }
2459
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [patch net-next RFC 01/10] devlink: add support to create line card and expose to user
by kernel test robot
Hi Jiri,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jiri-Pirko/introduce-line-card-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git f50e2f9f791647aa4e5b19d0064f5cabf630bf6e
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/30560ca5d609ffb9625ef9fbf02daa8c9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jiri-Pirko/introduce-line-card-support-for-modular-switch/20210113-201955
git checkout 30560ca5d609ffb9625ef9fbf02daa8c994f3223
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from net/core/devlink.c:10:
>> include/linux/export.h:67:36: error: redefinition of '__ksymtab_devlink_linecard_create'
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
net/core/devlink.c:8654:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
8654 | EXPORT_SYMBOL_GPL(devlink_linecard_create);
| ^~~~~~~~~~~~~~~~~
include/linux/export.h:67:36: note: previous definition of '__ksymtab_devlink_linecard_create' was here
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
net/core/devlink.c:8638:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
8638 | EXPORT_SYMBOL_GPL(devlink_linecard_create);
| ^~~~~~~~~~~~~~~~~
vim +/__ksymtab_devlink_linecard_create +67 include/linux/export.h
f50169324df4ad94 Paul Gortmaker 2011-05-23 41
7290d58095712a89 Ard Biesheuvel 2018-08-21 42 #ifdef CONFIG_HAVE_ARCH_PREL32_RELOCATIONS
7290d58095712a89 Ard Biesheuvel 2018-08-21 43 #include <linux/compiler.h>
7290d58095712a89 Ard Biesheuvel 2018-08-21 44 /*
7290d58095712a89 Ard Biesheuvel 2018-08-21 45 * Emit the ksymtab entry as a pair of relative references: this reduces
7290d58095712a89 Ard Biesheuvel 2018-08-21 46 * the size by half on 64-bit architectures, and eliminates the need for
7290d58095712a89 Ard Biesheuvel 2018-08-21 47 * absolute relocations that require runtime processing on relocatable
7290d58095712a89 Ard Biesheuvel 2018-08-21 48 * kernels.
7290d58095712a89 Ard Biesheuvel 2018-08-21 49 */
7290d58095712a89 Ard Biesheuvel 2018-08-21 50 #define __KSYMTAB_ENTRY(sym, sec) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 51 __ADDRESSABLE(sym) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 52 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \
ed13fc33f763035a Matthias Maennich 2019-09-06 53 " .balign 4 \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 54 "__ksymtab_" #sym ": \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 55 " .long " #sym "- . \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 56 " .long __kstrtab_" #sym "- . \n" \
c3a6cf19e695c8b0 Masahiro Yamada 2019-10-18 57 " .long __kstrtabns_" #sym "- . \n" \
7290d58095712a89 Ard Biesheuvel 2018-08-21 58 " .previous \n")
7290d58095712a89 Ard Biesheuvel 2018-08-21 59
7290d58095712a89 Ard Biesheuvel 2018-08-21 60 struct kernel_symbol {
7290d58095712a89 Ard Biesheuvel 2018-08-21 61 int value_offset;
7290d58095712a89 Ard Biesheuvel 2018-08-21 62 int name_offset;
8651ec01daedad26 Matthias Maennich 2019-09-06 63 int namespace_offset;
7290d58095712a89 Ard Biesheuvel 2018-08-21 64 };
7290d58095712a89 Ard Biesheuvel 2018-08-21 65 #else
7290d58095712a89 Ard Biesheuvel 2018-08-21 66 #define __KSYMTAB_ENTRY(sym, sec) \
7290d58095712a89 Ard Biesheuvel 2018-08-21 @67 static const struct kernel_symbol __ksymtab_##sym \
7290d58095712a89 Ard Biesheuvel 2018-08-21 68 __attribute__((section("___ksymtab" sec "+" #sym), used)) \
ed13fc33f763035a Matthias Maennich 2019-09-06 69 __aligned(sizeof(void *)) \
c3a6cf19e695c8b0 Masahiro Yamada 2019-10-18 70 = { (unsigned long)&sym, __kstrtab_##sym, __kstrtabns_##sym }
7290d58095712a89 Ard Biesheuvel 2018-08-21 71
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
include/linux/vmstat.h:351:19: error: implicit declaration of function 'page_zone'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210113-204436/Marcelo-T...
head: 472522295b2f1f19da07d09e17be4f6e20a06521
commit: 472522295b2f1f19da07d09e17be4f6e20a06521 tentative prctl task isolation interface
date: 14 hours ago
config: nios2-randconfig-r015-20210113 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/472522295b2f1f19da07d09e17be4f6e2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210113-204436/Marcelo-Tosatti/mm-introduce-sysctl-file-to-flush-per-cpu-vmstat-statistics/20201118-002950
git checkout 472522295b2f1f19da07d09e17be4f6e20a06521
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from kernel/isolation.c:13:
include/linux/vmstat.h: In function '__inc_zone_page_state':
>> include/linux/vmstat.h:351:19: error: implicit declaration of function 'page_zone' [-Werror=implicit-function-declaration]
351 | __inc_zone_state(page_zone(page), item);
| ^~~~~~~~~
>> include/linux/vmstat.h:351:19: warning: passing argument 1 of '__inc_zone_state' makes pointer from integer without a cast [-Wint-conversion]
351 | __inc_zone_state(page_zone(page), item);
| ^~~~~~~~~~~~~~~
| |
| int
include/linux/vmstat.h:324:50: note: expected 'struct zone *' but argument is of type 'int'
324 | static inline void __inc_zone_state(struct zone *zone, enum zone_stat_item item)
| ~~~~~~~~~~~~~^~~~
include/linux/vmstat.h: In function '__inc_node_page_state':
>> include/linux/vmstat.h:357:19: error: implicit declaration of function 'page_pgdat'; did you mean 'page_private'? [-Werror=implicit-function-declaration]
357 | __inc_node_state(page_pgdat(page), item);
| ^~~~~~~~~~
| page_private
>> include/linux/vmstat.h:357:19: warning: passing argument 1 of '__inc_node_state' makes pointer from integer without a cast [-Wint-conversion]
357 | __inc_node_state(page_pgdat(page), item);
| ^~~~~~~~~~~~~~~~
| |
| int
include/linux/vmstat.h:330:57: note: expected 'struct pglist_data *' but argument is of type 'int'
330 | static inline void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/vmstat.h: In function '__dec_zone_page_state':
>> include/linux/vmstat.h:364:19: warning: passing argument 1 of '__dec_zone_state' makes pointer from integer without a cast [-Wint-conversion]
364 | __dec_zone_state(page_zone(page), item);
| ^~~~~~~~~~~~~~~
| |
| int
include/linux/vmstat.h:336:50: note: expected 'struct zone *' but argument is of type 'int'
336 | static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item)
| ~~~~~~~~~~~~~^~~~
include/linux/vmstat.h: In function '__dec_node_page_state':
>> include/linux/vmstat.h:370:19: warning: passing argument 1 of '__dec_node_state' makes pointer from integer without a cast [-Wint-conversion]
370 | __dec_node_state(page_pgdat(page), item);
| ^~~~~~~~~~~~~~~~
| |
| int
include/linux/vmstat.h:342:57: note: expected 'struct pglist_data *' but argument is of type 'int'
342 | static inline void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
kernel/isolation.c: In function 'prctl_task_isolation_request':
>> kernel/isolation.c:38:8: error: implicit declaration of function 'user_quiet_vmstat'; did you mean 'quiet_vmstat'? [-Werror=implicit-function-declaration]
38 | ret = user_quiet_vmstat(cpu);
| ^~~~~~~~~~~~~~~~~
| quiet_vmstat
cc1: some warnings being treated as errors
vim +/page_zone +351 include/linux/vmstat.h
c878538598d1e7 Christoph Lameter 2007-02-10 347
6a3ed2123a78de Johannes Weiner 2014-04-03 348 static inline void __inc_zone_page_state(struct page *page,
6a3ed2123a78de Johannes Weiner 2014-04-03 349 enum zone_stat_item item)
6a3ed2123a78de Johannes Weiner 2014-04-03 350 {
6a3ed2123a78de Johannes Weiner 2014-04-03 @351 __inc_zone_state(page_zone(page), item);
6a3ed2123a78de Johannes Weiner 2014-04-03 352 }
6a3ed2123a78de Johannes Weiner 2014-04-03 353
75ef7184053989 Mel Gorman 2016-07-28 354 static inline void __inc_node_page_state(struct page *page,
75ef7184053989 Mel Gorman 2016-07-28 355 enum node_stat_item item)
75ef7184053989 Mel Gorman 2016-07-28 356 {
75ef7184053989 Mel Gorman 2016-07-28 @357 __inc_node_state(page_pgdat(page), item);
75ef7184053989 Mel Gorman 2016-07-28 358 }
75ef7184053989 Mel Gorman 2016-07-28 359
75ef7184053989 Mel Gorman 2016-07-28 360
2244b95a7bcf8d Christoph Lameter 2006-06-30 361 static inline void __dec_zone_page_state(struct page *page,
2244b95a7bcf8d Christoph Lameter 2006-06-30 362 enum zone_stat_item item)
2244b95a7bcf8d Christoph Lameter 2006-06-30 363 {
57ce36feb4d128 Uwe Kleine-König 2008-02-25 @364 __dec_zone_state(page_zone(page), item);
2244b95a7bcf8d Christoph Lameter 2006-06-30 365 }
2244b95a7bcf8d Christoph Lameter 2006-06-30 366
75ef7184053989 Mel Gorman 2016-07-28 367 static inline void __dec_node_page_state(struct page *page,
75ef7184053989 Mel Gorman 2016-07-28 368 enum node_stat_item item)
75ef7184053989 Mel Gorman 2016-07-28 369 {
75ef7184053989 Mel Gorman 2016-07-28 @370 __dec_node_state(page_pgdat(page), item);
75ef7184053989 Mel Gorman 2016-07-28 371 }
75ef7184053989 Mel Gorman 2016-07-28 372
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH bpf-next 1/2] trace: bpf: Allow bpf to attach to bare tracepoints
by kernel test robot
Hi Qais,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Qais-Yousef/Allow-attaching-to-b...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8f02e2ee2ac949ce6b4fd3cfd323f2e51...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Qais-Yousef/Allow-attaching-to-bare-tracepoints/20210112-022350
git checkout 8f02e2ee2ac949ce6b4fd3cfd323f2e513a2cac6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/trace/define_trace.h:104,
from include/trace/events/sched.h:740,
from kernel/sched/core.c:10:
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:693:1: note: in expansion of macro 'DECLARE_TRACE'
693 | DECLARE_TRACE(pelt_cfs_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:697:1: note: in expansion of macro 'DECLARE_TRACE'
697 | DECLARE_TRACE(pelt_rt_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:701:1: note: in expansion of macro 'DECLARE_TRACE'
701 | DECLARE_TRACE(pelt_dl_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:705:1: note: in expansion of macro 'DECLARE_TRACE'
705 | DECLARE_TRACE(pelt_thermal_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:709:1: note: in expansion of macro 'DECLARE_TRACE'
709 | DECLARE_TRACE(pelt_irq_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:713:1: note: in expansion of macro 'DECLARE_TRACE'
713 | DECLARE_TRACE(pelt_se_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:717:1: note: in expansion of macro 'DECLARE_TRACE'
717 | DECLARE_TRACE(sched_cpu_capacity_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:721:1: note: in expansion of macro 'DECLARE_TRACE'
721 | DECLARE_TRACE(sched_overutilized_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'DECLARE_TRACE'
725 | DECLARE_TRACE(sched_util_est_cfs_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:729:1: note: in expansion of macro 'DECLARE_TRACE'
729 | DECLARE_TRACE(sched_util_est_se_tp,
| ^~~~~~~~~~~~~
>> include/trace/bpf_probe.h:59:1: error: expected identifier or '(' before 'static'
59 | static notrace void \
| ^~~~~~
include/trace/bpf_probe.h:119:3: note: in expansion of macro '__BPF_DECLARE_TRACE'
119 | (__BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
| ^~~~~~~~~~~~~~~~~~~
include/trace/events/sched.h:733:1: note: in expansion of macro 'DECLARE_TRACE'
733 | DECLARE_TRACE(sched_update_nr_running_tp,
| ^~~~~~~~~~~~~
kernel/sched/core.c:2828:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2828 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'schedule_tail':
kernel/sched/core.c:4238:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
4238 | struct rq *rq;
| ^~
vim +59 include/trace/bpf_probe.h
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 57
8f02e2ee2ac949ce Qais Yousef 2021-01-11 58 #define __BPF_DECLARE_TRACE(call, proto, args) \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 @59 static notrace void \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 60 __bpf_trace_##call(void *__data, proto) \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 61 { \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 62 struct bpf_prog *prog = __data; \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 63 CONCATENATE(bpf_trace_run, COUNT_ARGS(args))(prog, CAST_TO_U64(args)); \
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 64 }
c4f6699dfcb8558d Alexei Starovoitov 2018-03-28 65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[ti:ti-linux-5.4.y 7094/12984] drivers/crypto/sa2ul.c:1296:25: warning: variable 'rctx' set but not used
by kernel test robot
Hi Tero,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: c02b2da68c63deb35dc5a7c1b0bbc68e4ee38632
commit: 2e7c47e07621e99da76060d7e85b2ea050ad97b0 [7094/12984] crypto: sa2ul: convert hash fallback mechanism to use local buffer
config: mips-randconfig-r014-20210113 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.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
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout 2e7c47e07621e99da76060d7e85b2ea050ad97b0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/crypto/sa2ul.c: In function 'sa_cipher_setkey':
drivers/crypto/sa2ul.c:856:14: warning: variable 'cra_name' set but not used [-Wunused-but-set-variable]
856 | const char *cra_name;
| ^~~~~~~~
drivers/crypto/sa2ul.c: In function 'sa_sha_dma_in_callback':
>> drivers/crypto/sa2ul.c:1296:25: warning: variable 'rctx' set but not used [-Wunused-but-set-variable]
1296 | struct sa_sha_req_ctx *rctx;
| ^~~~
In file included from include/linux/dmaengine.h:8,
from drivers/crypto/sa2ul.c:13:
drivers/crypto/sa2ul.c: In function 'sa_sha_init':
drivers/crypto/sa2ul.c:1525:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1525 | crypto_ahash_digestsize(tfm), (u64)rctx);
| ^
include/linux/device.h:1759:47: note: in definition of macro 'dev_dbg'
1759 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/crypto/sa2ul.c: At top level:
drivers/crypto/sa2ul.c:2211:6: warning: no previous prototype for 'sa_register_algos' [-Wmissing-prototypes]
2211 | void sa_register_algos(const struct device *dev)
| ^~~~~~~~~~~~~~~~~
drivers/crypto/sa2ul.c:2243:6: warning: no previous prototype for 'sa_unregister_algos' [-Wmissing-prototypes]
2243 | void sa_unregister_algos(const struct device *dev)
| ^~~~~~~~~~~~~~~~~~~
vim +/rctx +1296 drivers/crypto/sa2ul.c
491c6a44ee1ed98e Keerthy 2020-01-17 1289
b30be50bf38eb796 Tero Kristo 2020-05-26 1290 static void sa_sha_dma_in_callback(void *data)
dfcac7a6a1f9e04a Keerthy 2020-01-17 1291 {
dfcac7a6a1f9e04a Keerthy 2020-01-17 1292 struct sa_rx_data *rxd = (struct sa_rx_data *)data;
b30be50bf38eb796 Tero Kristo 2020-05-26 1293 struct ahash_request *req;
b30be50bf38eb796 Tero Kristo 2020-05-26 1294 struct crypto_ahash *tfm;
b30be50bf38eb796 Tero Kristo 2020-05-26 1295 unsigned int authsize;
b30be50bf38eb796 Tero Kristo 2020-05-26 @1296 struct sa_sha_req_ctx *rctx;
dfcac7a6a1f9e04a Keerthy 2020-01-17 1297 int i, sg_nents;
dfcac7a6a1f9e04a Keerthy 2020-01-17 1298 size_t ml, pl;
dfcac7a6a1f9e04a Keerthy 2020-01-17 1299 u32 *mdptr, *result;
dfcac7a6a1f9e04a Keerthy 2020-01-17 1300
b30be50bf38eb796 Tero Kristo 2020-05-26 1301 req = container_of(rxd->req, struct ahash_request, base);
b30be50bf38eb796 Tero Kristo 2020-05-26 1302 tfm = crypto_ahash_reqtfm(req);
b30be50bf38eb796 Tero Kristo 2020-05-26 1303 authsize = crypto_ahash_digestsize(tfm);
b30be50bf38eb796 Tero Kristo 2020-05-26 1304 rctx = ahash_request_ctx(req);
b30be50bf38eb796 Tero Kristo 2020-05-26 1305
dfcac7a6a1f9e04a Keerthy 2020-01-17 1306 mdptr = (u32 *)dmaengine_desc_get_metadata_ptr(rxd->tx_in, &pl, &ml);
dfcac7a6a1f9e04a Keerthy 2020-01-17 1307 result = (u32 *)req->result;
dfcac7a6a1f9e04a Keerthy 2020-01-17 1308
2e7c47e07621e99d Tero Kristo 2020-05-26 1309 if (result)
dfcac7a6a1f9e04a Keerthy 2020-01-17 1310 for (i = 0; i < (authsize / 4); i++)
dfcac7a6a1f9e04a Keerthy 2020-01-17 1311 result[i] = htonl(mdptr[i + 4]);
dfcac7a6a1f9e04a Keerthy 2020-01-17 1312
b30be50bf38eb796 Tero Kristo 2020-05-26 1313 sg_nents = sg_nents_for_len(req->src, req->nbytes);
b30be50bf38eb796 Tero Kristo 2020-05-26 1314 dma_unmap_sg(rxd->ddev, req->src, sg_nents, DMA_FROM_DEVICE);
b30be50bf38eb796 Tero Kristo 2020-05-26 1315
b30be50bf38eb796 Tero Kristo 2020-05-26 1316 kfree(rxd->split_src_sg);
dfcac7a6a1f9e04a Keerthy 2020-01-17 1317
dfcac7a6a1f9e04a Keerthy 2020-01-17 1318 kfree(rxd);
dfcac7a6a1f9e04a Keerthy 2020-01-17 1319
dfcac7a6a1f9e04a Keerthy 2020-01-17 1320 ahash_request_complete(req, 0);
dfcac7a6a1f9e04a Keerthy 2020-01-17 1321 }
dfcac7a6a1f9e04a Keerthy 2020-01-17 1322
:::::: The code at line 1296 was first introduced by commit
:::::: b30be50bf38eb7964bc59dbfefd120939b357b37 crypto: sa2ul: sync codebase with latest upstream
:::::: TO: Tero Kristo <t-kristo(a)ti.com>
:::::: CC: Tero Kristo <t-kristo(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months