Re: [PATCH v3 2/8] panic: add uevent support
by kbuild test robot
Hi Luis,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20200526]
[cannot apply to ath6kl/ath-next jeyu/modules-next tip/perf/core sparc-next/master linus/master asm-generic/master v5.7-rc7 v5.7-rc6 v5.7-rc5 v5.7-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Luis-Chamberlain/kernel-taint-wh...
base: b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8
config: i386-randconfig-m021-20200531 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> error: include/uapi/linux/panic_events.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier
make[2]: *** [scripts/Makefile.headersinst:63: usr/include/linux/panic_events.h] Error 1
make[2]: Target '__headers' not remade because of errors.
make[1]: *** [Makefile:1251: headers] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
Re: [PATCH v2 2/3] media: rockchip: Introduce driver for Rockhip's camera interface
by kbuild test robot
Hi Maxime,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on robh/for-next v5.7-rc7 next-20200529]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Maxime-Chevallier/media-rockchip...
base: git://linuxtv.org/media_tree.git master
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/media/platform/rockchip/cif/dev.c:22:
>> drivers/media/platform/rockchip/cif/regs.h:113: warning: "FRAME_END" redefined
113 | #define FRAME_END (0x01 << 0)
|
In file included from arch/x86/include/asm/paravirt.h:18,
from arch/x86/include/asm/spinlock.h:10,
from include/linux/spinlock.h:89,
from include/linux/rwsem.h:16,
from include/linux/notifier.h:15,
from include/linux/clk.h:14,
from drivers/media/platform/rockchip/cif/dev.c:8:
arch/x86/include/asm/frame.h:60: note: this is the location of the previous definition
60 | #define FRAME_END "pop %" _ASM_BP "n"
|
In file included from include/media/v4l2-subdev.h:15,
from include/media/v4l2-device.h:13,
from drivers/media/platform/rockchip/cif/dev.h:15,
from drivers/media/platform/rockchip/cif/dev.c:21:
drivers/media/platform/rockchip/cif/dev.c: In function 'rkcif_plat_probe':
include/media/v4l2-common.h:58:32: warning: 'v4l2_dev' may be used uninitialized in this function [-Wmaybe-uninitialized]
58 | printk(level "%s: " fmt, (dev)->name , ## arg)
| ^~
drivers/media/platform/rockchip/cif/dev.c:216:22: note: 'v4l2_dev' was declared here
216 | struct v4l2_device *v4l2_dev;
| ^~~~~~~~
--
In file included from drivers/media/platform/rockchip/cif/capture.c:22:
>> drivers/media/platform/rockchip/cif/regs.h:113: warning: "FRAME_END" redefined
113 | #define FRAME_END (0x01 << 0)
|
In file included from arch/x86/include/asm/paravirt.h:18,
from arch/x86/include/asm/spinlock.h:10,
from include/linux/spinlock.h:89,
from include/linux/wait.h:9,
from include/linux/pid.h:6,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/pm_runtime.h:11,
from drivers/media/platform/rockchip/cif/capture.c:10:
arch/x86/include/asm/frame.h:60: note: this is the location of the previous definition
60 | #define FRAME_END "pop %" _ASM_BP "n"
|
vim +/FRAME_END +113 drivers/media/platform/rockchip/cif/regs.h
110
111 /* CIF INTSTAT */
112 #define INTSTAT_CLS (0x3FF)
> 113 #define FRAME_END (0x01 << 0)
114 #define LINE_ERR (0x01 << 2)
115 #define PST_INF_FRAME_END (0x01 << 9)
116 #define FRAME_END_CLR (0x01 << 0)
117 #define LINE_ERR_CLR (0x01 << 2)
118 #define PST_INF_FRAME_END_CLR (0x01 << 9)
119 #define INTSTAT_ERR (0xFC)
120
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
Re: [PATCH v2 bpf-next 2/4] bpf: Introduce sleepable BPF programs
by kbuild test robot
Hi Alexei,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on v5.7-rc7 next-20200529]
[cannot apply to bpf-next/master bpf/master net/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Alexei-Starovoitov/bpf-Introduce...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git bc183dec08f9cb177cf5206a010b7a9e7b22e567
config: um-randconfig-r004-20200529 (attached as .config)
compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
/usr/bin/ld: kernel/bpf/syscall.o: in function `__bpf_prog_put_noref':
kernel/bpf/syscall.c:1729: undefined reference to `bpf_srcu'
/usr/bin/ld: kernel/bpf/hashtab.o: in function `htab_map_free':
kernel/bpf/hashtab.c:1305: undefined reference to `bpf_srcu'
/usr/bin/ld: kernel/bpf/hashtab.o: in function `lock_is_held':
include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
>> /usr/bin/ld: include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
>> /usr/bin/ld: include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
/usr/bin/ld: kernel/bpf/hashtab.o:include/linux/lockdep.h:406: more undefined references to `bpf_srcu' follow
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
[avpatel:riscv_intc_v6 10/13] drivers/irqchip/irq-sifive-plic.c:273:3: note: in expansion of macro 'pr_warn'
by kbuild test robot
tree: https://github.com/avpatel/linux.git riscv_intc_v6
head: a20d19a27d69a2149a6388d4af5feafd8ca3e20a
commit: 95c636180f0654b624fc25814debc9a4629f2c2b [10/13] irqchip: RISC-V per-HART local interrupt controller driver
config: riscv-randconfig-c023-20200529 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/riscv/include/asm/bug.h:83,
from include/linux/bug.h:5,
from arch/riscv/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from drivers/irqchip/irq-sifive-plic.c:7:
drivers/irqchip/irq-sifive-plic.c: In function 'plic_starting_cpu':
>> include/linux/kern_levels.h:5:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
5 | #define KERN_SOH "001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:301:9: note: in expansion of macro 'KERN_WARNING'
301 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
>> drivers/irqchip/irq-sifive-plic.c:273:3: note: in expansion of macro 'pr_warn'
273 | pr_warn("cpu%d: parent irq not availablen");
| ^~~~~~~
drivers/irqchip/irq-sifive-plic.c:273:16: note: format string is defined here
273 | pr_warn("cpu%d: parent irq not availablen");
| ~^
| |
| int
drivers/irqchip/irq-sifive-plic.c: In function 'plic_init':
drivers/irqchip/irq-sifive-plic.c:286:25: warning: unused variable 'intc_args' [-Wunused-variable]
286 | struct of_phandle_args intc_args;
| ^~~~~~~~~
vim +/pr_warn +273 drivers/irqchip/irq-sifive-plic.c
264
265 static int plic_starting_cpu(unsigned int cpu)
266 {
267 struct plic_handler *handler = this_cpu_ptr(&plic_handlers);
268
269 if (plic_parent_irq)
270 enable_percpu_irq(plic_parent_irq,
271 irq_get_trigger_type(plic_parent_irq));
272 else
> 273 pr_warn("cpu%d: parent irq not available\n");
274 plic_set_threshold(handler, PLIC_ENABLE_THRESHOLD);
275
276 return 0;
277 }
278
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
[linux-next:master 10519/14131] net/atm/ioctl.c:205:29: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 8cacb4165985444c275a6f813f91f08479bdbfad [10519/14131] atm: lift copyin from atm_dev_ioctl()
config: m68k-randconfig-s032-20200531 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 8cacb4165985444c275a6f813f91f08479bdbfad
# save the attached .config to linux build tree
make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> * @@
net/atm/ioctl.c:70:25: sparse: expected void *
net/atm/ioctl.c:70:25: sparse: got int [noderef] <asn:1> *
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> * @@
net/atm/ioctl.c:82:25: sparse: expected void *
net/atm/ioctl.c:82:25: sparse: got int [noderef] <asn:1> *
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got unsigned short [noderef] [usertype] <asn:1> * @@
net/atm/ioctl.c:125:25: sparse: expected void const *
net/atm/ioctl.c:125:25: sparse: got unsigned short [noderef] [usertype] <asn:1> *
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:180:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got void [noderef] <asn:1> *[noderef] <asn:1> * @@
net/atm/ioctl.c:180:29: sparse: expected void const *
net/atm/ioctl.c:180:29: sparse: got void [noderef] <asn:1> *[noderef] <asn:1> *
net/atm/ioctl.c:203:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:203:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:203:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:203:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got void [noderef] <asn:1> *[noderef] <asn:1> * @@
net/atm/ioctl.c:203:29: sparse: expected void const *
net/atm/ioctl.c:203:29: sparse: got void [noderef] <asn:1> *[noderef] <asn:1> *
net/atm/ioctl.c:205:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:205:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:205:29: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/ioctl.c:205:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> * @@
net/atm/ioctl.c:205:29: sparse: expected void const *
net/atm/ioctl.c:205:29: sparse: got int [noderef] <asn:1> *
--
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:203:13: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> *iobuf_len @@
net/atm/resources.c:203:13: sparse: expected void const *
net/atm/resources.c:203:13: sparse: got int [noderef] <asn:1> *iobuf_len
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:224:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *iobuf_len @@
net/atm/resources.c:224:18: sparse: expected void *
net/atm/resources.c:224:18: sparse: got int [noderef] <asn:1> *iobuf_len
net/atm/resources.c:236:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:236:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:236:13: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/resources.c:236:13: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> *sioc_len @@
net/atm/resources.c:236:13: sparse: expected void const *
net/atm/resources.c:236:13: sparse: got int [noderef] <asn:1> *sioc_len
net/atm/resources.c:355:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:355:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:355:25: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/resources.c:355:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *sioc_len @@
net/atm/resources.c:355:25: sparse: expected void *
net/atm/resources.c:355:25: sparse: got int [noderef] <asn:1> *sioc_len
net/atm/resources.c:398:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:398:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:398:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:398:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *sioc_len @@
net/atm/resources.c:398:25: sparse: expected void *
net/atm/resources.c:398:25: sparse: got int [noderef] <asn:1> *sioc_len
vim +205 net/atm/ioctl.c
50
51 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
52 unsigned long arg, int compat)
53 {
54 struct sock *sk = sock->sk;
55 struct atm_vcc *vcc;
56 int error;
57 struct list_head *pos;
58 void __user *argp = (void __user *)arg;
59 void __user *buf;
60 int __user *len;
61
62 vcc = ATM_SD(sock);
63 switch (cmd) {
64 case SIOCOUTQ:
65 if (sock->state != SS_CONNECTED ||
66 !test_bit(ATM_VF_READY, &vcc->flags)) {
67 error = -EINVAL;
68 goto done;
69 }
70 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk),
71 (int __user *)argp) ? -EFAULT : 0;
72 goto done;
73 case SIOCINQ:
74 {
75 struct sk_buff *skb;
76
77 if (sock->state != SS_CONNECTED) {
78 error = -EINVAL;
79 goto done;
80 }
81 skb = skb_peek(&sk->sk_receive_queue);
82 error = put_user(skb ? skb->len : 0,
83 (int __user *)argp) ? -EFAULT : 0;
84 goto done;
85 }
86 case ATM_SETSC:
87 net_warn_ratelimited("ATM_SETSC is obsolete; used by %s:%d\n",
88 current->comm, task_pid_nr(current));
89 error = 0;
90 goto done;
91 case ATMSIGD_CTRL:
92 if (!capable(CAP_NET_ADMIN)) {
93 error = -EPERM;
94 goto done;
95 }
96 /*
97 * The user/kernel protocol for exchanging signalling
98 * info uses kernel pointers as opaque references,
99 * so the holder of the file descriptor can scribble
100 * on the kernel... so we should make sure that we
101 * have the same privileges that /proc/kcore needs
102 */
103 if (!capable(CAP_SYS_RAWIO)) {
104 error = -EPERM;
105 goto done;
106 }
107 #ifdef CONFIG_COMPAT
108 /* WTF? I don't even want to _think_ about making this
109 work for 32-bit userspace. TBH I don't really want
110 to think about it at all. dwmw2. */
111 if (compat) {
112 net_warn_ratelimited("32-bit task cannot be atmsigd\n");
113 error = -EINVAL;
114 goto done;
115 }
116 #endif
117 error = sigd_attach(vcc);
118 if (!error)
119 sock->state = SS_CONNECTED;
120 goto done;
121 case ATM_SETBACKEND:
122 case ATM_NEWBACKENDIF:
123 {
124 atm_backend_t backend;
125 error = get_user(backend, (atm_backend_t __user *)argp);
126 if (error)
127 goto done;
128 switch (backend) {
129 case ATM_BACKEND_PPP:
130 request_module("pppoatm");
131 break;
132 case ATM_BACKEND_BR2684:
133 request_module("br2684");
134 break;
135 }
136 break;
137 }
138 case ATMMPC_CTRL:
139 case ATMMPC_DATA:
140 request_module("mpoa");
141 break;
142 case ATMARPD_CTRL:
143 request_module("clip");
144 break;
145 case ATMLEC_CTRL:
146 request_module("lec");
147 break;
148 }
149
150 error = -ENOIOCTLCMD;
151
152 mutex_lock(&ioctl_mutex);
153 list_for_each(pos, &ioctl_list) {
154 struct atm_ioctl *ic = list_entry(pos, struct atm_ioctl, list);
155 if (try_module_get(ic->owner)) {
156 error = ic->ioctl(sock, cmd, arg);
157 module_put(ic->owner);
158 if (error != -ENOIOCTLCMD)
159 break;
160 }
161 }
162 mutex_unlock(&ioctl_mutex);
163
164 if (error != -ENOIOCTLCMD)
165 goto done;
166
167 if (cmd == ATM_GETNAMES) {
168 if (IS_ENABLED(CONFIG_COMPAT) && compat) {
169 #ifdef CONFIG_COMPAT
170 struct compat_atm_iobuf __user *ciobuf = argp;
171 compat_uptr_t cbuf;
172 len = &ciobuf->length;
173 if (get_user(cbuf, &ciobuf->buffer))
174 return -EFAULT;
175 buf = compat_ptr(cbuf);
176 #endif
177 } else {
178 struct atm_iobuf __user *iobuf = argp;
179 len = &iobuf->length;
180 if (get_user(buf, &iobuf->buffer))
181 return -EFAULT;
182 }
183 error = atm_getnames(buf, len);
184 } else {
185 int number;
186
187 if (IS_ENABLED(CONFIG_COMPAT) && compat) {
188 #ifdef CONFIG_COMPAT
189 struct compat_atmif_sioc __user *csioc = argp;
190 compat_uptr_t carg;
191
192 len = &csioc->length;
193 if (get_user(carg, &csioc->arg))
194 return -EFAULT;
195 buf = compat_ptr(carg);
196 if (get_user(number, &csioc->number))
197 return -EFAULT;
198 #endif
199 } else {
200 struct atmif_sioc __user *sioc = argp;
201
202 len = &sioc->length;
> 203 if (get_user(buf, &sioc->arg))
204 return -EFAULT;
> 205 if (get_user(number, &sioc->number))
206 return -EFAULT;
207 }
208 error = atm_dev_ioctl(cmd, buf, len, number, compat);
209 }
210
211 done:
212 return error;
213 }
214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
[linux-next:master 10517/14131] net/atm/ioctl.c:180:29: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: a3929484af75ee524419edbbc4e9ce012c3d67c9 [10517/14131] atm: move copyin from atm_getnames() into the caller
config: m68k-randconfig-s032-20200531 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout a3929484af75ee524419edbbc4e9ce012c3d67c9
# save the attached .config to linux build tree
make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:70:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> * @@
net/atm/ioctl.c:70:25: sparse: expected void *
net/atm/ioctl.c:70:25: sparse: got int [noderef] <asn:1> *
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:82:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> * @@
net/atm/ioctl.c:82:25: sparse: expected void *
net/atm/ioctl.c:82:25: sparse: got int [noderef] <asn:1> *
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:125:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got unsigned short [noderef] [usertype] <asn:1> * @@
net/atm/ioctl.c:125:25: sparse: expected void const *
net/atm/ioctl.c:125:25: sparse: got unsigned short [noderef] [usertype] <asn:1> *
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/ioctl.c:180:29: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/ioctl.c:180:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got void [noderef] <asn:1> *[noderef] <asn:1> * @@
net/atm/ioctl.c:180:29: sparse: expected void const *
net/atm/ioctl.c:180:29: sparse: got void [noderef] <asn:1> *[noderef] <asn:1> *
--
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:203:13: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/resources.c:203:13: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> *iobuf_len @@
net/atm/resources.c:203:13: sparse: expected void const *
net/atm/resources.c:203:13: sparse: got int [noderef] <asn:1> *iobuf_len
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:224:18: sparse: sparse: cast removes address space '<asn:1>' of expression
>> net/atm/resources.c:224:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *iobuf_len @@
net/atm/resources.c:224:18: sparse: expected void *
net/atm/resources.c:224:18: sparse: got int [noderef] <asn:1> *iobuf_len
net/atm/resources.c:256:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:256:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:256:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:256:21: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got void [noderef] <asn:1> *[noderef] <asn:1> * @@
net/atm/resources.c:256:21: sparse: expected void const *
net/atm/resources.c:256:21: sparse: got void [noderef] <asn:1> *[noderef] <asn:1> *
net/atm/resources.c:258:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:258:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:258:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:258:21: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> * @@
net/atm/resources.c:258:21: sparse: expected void const *
net/atm/resources.c:258:21: sparse: got int [noderef] <asn:1> *
net/atm/resources.c:260:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:260:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:260:21: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:260:21: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got int [noderef] <asn:1> * @@
net/atm/resources.c:260:21: sparse: expected void const *
net/atm/resources.c:260:21: sparse: got int [noderef] <asn:1> *
net/atm/resources.c:380:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:380:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:380:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:380:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *[assigned] sioc_len @@
net/atm/resources.c:380:25: sparse: expected void *
net/atm/resources.c:380:25: sparse: got int [noderef] <asn:1> *[assigned] sioc_len
net/atm/resources.c:423:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:423:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:423:25: sparse: sparse: cast removes address space '<asn:1>' of expression
net/atm/resources.c:423:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got int [noderef] <asn:1> *[assigned] sioc_len @@
net/atm/resources.c:423:25: sparse: expected void *
net/atm/resources.c:423:25: sparse: got int [noderef] <asn:1> *[assigned] sioc_len
vim +180 net/atm/ioctl.c
50
51 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
52 unsigned long arg, int compat)
53 {
54 struct sock *sk = sock->sk;
55 struct atm_vcc *vcc;
56 int error;
57 struct list_head *pos;
58 void __user *argp = (void __user *)arg;
59 void __user *buf;
60 int __user *len;
61
62 vcc = ATM_SD(sock);
63 switch (cmd) {
64 case SIOCOUTQ:
65 if (sock->state != SS_CONNECTED ||
66 !test_bit(ATM_VF_READY, &vcc->flags)) {
67 error = -EINVAL;
68 goto done;
69 }
70 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk),
71 (int __user *)argp) ? -EFAULT : 0;
72 goto done;
73 case SIOCINQ:
74 {
75 struct sk_buff *skb;
76
77 if (sock->state != SS_CONNECTED) {
78 error = -EINVAL;
79 goto done;
80 }
81 skb = skb_peek(&sk->sk_receive_queue);
82 error = put_user(skb ? skb->len : 0,
83 (int __user *)argp) ? -EFAULT : 0;
84 goto done;
85 }
86 case ATM_SETSC:
87 net_warn_ratelimited("ATM_SETSC is obsolete; used by %s:%d\n",
88 current->comm, task_pid_nr(current));
89 error = 0;
90 goto done;
91 case ATMSIGD_CTRL:
92 if (!capable(CAP_NET_ADMIN)) {
93 error = -EPERM;
94 goto done;
95 }
96 /*
97 * The user/kernel protocol for exchanging signalling
98 * info uses kernel pointers as opaque references,
99 * so the holder of the file descriptor can scribble
100 * on the kernel... so we should make sure that we
101 * have the same privileges that /proc/kcore needs
102 */
103 if (!capable(CAP_SYS_RAWIO)) {
104 error = -EPERM;
105 goto done;
106 }
107 #ifdef CONFIG_COMPAT
108 /* WTF? I don't even want to _think_ about making this
109 work for 32-bit userspace. TBH I don't really want
110 to think about it at all. dwmw2. */
111 if (compat) {
112 net_warn_ratelimited("32-bit task cannot be atmsigd\n");
113 error = -EINVAL;
114 goto done;
115 }
116 #endif
117 error = sigd_attach(vcc);
118 if (!error)
119 sock->state = SS_CONNECTED;
120 goto done;
121 case ATM_SETBACKEND:
122 case ATM_NEWBACKENDIF:
123 {
124 atm_backend_t backend;
125 error = get_user(backend, (atm_backend_t __user *)argp);
126 if (error)
127 goto done;
128 switch (backend) {
129 case ATM_BACKEND_PPP:
130 request_module("pppoatm");
131 break;
132 case ATM_BACKEND_BR2684:
133 request_module("br2684");
134 break;
135 }
136 break;
137 }
138 case ATMMPC_CTRL:
139 case ATMMPC_DATA:
140 request_module("mpoa");
141 break;
142 case ATMARPD_CTRL:
143 request_module("clip");
144 break;
145 case ATMLEC_CTRL:
146 request_module("lec");
147 break;
148 }
149
150 error = -ENOIOCTLCMD;
151
152 mutex_lock(&ioctl_mutex);
153 list_for_each(pos, &ioctl_list) {
154 struct atm_ioctl *ic = list_entry(pos, struct atm_ioctl, list);
155 if (try_module_get(ic->owner)) {
156 error = ic->ioctl(sock, cmd, arg);
157 module_put(ic->owner);
158 if (error != -ENOIOCTLCMD)
159 break;
160 }
161 }
162 mutex_unlock(&ioctl_mutex);
163
164 if (error != -ENOIOCTLCMD)
165 goto done;
166
167 if (cmd == ATM_GETNAMES) {
168 if (IS_ENABLED(CONFIG_COMPAT) && compat) {
169 #ifdef CONFIG_COMPAT
170 struct compat_atm_iobuf __user *ciobuf = argp;
171 compat_uptr_t cbuf;
172 len = &ciobuf->length;
173 if (get_user(cbuf, &ciobuf->buffer))
174 return -EFAULT;
175 buf = compat_ptr(cbuf);
176 #endif
177 } else {
178 struct atm_iobuf __user *iobuf = argp;
179 len = &iobuf->length;
> 180 if (get_user(buf, &iobuf->buffer))
181 return -EFAULT;
182 }
183 error = atm_getnames(buf, len);
184 } else {
185 error = atm_dev_ioctl(cmd, argp, compat);
186 }
187
188 done:
189 return error;
190 }
191
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
Re: [PATCH v6] drm/ioctl: Add a ioctl to set and get a label on GEM objects
by kbuild test robot
Hi Rohan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on drm-intel/for-linux-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.7-rc7 next-20200529]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Rohan-Garg/drm-ioctl-Add-a-ioctl...
base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next
config: x86_64-randconfig-s021-20200531 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/drm_gem.c:974:24: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected char *label @@ got char const *label @@
>> drivers/gpu/drm/drm_gem.c:974:24: sparse: expected char *label
>> drivers/gpu/drm/drm_gem.c:974:24: sparse: got char const *label
>> drivers/gpu/drm/drm_gem.c:992:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] label @@ got void * @@
>> drivers/gpu/drm/drm_gem.c:992:29: sparse: expected unsigned long long [usertype] label
>> drivers/gpu/drm/drm_gem.c:992:29: sparse: got void *
>> drivers/gpu/drm/drm_gem.c:1000:28: sparse: sparse: incompatible types in comparison expression (different signedness):
>> drivers/gpu/drm/drm_gem.c:1000:28: sparse: unsigned int *
>> drivers/gpu/drm/drm_gem.c:1000:28: sparse: int *
--
>> drivers/gpu/drm/drm_ioctl.c:636:46: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got char * @@
>> drivers/gpu/drm/drm_ioctl.c:636:46: sparse: expected int
>> drivers/gpu/drm/drm_ioctl.c:636:46: sparse: got char *
>> drivers/gpu/drm/drm_ioctl.c:636:24: sparse: sparse: non size-preserving pointer to integer cast
vim +974 drivers/gpu/drm/drm_gem.c
969
970 void drm_gem_adopt_label(struct drm_gem_object *gem_obj, const char *label)
971 {
972 mutex_lock(&gem_obj->bo_lock);
973 kfree(gem_obj->label);
> 974 gem_obj->label = label;
975 mutex_unlock(&gem_obj->bo_lock);
976 }
977 EXPORT_SYMBOL(drm_gem_adopt_label);
978
979 int drm_gem_get_label(struct drm_device *dev, struct drm_file *file_priv,
980 struct drm_handle_label *args)
981 {
982 struct drm_gem_object *gem_obj;
983 int len, ret;
984
985 gem_obj = drm_gem_object_lookup(file_priv, args->handle);
986 if (!gem_obj) {
987 DRM_DEBUG("Failed to look up GEM BO %d\n", args->handle);
988 return -ENOENT;
989 }
990
991 if (!gem_obj->label) {
> 992 args->label = NULL;
993 args->len = 0;
994 return 0;
995 }
996
997 mutex_lock(&gem_obj->bo_lock);
998 len = strlen(gem_obj->label);
999 ret = copy_to_user(u64_to_user_ptr(args->label), gem_obj->label,
> 1000 min(args->len, len));
1001 mutex_unlock(&gem_obj->bo_lock);
1002 args->len = len;
1003 drm_gem_object_put(gem_obj);
1004 return ret;
1005 }
1006 EXPORT_SYMBOL(drm_gem_get_label);
1007
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq
by kbuild test robot
Hi Ali,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on linux/master v5.7-rc7]
[cannot apply to tip/irq/core arm-jcooper/irqchip/for-next next-20200529]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Ali-Saidi/irqchip-gic-v3-its-Don...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 86852175b016f0c6873dcbc24b93d12b7b246612
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/irqchip/irq-gic-v3-its.c: In function 'its_irq_domain_activate':
>> drivers/irqchip/irq-gic-v3-its.c:3449:14: warning: passing argument 1 of 'cpumask_and' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
3449 | cpumask_and(cpu_mask, cpu_mask, cpu_online_mask);
| ^~~~~~~~
In file included from include/linux/rcupdate.h:31,
from include/linux/radix-tree.h:15,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/irqchip/irq-gic-v3-its.c:7:
include/linux/cpumask.h:424:47: note: expected 'struct cpumask *' but argument is of type 'const struct cpumask *'
424 | static inline int cpumask_and(struct cpumask *dstp,
| ~~~~~~~~~~~~~~~~^~~~
In file included from include/linux/bits.h:23,
from include/linux/ioport.h:15,
from include/linux/acpi.h:12,
from drivers/irqchip/irq-gic-v3-its.c:7:
drivers/irqchip/irq-gic-v3-its.c: In function 'its_init_vpe_domain':
include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3-its.c:4765:10: note: in expansion of macro 'GENMASK'
4765 | devid = GENMASK(device_ids(its) - 1, 0);
| ^~~~~~~
include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3-its.c:4765:10: note: in expansion of macro 'GENMASK'
4765 | devid = GENMASK(device_ids(its) - 1, 0);
| ^~~~~~~
vim +3449 drivers/irqchip/irq-gic-v3-its.c
3433
3434 static int its_irq_domain_activate(struct irq_domain *domain,
3435 struct irq_data *d, bool reserve)
3436 {
3437 struct its_device *its_dev = irq_data_get_irq_chip_data(d);
3438 u32 event = its_get_event_id(d);
3439 const struct cpumask *cpu_mask = cpu_online_mask;
3440 int cpu;
3441
3442 /* get the cpu_mask of local node */
3443 if (its_dev->its->numa_node >= 0)
3444 cpu_mask = cpumask_of_node(its_dev->its->numa_node);
3445
3446 /* If the cpu set to a different CPU that is still online use it */
3447 cpu = its_dev->event_map.col_map[event];
3448
> 3449 cpumask_and(cpu_mask, cpu_mask, cpu_online_mask);
3450
3451 if (!cpumask_test_cpu(cpu, cpu_mask)) {
3452 /* Bind the LPI to the first possible CPU */
3453 cpu = cpumask_first(cpu_mask);
3454 }
3455
3456 if (cpu >= nr_cpu_ids) {
3457 if (its_dev->its->flags & ITS_FLAGS_WORKAROUND_CAVIUM_23144)
3458 return -EINVAL;
3459
3460 cpu = cpumask_first(cpu_online_mask);
3461 }
3462
3463 its_dev->event_map.col_map[event] = cpu;
3464 irq_data_update_effective_affinity(d, cpumask_of(cpu));
3465
3466 /* Map the GIC IRQ and event to the device */
3467 its_send_mapti(its_dev, d->hwirq, event);
3468 return 0;
3469 }
3470
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
Re: [PATCH v2 bpf-next 2/4] bpf: Introduce sleepable BPF programs
by kbuild test robot
Hi Alexei,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on v5.7-rc7 next-20200529]
[cannot apply to bpf-next/master bpf/master net/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Alexei-Starovoitov/bpf-Introduce...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git bc183dec08f9cb177cf5206a010b7a9e7b22e567
config: microblaze-randconfig-c003-20200531 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
microblaze-linux-ld: kernel/bpf/syscall.o: in function `__bpf_prog_put_noref':
kernel/bpf/syscall.c:1729: undefined reference to `bpf_srcu'
microblaze-linux-ld: kernel/bpf/hashtab.o: in function `lock_is_held':
>> include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
microblaze-linux-ld: kernel/bpf/hashtab.o: in function `htab_map_free':
kernel/bpf/hashtab.c:1305: undefined reference to `bpf_srcu'
microblaze-linux-ld: kernel/bpf/hashtab.o: in function `lock_is_held':
>> include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
>> microblaze-linux-ld: include/linux/lockdep.h:406: undefined reference to `bpf_srcu'
microblaze-linux-ld: kernel/bpf/hashtab.o:include/linux/lockdep.h:406: more undefined references to `bpf_srcu' follow
vim +406 include/linux/lockdep.h
f8319483f57f1c Peter Zijlstra 2016-11-30 403
08f36ff642342f Matthew Wilcox 2018-01-17 404 static inline int lock_is_held(const struct lockdep_map *lock)
f8319483f57f1c Peter Zijlstra 2016-11-30 405 {
f8319483f57f1c Peter Zijlstra 2016-11-30 @406 return lock_is_held_type(lock, -1);
f8319483f57f1c Peter Zijlstra 2016-11-30 407 }
f607c668577481 Peter Zijlstra 2009-07-20 408
:::::: The code at line 406 was first introduced by commit
:::::: f8319483f57f1ca22370f4150bb990aca7728a67 locking/lockdep: Provide a type check for lock_is_held
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Dave Chinner <david(a)fromorbit.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months
drivers/soundwire/intel_init.c:192:7: warning: no previous prototype for function 'sdw_intel_init'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ffeb595d84811dde16a28b33d8a7cf26d51d51b3
commit: f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b soundwire: intel: update interfaces between ASoC and SoundWire
date: 6 months ago
config: x86_64-randconfig-r033-20200531 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2388a096e7865c043e83ece4e26654bd3d1a20d5)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/soundwire/intel_init.c:192:7: warning: no previous prototype for function 'sdw_intel_init' [-Wmissing-prototypes]
void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
^
drivers/soundwire/intel_init.c:192:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
^
static
1 warning generated.
vim +/sdw_intel_init +192 drivers/soundwire/intel_init.c
d62a7d41f38e1d Vinod Koul 2017-12-14 183
d62a7d41f38e1d Vinod Koul 2017-12-14 184 /**
d62a7d41f38e1d Vinod Koul 2017-12-14 185 * sdw_intel_init() - SoundWire Intel init routine
d62a7d41f38e1d Vinod Koul 2017-12-14 186 * @parent_handle: ACPI parent handle
d62a7d41f38e1d Vinod Koul 2017-12-14 187 * @res: resource data
d62a7d41f38e1d Vinod Koul 2017-12-14 188 *
d62a7d41f38e1d Vinod Koul 2017-12-14 189 * This scans the namespace and creates SoundWire link controller devices
d62a7d41f38e1d Vinod Koul 2017-12-14 190 * based on the info queried.
d62a7d41f38e1d Vinod Koul 2017-12-14 191 */
d62a7d41f38e1d Vinod Koul 2017-12-14 @192 void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
d62a7d41f38e1d Vinod Koul 2017-12-14 193 {
d62a7d41f38e1d Vinod Koul 2017-12-14 194 acpi_status status;
d62a7d41f38e1d Vinod Koul 2017-12-14 195
d62a7d41f38e1d Vinod Koul 2017-12-14 196 status = acpi_walk_namespace(ACPI_TYPE_DEVICE,
d62a7d41f38e1d Vinod Koul 2017-12-14 197 parent_handle, 1,
d62a7d41f38e1d Vinod Koul 2017-12-14 198 sdw_intel_acpi_cb,
d62a7d41f38e1d Vinod Koul 2017-12-14 199 NULL, res, NULL);
d62a7d41f38e1d Vinod Koul 2017-12-14 200 if (ACPI_FAILURE(status))
d62a7d41f38e1d Vinod Koul 2017-12-14 201 return NULL;
d62a7d41f38e1d Vinod Koul 2017-12-14 202
d62a7d41f38e1d Vinod Koul 2017-12-14 203 return sdw_intel_add_controller(res);
d62a7d41f38e1d Vinod Koul 2017-12-14 204 }
d62a7d41f38e1d Vinod Koul 2017-12-14 205
:::::: The code at line 192 was first introduced by commit
:::::: d62a7d41f38e1d3f8f8a1c0db4dec7a5bb39268a soundwire: intel: Add Intel init module
:::::: TO: Vinod Koul <vinod.koul(a)intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 12 months