[congwang:sch_bpf 2/2] net/sched/sch_bpf.c:168:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
by kernel test robot
tree: https://github.com/congwang/linux.git sch_bpf
head: 0ad458bc4f0d7706cb35ddbf35a148527c382d26
commit: 0ad458bc4f0d7706cb35ddbf35a148527c382d26 [2/2] sch_bpf: draft
config: nios2-randconfig-s031-20210814 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.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-348-gf0e6938b-dirty
# https://github.com/congwang/linux/commit/0ad458bc4f0d7706cb35ddbf35a14852...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sch_bpf
git checkout 0ad458bc4f0d7706cb35ddbf35a148527c382d26
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 SHELL=/bin/bash net/sched/
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 >>)
>> net/sched/sch_bpf.c:168:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/sched/sch_bpf.c:168:27: sparse: struct bpf_prog [noderef] __rcu *
>> net/sched/sch_bpf.c:168:27: sparse: struct bpf_prog *
net/sched/sch_bpf.c:238:19: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/sched/sch_bpf.c:238:19: sparse: struct bpf_prog [noderef] __rcu *
net/sched/sch_bpf.c:238:19: sparse: struct bpf_prog *
vim +168 net/sched/sch_bpf.c
154
155 static int sch_bpf_enqueue(struct sk_buff *skb, struct Qdisc *sch,
156 struct sk_buff **to_free)
157 {
158 struct sch_bpf_qdisc *q = qdisc_priv(sch);
159 unsigned int len = qdisc_pkt_len(skb);
160 struct sch_bpf_ctx ctx = {};
161 struct sch_bpf_class *cl;
162 int res;
163
164 cl = sch_bpf_classify(skb, sch, &res);
165 if (!cl) {
166 struct bpf_prog *enqueue;
167
> 168 enqueue = rcu_dereference(q->enqueue_prog.prog);
169 bpf_compute_data_pointers(skb);
170
171 ctx.skb = (struct __sk_buff *)skb;
172 ctx.nr_flows = q->clhash.hashelems;
173 ctx.nr_packets = sch->q.qlen;
174 res = BPF_PROG_RUN(enqueue, &ctx);
175 if (res == SCH_BPF_RET_DROP) {
176 __qdisc_drop(skb, to_free);
177 return NET_XMIT_DROP;
178 }
179 cl = sch_bpf_find(sch, ctx.classid);
180 if (!cl) {
181 if (res & __NET_XMIT_BYPASS)
182 qdisc_qstats_drop(sch);
183 __qdisc_drop(skb, to_free);
184 return res;
185 }
186 }
187
188 if (cl->qdisc) {
189 res = qdisc_enqueue(skb, cl->qdisc, to_free);
190 if (res != NET_XMIT_SUCCESS) {
191 if (net_xmit_drop_count(res)) {
192 qdisc_qstats_drop(sch);
193 cl->drops++;
194 }
195 return res;
196 }
197 } else {
198 sch_bpf_skb_cb(skb)->rank = ctx.rank;
199 pq_push(&cl->pq, &skb->pqnode);
200 }
201
202 sch->qstats.backlog += len;
203 sch->q.qlen++;
204 return res;
205 }
206
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[android-common:android12-5.4 3/7] kernel/sched/core.c:94:22: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 6fa60aa03b21d9299a2f83869b7513306a5f9d80
commit: a0212dbcef6d8b619371eb766da024aaf25e877b [3/7] ANDROID: GKI: core: Export for runqueues
config: i386-randconfig-s001-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout a0212dbcef6d8b619371eb766da024aaf25e877b
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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 >>)
>> kernel/sched/core.c:94:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:94:22: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:94:22: sparse: got struct rq *
kernel/sched/core.c:96:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:96:21: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:96:21: sparse: got struct rq *
kernel/sched/core.c:118:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:118:22: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:118:22: sparse: got struct rq *
kernel/sched/core.c:137:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:137:21: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:137:21: sparse: got struct rq *
kernel/sched/core.c:541:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:541:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:541:25: sparse: got struct rq *
kernel/sched/core.c:2379:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:2379:14: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:2379:14: sparse: got struct rq *
kernel/sched/core.c:2593:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:2593:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:2593:25: sparse: got struct rq *
kernel/sched/core.c:2835:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:2835:29: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:2835:29: sparse: got struct rq *
kernel/sched/core.c:3392:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3392:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3392:25: sparse: got struct rq *
kernel/sched/core.c:3607:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3607:24: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3607:24: sparse: got struct rq *
kernel/sched/core.c:3627:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3627:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3627:16: sparse: got struct rq *
kernel/sched/core.c:3637:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3637:24: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3637:24: sparse: got struct rq *
kernel/sched/core.c:3651:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3651:29: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3651:29: sparse: got struct rq *
kernel/sched/core.c:3798:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:3798:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:3798:25: sparse: got struct rq *
kernel/sched/core.c:4218:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:4218:14: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:4218:14: sparse: got struct rq *
kernel/sched/core.c:4269:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:4269:17: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:4269:17: sparse: struct task_struct *
kernel/sched/core.c:4833:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:4833:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:4833:25: sparse: got struct rq *
kernel/sched/core.c:4874:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:4874:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:4874:16: sparse: got struct rq *
kernel/sched/core.c:5908:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:5908:14: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:5908:14: sparse: got struct rq *
kernel/sched/core.c:5911:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:5911:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:5911:16: sparse: got struct rq *
kernel/sched/core.c:5922:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:5922:13: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:5922:13: sparse: got struct rq *
kernel/sched/core.c:6227:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:6227:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:6227:25: sparse: got struct rq *
kernel/sched/core.c:6266:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:6266:9: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:6266:9: sparse: struct task_struct *
kernel/sched/core.c:6833:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:6833:22: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:6833:22: sparse: got struct rq *
kernel/sched/core.c:8171:25: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:8171:25: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:8171:25: sparse: got struct rq *
kernel/sched/core.c:4109:9: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct rq * @@
kernel/sched/core.c:4109:9: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/sched/core.c:4109:9: sparse: got struct rq *
vim +94 kernel/sched/core.c
fa85ae2418e684 kernel/sched.c Peter Zijlstra 2008-01-25 82
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 83 /*
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 84 * __task_rq_lock - lock the rq @p resides on.
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 85 */
eb58075149b7f0 kernel/sched/core.c Peter Zijlstra 2015-07-31 86 struct rq *__task_rq_lock(struct task_struct *p, struct rq_flags *rf)
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 87 __acquires(rq->lock)
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 88 {
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 89 struct rq *rq;
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 90
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 91 lockdep_assert_held(&p->pi_lock);
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 92
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 93 for (;;) {
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 @94 rq = task_rq(p);
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 95 raw_spin_lock(&rq->lock);
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 96 if (likely(rq == task_rq(p) && !task_on_rq_migrating(p))) {
d8ac897137a230 kernel/sched/core.c Matt Fleming 2016-09-21 97 rq_pin_lock(rq, rf);
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 98 return rq;
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 99 }
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 100 raw_spin_unlock(&rq->lock);
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 101
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 102 while (unlikely(task_on_rq_migrating(p)))
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 103 cpu_relax();
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 104 }
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 105 }
3e71a462dd483c kernel/sched/core.c Peter Zijlstra 2016-04-28 106
:::::: The code at line 94 was first introduced by commit
:::::: 3e71a462dd483ce508a723356b293731e7d788ea sched/core: Move task_rq_lock() out of line
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
fs/exfat/fatent.c:277:1: warning: the frame size of 2048 bytes is larger than 1024 bytes
by kernel test robot
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dfa377c35d70c31139b1274ec49f87d380996c42
commit: 4eeef098b43242ed145c83fba9989d586d707589 powerpc/44x: Remove STDBINUTILS kconfig option
date: 7 months ago
config: powerpc-randconfig-r033-20210814 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/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 4eeef098b43242ed145c83fba9989d586d707589
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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 >>):
fs/exfat/fatent.c: In function 'exfat_zeroed_cluster':
>> fs/exfat/fatent.c:277:1: warning: the frame size of 2048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
277 | }
| ^
vim +277 fs/exfat/fatent.c
31023864e67a5f Namjae Jeon 2020-03-02 231
31023864e67a5f Namjae Jeon 2020-03-02 232 int exfat_zeroed_cluster(struct inode *dir, unsigned int clu)
31023864e67a5f Namjae Jeon 2020-03-02 233 {
31023864e67a5f Namjae Jeon 2020-03-02 234 struct super_block *sb = dir->i_sb;
31023864e67a5f Namjae Jeon 2020-03-02 235 struct exfat_sb_info *sbi = EXFAT_SB(sb);
31023864e67a5f Namjae Jeon 2020-03-02 236 struct buffer_head *bhs[MAX_BUF_PER_PAGE];
31023864e67a5f Namjae Jeon 2020-03-02 237 int nr_bhs = MAX_BUF_PER_PAGE;
31023864e67a5f Namjae Jeon 2020-03-02 238 sector_t blknr, last_blknr;
31023864e67a5f Namjae Jeon 2020-03-02 239 int err, i, n;
31023864e67a5f Namjae Jeon 2020-03-02 240
31023864e67a5f Namjae Jeon 2020-03-02 241 blknr = exfat_cluster_to_sector(sbi, clu);
31023864e67a5f Namjae Jeon 2020-03-02 242 last_blknr = blknr + sbi->sect_per_clus;
31023864e67a5f Namjae Jeon 2020-03-02 243
31023864e67a5f Namjae Jeon 2020-03-02 244 if (last_blknr > sbi->num_sectors && sbi->num_sectors > 0) {
31023864e67a5f Namjae Jeon 2020-03-02 245 exfat_fs_error_ratelimit(sb,
31023864e67a5f Namjae Jeon 2020-03-02 246 "%s: out of range(sect:%llu len:%u)",
31023864e67a5f Namjae Jeon 2020-03-02 247 __func__, (unsigned long long)blknr,
31023864e67a5f Namjae Jeon 2020-03-02 248 sbi->sect_per_clus);
31023864e67a5f Namjae Jeon 2020-03-02 249 return -EIO;
31023864e67a5f Namjae Jeon 2020-03-02 250 }
31023864e67a5f Namjae Jeon 2020-03-02 251
31023864e67a5f Namjae Jeon 2020-03-02 252 /* Zeroing the unused blocks on this cluster */
31023864e67a5f Namjae Jeon 2020-03-02 253 while (blknr < last_blknr) {
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 254 for (n = 0; n < nr_bhs && blknr < last_blknr; n++, blknr++) {
31023864e67a5f Namjae Jeon 2020-03-02 255 bhs[n] = sb_getblk(sb, blknr);
31023864e67a5f Namjae Jeon 2020-03-02 256 if (!bhs[n]) {
31023864e67a5f Namjae Jeon 2020-03-02 257 err = -ENOMEM;
31023864e67a5f Namjae Jeon 2020-03-02 258 goto release_bhs;
31023864e67a5f Namjae Jeon 2020-03-02 259 }
31023864e67a5f Namjae Jeon 2020-03-02 260 memset(bhs[n]->b_data, 0, sb->s_blocksize);
31023864e67a5f Namjae Jeon 2020-03-02 261 }
31023864e67a5f Namjae Jeon 2020-03-02 262
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 263 err = exfat_update_bhs(bhs, n, IS_DIRSYNC(dir));
31023864e67a5f Namjae Jeon 2020-03-02 264 if (err)
31023864e67a5f Namjae Jeon 2020-03-02 265 goto release_bhs;
31023864e67a5f Namjae Jeon 2020-03-02 266
31023864e67a5f Namjae Jeon 2020-03-02 267 for (i = 0; i < n; i++)
31023864e67a5f Namjae Jeon 2020-03-02 268 brelse(bhs[i]);
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 269 }
31023864e67a5f Namjae Jeon 2020-03-02 270 return 0;
31023864e67a5f Namjae Jeon 2020-03-02 271
31023864e67a5f Namjae Jeon 2020-03-02 272 release_bhs:
d1727d55c0327e Joe Perches 2020-04-24 273 exfat_err(sb, "failed zeroed sect %llu\n", (unsigned long long)blknr);
31023864e67a5f Namjae Jeon 2020-03-02 274 for (i = 0; i < n; i++)
31023864e67a5f Namjae Jeon 2020-03-02 275 bforget(bhs[i]);
31023864e67a5f Namjae Jeon 2020-03-02 276 return err;
31023864e67a5f Namjae Jeon 2020-03-02 @277 }
31023864e67a5f Namjae Jeon 2020-03-02 278
:::::: The code at line 277 was first introduced by commit
:::::: 31023864e67a5f390cefbe92f72343027dc3aa33 exfat: add fat entry operations
:::::: TO: Namjae Jeon <namjae.jeon(a)samsung.com>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[mcgrof-next:20210813-sysfs-fixes-v8 7/10] arch/x86/kernel/cpu/resctrl/rdtgroup.c:212:38: error: too few arguments to function call, expected 11, have 10
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210813-sysfs-fixes-v8
head: f5b8aadeca76656caad8bccc795bfe7b0730230a
commit: da898d13309d7b2855a74ee4e49e0fb43a55a2f1 [7/10] sysfs: fix deadlock race with module removal
config: x86_64-randconfig-a013-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210813-sysfs-fixes-v8
git checkout da898d13309d7b2855a74ee4e49e0fb43a55a2f1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c:212:38: error: too few arguments to function call, expected 11, have 10
0, rft->kf_ops, rft, NULL, NULL);
^
include/linux/kernfs.h:382:21: note: '__kernfs_create_file' declared here
struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
^
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2485:40: error: too few arguments to function call, expected 11, have 10
&kf_mondata_ops, priv, NULL, NULL);
^
include/linux/kernfs.h:382:21: note: '__kernfs_create_file' declared here
struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
^
2 errors generated.
vim +212 arch/x86/kernel/cpu/resctrl/rdtgroup.c
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 204
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 205 static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft)
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 206 {
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 207 struct kernfs_node *kn;
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 208 int ret;
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 209
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 210 kn = __kernfs_create_file(parent_kn, rft->name, rft->mode,
488dee96bb62f0 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Dmitry Torokhov 2018-07-20 211 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID,
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 @212 0, rft->kf_ops, rft, NULL, NULL);
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 213 if (IS_ERR(kn))
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 214 return PTR_ERR(kn);
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 215
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 216 ret = rdtgroup_kn_set_ugid(kn);
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 217 if (ret) {
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 218 kernfs_remove(kn);
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 219 return ret;
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 220 }
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 221
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 222 return 0;
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 223 }
4e978d06dedb82 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c Fenghua Yu 2016-10-28 224
:::::: The code at line 212 was first introduced by commit
:::::: 4e978d06dedb8207b298a5a8a49fce4b2ab80d12 x86/intel_rdt: Add "info" files to resctrl file system
:::::: TO: Fenghua Yu <fenghua.yu(a)intel.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
drivers/watchdog/ath79_wdt.c:161:37: 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: dfa377c35d70c31139b1274ec49f87d380996c42
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 12 months ago
config: arm-randconfig-s031-20210814 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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-348-gf0e6938b-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 e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
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/watchdog/ath79_wdt.c:161:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const * @@
drivers/watchdog/ath79_wdt.c:161:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/ath79_wdt.c:161:37: sparse: got char const *
drivers/watchdog/ath79_wdt.c:235:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@ expected int ( *write )( ... ) @@ got int ( * )( ... ) @@
drivers/watchdog/ath79_wdt.c:235:27: sparse: expected int ( *write )( ... )
drivers/watchdog/ath79_wdt.c:235:27: sparse: got int ( * )( ... )
vim +161 drivers/watchdog/ath79_wdt.c
f8394f61c66f48 Gabor Juhos 2011-01-04 148
f8394f61c66f48 Gabor Juhos 2011-01-04 149 static ssize_t ath79_wdt_write(struct file *file, const char *data,
f8394f61c66f48 Gabor Juhos 2011-01-04 150 size_t len, loff_t *ppos)
f8394f61c66f48 Gabor Juhos 2011-01-04 151 {
f8394f61c66f48 Gabor Juhos 2011-01-04 152 if (len) {
f8394f61c66f48 Gabor Juhos 2011-01-04 153 if (!nowayout) {
f8394f61c66f48 Gabor Juhos 2011-01-04 154 size_t i;
f8394f61c66f48 Gabor Juhos 2011-01-04 155
f8394f61c66f48 Gabor Juhos 2011-01-04 156 clear_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags);
f8394f61c66f48 Gabor Juhos 2011-01-04 157
f8394f61c66f48 Gabor Juhos 2011-01-04 158 for (i = 0; i != len; i++) {
f8394f61c66f48 Gabor Juhos 2011-01-04 159 char c;
f8394f61c66f48 Gabor Juhos 2011-01-04 160
f8394f61c66f48 Gabor Juhos 2011-01-04 @161 if (get_user(c, data + i))
f8394f61c66f48 Gabor Juhos 2011-01-04 162 return -EFAULT;
f8394f61c66f48 Gabor Juhos 2011-01-04 163
f8394f61c66f48 Gabor Juhos 2011-01-04 164 if (c == 'V')
f8394f61c66f48 Gabor Juhos 2011-01-04 165 set_bit(WDT_FLAGS_EXPECT_CLOSE,
f8394f61c66f48 Gabor Juhos 2011-01-04 166 &wdt_flags);
f8394f61c66f48 Gabor Juhos 2011-01-04 167 }
f8394f61c66f48 Gabor Juhos 2011-01-04 168 }
f8394f61c66f48 Gabor Juhos 2011-01-04 169
f8394f61c66f48 Gabor Juhos 2011-01-04 170 ath79_wdt_keepalive();
f8394f61c66f48 Gabor Juhos 2011-01-04 171 }
f8394f61c66f48 Gabor Juhos 2011-01-04 172
f8394f61c66f48 Gabor Juhos 2011-01-04 173 return len;
f8394f61c66f48 Gabor Juhos 2011-01-04 174 }
f8394f61c66f48 Gabor Juhos 2011-01-04 175
:::::: The code at line 161 was first introduced by commit
:::::: f8394f61c66f48b1fe9d6964ddce492d7f9a4cd9 watchdog: add driver for the Atheros AR71XX/AR724X/AR913X SoCs
:::::: TO: Gabor Juhos <juhosg(a)openwrt.org>
:::::: CC: Wim Van Sebroeck <wim(a)iguana.be>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 5593/7963] ptp_ocp.c:undefined reference to `devlink_unregister'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
commit: 37a156ba4cbb44037355087ade03268435a77225 [5593/7963] ptp: ocp: Remove devlink health and unused parameters.
config: s390-randconfig-r034-20210812 (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 37a156ba4cbb44037355087ade03268435a77225
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
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 >>):
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_register_i2c':
ptp_ocp.c:(.text+0x810): undefined reference to `__clk_hw_register_fixed_rate'
s390-linux-ld: ptp_ocp.c:(.text+0x84e): undefined reference to `devm_clk_hw_register_clkdev'
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_devlink_flash_update':
ptp_ocp.c:(.text+0xbaa): undefined reference to `devlink_flash_update_status_notify'
s390-linux-ld: ptp_ocp.c:(.text+0xc4c): undefined reference to `devlink_flash_update_status_notify'
s390-linux-ld: ptp_ocp.c:(.text+0xcc2): undefined reference to `devlink_flash_update_status_notify'
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_detach':
ptp_ocp.c:(.text+0x15b2): undefined reference to `clk_hw_unregister_fixed_rate'
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_remove':
>> ptp_ocp.c:(.text+0x163a): undefined reference to `devlink_unregister'
s390-linux-ld: ptp_ocp.c:(.text+0x164a): undefined reference to `devlink_free'
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_devlink_info_get':
ptp_ocp.c:(.text+0x1fe4): undefined reference to `devlink_info_driver_name_put'
s390-linux-ld: ptp_ocp.c:(.text+0x2018): undefined reference to `devlink_info_version_stored_put'
s390-linux-ld: ptp_ocp.c:(.text+0x2084): undefined reference to `devlink_info_version_running_put'
s390-linux-ld: ptp_ocp.c:(.text+0x20b2): undefined reference to `devlink_info_version_running_put'
s390-linux-ld: ptp_ocp.c:(.text+0x20e2): undefined reference to `devlink_info_serial_number_put'
s390-linux-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_probe':
ptp_ocp.c:(.text+0x2148): undefined reference to `devlink_alloc_ns'
s390-linux-ld: ptp_ocp.c:(.text+0x2160): undefined reference to `devlink_register'
s390-linux-ld: ptp_ocp.c:(.text+0x2298): undefined reference to `devlink_unregister'
s390-linux-ld: ptp_ocp.c:(.text+0x22a2): undefined reference to `devlink_free'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SERIAL_8250
Depends on TTY && HAS_IOMEM && !S390
Selected by
- PTP_1588_CLOCK_OCP && PTP_1588_CLOCK && HAS_IOMEM && PCI && SPI && I2C && MTD
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[cxl-cxl:pending 37/38] drivers/cxl/core/pmem.c:42:12: warning: no previous prototype for function 'match_nvdimm_bridge'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git pending
head: fa809cc6feedcd2575b63def7135dfaf066266bb
commit: cd744dacded6bd5e81d214737c8244e7873b81ba [37/38] tools/testing/cxl: Introduce a mock memory device + driver
config: s390-randconfig-r013-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=cd...
git remote add cxl-cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl-cxl pending
git checkout cd744dacded6bd5e81d214737c8244e7873b81ba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>):
In file included from drivers/cxl/core/pmem.c:7:
In file included from drivers/cxl/cxlmem.h:7:
In file included from drivers/cxl/cxl.h:10:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from drivers/cxl/core/pmem.c:7:
In file included from drivers/cxl/cxlmem.h:7:
In file included from drivers/cxl/cxl.h:10:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from drivers/cxl/core/pmem.c:7:
In file included from drivers/cxl/cxlmem.h:7:
In file included from drivers/cxl/cxl.h:10:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/cxl/core/pmem.c:42:12: warning: no previous prototype for function 'match_nvdimm_bridge' [-Wmissing-prototypes]
__weak int match_nvdimm_bridge(struct device *dev, const void *data)
^
drivers/cxl/core/pmem.c:42:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
__weak int match_nvdimm_bridge(struct device *dev, const void *data)
^
static
13 warnings generated.
vim +/match_nvdimm_bridge +42 drivers/cxl/core/pmem.c
41
> 42 __weak int match_nvdimm_bridge(struct device *dev, const void *data)
43 {
44 return dev->type == &cxl_nvdimm_bridge_type;
45 }
46
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month