[kbuild] [dhowells-fs:fscache-iter 22/62] include/linux/fscache.h:80:30: sparse: sparse: don't know how to apply mode to unsigned int enum fscache_cookie_stage

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "David, Howells," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git 
fscache-iter
head:   b4a9eadc021941103fd0c925e7e7b38516ffaf39
commit: 5db57596b0d3e5e78f7202dd50a58cc154f66b7c [22/62] fscache: Replace the 
object management state machine
:: branch date: 6 days ago
:: commit date: 6 days ago
config: x86_64-randconfig-s022-20200602 (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
git checkout 5db57596b0d3e5e78f7202dd50a58cc154f66b7c
# 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 


sparse warnings: (new ones prefixed by >>)

>> include/linux/fscache.h:80:30: sparse: sparse: don't know how to apply mode 
>> to unsigned int enum fscache_cookie_stage

# 
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=5db57596b0d3e5e78f7202dd50a58cc154f66b7c
git remote add dhowells-fs 
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git remote update dhowells-fs
git checkout 5db57596b0d3e5e78f7202dd50a58cc154f66b7c
vim +80 include/linux/fscache.h

2d6fff63703739 David Howells 2009-04-03  68  
5db57596b0d3e5 David Howells 2020-02-06  69  /*
5db57596b0d3e5 David Howells 2020-02-06  70   * Data object state.
5db57596b0d3e5 David Howells 2020-02-06  71   */
5db57596b0d3e5 David Howells 2020-02-06  72  enum fscache_cookie_stage {
5db57596b0d3e5 David Howells 2020-02-06  73 FSCACHE_COOKIE_STAGE_QUIESCENT, 
/* The cookie is uncached */
5db57596b0d3e5 David Howells 2020-02-06  74 
FSCACHE_COOKIE_STAGE_INITIALISING,  /* The in-memory structs are being 
inited */
5db57596b0d3e5 David Howells 2020-02-06  75 
FSCACHE_COOKIE_STAGE_LOOKING_UP,/* The cache object is being looked up 
*/
5db57596b0d3e5 David Howells 2020-02-06  76 
FSCACHE_COOKIE_STAGE_NO_DATA_YET,   /* The cache has no data, read to 
network */
5db57596b0d3e5 David Howells 2020-02-06  77 FSCACHE_COOKIE_STAGE_ACTIVE,
/* The cache is active, readable and writable */
5db57596b0d3e5 David Howells 2020-02-06  78 
FSCACHE_COOKIE_STAGE_INVALIDATING,  /* The cache is being invalidated */
5db57596b0d3e5 David Howells 2020-02-06  79 FSCACHE_COOKIE_STAGE_DEAD,  
/* The cache object is dead */
5db57596b0d3e5 David Howells 2020-02-06 @80  } __attribute__((mode(byte)));
5db57596b0d3e5 David Howells 2020-02-06  81  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [lkundrak-linux-mmp:lr/ariel 65/67] sound/soc/codecs/88ce156-codec.c:1274:1-6: WARNING: invalid free of devm_ allocated data

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Lubomir, Rintel," 

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git 
lr/ariel
head:   744209eb6a53c65c03de1214febd58adbad72853
commit: 2e9965325fb254f4792fb2b6b086b12dc63f891c [65/67] p4
:: branch date: 11 hours ago
:: commit date: 11 hours ago
config: sparc-randconfig-c024-20200602 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Julia Lawall 


coccinelle warnings: (new ones prefixed by >>)

>> sound/soc/codecs/88ce156-codec.c:1274:1-6: WARNING: invalid free of devm_ 
>> allocated data

# 
https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git/commit/?id=2e9965325fb254f4792fb2b6b086b12dc63f891c
git remote add lkundrak-linux-mmp 
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git
git remote update lkundrak-linux-mmp
git checkout 2e9965325fb254f4792fb2b6b086b12dc63f891c
vim +1274 sound/soc/codecs/88ce156-codec.c

27998497039d25 Lubomir Rintel 2020-05-24  1245  
2e9965325fb254 Lubomir Rintel 2020-05-24  1246  static int 
ce156_i2c_probe(struct i2c_client *i2c)
27998497039d25 Lubomir Rintel 2020-05-24  1247  {
27998497039d25 Lubomir Rintel 2020-05-24  1248  struct ce156_private 
*ce156_priv;
27998497039d25 Lubomir Rintel 2020-05-24  1249  int ret;
27998497039d25 Lubomir Rintel 2020-05-24  1250  
27998497039d25 Lubomir Rintel 2020-05-24  1251  printk(KERN_INFO 
"CE156: register i2c driver successfully\n");
27998497039d25 Lubomir Rintel 2020-05-24  1252  
2e9965325fb254 Lubomir Rintel 2020-05-24  1253  ce156_priv = 
devm_kzalloc(&i2c->dev, sizeof(struct ce156_private), GFP_KERNEL);
27998497039d25 Lubomir Rintel 2020-05-24  1254  if (ce156_priv == NULL)
27998497039d25 Lubomir Rintel 2020-05-24  1255  return -ENOMEM;
27998497039d25 Lubomir Rintel 2020-05-24  1256  
3c683b56c7a576 Lubomir Rintel 2020-05-24  1257  ce156_priv->regmap = 
devm_regmap_init_i2c(i2c, &ce156_regmap);
3c683b56c7a576 Lubomir Rintel 2020-05-24  1258  if 
(IS_ERR(ce156_priv->regmap)) {
3c683b56c7a576 Lubomir Rintel 2020-05-24  1259  ret = 
PTR_ERR(ce156_priv->regmap);
3c683b56c7a576 Lubomir Rintel 2020-05-24  1260  
dev_err(&i2c->dev, "Failed to allocate regmap (%d)\n", ret);
3c683b56c7a576 Lubomir Rintel 2020-05-24  1261  return ret;
3c683b56c7a576 Lubomir Rintel 2020-05-24  1262  }
3c683b56c7a576 Lubomir Rintel 2020-05-24  1263  
40169b41e2e888 Lubomir Rintel 2020-05-24  1264  ret = 
devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_ce156, 
&ce156_dai, 1);
27998497039d25 Lubomir Rintel 2020-05-24  1265  
27998497039d25 Lubomir Rintel 2020-05-24  1266  if (ret) {
27998497039d25 Lubomir Rintel 2020-05-24  1267  
printk(KERN_INFO "CE156: Failed to register codec\n");
27998497039d25 Lubomir Rintel 2020-05-24  1268  goto out;
27998497039d25 Lubomir Rintel 2020-05-24  1269  }
27998497039d25 Lubomir Rintel 2020-05-24  1270  
27998497039d25 Lubomir Rintel 2020-05-24  1271  return ret;
27998497039d25 Lubomir Rintel 2020-05-24  1272  
27998497039d25 Lubomir Rintel 2020-05-24  1273  out:
27998497039d25 Lubomir Rintel 2020-05-24 @1274  kfree(ce156_priv);
27998497039d25 Lubomir Rintel 2020-05-24  1275  return -EINVAL;
27998497039d25 Lubomir Rintel 2020-05-24  1276  }
27998497039d25 Lubomir Rintel 2020-05-24  1277  

:: The code at line 1274 was first introduced by commit
:: 27998497039d2518d34ba88ddd721c2290a2e162 XXX 88CE156

:: TO: Lubomir Rintel 
:: CC: Lubomir Rintel 

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] drivers/usb/gadget/legacy/raw_gadget.c:102 raw_event_queue_fetch() warn: inconsistent returns 'queue->sema'.

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Andrey, Konovalov," 
CC: Felipe Balbi 
CC: "Greg Kroah-Hartman" 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f359287765c04711ff54fbd11645271d8e5ff763
commit: f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 usb: gadget: add raw-gadget 
interface
date:   3 months ago
:: branch date: 6 hours ago
:: commit date: 3 months ago
config: x86_64-randconfig-m001-20200602 (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 
Reported-by: Dan Carpenter 

New smatch warnings:
drivers/usb/gadget/legacy/raw_gadget.c:102 raw_event_queue_fetch() warn: 
inconsistent returns 'queue->sema'.

Old smatch warnings:
drivers/usb/gadget/legacy/raw_gadget.c:397 raw_ioctl_init() warn: maybe return 
-EFAULT instead of the bytes remaining?
drivers/usb/gadget/legacy/raw_gadget.c:512 raw_ioctl_event_fetch() warn: maybe 
return -EFAULT instead of the bytes remaining?
drivers/usb/gadget/legacy/raw_gadget.c:535 raw_ioctl_event_fetch() warn: maybe 
return -EFAULT instead of the bytes remaining?
drivers/usb/gadget/legacy/raw_gadget.c:546 raw_alloc_io_data() error: passing 
non negative 8 to ERR_PTR
drivers/usb/gadget/legacy/raw_gadget.c:668 raw_ioctl_ep0_read() warn: maybe 
return -EFAULT instead of the bytes remaining?
drivers/usb/gadget/legacy/raw_gadget.c:962 raw_ioctl_ep_read() warn: maybe 
return -EFAULT instead of the bytes remaining?

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
vim +102 drivers/usb/gadget/legacy/raw_gadget.c

f2c2e717642c66 Andrey Konovalov 2020-02-24   80  
f2c2e717642c66 Andrey Konovalov 2020-02-24   81  static struct usb_raw_event 
*raw_event_queue_fetch(
f2c2e717642c66 Andrey Konovalov 2020-02-24   82 
struct raw_event_queue *queue)
f2c2e717642c66 Andrey Konovalov 2020-02-24   83  {
f2c2e717642c66 Andrey Konovalov 2020-02-24   84 unsigned long flags;
f2c2e717642c66 Andrey Konovalov 2020-02-24   85 struct usb_raw_event 
*event;
f2c2e717642c66 Andrey Konovalov 2020-02-24   86  
f2c2e717642c66 Andrey Konovalov 2020-02-24   87 /*
f2c2e717642c66 Andrey Konovalov 2020-02-24   88  * This function can be 
called concurrently. We first check that
f2c2e717642c66 Andrey Konovalov 2020-02-24   89  * there's at least one 
event queued by decrementing the semaphore,
f2c2e717642c66 Andrey Konovalov 2020-02-24   90  * and then take the 
lock to protect queue struct fields.
f2c2e717642c66 Andrey Konovalov 2020-02-24   91  */
f2c2e717642c66 Andrey Konovalov 2020-02-24   92 if 
(down_interruptible(&queue->sema))
f2c2e717642c66 Andrey Konovalov 2020-02-24   93 return NULL;
f2c2e717642c66 Andrey Konovalov 2020-02-24   94 
spin_lock_irqsave(&queue->lock, flags);
f2c2e717642c66 Andrey Konovalov 2020-02-24   95 if 
(WARN_ON(!queue->size))
f2c2e717642c66 Andrey Konovalov 2020-02-24   96 return NULL;
f2c2e717642c66 Andrey Konovalov 2020-02-24   97 event = 
queue->events[0];
f2c2e717642c66 Andrey Konovalov 2020-02-24   98 queue->size--;
f2c2e717642c66 Andrey Konovalov 2020-02-24   99 
memmove(&queue->events[0], &queue->events[1],
f2c2e717642c66 Andrey Konovalov 2020-02-24  100 
queue->size * sizeof(queue->events[0]));
f2c2e717642c66 Andrey Konovalov 2020-02-24  101 
spin_unlock_irqrestore(&queue->lock, flags);
f2c2e717642c66 Andrey Konovalov 2020-02-24 @102 return event;
f2c2e717642c66 Andrey Konovalov 2020-02-24  103  }
f2c2e717642c66 Andrey Konovalov 2020-02-24  104  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [PATCH] fix returnvar.cocci warnings

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Lubomir, Rintel," 
CC: Liam Girdwood 
CC: Mark Brown 
CC: Jaroslav Kysela 
CC: Takashi Iwai 
CC: alsa-de...@alsa-project.org
CC: linux-ker...@vger.kernel.org

From: kbuild test robot 

sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" 
on line 1390


 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Fixes: 27998497039d ("XXX 88CE156")
Signed-off-by: kbuild test robot 
---

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git 
lr/ariel
head:   744209eb6a53c65c03de1214febd58adbad72853
commit: 27998497039d2518d34ba88ddd721c2290a2e162 [61/67] XXX 88CE156
:: branch date: 9 hours ago
:: commit date: 9 hours ago

Please take the patch only if it's a positive warning. Thanks!

 88ce156-codec.c |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/sound/soc/codecs/88ce156-codec.c
+++ b/sound/soc/codecs/88ce156-codec.c
@@ -1338,8 +1338,6 @@ struct snd_soc_dai_driver ce156_dai = {
 
 static int ce156_dev_init(struct snd_soc_codec *codec)
 {
-   int ret = 0;
-
ce156_reset(codec);
mdelay(10);
 
@@ -1387,7 +1385,7 @@ static int ce156_dev_init(struct snd_soc
 
printk(KERN_INFO "ce156: initial ok\n");

-   return ret;
+   return 0;
 
 }
 
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [lkundrak-linux-mmp:lr/ariel 61/67] sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" on line 1390

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Lubomir, Rintel," 

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git 
lr/ariel
head:   744209eb6a53c65c03de1214febd58adbad72853
commit: 27998497039d2518d34ba88ddd721c2290a2e162 [61/67] XXX 88CE156
:: branch date: 9 hours ago
:: commit date: 9 hours ago
config: sparc-randconfig-c024-20200602 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Julia Lawall 


coccinelle warnings: (new ones prefixed by >>)

>> sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return 
>> "0" on line 1390

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] arch/x86/kernel/ftrace.c:371:59: sparse: sparse: subtraction of functions? Share your drugs

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Peter, Zijlstra," 
CC: Ingo Molnar 
CC: Miroslav Benes 
CC: Alexandre Chartre 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f359287765c04711ff54fbd11645271d8e5ff763
commit: 0298739b7983cf9bf4fcfb4bfb815c539bdb87ca x86,ftrace: Fix 
ftrace_regs_caller() unwind
date:   6 weeks ago
:: branch date: 4 hours ago
:: commit date: 6 weeks ago
config: x86_64-randconfig-s021-20200602 (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
git checkout 0298739b7983cf9bf4fcfb4bfb815c539bdb87ca
# 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 


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kernel/ftrace.c:371:59: sparse: sparse: subtraction of functions? 
>> Share your drugs
   arch/x86/kernel/ftrace.c:40:5: sparse: sparse: context imbalance in 
'ftrace_arch_code_modify_prepare' - wrong count at exit
   arch/x86/kernel/ftrace.c:53:5: sparse: sparse: context imbalance in 
'ftrace_arch_code_modify_post_process' - wrong count at exit

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0298739b7983cf9bf4fcfb4bfb815c539bdb87ca
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 0298739b7983cf9bf4fcfb4bfb815c539bdb87ca
vim +371 arch/x86/kernel/ftrace.c

d2a68c4effd821 Steven Rostedt (VMware   2018-12-08  311) 
aec0be2d6e9f02 Steven Rostedt (Red Hat  2014-11-18  312) static unsigned long
aec0be2d6e9f02 Steven Rostedt (Red Hat  2014-11-18  313) 
create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size)
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  314) {
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  315)unsigned long 
start_offset;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  316)unsigned long 
end_offset;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  317)unsigned long 
op_offset;
768ae4406a5cab Peter Zijlstra   2019-08-26  318 unsigned long 
call_offset;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  319)unsigned long 
offset;
3c0dab44e22782 Nadav Amit   2019-04-25  320 unsigned long 
npages;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  321)unsigned long 
size;
d2a68c4effd821 Steven Rostedt (VMware   2018-12-08  322)unsigned long 
retq;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  323)unsigned long 
*ptr;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  324)void 
*trampoline;
d2a68c4effd821 Steven Rostedt (VMware   2018-12-08  325)void *ip;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  326)/* 48 8b 15 
 is movq (%rip), %rdx */
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  327)unsigned const 
char op_ref[] = { 0x48, 0x8b, 0x15 };
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  328)union 
ftrace_op_code_union op_ptr;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  329)int ret;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  330) 
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  331)if (ops->flags 
& FTRACE_OPS_FL_SAVE_REGS) {
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  332)
start_offset = (unsigned long)ftrace_regs_caller;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  333)
end_offset = (unsigned long)ftrace_regs_caller_end;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  334)
op_offset = (unsigned long)ftrace_regs_caller_op_ptr;
768ae4406a5cab Peter Zijlstra   2019-08-26  335 
call_offset = (unsigned long)ftrace_regs_call;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  336)} else {
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  337)
start_offset = (unsigned long)ftrace_caller;
0298739b7983cf Peter Zijlstra   2020-04-01  338 
end_offset = (unsigned long)ftrace_caller_end;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  339)
op_offset = (unsigned long)ftrace_caller_op_ptr;
768ae4406a5cab Peter Zijlstra   2019-08-26  340 
call_offset = (unsigned long)ftrace_call;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  341)}
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  342) 
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  343)size = 
end_offset - start_offset;
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  344) 
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  345)/*
f3bea49115b21e Steven Rostedt (Red Hat  2014-07-02  346) * Allocate 
enough size to store t

[kbuild] [linux-review:John-Fastabend/fix-ktls-with-sk_skb_verdict-programs/20200601-011016 1888/1896] kernel/bpf/ringbuf.c:332:13: sparse: sparse: context imbalance in '__bpf_ringbuf_reserve' - diffe

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Andrii, Nakryiko," 
CC: Daniel Borkmann 

tree:   
https://github.com/0day-ci/linux/commits/John-Fastabend/fix-ktls-with-sk_skb_verdict-programs/20200601-011016
head:   782773c4c3638155ca2955789a3f70e090afc347
commit: 35dd30a79d27f96ab5ca28e65a869ed9e611af69 [1888/1896] bpf: Implement BPF 
ring buffer and verifier support for it
:: branch date: 35 hours ago
:: commit date: 4 days ago
config: microblaze-randconfig-s031-20200602 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 35dd30a79d27f96ab5ca28e65a869ed9e611af69
# save the attached .config to linux build tree
make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> kernel/bpf/ringbuf.c:332:13: sparse: sparse: context imbalance in 
>> '__bpf_ringbuf_reserve' - different lock contexts for basic block

# 
https://github.com/0day-ci/linux/commit/35dd30a79d27f96ab5ca28e65a869ed9e611af69
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 35dd30a79d27f96ab5ca28e65a869ed9e611af69
vim +/__bpf_ringbuf_reserve +332 kernel/bpf/ringbuf.c

35dd30a79d27f9 Andrii Nakryiko 2020-05-29  331  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29 @332  static void 
*__bpf_ringbuf_reserve(struct bpf_ringbuf *rb, u64 size)
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  333  {
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  334  unsigned long cons_pos, 
prod_pos, new_prod_pos, flags;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  335  u32 len, pg_off;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  336  struct bpf_ringbuf_hdr 
*hdr;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  337  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  338  if (unlikely(size > 
RINGBUF_MAX_RECORD_SZ))
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  339  return NULL;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  340  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  341  len = round_up(size + 
BPF_RINGBUF_HDR_SZ, 8);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  342  cons_pos = 
smp_load_acquire(&rb->consumer_pos);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  343  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  344  if (in_nmi()) {
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  345  if 
(!spin_trylock_irqsave(&rb->spinlock, flags))
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  346  return 
NULL;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  347  } else {
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  348  
spin_lock_irqsave(&rb->spinlock, flags);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  349  }
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  350  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  351  prod_pos = 
rb->producer_pos;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  352  new_prod_pos = prod_pos 
+ len;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  353  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  354  /* check for out of 
ringbuf space by ensuring producer position
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  355   * doesn't advance more 
than (ringbuf_size - 1) ahead
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  356   */
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  357  if (new_prod_pos - 
cons_pos > rb->mask) {
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  358  
spin_unlock_irqrestore(&rb->spinlock, flags);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  359  return NULL;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  360  }
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  361  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  362  hdr = (void *)rb->data 
+ (prod_pos & rb->mask);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  363  pg_off = 
bpf_ringbuf_rec_pg_off(rb, hdr);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  364  hdr->len = size | 
BPF_RINGBUF_BUSY_BIT;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  365  hdr->pg_off = pg_off;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  366  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  367  /* pairs with 
consumer's smp_load_acquire() */
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  368  
smp_store_release(&rb->producer_pos, new_prod_pos);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  369  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  370  
spin_unlock_irqrestore(&rb->spinlock, flags);
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  371  
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  372  return (void *)hdr + 
BPF_RINGBUF_HDR_SZ;
35dd30a79d27f9 Andrii Nakryiko 2020-05-29  3

[kbuild] [yao:perf-intel-next 27/113] arch/x86/events/intel/uncore.c:1600 check_discovery_table() error: uninitialized symbol 'dvsec'.

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Kan, Liang," 

tree:   yao/perf-intel-next
head:   36086096ecdcd11f5dfc73d2780537e2483ac70b
commit: 7033482bbd4f555901cbe7f5e8fbcc8a2618851f [27/113] 
perf/x86/intel/uncore: Check discovery tables
:: branch date: 7 days ago
:: commit date: 7 weeks ago
config: i386-randconfig-m021-20200602 (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 
Reported-by: Dan Carpenter 

smatch warnings:
arch/x86/events/intel/uncore.c:1600 check_discovery_table() error: 
uninitialized symbol 'dvsec'.

git remote add yao git://bee.sh.intel.com/git/jinyao/linux.git
git remote update yao
git checkout 7033482bbd4f555901cbe7f5e8fbcc8a2618851f
vim +/dvsec +1600 arch/x86/events/intel/uncore.c

7033482bbd4f55 Kan Liang 2020-04-13  1586  
7033482bbd4f55 Kan Liang 2020-04-13  1587  bool __init 
check_discovery_table(void)
7033482bbd4f55 Kan Liang 2020-04-13  1588  {
7033482bbd4f55 Kan Liang 2020-04-13  1589   struct uncore_discovery_table 
*table;
7033482bbd4f55 Kan Liang 2020-04-13  1590   struct pci_dev *dev = NULL;
7033482bbd4f55 Kan Liang 2020-04-13  1591   int dvsec, logical_die = 0;
7033482bbd4f55 Kan Liang 2020-04-13  1592   u32 val, entry_id, bir;
7033482bbd4f55 Kan Liang 2020-04-13  1593   bool ret = false;
7033482bbd4f55 Kan Liang 2020-04-13  1594  
7033482bbd4f55 Kan Liang 2020-04-13  1595   /*
7033482bbd4f55 Kan Liang 2020-04-13  1596* Check the existence of 
discovery table by searching all PCI devices
7033482bbd4f55 Kan Liang 2020-04-13  1597* for unique capability ID.
7033482bbd4f55 Kan Liang 2020-04-13  1598*/
7033482bbd4f55 Kan Liang 2020-04-13  1599   while ((dev = 
pci_get_device(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, dev)) != NULL) {
7033482bbd4f55 Kan Liang 2020-04-13 @1600   while ((dvsec = 
pci_find_next_ext_capability(dev, dvsec, UNCORE_EXT_CAP_ID_DISCOVERY))) {
7033482bbd4f55 Kan Liang 2020-04-13  1601   
pci_read_config_dword(dev, dvsec + UNCORE_DISCOVERY_DVSEC_OFFSET, &val);
7033482bbd4f55 Kan Liang 2020-04-13  1602   entry_id = val 
& UNCORE_DISCOVERY_DVSEC_ID_MASK;
7033482bbd4f55 Kan Liang 2020-04-13  1603   if (entry_id == 
UNCORE_DISCOVERY_DVSEC_ID_PMON) {
7033482bbd4f55 Kan Liang 2020-04-13  1604   table = 
kmalloc(sizeof(struct uncore_discovery_table), GFP_KERNEL);
7033482bbd4f55 Kan Liang 2020-04-13  1605   if 
(!table)
7033482bbd4f55 Kan Liang 2020-04-13  1606   
continue;
7033482bbd4f55 Kan Liang 2020-04-13  1607   
pci_read_config_dword(dev, dvsec + UNCORE_DISCOVERY_DVSEC2_OFFSET, &val);
7033482bbd4f55 Kan Liang 2020-04-13  1608   bir = 
val & UNCORE_DISCOVERY_DVSEC2_BIR_MASK;
7033482bbd4f55 Kan Liang 2020-04-13  1609   
table->domain = pci_domain_nr(dev->bus);
7033482bbd4f55 Kan Liang 2020-04-13  1610   
table->bus = dev->bus->number;
7033482bbd4f55 Kan Liang 2020-04-13  1611   
table->devfn = dev->devfn;
7033482bbd4f55 Kan Liang 2020-04-13  1612   
table->bar_offset = 0x10 + (bir * 4);
7033482bbd4f55 Kan Liang 2020-04-13  1613   
table->die = logical_die++;
7033482bbd4f55 Kan Liang 2020-04-13  1614   if 
(discovery_table_pci2phy_map_init(dev, table->die)) {
7033482bbd4f55 Kan Liang 2020-04-13  1615   
kfree(table);
7033482bbd4f55 Kan Liang 2020-04-13  1616   
continue;
7033482bbd4f55 Kan Liang 2020-04-13  1617   }
7033482bbd4f55 Kan Liang 2020-04-13  1618   
list_add_tail(&table->list, &discovery_table);
7033482bbd4f55 Kan Liang 2020-04-13  1619   ret = 
true;
7033482bbd4f55 Kan Liang 2020-04-13  1620   
continue;
7033482bbd4f55 Kan Liang 2020-04-13  1621   }
7033482bbd4f55 Kan Liang 2020-04-13  1622   }
7033482bbd4f55 Kan Liang 2020-04-13  1623   }
7033482bbd4f55 Kan Liang 2020-04-13  1624   pci_dev_put(dev);
7033482bbd4f55 Kan Liang 2020-04-13  1625  
7033482bbd4f55 Kan Liang 2020-04-13  1626   
fill_up_pbus_to_physid_mapping(true);
7033482bbd4f55 Kan Liang 2020-04-13  1627  
7033482bbd4f55 Kan Liang 2020-04-13  1628   return ret;
7033482bbd4f55 Kan Liang 2020-04-13  1629  }
7033482bbd4f55 Kan Liang 2020-04-13  1630  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild

[kbuild] kernel/bpf/cgroup.c:455 __cgroup_bpf_attach() error: we previously assumed 'link' could be null (see line 430)

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Andrii, Nakryiko," 
CC: Alexei Starovoitov 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f359287765c04711ff54fbd11645271d8e5ff763
commit: af6eea57437a830293eab56246b6025cc7d46ee7 bpf: Implement bpf_link-based 
cgroup BPF program attachment
date:   9 weeks ago
:: branch date: 4 hours ago
:: commit date: 9 weeks ago
config: i386-randconfig-m021-20200602 (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 
Reported-by: Dan Carpenter 

smatch warnings:
kernel/bpf/cgroup.c:455 __cgroup_bpf_attach() error: we previously assumed 
'link' could be null (see line 430)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af6eea57437a830293eab56246b6025cc7d46ee7
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout af6eea57437a830293eab56246b6025cc7d46ee7
vim +/link +455 kernel/bpf/cgroup.c

af6eea57437a83 Andrii Nakryiko2020-03-29  399  
3007098494bec6 Daniel Mack2016-11-23  400  /**
af6eea57437a83 Andrii Nakryiko2020-03-29  401   * __cgroup_bpf_attach() - 
Attach the program or the link to a cgroup, and
3007098494bec6 Daniel Mack2016-11-23  402   * 
propagate the change to descendants
3007098494bec6 Daniel Mack2016-11-23  403   * @cgrp: The cgroup which 
descendants to traverse
324bda9e6c5add Alexei Starovoitov 2017-10-02  404   * @prog: A program to attach
af6eea57437a83 Andrii Nakryiko2020-03-29  405   * @link: A link to attach
7dd68b3279f179 Andrey Ignatov 2019-12-18  406   * @replace_prog: Previously 
attached program to replace if BPF_F_REPLACE is set
324bda9e6c5add Alexei Starovoitov 2017-10-02  407   * @type: Type of attach 
operation
1832f4ef5867fd Valdis Kletnieks   2019-01-29  408   * @flags: Option flags
3007098494bec6 Daniel Mack2016-11-23  409   *
af6eea57437a83 Andrii Nakryiko2020-03-29  410   * Exactly one of @prog or 
@link can be non-null.
3007098494bec6 Daniel Mack2016-11-23  411   * Must be called with 
cgroup_mutex held.
3007098494bec6 Daniel Mack2016-11-23  412   */
af6eea57437a83 Andrii Nakryiko2020-03-29  413  int 
__cgroup_bpf_attach(struct cgroup *cgrp,
af6eea57437a83 Andrii Nakryiko2020-03-29  414   struct 
bpf_prog *prog, struct bpf_prog *replace_prog,
af6eea57437a83 Andrii Nakryiko2020-03-29  415   struct 
bpf_cgroup_link *link,
324bda9e6c5add Alexei Starovoitov 2017-10-02  416   enum 
bpf_attach_type type, u32 flags)
3007098494bec6 Daniel Mack2016-11-23  417  {
7dd68b3279f179 Andrey Ignatov 2019-12-18  418   u32 saved_flags = 
(flags & (BPF_F_ALLOW_OVERRIDE | BPF_F_ALLOW_MULTI));
324bda9e6c5add Alexei Starovoitov 2017-10-02  419   struct list_head *progs 
= &cgrp->bpf.progs[type];
324bda9e6c5add Alexei Starovoitov 2017-10-02  420   struct bpf_prog 
*old_prog = NULL;
8bad74f9840f87 Roman Gushchin 2018-09-28  421   struct 
bpf_cgroup_storage *storage[MAX_BPF_CGROUP_STORAGE_TYPE],
8bad74f9840f87 Roman Gushchin 2018-09-28  422   
*old_storage[MAX_BPF_CGROUP_STORAGE_TYPE] = {NULL};
af6eea57437a83 Andrii Nakryiko2020-03-29  423   struct bpf_prog_list 
*pl;
324bda9e6c5add Alexei Starovoitov 2017-10-02  424   int err;
324bda9e6c5add Alexei Starovoitov 2017-10-02  425  
7dd68b3279f179 Andrey Ignatov 2019-12-18  426   if (((flags & 
BPF_F_ALLOW_OVERRIDE) && (flags & BPF_F_ALLOW_MULTI)) ||
7dd68b3279f179 Andrey Ignatov 2019-12-18  427   ((flags & 
BPF_F_REPLACE) && !(flags & BPF_F_ALLOW_MULTI)))
324bda9e6c5add Alexei Starovoitov 2017-10-02  428   /* invalid 
combination */
324bda9e6c5add Alexei Starovoitov 2017-10-02  429   return -EINVAL;
af6eea57437a83 Andrii Nakryiko2020-03-29 @430   if (link && (prog || 
replace_prog))
af6eea57437a83 Andrii Nakryiko2020-03-29  431   /* only either 
link or prog/replace_prog can be specified */
af6eea57437a83 Andrii Nakryiko2020-03-29  432   return -EINVAL;
af6eea57437a83 Andrii Nakryiko2020-03-29  433   if (!!replace_prog != 
!!(flags & BPF_F_REPLACE))
af6eea57437a83 Andrii Nakryiko2020-03-29  434   /* replace_prog 
implies BPF_F_REPLACE, and vice versa */
af6eea57437a83 Andrii Nakryiko2020-03-29  435   return -EINVAL;
324bda9e6c5add Alexei Starovoitov 2017-10-02  436  
9fab329d6a04c0 Andrey Ignatov 2019-12-18  437   if 
(!hierarchy_allows_attach(cgrp, type))
7f677633379b4a Alexei Starovoitov 2017-02-10  438   return -EPERM;
7f677633379b4a Alexei Starovoitov 2017-02-10  439  
7dd68b3279f179 Andrey Ignatov 2019-12-18  440   if (!list_empty(progs) 
&& cgrp->bpf.flags[type] !

[kbuild] [linux-next:master 6222/14131] drivers/usb/chipidea/udc.c:477:26: sparse: sparse: bad assignment (+=) to restricted __le32

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Peter, Chen," 
CC: Jun Li 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: e48aa1eb443f80fc6953734c805add4fb694b835 [6222/14131] usb: chipidea: 
udc: add software sg list support
:: branch date: 4 days ago
:: commit date: 4 weeks ago
config: nios2-randconfig-s032-20200602 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout e48aa1eb443f80fc6953734c805add4fb694b835
# save the attached .config to linux build tree
make W=1 C=1 ARCH=nios2 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> drivers/usb/chipidea/udc.c:477:26: sparse: sparse: bad assignment (+=) to 
>> restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@ expected unsigned int [usertype] value @@ 
got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse: expected unsigned int 
[usertype] value
   include/asm-generic/io.h:225:22: sparse: got restricted __le32 [userty

[kbuild] drivers/net/macsec.c:430:22: sparse: expected restricted ssci_t [usertype] ssci

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Era, Mayflower," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f359287765c04711ff54fbd11645271d8e5ff763
commit: a21ecf0e033807b976967286e6c392f48ee2049f macsec: Support XPN frame 
handling - IEEE 802.1AEbw
date:   3 months ago
:: branch date: 3 hours ago
:: commit date: 3 months ago
config: nios2-randconfig-s032-20200602 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout a21ecf0e033807b976967286e6c392f48ee2049f
# save the attached .config to linux build tree
make W=1 C=1 ARCH=nios2 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/net/macsec.c:430:24: sparse: sparse: restricted ssci_t degrades to 
integer
   drivers/net/macsec.c:430:22: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected restricted ssci_t [usertype] ssci @@ 
got unsigned int @@
>> drivers/net/macsec.c:430:22: sparse: expected restricted ssci_t 
>> [usertype] ssci
>> drivers/net/macsec.c:430:22: sparse: got unsigned int
   drivers/net/macsec.c:431:22: sparse: sparse: restricted __be64 degrades to 
integer
   drivers/net/macsec.c:431:20: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected restricted __be64 [usertype] pn @@ 
got unsigned long long @@
>> drivers/net/macsec.c:431:20: sparse: expected restricted __be64 
>> [usertype] pn
>> drivers/net/macsec.c:431:20: sparse: got unsigned long long
   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: undefined 
identifier '__builtin_rdctl'
   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: undefined identifier 
'__builtin_wrctl'
   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function 

   arch/nios2/include/asm/irqflags.h:21:9: 

[kbuild] [lkundrak-linux-mmp:lr/mmp3-thermal-v1 2/2] drivers/thermal/mmp3_thermal.c:65:3-9: preceding lock on line 59

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Lubomir, Rintel," 

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git 
lr/mmp3-thermal-v1
head:   17256e30675ba9df02daa0722a6f1d35996322fe
commit: 17256e30675ba9df02daa0722a6f1d35996322fe [2/2] thermal driver
:: branch date: 6 weeks ago
:: commit date: 6 weeks ago
config: arm-randconfig-c003-20200602 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Julia Lawall 


coccinelle warnings: (new ones prefixed by >>)

>> drivers/thermal/mmp3_thermal.c:65:3-9: preceding lock on line 59

# 
https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git/commit/?id=17256e30675ba9df02daa0722a6f1d35996322fe
git remote add lkundrak-linux-mmp 
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git
git remote update lkundrak-linux-mmp
git checkout 17256e30675ba9df02daa0722a6f1d35996322fe
vim +65 drivers/thermal/mmp3_thermal.c

17256e30675ba9 Lubomir Rintel 2019-08-12   52  
17256e30675ba9 Lubomir Rintel 2019-08-12   53  static unsigned long 
read_temperature_sensor(struct mmp3_thermal *priv, int range, int index)
17256e30675ba9 Lubomir Rintel 2019-08-12   54  {
17256e30675ba9 Lubomir Rintel 2019-08-12   55   int i, j, gray;
17256e30675ba9 Lubomir Rintel 2019-08-12   56   unsigned long temp;
17256e30675ba9 Lubomir Rintel 2019-08-12   57   u32 val;
17256e30675ba9 Lubomir Rintel 2019-08-12   58  
17256e30675ba9 Lubomir Rintel 2019-08-12  @59   
mutex_lock(&mmp3_thermal_sensor_mutex);
17256e30675ba9 Lubomir Rintel 2019-08-12   60  
17256e30675ba9 Lubomir Rintel 2019-08-12   61   val = readl(priv->regs + index);
17256e30675ba9 Lubomir Rintel 2019-08-12   62  
17256e30675ba9 Lubomir Rintel 2019-08-12   63   if (val & TEMP_EN_WDOG) {
17256e30675ba9 Lubomir Rintel 2019-08-12   64   if ((range == HIRANGE) 
== ((val & TEMP_LOWRANGE) == 0))
17256e30675ba9 Lubomir Rintel 2019-08-12  @65   return 0;
17256e30675ba9 Lubomir Rintel 2019-08-12   66   }
17256e30675ba9 Lubomir Rintel 2019-08-12   67  
17256e30675ba9 Lubomir Rintel 2019-08-12   68   if (range == HIRANGE) {
17256e30675ba9 Lubomir Rintel 2019-08-12   69   val &= ~TEMP_LOWRANGE;
17256e30675ba9 Lubomir Rintel 2019-08-12   70   } else {
17256e30675ba9 Lubomir Rintel 2019-08-12   71   val |= TEMP_LOWRANGE;
17256e30675ba9 Lubomir Rintel 2019-08-12   72   }
17256e30675ba9 Lubomir Rintel 2019-08-12   73  
17256e30675ba9 Lubomir Rintel 2019-08-12   74   val &= ~TEMP_START;
17256e30675ba9 Lubomir Rintel 2019-08-12   75   writel(val, priv->regs + index);
17256e30675ba9 Lubomir Rintel 2019-08-12   76   usleep_range(300, 1000);
17256e30675ba9 Lubomir Rintel 2019-08-12   77  
17256e30675ba9 Lubomir Rintel 2019-08-12   78   for (i = 0; i < 10; i++) {
17256e30675ba9 Lubomir Rintel 2019-08-12   79   writel(val | 
TEMP_START, priv->regs + index);
17256e30675ba9 Lubomir Rintel 2019-08-12   80   for (j = 0; j < 10; 
j++) {
17256e30675ba9 Lubomir Rintel 2019-08-12   81   
usleep_range(300, 1000);
17256e30675ba9 Lubomir Rintel 2019-08-12   82   if 
(readl(priv->regs + index) & TEMP_STATUS)
17256e30675ba9 Lubomir Rintel 2019-08-12   83   goto 
done;
17256e30675ba9 Lubomir Rintel 2019-08-12   84   }
17256e30675ba9 Lubomir Rintel 2019-08-12   85   usleep_range(300, 1000);
17256e30675ba9 Lubomir Rintel 2019-08-12   86   writel(val, priv->regs 
+ index);
17256e30675ba9 Lubomir Rintel 2019-08-12   87   }
17256e30675ba9 Lubomir Rintel 2019-08-12   88  done:
17256e30675ba9 Lubomir Rintel 2019-08-12   89  
17256e30675ba9 Lubomir Rintel 2019-08-12   90   if (i == 10) {
17256e30675ba9 Lubomir Rintel 2019-08-12   91   printk(KERN_ERR 
"mmp3_thermal: timeout reading sensor %d, range %d\n",
17256e30675ba9 Lubomir Rintel 2019-08-12   92   index, range);
17256e30675ba9 Lubomir Rintel 2019-08-12   93   writel(val, priv->regs 
+ index);
17256e30675ba9 Lubomir Rintel 2019-08-12   94   temp = 0;  // filtering 
may fix this
17256e30675ba9 Lubomir Rintel 2019-08-12   95   } else {
17256e30675ba9 Lubomir Rintel 2019-08-12   96   gray = readl(priv->regs 
+ index) & TEMP_TEMP_VALUE_MASK;
17256e30675ba9 Lubomir Rintel 2019-08-12   97   temp = 
gray_to_temp[range][gray];
17256e30675ba9 Lubomir Rintel 2019-08-12   98   }
17256e30675ba9 Lubomir Rintel 2019-08-12   99  
17256e30675ba9 Lubomir Rintel 2019-08-12  100   
mutex_unlock(&mmp3_thermal_sensor_mutex);
17256e30675ba9 Lubomir Rintel 2019-08-12  101  
17256e30675ba9 Lubomir Rintel 2019-08-12  102   return temp;// return value 
is tenths, C
17256e30675ba9 Lubomir Rintel 2019-08-12  103  }
17256e30675ba9 Lubomir Rintel 2019-08-12  104  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Descr

[kbuild] [mips-linux:mips-next 58/143] arch/mips/include/asm/fpu.h:79 __enable_fpu() warn: ignoring unreachable code.

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-m...@linux-mips.org
TO: "Liangliang, Huang," 
CC: Thomas Bogendoerfer 
CC: Liangliang Huang 
CC: Huacai Chen 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head:   9bd0bd264578fe191bf5d2ff23f9887b91862536
commit: c9b0299034665d594e56ee343f28033d1b24de6d [58/143] MIPS: Use fallthrough 
for arch/mips
:: branch date: 34 hours ago
:: commit date: 4 weeks ago
config: mips-randconfig-m031-20200601 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

New smatch warnings:
arch/mips/include/asm/fpu.h:79 __enable_fpu() warn: ignoring unreachable code.
arch/mips/include/asm/fpu.h:79 __enable_fpu() warn: ignoring unreachable code.

Old smatch warnings:
arch/mips/kernel/traps.c:1914 nmi_exception_handler() warn: ignoring 
unreachable code.

# 
https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id=c9b0299034665d594e56ee343f28033d1b24de6d
git remote add mips-linux 
https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git
git remote update mips-linux
git checkout c9b0299034665d594e56ee343f28033d1b24de6d
vim +79 arch/mips/include/asm/fpu.h

84ab45b33858a8 arch/mips/include/asm/fpu.h Paul Burton  2015-01-30   53  
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   54  
static inline int __enable_fpu(enum fpu_mode mode)
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   55  {
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   56 
int fr;
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   57  
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   58 
switch (mode) {
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   59 
case FPU_AS_IS:
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   60 
/* just enable the FPU in its current mode */
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   61 
set_c0_status(ST0_CU1);
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   62 
enable_fpu_hazard();
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   63 
return 0;
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   64  
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   65 
case FPU_HYBRID:
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   66 
if (!cpu_has_fre)
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   67 
return SIGFPE;
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   68  
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   69 
/* set FRE */
d33e6fe3ca7410 arch/mips/include/asm/fpu.h Ralf Baechle 2014-12-17   70 
set_c0_config5(MIPS_CONF5_FRE);
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   71 
goto fr_common;
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   72  
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   73 
case FPU_64BIT:
fcc53b5f6c38ac arch/mips/include/asm/fpu.h Markos Chandras  2015-07-16   74  
#if !(defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR6) \
6134d94923d035 arch/mips/include/asm/fpu.h Markos Chandras  2015-01-30   75 
   || defined(CONFIG_64BIT))
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   76 
/* we only have a 32-bit FPU */
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   77 
return SIGFPE;
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   78  
#endif
c9b0299034665d arch/mips/include/asm/fpu.h Liangliang Huang 2020-05-04  @79 
fallthrough;
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   80 
case FPU_32BIT:
b0c34f6155e2d8 arch/mips/include/asm/fpu.h Ralf Baechle 2014-12-17   81 
if (cpu_has_fre) {
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   82 
/* clear FRE */
d33e6fe3ca7410 arch/mips/include/asm/fpu.h Ralf Baechle 2014-12-17   83 
clear_c0_config5(MIPS_CONF5_FRE);
b0c34f6155e2d8 arch/mips/include/asm/fpu.h Ralf Baechle 2014-12-17   84 
}
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   85  
fr_common:
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton  2013-11-22   86 
/* set CU1 & change FR appropriately */
4227a2d4efc9c8 arch/mips/include/asm/fpu.h Paul Burton  2014-09-11   87 
fr = (int)mode & FPU_FR_MASK;
597ce1723e0fa0 arch/mips/include/asm/fpu.h Paul Burton   

[kbuild] [linux-stable-rc:linux-4.19.y 6643/9999] kernel/sched/cpufreq.c:79:18: sparse: struct update_util_data [noderef] *

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Rafael, J., Wysocki," 
CC: "Greg Kroah-Hartman" 

tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git 
linux-4.19.y
head:   47f49ba00628e7ce16eda75304e947f7ddb149d1
commit: e82f0540a020da549702e042bbfbe633d6175ac1 [6643/] cpufreq: Avoid 
leaving stale IRQ work items during CPU offline
:: branch date: 4 hours ago
:: commit date: 5 months ago
config: i386-randconfig-s001-20200601 (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
git checkout e82f0540a020da549702e042bbfbe633d6175ac1
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   kernel/sched/cpufreq.c:79:18: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
>> kernel/sched/cpufreq.c:79:18: sparse:struct update_util_data [noderef] 
>>  *
>> kernel/sched/cpufreq.c:79:18: sparse:struct update_util_data *

# 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=e82f0540a020da549702e042bbfbe633d6175ac1
git remote add linux-stable-rc 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git remote update linux-stable-rc
git checkout e82f0540a020da549702e042bbfbe633d6175ac1
vim +79 kernel/sched/cpufreq.c

e82f0540a020da Rafael J. Wysocki 2019-12-11  65  
e82f0540a020da Rafael J. Wysocki 2019-12-11  66  /**
e82f0540a020da Rafael J. Wysocki 2019-12-11  67   * cpufreq_this_cpu_can_update 
- Check if cpufreq policy can be updated.
e82f0540a020da Rafael J. Wysocki 2019-12-11  68   * @policy: cpufreq policy to 
check.
e82f0540a020da Rafael J. Wysocki 2019-12-11  69   *
e82f0540a020da Rafael J. Wysocki 2019-12-11  70   * Return 'true' if:
e82f0540a020da Rafael J. Wysocki 2019-12-11  71   * - the local and remote CPUs 
share @policy,
e82f0540a020da Rafael J. Wysocki 2019-12-11  72   * - 
dvfs_possible_from_any_cpu is set in @policy and the local CPU is not going
e82f0540a020da Rafael J. Wysocki 2019-12-11  73   *   offline (in which case it 
is not expected to run cpufreq updates any more).
e82f0540a020da Rafael J. Wysocki 2019-12-11  74   */
e82f0540a020da Rafael J. Wysocki 2019-12-11  75  bool 
cpufreq_this_cpu_can_update(struct cpufreq_policy *policy)
e82f0540a020da Rafael J. Wysocki 2019-12-11  76  {
e82f0540a020da Rafael J. Wysocki 2019-12-11  77 return 
cpumask_test_cpu(smp_processor_id(), policy->cpus) ||
e82f0540a020da Rafael J. Wysocki 2019-12-11  78 
(policy->dvfs_possible_from_any_cpu &&
e82f0540a020da Rafael J. Wysocki 2019-12-11 @79  
rcu_dereference_sched(*this_cpu_ptr(&cpufreq_update_util_data)));

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] kernel/trace/ftrace.c:7171 pid_open() error: uninitialized symbol 'seq_ops'.

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Steven, Rostedt, (VMware)," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   9bf9511e3d9f328c03f6f79bfb741c3d18f2f2c0
commit: b3b1e6ededa4337940adba6cf06e8351056e3097 ftrace: Create 
set_ftrace_notrace_pid to not trace tasks
date:   9 weeks ago
:: branch date: 70 minutes ago
:: commit date: 9 weeks ago
config: mips-randconfig-m031-20200601 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
kernel/trace/ftrace.c:7171 pid_open() error: uninitialized symbol 'seq_ops'.

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b3b1e6ededa4337940adba6cf06e8351056e3097
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout b3b1e6ededa4337940adba6cf06e8351056e3097
vim +/seq_ops +7171 kernel/trace/ftrace.c

b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7146) 
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7147) static int 
pid_open(struct inode *inode, struct file *file, int type)
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7148  {
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7149)  const struct 
seq_operations *seq_ops;
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7150)  struct 
trace_array *tr = inode->i_private;
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7151)  struct seq_file 
*m;
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7152   int ret = 0;
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7153  
8530dec63e7b486 Steven Rostedt (VMware   2019-10-11  7154)  ret = 
tracing_check_open_get_tr(tr);
8530dec63e7b486 Steven Rostedt (VMware   2019-10-11  7155)  if (ret)
8530dec63e7b486 Steven Rostedt (VMware   2019-10-11  7156)  return 
ret;
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7157) 
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7158   if 
((file->f_mode & FMODE_WRITE) &&
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7159   
(file->f_flags & O_TRUNC))
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7160)  
ftrace_pid_reset(tr, type);
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7161) 
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7162)  switch (type) {
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7163)  case TRACE_PIDS:
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7164)  seq_ops 
= &ftrace_pid_sops;
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7165)  break;
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7166)  case 
TRACE_NO_PIDS:
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7167)  seq_ops 
= &ftrace_no_pid_sops;
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7168)  break;
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19  7169)  }
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7170  
b3b1e6ededa4337 Steven Rostedt (VMware   2020-03-19 @7171)  ret = 
seq_open(file, seq_ops);
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7172)  if (ret < 0) {
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7173)  
trace_array_put(tr);
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7174)  } else {
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7175)  m = 
file->private_data;
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7176)  /* copy 
tr over to seq ops */
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7177)  
m->private = tr;
345ddcc882d8896 Steven Rostedt (Red Hat  2016-04-22  7178)  }
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7179  
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7180   return ret;
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7181  }
756d17ee7ee4fbc jo...@redhat.com 2009-10-13  7182  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [linux-next:master 5169/14131] drivers/firmware/efi/libstub/efi-stub-helper.c:390:44: sparse: expected unsigned short const [usertype] *optstr

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Arvind, Sankar," 
CC: Ard Biesheuvel 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: f61900fd0ebf6c6b91719d63272a54f4d11051df [5169/14131] efi/libstub: 
Unify initrd loading across architectures
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s031-20200601 (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
git checkout f61900fd0ebf6c6b91719d63272a54f4d11051df
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/firmware/efi/libstub/efi-stub-helper.c:390:44: sparse: sparse: 
incorrect type in argument 2 (different type sizes) @@ expected unsigned 
short const [usertype] *optstr @@ got char * @@
>> drivers/firmware/efi/libstub/efi-stub-helper.c:390:44: sparse: expected 
>> unsigned short const [usertype] *optstr
>> drivers/firmware/efi/libstub/efi-stub-helper.c:390:44: sparse: got char *

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f61900fd0ebf6c6b91719d63272a54f4d11051df
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout f61900fd0ebf6c6b91719d63272a54f4d11051df
vim +390 drivers/firmware/efi/libstub/efi-stub-helper.c

f61900fd0ebf6c6 Arvind Sankar 2020-04-30  376  
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  377  static
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  378  efi_status_t 
efi_load_initrd_cmdline(efi_loaded_image_t *image,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  379
unsigned long *load_addr,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  380
unsigned long *load_size,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  381
unsigned long soft_limit,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  382
unsigned long hard_limit)
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  383  {
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  384   if 
(!IS_ENABLED(CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER) ||
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  385   (IS_ENABLED(CONFIG_X86) && 
(!efi_is_native() || image == NULL))) {
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  386   *load_addr = *load_size 
= 0;
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  387   return EFI_SUCCESS;
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  388   }
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  389  
f61900fd0ebf6c6 Arvind Sankar 2020-04-30 @390   return 
handle_cmdline_files(image, L"initrd=", sizeof(L"initrd=") - 2,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  391   
soft_limit, hard_limit,
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  392   
load_addr, load_size);
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  393  }
f61900fd0ebf6c6 Arvind Sankar 2020-04-30  394  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] drivers/most/core.c:1287 most_register_interface() error: we previously assumed 'iface' could be null (see line 1285)

2020-06-01 Thread Dan Carpenter
Hi Christian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: b276527539188f1f61c082ebef27803db93e536d staging: most: move core files 
out of the staging area
date:   10 weeks ago

config: mips-randconfig-m031-20200601 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
drivers/most/core.c:1287 most_register_interface() error: we previously assumed 
'iface' could be null (see line 1285)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b276527539188f1f61c082ebef27803db93e536d
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout b276527539188f1f61c082ebef27803db93e536d
vim +/iface +1287 drivers/most/core.c

4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1279  int most_register_interface(struct most_interface *iface)
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1280  {
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1281unsigned int i;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1282int id;
fcb7fad82e23f6 drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1283struct most_channel *c;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1284  
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24 @1285if (!iface || !iface->enqueue || !iface->configure ||

^^
Check for NULL.

57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1286!iface->poison_channel || (iface->num_channels > 
MAX_CHANNELS)) {
6a82c775812944 drivers/staging/most/core.c  Christian Gromm 
2020-01-23 @1287dev_err(iface->dev, "Bad interface or channel 
overflow\n");

^^
Dereference.  "iface" can't be NULL.  Just delete the check.

4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1288return -EINVAL;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1289}
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1290  
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1291id = ida_simple_get(&mdev_id, 0, 0, GFP_KERNEL);
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1292if (id < 0) {
b7935e52dd9869 drivers/staging/most/core.c  Christian Gromm 
2020-01-23  1293dev_err(iface->dev, "Failed to allocate device 
ID\n");
4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1294return id;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1295}
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1296  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] drivers/most/core.c:1287 most_register_interface() error: we previously assumed 'iface' could be null (see line 1285)

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Christian, Gromm," 
CC: "Greg Kroah-Hartman" 

Hi Christian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: b276527539188f1f61c082ebef27803db93e536d staging: most: move core files 
out of the staging area
date:   10 weeks ago
:: branch date: 19 hours ago
:: commit date: 10 weeks ago
config: mips-randconfig-m031-20200601 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
drivers/most/core.c:1287 most_register_interface() error: we previously assumed 
'iface' could be null (see line 1285)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b276527539188f1f61c082ebef27803db93e536d
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout b276527539188f1f61c082ebef27803db93e536d
vim +/iface +1287 drivers/most/core.c

4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1271  
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1272  /**
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1273   * most_register_interface - registers an interface with core
b7937dc41362f7 drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1274   * @iface: device interface
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1275   *
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1276   * Allocates and initializes a new interface instance and all 
of its channels.
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1277   * Returns a pointer to kobject or an error pointer.
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1278   */
4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1279  int most_register_interface(struct most_interface *iface)
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1280  {
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1281unsigned int i;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1282int id;
fcb7fad82e23f6 drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1283struct most_channel *c;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1284  
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24 @1285if (!iface || !iface->enqueue || !iface->configure ||
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1286!iface->poison_channel || (iface->num_channels > 
MAX_CHANNELS)) {
6a82c775812944 drivers/staging/most/core.c  Christian Gromm 
2020-01-23 @1287dev_err(iface->dev, "Bad interface or channel 
overflow\n");
4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1288return -EINVAL;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1289}
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1290  
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1291id = ida_simple_get(&mdev_id, 0, 0, GFP_KERNEL);
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1292if (id < 0) {
b7935e52dd9869 drivers/staging/most/core.c  Christian Gromm 
2020-01-23  1293dev_err(iface->dev, "Failed to allocate device 
ID\n");
4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1294return id;
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1295}
57562a72414ca3 drivers/staging/most/mostcore/core.c Christian Gromm 
2015-07-24  1296  
9136fccf38a7aa drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1297iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL);
9136fccf38a7aa drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1298if (!iface->p) {
b7382d44a530cd drivers/staging/most/mostcore/core.c Christian Gromm 
2015-12-22  1299ida_simple_remove(&mdev_id, id);
4d5f022f3a664e drivers/staging/most/core.c  Christian Gromm 
2017-11-21  1300return -ENOMEM;
57562a72414ca3 drivers/staging/most/mostcor

[kbuild] [rdma:wip/jgg-for-next 81/231] drivers/infiniband/core/cm.c:2043:12: sparse: sparse: context imbalance in 'cm_req_handler' - different lock contexts for basic block

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: Doug Ledford 
CC: Jason Gunthorpe 
CC: linux-r...@vger.kernel.org
TO: "Jason, Gunthorpe," 
CC: Leon Romanovsky 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git 
wip/jgg-for-next
head:   70ae395550333607bda245db5270211b6ef8ab00
commit: e83f195aa45c1ffd73b3a950a887e41c260cf194 [81/231] RDMA/cm: Pull 
duplicated code into cm_queue_work_unlock()
:: branch date: 2 hours ago
:: commit date: 3 weeks ago
config: microblaze-randconfig-s032-20200601 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout e83f195aa45c1ffd73b3a950a887e41c260cf194
# save the attached .config to linux build tree
make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent 
configuration, needs CONFIG_CPU_BIG_ENDIAN
   drivers/infiniband/core/cm.c:1297:21: sparse: sparse: cast from restricted 
__be32
   drivers/infiniband/core/cm.c:936:24: sparse: sparse: context imbalance in 
'cm_queue_work_unlock' - unexpected unlock
>> drivers/infiniband/core/cm.c:2043:12: sparse: sparse: context imbalance in 
>> 'cm_req_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2422:12: sparse: sparse: context imbalance in 
'cm_rep_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2533:12: sparse: sparse: context imbalance in 
'cm_establish_handler' - different lock contexts for basic block
>> drivers/infiniband/core/cm.c:2556:12: sparse: sparse: context imbalance in 
>> 'cm_rtu_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2770:12: sparse: sparse: context imbalance in 
'cm_dreq_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2847:12: sparse: sparse: context imbalance in 
'cm_drep_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2995:12: sparse: sparse: context imbalance in 
'cm_rej_handler' - wrong count at exit
   drivers/infiniband/core/cm.c:3153:12: sparse: sparse: context imbalance in 
'cm_mra_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:3271:12: sparse: sparse: context imbalance in 
'cm_lap_handler' - different lock contexts for basic block
>> drivers/infiniband/core/cm.c:3360:12: sparse: sparse: context imbalance in 
>> 'cm_apr_handler' - different lock contexts for basic block
>> drivers/infiniband/core/cm.c:3405:12: sparse: sparse: context imbalance in 
>> 'cm_timewait_handler' - different lock contexts for basic block

# 
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=e83f195aa45c1ffd73b3a950a887e41c260cf194
git remote add rdma 
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git remote update rdma
git checkout e83f195aa45c1ffd73b3a950a887e41c260cf194
vim +/cm_req_handler +2043 drivers/infiniband/core/cm.c

3971c9f6dbf26f Sean Hefty  2007-12-10  2042  
a977049dacdef6 Hal Rosenstock  2005-07-27 @2043  static int 
cm_req_handler(struct cm_work *work)
a977049dacdef6 Hal Rosenstock  2005-07-27  2044  {
a977049dacdef6 Hal Rosenstock  2005-07-27  2045 struct 
cm_id_private *cm_id_priv, *listen_cm_id_priv;
a977049dacdef6 Hal Rosenstock  2005-07-27  2046 struct 
cm_req_msg *req_msg;
d8966fcd4c2570 Dasaratharaman Chandramouli 2017-04-29  2047 const struct 
ib_global_route *grh;
a8872d53e9b7fc Parav Pandit2018-06-19  2048 const struct 
ib_gid_attr *gid_attr;
a977049dacdef6 Hal Rosenstock  2005-07-27  2049 int ret;
a977049dacdef6 Hal Rosenstock  2005-07-27  2050  
a977049dacdef6 Hal Rosenstock  2005-07-27  2051 req_msg = 
(struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
a977049dacdef6 Hal Rosenstock  2005-07-27  2052  
c206f8bad15d30 Jason Gunthorpe 2020-03-10  2053 cm_id_priv =
c206f8bad15d30 Jason Gunthorpe 2020-03-10  2054 
cm_alloc_id_priv(work->port->cm_dev->ib_device, NULL, NULL);
c206f8bad15d30 Jason Gunthorpe 2020-03-10  2055 if 
(IS_ERR(cm_id_priv))
c206f8bad15d30 Jason Gunthorpe 2020-03-10  2056 return 
PTR_ERR(cm_id_priv);
a977049dacdef6 Hal Rosenstock  2005-07-27  2057  
91b60a7128d962 Jason Gunthorpe 2020-01-16  2058 
cm_id_priv->id.remote_id =
91b60a7128d962 Jason Gunthorpe 2020-01-16  2059 

[kbuild] arch/x86/events/intel/uncore_snbep.c:4394 __snr_uncore_mmio_init_box() warn: should '(pci_dword & 536870911) << 23' be a 64 bit type?

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Kan, Liang," 
CC: Peter Zijlstra 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 3442a9ecb8e72a33c28a2b969b766c659830e410 perf/x86/intel/uncore: Factor 
out __snr_uncore_mmio_init_box
date:   2 months ago
:: branch date: 19 hours ago
:: commit date: 2 months ago
config: x86_64-randconfig-m001-20200601 (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 
Reported-by: Dan Carpenter 

smatch warnings:
arch/x86/events/intel/uncore_snbep.c:4394 __snr_uncore_mmio_init_box() warn: 
should '(pci_dword & 536870911) << 23' be a 64 bit type?

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3442a9ecb8e72a33c28a2b969b766c659830e410
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 3442a9ecb8e72a33c28a2b969b766c659830e410
vim +4394 arch/x86/events/intel/uncore_snbep.c

ee49532b38dd08 Kan Liang 2019-04-30  4382  
3442a9ecb8e72a Kan Liang 2020-03-17  4383  static void 
__snr_uncore_mmio_init_box(struct intel_uncore_box *box,
3442a9ecb8e72a Kan Liang 2020-03-17  4384  
unsigned int box_ctl, int mem_offset)
ee49532b38dd08 Kan Liang 2019-04-30  4385  {
ee49532b38dd08 Kan Liang 2019-04-30  4386   struct pci_dev *pdev = 
snr_uncore_get_mc_dev(box->dieid);
ee49532b38dd08 Kan Liang 2019-04-30  4387   resource_size_t addr;
ee49532b38dd08 Kan Liang 2019-04-30  4388   u32 pci_dword;
ee49532b38dd08 Kan Liang 2019-04-30  4389  
ee49532b38dd08 Kan Liang 2019-04-30  4390   if (!pdev)
ee49532b38dd08 Kan Liang 2019-04-30  4391   return;
ee49532b38dd08 Kan Liang 2019-04-30  4392  
ee49532b38dd08 Kan Liang 2019-04-30  4393   pci_read_config_dword(pdev, 
SNR_IMC_MMIO_BASE_OFFSET, &pci_dword);
ee49532b38dd08 Kan Liang 2019-04-30 @4394   addr = (pci_dword & 
SNR_IMC_MMIO_BASE_MASK) << 23;
ee49532b38dd08 Kan Liang 2019-04-30  4395  
3442a9ecb8e72a Kan Liang 2020-03-17  4396   pci_read_config_dword(pdev, 
mem_offset, &pci_dword);
ee49532b38dd08 Kan Liang 2019-04-30  4397   addr |= (pci_dword & 
SNR_IMC_MMIO_MEM0_MASK) << 12;
ee49532b38dd08 Kan Liang 2019-04-30  4398  
ee49532b38dd08 Kan Liang 2019-04-30  4399   addr += box_ctl;
ee49532b38dd08 Kan Liang 2019-04-30  4400  
ee49532b38dd08 Kan Liang 2019-04-30  4401   box->io_addr = ioremap(addr, 
SNR_IMC_MMIO_SIZE);
ee49532b38dd08 Kan Liang 2019-04-30  4402   if (!box->io_addr)
ee49532b38dd08 Kan Liang 2019-04-30  4403   return;
ee49532b38dd08 Kan Liang 2019-04-30  4404  
ee49532b38dd08 Kan Liang 2019-04-30  4405   writel(IVBEP_PMON_BOX_CTL_INT, 
box->io_addr);
ee49532b38dd08 Kan Liang 2019-04-30  4406  }
ee49532b38dd08 Kan Liang 2019-04-30  4407  

:: The code at line 4394 was first introduced by commit
:: ee49532b38dd084650bf715eabe7e3828fb8d275 perf/x86/intel/uncore: Add IMC 
uncore support for Snow Ridge

:: TO: Kan Liang 
:: CC: Ingo Molnar 

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [linux-next:master 3942/14131] drivers/char/random.c:2117:35: sparse: expected int ( [usertype] *proc_handler )( ... )

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Christoph, Hellwig," 
CC: Al Viro 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass 
kernel pointers to ->proc_handler
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s002-20200601 (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
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/char/random.c:2100:50: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void * @@ got void [noderef] 
 *buffer @@
   drivers/char/random.c:2100:50: sparse: expected void *
   drivers/char/random.c:2100:50: sparse: got void [noderef]  *buffer
   drivers/char/random.c:2117:35: sparse: sparse: incorrect type in initializer 
(incompatible argument 3 (different address spaces)) @@ expected int ( 
[usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@
>> drivers/char/random.c:2117:35: sparse: expected int ( [usertype] 
>> *proc_handler )( ... )
   drivers/char/random.c:2117:35: sparse: got int ( * )( ... )
--
   drivers/cdrom/cdrom.c:3597:42: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void * @@ got void [noderef] 
 *buffer @@
>> drivers/cdrom/cdrom.c:3597:42: sparse: expected void *
   drivers/cdrom/cdrom.c:3597:42: sparse: got void [noderef]  *buffer
   drivers/cdrom/cdrom.c:3665:35: sparse: sparse: incorrect type in initializer 
(incompatible argument 3 (different address spaces)) @@ expected int ( 
[usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@
   drivers/cdrom/cdrom.c:3665:35: sparse: expected int ( [usertype] 
*proc_handler )( ... )
   drivers/cdrom/cdrom.c:3665:35: sparse: got int ( * )( ... )

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
vim +2117 drivers/char/random.c

a283b5c459784f H. Peter Anvin2013-09-10  2102  
^1da177e4c3f41 Linus Torvalds2005-04-16  2103  static int sysctl_poolsize = 
INPUT_POOL_WORDS * 32;
a151427ed08695 Joe Perches   2013-06-13  2104  extern struct ctl_table 
random_table[];
a151427ed08695 Joe Perches   2013-06-13  2105  struct ctl_table 
random_table[] = {
^1da177e4c3f41 Linus Torvalds2005-04-16  2106   {
^1da177e4c3f41 Linus Torvalds2005-04-16  2107   .procname   
= "poolsize",
^1da177e4c3f41 Linus Torvalds2005-04-16  2108   .data   
= &sysctl_poolsize,
^1da177e4c3f41 Linus Torvalds2005-04-16  2109   .maxlen 
= sizeof(int),
^1da177e4c3f41 Linus Torvalds2005-04-16  2110   .mode   
= 0444,
6d4561110a3e9f Eric W. Biederman 2009-11-16  2111   .proc_handler   
= proc_dointvec,
^1da177e4c3f41 Linus Torvalds2005-04-16  2112   },
^1da177e4c3f41 Linus Torvalds2005-04-16  2113   {
^1da177e4c3f41 Linus Torvalds2005-04-16  2114   .procname   
= "entropy_avail",
^1da177e4c3f41 Linus Torvalds2005-04-16  2115   .maxlen 
= sizeof(int),
^1da177e4c3f41 Linus Torvalds2005-04-16  2116   .mode   
= 0444,
a283b5c459784f H. Peter Anvin2013-09-10 @2117   .proc_handler   
= proc_do_entropy,
^1da177e4c3f41 Linus Torvalds2005-04-16  2118   .data   
= &input_pool.entropy_count,
^1da177e4c3f41 Linus Torvalds2005-04-16  2119   },
^1da177e4c3f41 Linus Torvalds2005-04-16  2120   {
^1da177e4c3f41 Linus Torvalds2005-04-16  2121   .procname   
= "write_wakeup_threshold",
2132a96f66b6b4 Greg Price2013-12-06  2122   .data   
= &random_write_wakeup_bits,
^1da177e4c3f41 Linus Torvalds2005-04-16  2123   .maxlen 
= sizeof(int),
^1da177e4c3f41 Linus Torvalds2005-04-16  2124   .mode   
= 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16  2125   .proc_handler   
= proc_dointvec_minmax,
^1da177e4c3f41 Linus Torvalds2005-04-16  2126   .extra1 
= &min_write_thresh,
^1da177e4c3f41 Linus Torvalds2005-04-16  2127 

[kbuild] [linux-next:master 4096/14131] net/bridge/br_mrp.c:109:21: sparse: expected unsigned short [usertype] seq_id

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Horatiu, Vultur," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 9a9f26e8f7ea300e8efffcae036dbef239be433a [4096/14131] bridge: mrp: 
Connect MRP API with the switchdev API
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: microblaze-randconfig-s032-20200601 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 9a9f26e8f7ea300e8efffcae036dbef239be433a
# save the attached .config to linux build tree
make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent 
configuration, needs CONFIG_CPU_BIG_ENDIAN
   net/bridge/br_mrp.c:86:18: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] @@ got 
restricted __be16 [usertype] @@
   net/bridge/br_mrp.c:86:18: sparse: expected unsigned short [usertype]
   net/bridge/br_mrp.c:86:18: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:109:21: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] seq_id @@ 
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:109:21: sparse: expected unsigned short [usertype] 
>> seq_id
   net/bridge/br_mrp.c:109:21: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:130:19: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] prio @@ 
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:130:19: sparse: expected unsigned short [usertype] 
>> prio
   net/bridge/br_mrp.c:130:19: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:132:24: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] port_role @@   
  got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:132:24: sparse: expected unsigned short [usertype] 
>> port_role
   net/bridge/br_mrp.c:132:24: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:133:20: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] state @@ 
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:133:20: sparse: expected unsigned short [usertype] 
>> state
   net/bridge/br_mrp.c:133:20: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:134:26: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned short [usertype] transitions @@ 
got restricted __be16 [usertype] @@
>> net/bridge/br_mrp.c:134:26: sparse: expected unsigned short [usertype] 
>> transitions
   net/bridge/br_mrp.c:134:26: sparse: got restricted __be16 [usertype]
   net/bridge/br_mrp.c:135:24: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected unsigned int [usertype] timestamp @@ 
got restricted __be32 [usertype] @@
>> net/bridge/br_mrp.c:135:24: sparse: expected unsigned int [usertype] 
>> timestamp
>> net/bridge/br_mrp.c:135:24: sparse: got restricted __be32 [usertype]
   net/bridge/br_mrp.c:234:23: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@ expected struct list_head *entry @@ got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:234:23: sparse: expected struct list_head *entry
   net/bridge/br_mrp.c:234:23: sparse: got struct list_head [noderef] *
   net/bridge/br_mrp.c:279:28: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@ expected struct list_head *new @@ got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:279:28: sparse: expected struct list_head *new
   net/bridge/br_mrp.c:279:28: sparse: got struct list_head [noderef] *
   net/bridge/br_mrp.c:279:40: sparse: sparse: incorrect type in argument 2 
(different modifiers) @@ expected struct list_head *head @@ got struct 
list_head [noderef] * @@
   net/bridge/br_mrp.c:279:40: sparse: expected struct list_head *head
   net/bridge/br_mrp.c:279:40: sparse: got struct list_head [noderef] *
   net/bridge/br_mrp.c:296:6: sparse: sparse: symbol 'br_mrp_port_del' was not 
declared. Should it be static?
   net/bridge/br_mrp.c:543:5: sparse: sparse: symbol 'br_mrp_process' was not 
declared. Should it be static?
   net/bridge/br_mrp.c:558:29: sparse: sparse: incorrect type in argument 1 
(different modifiers) @@ expected struct 

[kbuild] [linux-next:master 4070/14131] kernel/rcu/tasks.h:824:17: sparse: sparse: dubious: x & !y

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Paul, E., McKenney," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 7e3b70e0703b48e120c3f5e65498790341120fad [4070/14131] rcu-tasks: Handle 
the running-offline idle-task special case
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s002-20200601 (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
git checkout 7e3b70e0703b48e120c3f5e65498790341120fad
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   kernel/rcu/tasks.h:418:6: sparse: sparse: symbol 'rcu_tasks_postscan' was 
not declared. Should it be static?
   kernel/rcu/tasks.h:715:20: sparse: sparse: symbol 'rcu_trace_lock_map' was 
not declared. Should it be static?
   kernel/rcu/tasks.h:722:10: sparse: sparse: symbol 'trc_n_readers_need_end' 
was not declared. Should it be static?
   kernel/rcu/tasks.h:723:1: sparse: sparse: symbol 'trc_wait' was not 
declared. Should it be static?
   kernel/rcu/tasks.h:743:6: sparse: sparse: symbol 
'rcu_read_unlock_trace_special' was not declared. Should it be static?
>> kernel/rcu/tasks.h:824:17: sparse: sparse: dubious: x & !y
   kernel/rcu/tasks.h:1108:6: sparse: sparse: symbol 
'synchronize_rcu_tasks_trace' was not declared. Should it be static?
   kernel/rcu/tasks.h:1121:6: sparse: sparse: symbol 'rcu_barrier_tasks_trace' 
was not declared. Should it be static?
   kernel/rcu/tasks.h:1153:6: sparse: sparse: symbol 
'show_rcu_tasks_gp_kthreads' was not declared. Should it be static?

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7e3b70e0703b48e120c3f5e65498790341120fad
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 7e3b70e0703b48e120c3f5e65498790341120fad
vim +824 kernel/rcu/tasks.h

d5f177d35c2442 Paul E. McKenney 2020-03-09  815  
d5f177d35c2442 Paul E. McKenney 2020-03-09  816  /* Callback function for 
scheduler to check locked-down task.  */
d5f177d35c2442 Paul E. McKenney 2020-03-09  817  static bool 
trc_inspect_reader(struct task_struct *t, void *arg)
d5f177d35c2442 Paul E. McKenney 2020-03-09  818  {
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  819 int cpu = task_cpu(t);
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  820 bool in_qs = false;
7e3b70e0703b48 Paul E. McKenney 2020-03-22  821 bool ofl = 
cpu_is_offline(cpu);
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  822  
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  823 if (task_curr(t)) {
7e3b70e0703b48 Paul E. McKenney 2020-03-22 @824 
WARN_ON_ONCE(ofl & !is_idle_task(t));
7e3b70e0703b48 Paul E. McKenney 2020-03-22  825  
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  826 // If no chance 
of heavyweight readers, do it the hard way.
7e3b70e0703b48 Paul E. McKenney 2020-03-22  827 if (!ofl && 
!IS_ENABLED(CONFIG_TASKS_TRACE_RCU_READ_MB))
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  828 return 
false;
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  829  
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  830 // If 
heavyweight readers are enabled on the remote task,
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  831 // we can 
inspect its state despite its currently running.
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  832 // However, we 
cannot safely change its state.
7e3b70e0703b48 Paul E. McKenney 2020-03-22  833 if (!ofl && // 
Check for "running" idle tasks on offline CPUs.
7e3b70e0703b48 Paul E. McKenney 2020-03-22  834 
!rcu_dynticks_zero_in_eqs(cpu, &t->trc_reader_nesting))
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  835 return 
false; // No quiescent state, do it the hard way.
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  836 in_qs = true;
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  837 } else {
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  838 in_qs = 
likely(!t->trc_reader_nesting);
7d0c9c50c5a109 Paul E. McKenney 2020-03-19  839 }
d5f177d35c2442 Paul E. McKenney 2020-03-09  840  
d5f177d35c2442 Paul E. McKenney 2020-03-09  841 // Mark as checked.  
Because this is called from the grace-period
d5f177d35c2442 Paul E. McKenney 2020-03-09  842 // kthread, also remove 
the task from the holdout list.
d5f177d35c2442 Paul E. McKen

[kbuild] [linux-next:master 3942/14131] net/core/sysctl_net_core.c:129:42: sparse: got void *buffer

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Christoph, Hellwig," 
CC: Al Viro 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass 
kernel pointers to ->proc_handler
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   net/core/sysctl_net_core.c:129:42: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@ expected char const [noderef] 
 *buf @@ got void *buffer @@
   net/core/sysctl_net_core.c:129:42: sparse: expected char const [noderef] 
 *buf
>> net/core/sysctl_net_core.c:129:42: sparse: got void *buffer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
vim +129 net/core/sysctl_net_core.c

99bbc70741903c Willem de Bruijn  2013-05-20  116  
fe2c6338fd2c6f Joe Perches   2013-06-11  117  static int 
flow_limit_cpu_sysctl(struct ctl_table *table, int write,
32927393dc1ccd Christoph Hellwig 2020-04-24  118
 void *buffer, size_t *lenp, loff_t *ppos)
99bbc70741903c Willem de Bruijn  2013-05-20  119  {
99bbc70741903c Willem de Bruijn  2013-05-20  120struct sd_flow_limit 
*cur;
99bbc70741903c Willem de Bruijn  2013-05-20  121struct softnet_data *sd;
99bbc70741903c Willem de Bruijn  2013-05-20  122cpumask_var_t mask;
99bbc70741903c Willem de Bruijn  2013-05-20  123int i, len, ret = 0;
99bbc70741903c Willem de Bruijn  2013-05-20  124  
99bbc70741903c Willem de Bruijn  2013-05-20  125if 
(!alloc_cpumask_var(&mask, GFP_KERNEL))
99bbc70741903c Willem de Bruijn  2013-05-20  126return -ENOMEM;
99bbc70741903c Willem de Bruijn  2013-05-20  127  
99bbc70741903c Willem de Bruijn  2013-05-20  128if (write) {
99bbc70741903c Willem de Bruijn  2013-05-20 @129ret = 
cpumask_parse_user(buffer, *lenp, mask);
99bbc70741903c Willem de Bruijn  2013-05-20  130if (ret)
99bbc70741903c Willem de Bruijn  2013-05-20  131goto 
done;
99bbc70741903c Willem de Bruijn  2013-05-20  132  
99bbc70741903c Willem de Bruijn  2013-05-20  133
mutex_lock(&flow_limit_update_mutex);
99bbc70741903c Willem de Bruijn  2013-05-20  134len = 
sizeof(*cur) + netdev_flow_limit_table_len;
99bbc70741903c Willem de Bruijn  2013-05-20  135
for_each_possible_cpu(i) {
99bbc70741903c Willem de Bruijn  2013-05-20  136sd = 
&per_cpu(softnet_data, i);
99bbc70741903c Willem de Bruijn  2013-05-20  137cur = 
rcu_dereference_protected(sd->flow_limit,
99bbc70741903c Willem de Bruijn  2013-05-20  138
 lockdep_is_held(&flow_limit_update_mutex));
99bbc70741903c Willem de Bruijn  2013-05-20  139if (cur 
&& !cpumask_test_cpu(i, mask)) {
99bbc70741903c Willem de Bruijn  2013-05-20  140
RCU_INIT_POINTER(sd->flow_limit, NULL);
99bbc70741903c Willem de Bruijn  2013-05-20  141
synchronize_rcu();
99bbc70741903c Willem de Bruijn  2013-05-20  142
kfree(cur);
99bbc70741903c Willem de Bruijn  2013-05-20  143} else 
if (!cur && cpumask_test_cpu(i, mask)) {
5b59d467ad9ff9 Eric Dumazet  2013-12-18  144
cur = kzalloc_node(len, GFP_KERNEL,
5b59d467ad9ff9 Eric Dumazet  2013-12-18  145
   cpu_to_node(i));
99bbc70741903c Willem de Bruijn  2013-05-20  146
if (!cur) {
99bbc70741903c Willem de Bruijn  2013-05-20  147
/* not unwinding previous changes */
99bbc70741903c Willem de Bruijn  2013-05-20  148
ret = -ENOMEM;
99bbc70741903c Willem de Bruijn  2013-05-20  149
goto write_unlock;
99bbc70741903c Willem de Bruijn  2013-05-20  150
}
99bbc70741903c Willem de

[kbuild] [linux-next:master 465/14131] include/asm-generic/bitops/instrumented-lock.h:40:25: sparse: sparse: context imbalance in 'dm_exception_table_unlock' - unexpected unlock

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Marco, Elver," 
CC: Ingo Molnar 
CC: "Paul E. McKenney" 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 27f937cc810aef63b0752f5bfbf383390dd076a1 [465/14131] asm-generic, 
kcsan: Add KCSAN instrumentation for bitops
:: branch date: 3 days ago
:: commit date: 2 months ago
config: x86_64-randconfig-s022-20200601 (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
git checkout 27f937cc810aef63b0752f5bfbf383390dd076a1
# 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 


sparse warnings: (new ones prefixed by >>)

   drivers/md/dm-snap.c:642:13: sparse: sparse: context imbalance in 
'dm_exception_table_lock' - wrong count at exit
>> include/asm-generic/bitops/instrumented-lock.h:40:25: sparse: sparse: 
>> context imbalance in 'dm_exception_table_unlock' - unexpected unlock

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=27f937cc810aef63b0752f5bfbf383390dd076a1
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 27f937cc810aef63b0752f5bfbf383390dd076a1
vim +/dm_exception_table_unlock +40 
include/asm-generic/bitops/instrumented-lock.h

81d2c6f81996e0 Daniel Axtens 2019-08-20  28  
81d2c6f81996e0 Daniel Axtens 2019-08-20  29  /**
81d2c6f81996e0 Daniel Axtens 2019-08-20  30   * __clear_bit_unlock - Clears a 
bit in memory
81d2c6f81996e0 Daniel Axtens 2019-08-20  31   * @nr: Bit to clear
81d2c6f81996e0 Daniel Axtens 2019-08-20  32   * @addr: Address to start 
counting from
81d2c6f81996e0 Daniel Axtens 2019-08-20  33   *
81d2c6f81996e0 Daniel Axtens 2019-08-20  34   * This is a non-atomic operation 
but implies a release barrier before the
81d2c6f81996e0 Daniel Axtens 2019-08-20  35   * memory operation. It can be 
used for an unlock if no other CPUs can
81d2c6f81996e0 Daniel Axtens 2019-08-20  36   * concurrently modify other bits 
in the word.
81d2c6f81996e0 Daniel Axtens 2019-08-20  37   */
81d2c6f81996e0 Daniel Axtens 2019-08-20  38  static inline void 
__clear_bit_unlock(long nr, volatile unsigned long *addr)
81d2c6f81996e0 Daniel Axtens 2019-08-20  39  {
27f937cc810aef Marco Elver   2020-01-21 @40 instrument_write(addr + 
BIT_WORD(nr), sizeof(long));
81d2c6f81996e0 Daniel Axtens 2019-08-20  41 arch___clear_bit_unlock(nr, 
addr);
81d2c6f81996e0 Daniel Axtens 2019-08-20  42  }
81d2c6f81996e0 Daniel Axtens 2019-08-20  43  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [linux-next:master 4817/14131] drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: expected unsigned short [usertype] val_16

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Doug, Berger," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 3e370952287c55e5fd240cb8bb41ef8acff8829d [4817/14131] net: bcmgenet: 
add support for ethtool rxnfc flows
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout 3e370952287c55e5fd240cb8bb41ef8acff8829d
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: sparse: 
incorrect type in assignment (different base types) @@ expected unsigned 
short [usertype] val_16 @@ got restricted __be16 [usertype] @@
>> drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: expected 
>> unsigned short [usertype] val_16
   drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: got 
restricted __be16 [usertype]
   drivers/net/ethernet/broadcom/genet/bcmgenet.c:782:5: sparse: sparse: symbol 
'bcmgenet_hfb_add_filter' was not declared. Should it be static?
   include/linux/netdevice.h:4052:20: sparse: sparse: shift count is negative 
(-1)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3e370952287c55e5fd240cb8bb41ef8acff8829d
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 3e370952287c55e5fd240cb8bb41ef8acff8829d
vim +688 drivers/net/ethernet/broadcom/genet/bcmgenet.c

3e370952287c55 Doug Berger 2020-04-29  631  
3e370952287c55 Doug Berger 2020-04-29  632  static int 
bcmgenet_hfb_create_rxnfc_filter(struct bcmgenet_priv *priv,
3e370952287c55 Doug Berger 2020-04-29  633  
struct bcmgenet_rxnfc_rule *rule)
3e370952287c55 Doug Berger 2020-04-29  634  {
3e370952287c55 Doug Berger 2020-04-29  635  struct ethtool_rx_flow_spec *fs 
= &rule->fs;
3e370952287c55 Doug Berger 2020-04-29  636  int err = 0, offset = 0, 
f_length = 0;
3e370952287c55 Doug Berger 2020-04-29  637  u16 val_16, mask_16;
3e370952287c55 Doug Berger 2020-04-29  638  u8 val_8, mask_8;
3e370952287c55 Doug Berger 2020-04-29  639  size_t size;
3e370952287c55 Doug Berger 2020-04-29  640  u32 *f_data;
3e370952287c55 Doug Berger 2020-04-29  641  
3e370952287c55 Doug Berger 2020-04-29  642  f_data = 
kcalloc(priv->hw_params->hfb_filter_size, sizeof(u32),
3e370952287c55 Doug Berger 2020-04-29  643   GFP_KERNEL);
3e370952287c55 Doug Berger 2020-04-29  644  if (!f_data)
3e370952287c55 Doug Berger 2020-04-29  645  return -ENOMEM;
3e370952287c55 Doug Berger 2020-04-29  646  
3e370952287c55 Doug Berger 2020-04-29  647  if (fs->flow_type & 
FLOW_MAC_EXT) {
3e370952287c55 Doug Berger 2020-04-29  648  
bcmgenet_hfb_insert_data(f_data, 0,
3e370952287c55 Doug Berger 2020-04-29  649  
 &fs->h_ext.h_dest, &fs->m_ext.h_dest,
3e370952287c55 Doug Berger 2020-04-29  650  
 sizeof(fs->h_ext.h_dest));
3e370952287c55 Doug Berger 2020-04-29  651  }
3e370952287c55 Doug Berger 2020-04-29  652  
3e370952287c55 Doug Berger 2020-04-29  653  if (fs->flow_type & FLOW_EXT) {
3e370952287c55 Doug Berger 2020-04-29  654  if 
(fs->m_ext.vlan_etype ||
3e370952287c55 Doug Berger 2020-04-29  655  fs->m_ext.vlan_tci) 
{
3e370952287c55 Doug Berger 2020-04-29  656  
bcmgenet_hfb_insert_data(f_data, 12,
3e370952287c55 Doug Berger 2020-04-29  657  
 &fs->h_ext.vlan_etype,
3e370952287c55 Doug Berger 2020-04-29  658  
 &fs->m_ext.vlan_etype,
3e370952287c55 Doug Berger 2020-04-29  659  
 sizeof(fs->h_ext.vlan_etype));
3e370952287c55 Doug Berger 2020-04-29  660  
bcmgenet_hfb_insert_data(f_data, 14,
3e370952287c55 Doug Berger 2020-04-29  661  
 &fs->h_ext.vlan_tci,
3e370952287c55 Doug Berger 2020-04-29  662  
 &fs->m_ext.vlan_tci,
3e370952287c55 Doug Berger 2020-04-29  663  
 sizeof(fs->h_ext.vlan_tci));
3e370952287c55 Doug Berger 2020-04-29  664  offset += 
VLAN_HLEN;
3e370952287c55 

[kbuild] security/keys/keyring.c:93:27: sparse: expected long ( *read )( ... )

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Waiman, Long," 
CC: David Howells 
CC: Jarkko Sakkinen 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: d3ec10aa95819bff18a0d936b18884c7816d0914 KEYS: Don't write out to 
userspace while holding key semaphore
date:   9 weeks ago
:: branch date: 16 hours ago
:: commit date: 9 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout d3ec10aa95819bff18a0d936b18884c7816d0914
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   security/keys/keyring.c:93:27: sparse: sparse: incorrect type in initializer 
(incompatible argument 2 (different address spaces)) @@ expected long ( 
*read )( ... ) @@ got long ( * )( ... ) @@
>> security/keys/keyring.c:93:27: sparse: expected long ( *read )( ... )
   security/keys/keyring.c:93:27: sparse: got long ( * )( ... )
   security/keys/keyring.c:469:21: sparse: sparse: dereference of noderef 
expression
   security/keys/keyring.c:1234:5: sparse: sparse: context imbalance in 
'__key_link_lock' - wrong count at exit
   security/keys/keyring.c:1256:5: sparse: sparse: context imbalance in 
'__key_move_lock' - wrong count at exit
   security/keys/keyring.c:1396:9: sparse: sparse: context imbalance in 
'__key_link_end' - wrong count at exit
   security/keys/keyring.c:1459:9: sparse: sparse: context imbalance in 
'key_link' - wrong count at exit
   security/keys/keyring.c:1467:12: sparse: sparse: context imbalance in 
'__key_unlink_lock' - wrong count at exit
   security/keys/keyring.c:1520:9: sparse: sparse: context imbalance in 
'__key_unlink_end' - wrong count at exit
   security/keys/keyring.c:1540:5: sparse: sparse: context imbalance in 
'key_unlink' - wrong count at exit
   security/keys/keyring.c:1585:5: sparse: sparse: context imbalance in 
'key_move' - different lock contexts for basic block

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3ec10aa95819bff18a0d936b18884c7816d0914
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout d3ec10aa95819bff18a0d936b18884c7816d0914
vim +93 security/keys/keyring.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  68  
^1da177e4c3f41 Linus Torvalds 2005-04-16  69  /*
973c9f4f49ca96 David Howells  2011-01-20  70   * The keyring key type 
definition.  Keyrings are simply keys of this type and
973c9f4f49ca96 David Howells  2011-01-20  71   * can be treated as ordinary 
keys in addition to having their own special
973c9f4f49ca96 David Howells  2011-01-20  72   * operations.
^1da177e4c3f41 Linus Torvalds 2005-04-16  73   */
5d19e20b534ff4 David Howells  2014-07-18  74  static int 
keyring_preparse(struct key_preparsed_payload *prep);
5d19e20b534ff4 David Howells  2014-07-18  75  static void 
keyring_free_preparse(struct key_preparsed_payload *prep);
^1da177e4c3f41 Linus Torvalds 2005-04-16  76  static int 
keyring_instantiate(struct key *keyring,
cf7f601c067994 David Howells  2012-09-13  77   struct 
key_preparsed_payload *prep);
31204ed925b067 David Howells  2006-06-26  78  static void keyring_revoke(struct 
key *keyring);
^1da177e4c3f41 Linus Torvalds 2005-04-16  79  static void 
keyring_destroy(struct key *keyring);
^1da177e4c3f41 Linus Torvalds 2005-04-16  80  static void 
keyring_describe(const struct key *keyring, struct seq_file *m);
^1da177e4c3f41 Linus Torvalds 2005-04-16  81  static long keyring_read(const 
struct key *keyring,
^1da177e4c3f41 Linus Torvalds 2005-04-16  82 char __user 
*buffer, size_t buflen);
^1da177e4c3f41 Linus Torvalds 2005-04-16  83  
^1da177e4c3f41 Linus Torvalds 2005-04-16  84  struct key_type key_type_keyring 
= {
^1da177e4c3f41 Linus Torvalds 2005-04-16  85.name   = "keyring",
b2a4df200d570b David Howells  2013-09-24  86.def_datalen= 0,
5d19e20b534ff4 David Howells  2014-07-18  87.preparse   = 
keyring_preparse,
5d19e20b534ff4 David Howells  2014-07-18  88.free_preparse  = 
keyring_free_preparse,
^1da177e4c3f41 Linus Torvalds 2005-04-16  89.instantiate= 
keyring_instantiate,
31204ed925b067 David Howells  2006-06-26  90.revoke = 
keyring_revoke,
^1da177e4c3f41 Linus Torvalds 2005-04-16  91.destroy= 
keyring_destroy,
^1da177e4c3f41 Linus Torvalds 2005-04-16  92.describe   = 
keyring_describe,
^1da177e4c3f41 L

[kbuild] arch/x86/ia32/ia32_signal.c:350:9: sparse: expected void const volatile [noderef] *

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Al, Viro," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 57d563c8292569f2849569853e846bf740df5032 x86: ia32_setup_rt_frame(): 
consolidate uaccess areas
date:   10 weeks ago
:: branch date: 15 hours ago
:: commit date: 10 weeks ago
config: x86_64-randconfig-s021-20200601 (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
git checkout 57d563c8292569f2849569853e846bf740df5032
# 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 


sparse warnings: (new ones prefixed by >>)

   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@ expected void const volatile 
[noderef]  * @@ got unsigned long long [usertype] * @@
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: expected void const volatile 
>> [noderef]  *
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: got unsigned long long 
>> [usertype] *
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
space '' of expression

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=57d563c8292569f2849569853e846bf740df5032
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 57d563c8292569f2849569853e846bf740df5032
vim +350 arch/x86/ia32/ia32_signal.c

^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  299 
 
235b80226b986d arch/x86/ia32/ia32_signal.cAl Viro   2012-11-09  300 
 int ia32_setup_rt_frame(int sig, struct ksignal *ksig,
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  301 
compat_sigset_t *set, struct pt_regs *regs)
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  302 
 {
3b0d29ee1c73b6 arch/x86/ia32/ia32_signal.cHiroshi Shimamoto 2008-12-17  303 
struct rt_sigframe_ia32 __user *frame;
af65d64845a90c arch/x86/ia32/ia32_signal.cRoland McGrath2008-01-30  304 
void __user *restorer;
44a1d996325982 arch/x86/ia32/ia32_signal.cAl Viro   2020-02-15  305 
void __user *fp = NULL;
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  306 
 
57d563c8292569 arch/x86/ia32/ia32_signal.cAl Viro   2020-02-15  307 
/* unsafe_put_user optimizes that into a single 8 byte store */
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  308 
static const struct {
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  309 
u8 movl;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  310 
u32 val;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  311 
u16 int80;
9cc3c49ed1b1db arch/x86/ia32/ia32_signal.cHiroshi Shimamoto 2008-11-11  312 
u8  pad;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  313 
} __attribute__((packed)) code = {
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  314 
0xb8,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  315 
__NR_ia32_rt_sigreturn,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  316 
0x80cd,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  317 
0,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   200

[kbuild] block/partitions/core.c:173 check_partition() warn: passing zero to 'ERR_PTR'

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Christoph, Hellwig," 
CC: Jens Axboe 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 387048bf67eeff8bdf7c2a41b03b48230a88b3d3 block: merge 
partition-generic.c and check.c
date:   10 weeks ago
:: branch date: 15 hours ago
:: commit date: 10 weeks ago
config: mips-randconfig-m031-20200601 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 
Reported-by: Dan Carpenter 

smatch warnings:
block/partitions/core.c:173 check_partition() warn: passing zero to 'ERR_PTR'

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=387048bf67eeff8bdf7c2a41b03b48230a88b3d3
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 387048bf67eeff8bdf7c2a41b03b48230a88b3d3
vim +/ERR_PTR +173 block/partitions/core.c

387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  115  
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  116  
static struct parsed_partitions *check_partition(struct gendisk *hd,
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  117  
struct block_device *bdev)
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  118  {
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  119  
struct parsed_partitions *state;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  120  
int i, res, err;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  121  
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  122  
state = allocate_partitions(hd);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  123  
if (!state)
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  124  
return NULL;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  125  
state->pp_buf = (char *)__get_free_page(GFP_KERNEL);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  126  
if (!state->pp_buf) {
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  127  
free_partitions(state);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  128  
return NULL;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  129  
}
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  130  
state->pp_buf[0] = '\0';
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  131  
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  132  
state->bdev = bdev;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  133  
disk_name(hd, 0, state->name);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  134  
snprintf(state->pp_buf, PAGE_SIZE, " %s:", state->name);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  135  
if (isdigit(state->name[strlen(state->name)-1]))
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  136  
sprintf(state->name, "p");
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  137  
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  138  
i = res = err = 0;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  139  
while (!res && check_part[i]) {
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  140  
memset(state->parts, 0, state->limit * sizeof(state->parts[0]));
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  141  
res = check_part[i++](state);
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  142  
if (res < 0) {
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  143  
/*
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  144  
 * We have hit an I/O error which we don't report now.
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  145  
 * But record it, and let the others do their job.
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  146  
 */
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  147  
err = res;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  148  
res = 0;
387048bf67eeff block/partitions/core.c   Christoph Hellwig 2020-03-24  149  
}
387048bf67

[kbuild] [linux-next:master 4817/14131] drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: got restricted __be16 [usertype]

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Doug, Berger," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 3e370952287c55e5fd240cb8bb41ef8acff8829d [4817/14131] net: bcmgenet: 
add support for ethtool rxnfc flows
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout 3e370952287c55e5fd240cb8bb41ef8acff8829d
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: sparse: 
incorrect type in assignment (different base types) @@ expected unsigned 
short [usertype] val_16 @@ got restricted __be16 [usertype] @@
   drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: expected 
unsigned short [usertype] val_16
>> drivers/net/ethernet/broadcom/genet/bcmgenet.c:688:24: sparse: got 
>> restricted __be16 [usertype]
   drivers/net/ethernet/broadcom/genet/bcmgenet.c:782:5: sparse: sparse: symbol 
'bcmgenet_hfb_add_filter' was not declared. Should it be static?
   include/linux/netdevice.h:4052:20: sparse: sparse: shift count is negative 
(-1)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3e370952287c55e5fd240cb8bb41ef8acff8829d
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 3e370952287c55e5fd240cb8bb41ef8acff8829d
vim +688 drivers/net/ethernet/broadcom/genet/bcmgenet.c

3e370952287c55 Doug Berger 2020-04-29  631  
3e370952287c55 Doug Berger 2020-04-29  632  static int 
bcmgenet_hfb_create_rxnfc_filter(struct bcmgenet_priv *priv,
3e370952287c55 Doug Berger 2020-04-29  633  
struct bcmgenet_rxnfc_rule *rule)
3e370952287c55 Doug Berger 2020-04-29  634  {
3e370952287c55 Doug Berger 2020-04-29  635  struct ethtool_rx_flow_spec *fs 
= &rule->fs;
3e370952287c55 Doug Berger 2020-04-29  636  int err = 0, offset = 0, 
f_length = 0;
3e370952287c55 Doug Berger 2020-04-29  637  u16 val_16, mask_16;
3e370952287c55 Doug Berger 2020-04-29  638  u8 val_8, mask_8;
3e370952287c55 Doug Berger 2020-04-29  639  size_t size;
3e370952287c55 Doug Berger 2020-04-29  640  u32 *f_data;
3e370952287c55 Doug Berger 2020-04-29  641  
3e370952287c55 Doug Berger 2020-04-29  642  f_data = 
kcalloc(priv->hw_params->hfb_filter_size, sizeof(u32),
3e370952287c55 Doug Berger 2020-04-29  643   GFP_KERNEL);
3e370952287c55 Doug Berger 2020-04-29  644  if (!f_data)
3e370952287c55 Doug Berger 2020-04-29  645  return -ENOMEM;
3e370952287c55 Doug Berger 2020-04-29  646  
3e370952287c55 Doug Berger 2020-04-29  647  if (fs->flow_type & 
FLOW_MAC_EXT) {
3e370952287c55 Doug Berger 2020-04-29  648  
bcmgenet_hfb_insert_data(f_data, 0,
3e370952287c55 Doug Berger 2020-04-29  649  
 &fs->h_ext.h_dest, &fs->m_ext.h_dest,
3e370952287c55 Doug Berger 2020-04-29  650  
 sizeof(fs->h_ext.h_dest));
3e370952287c55 Doug Berger 2020-04-29  651  }
3e370952287c55 Doug Berger 2020-04-29  652  
3e370952287c55 Doug Berger 2020-04-29  653  if (fs->flow_type & FLOW_EXT) {
3e370952287c55 Doug Berger 2020-04-29  654  if 
(fs->m_ext.vlan_etype ||
3e370952287c55 Doug Berger 2020-04-29  655  fs->m_ext.vlan_tci) 
{
3e370952287c55 Doug Berger 2020-04-29  656  
bcmgenet_hfb_insert_data(f_data, 12,
3e370952287c55 Doug Berger 2020-04-29  657  
 &fs->h_ext.vlan_etype,
3e370952287c55 Doug Berger 2020-04-29  658  
 &fs->m_ext.vlan_etype,
3e370952287c55 Doug Berger 2020-04-29  659  
 sizeof(fs->h_ext.vlan_etype));
3e370952287c55 Doug Berger 2020-04-29  660  
bcmgenet_hfb_insert_data(f_data, 14,
3e370952287c55 Doug Berger 2020-04-29  661  
 &fs->h_ext.vlan_tci,
3e370952287c55 Doug Berger 2020-04-29  662  
 &fs->m_ext.vlan_tci,
3e370952287c55 Doug Berger 2020-04-29  663  
 sizeof(fs->h_ext.vlan_tci));
3e370952287c55 Doug Berger 2020-04-29  664  offset += 
VLAN_HLEN;
3e370952287c55 

[kbuild] fs/xfs/xfs_log_cil.c:1065:9: sparse: sparse: context imbalance in 'xfs_log_commit_cil' - unexpected unlock

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Dave, Chinner," 
CC: "Darrick J. Wong" 
CC: Allison Collins 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 0e7ab7efe77451cba4cbecb6c9f5ef83cf32b36b xfs: Throttle commits on 
delayed background CIL push
date:   9 weeks ago
:: branch date: 15 hours ago
:: commit date: 9 weeks ago
config: ia64-randconfig-s032-20200601 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 0e7ab7efe77451cba4cbecb6c9f5ef83cf32b36b
# save the attached .config to linux build tree
make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   fs/xfs/xfs_log_cil.c:899:1: sparse: sparse: context imbalance in 
'xlog_cil_push_background' - wrong count at exit
>> fs/xfs/xfs_log_cil.c:1065:9: sparse: sparse: context imbalance in 
>> 'xfs_log_commit_cil' - unexpected unlock

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e7ab7efe77451cba4cbecb6c9f5ef83cf32b36b
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 0e7ab7efe77451cba4cbecb6c9f5ef83cf32b36b
vim +/xfs_log_commit_cil +1065 fs/xfs/xfs_log_cil.c

2c6e24ce1aa6b3 Dave Chinner  2013-10-15   997  
a44f13edf0ebb4 Dave Chinner  2010-08-24   998  /*
a44f13edf0ebb4 Dave Chinner  2010-08-24   999   * Commit a transaction with 
the given vector to the Committed Item List.
a44f13edf0ebb4 Dave Chinner  2010-08-24  1000   *
a44f13edf0ebb4 Dave Chinner  2010-08-24  1001   * To do this, we need to 
format the item, pin it in memory if required and
a44f13edf0ebb4 Dave Chinner  2010-08-24  1002   * account for the space 
used by the transaction. Once we have done that we
a44f13edf0ebb4 Dave Chinner  2010-08-24  1003   * need to release the 
unused reservation for the transaction, attach the
a44f13edf0ebb4 Dave Chinner  2010-08-24  1004   * transaction to the 
checkpoint context so we carry the busy extents through
a44f13edf0ebb4 Dave Chinner  2010-08-24  1005   * to checkpoint completion, 
and then unlock all the items in the transaction.
a44f13edf0ebb4 Dave Chinner  2010-08-24  1006   *
a44f13edf0ebb4 Dave Chinner  2010-08-24  1007   * Called with the context 
lock already held in read mode to lock out
a44f13edf0ebb4 Dave Chinner  2010-08-24  1008   * background commit, 
returns without it held once background commits are
a44f13edf0ebb4 Dave Chinner  2010-08-24  1009   * allowed again.
a44f13edf0ebb4 Dave Chinner  2010-08-24  1010   */
c6f9726444c8f8 Jie Liu   2014-02-07  1011  void
a44f13edf0ebb4 Dave Chinner  2010-08-24  1012  xfs_log_commit_cil(
a44f13edf0ebb4 Dave Chinner  2010-08-24  1013   struct xfs_mount
*mp,
a44f13edf0ebb4 Dave Chinner  2010-08-24  1014   struct xfs_trans
*tp,
a44f13edf0ebb4 Dave Chinner  2010-08-24  1015   xfs_lsn_t   
*commit_lsn,
70393313dd0b26 Christoph Hellwig 2015-06-04  1016   bool
regrant)
a44f13edf0ebb4 Dave Chinner  2010-08-24  1017  {
f7bdf03a99efc0 Mark Tinguely 2012-06-14  1018   struct xlog 
*log = mp->m_log;
991aaf65ff0add Dave Chinner  2013-08-12  1019   struct xfs_cil  
*cil = log->l_cilp;
195cd83d1b8835 Christoph Hellwig 2019-06-28  1020   struct xfs_log_item 
*lip, *next;
f990fc5ad13b8f Shan Hai  2017-06-14  1021   xfs_lsn_t   
xc_commit_lsn;
a44f13edf0ebb4 Dave Chinner  2010-08-24  1022  
b1c5ebb21301fc Dave Chinner  2016-07-22  1023   /*
b1c5ebb21301fc Dave Chinner  2016-07-22  1024* Do all necessary 
memory allocation before we lock the CIL.
b1c5ebb21301fc Dave Chinner  2016-07-22  1025* This ensures the 
allocation does not deadlock with a CIL
b1c5ebb21301fc Dave Chinner  2016-07-22  1026* push in memory 
reclaim (e.g. from kswapd).
b1c5ebb21301fc Dave Chinner  2016-07-22  1027*/
b1c5ebb21301fc Dave Chinner  2016-07-22  1028   
xlog_cil_alloc_shadow_bufs(log, tp);
b1c5ebb21301fc Dave Chinner  2016-07-22  1029  
f5baac354db8b6 Dave Chinner  2013-08-12  1030   /* lock out background 
commit */
991aaf65ff0add Dave Chinner  2013-08-12  1031   
down_read(&cil->xc_ctx_lock);
d1583a3833290a Dave Chinner  2010-09-24  1032  
991aaf65ff0add Dave Chinner  2013-08-12  1033   
xlog_cil_insert_items(log, tp);
a44f13edf0ebb4 Dave Chinner  2010-08-24  1034  
f990fc5ad13b8f Shan Hai  2017-06-14  1035   xc

[kbuild] [linux-next:master 3942/14131] net/core/neighbour.c:3460:5: sparse: int extern [addressable] [signed] [toplevel] neigh_proc_dointvec( ... )

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Christoph, Hellwig," 
CC: Al Viro 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass 
kernel pointers to ->proc_handler
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s002-20200601 (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
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   net/core/neighbour.c:3460:5: sparse: sparse: symbol 'neigh_proc_dointvec' 
redeclared with different type (incompatible argument 3 (different address 
spaces)):
>> net/core/neighbour.c:3460:5: sparse:int extern [addressable] [signed] 
>> [toplevel] neigh_proc_dointvec( ... )
>> include/net/neighbour.h:394:5: sparse: note: previously declared as:
   include/net/neighbour.h:394:5: sparse:int extern [addressable] [signed] 
[toplevel] neigh_proc_dointvec( ... )
   net/core/neighbour.c:3470:5: sparse: sparse: symbol 
'neigh_proc_dointvec_jiffies' redeclared with different type (incompatible 
argument 3 (different address spaces)):
>> net/core/neighbour.c:3470:5: sparse:int extern [addressable] [signed] 
>> [toplevel] neigh_proc_dointvec_jiffies( ... )
   include/net/neighbour.h:396:5: sparse: note: previously declared as:
>> include/net/neighbour.h:396:5: sparse:int extern [addressable] [signed] 
>> [toplevel] neigh_proc_dointvec_jiffies( ... )
   net/core/neighbour.c:3490:5: sparse: sparse: symbol 
'neigh_proc_dointvec_ms_jiffies' redeclared with different type (incompatible 
argument 3 (different address spaces)):
   net/core/neighbour.c:3490:5: sparse:int extern [addressable] [signed] 
[toplevel] neigh_proc_dointvec_ms_jiffies( ... )
   include/net/neighbour.h:399:5: sparse: note: previously declared as:
   include/net/neighbour.h:399:5: sparse:int extern [addressable] [signed] 
[toplevel] neigh_proc_dointvec_ms_jiffies( ... )
   net/core/neighbour.c:348:12: sparse: sparse: context imbalance in 
'__neigh_ifdown' - wrong count at exit
   net/core/neighbour.c:803:9: sparse: sparse: context imbalance in 
'pneigh_ifdown_and_unlock' - unexpected unlock
--
   drivers/char/random.c:2100:50: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void * @@ got void [noderef] 
 *buffer @@
>> drivers/char/random.c:2100:50: sparse: expected void *
   drivers/char/random.c:2100:50: sparse: got void [noderef]  *buffer
   drivers/char/random.c:2117:35: sparse: sparse: incorrect type in initializer 
(incompatible argument 3 (different address spaces)) @@ expected int ( 
[usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@
   drivers/char/random.c:2117:35: sparse: expected int ( [usertype] 
*proc_handler )( ... )
>> drivers/char/random.c:2117:35: sparse: got int ( * )( ... )
--
   net/ipv6/ndisc.c:1850:55: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void [noderef]  *buffer @@
 got void *buffer @@
>> net/ipv6/ndisc.c:1850:55: sparse: expected void [noderef]  *buffer
   net/ipv6/ndisc.c:1850:55: sparse: got void *buffer
   net/ipv6/ndisc.c:1854:51: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void [noderef]  *buffer @@
 got void *buffer @@
   net/ipv6/ndisc.c:1854:51: sparse: expected void [noderef]  *buffer
   net/ipv6/ndisc.c:1854:51: sparse: got void *buffer
   net/ipv6/ndisc.c:1859:54: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void [noderef]  *buffer @@
 got void *buffer @@
   net/ipv6/ndisc.c:1859:54: sparse: expected void [noderef]  *buffer
   net/ipv6/ndisc.c:1859:54: sparse: got void *buffer
   net/ipv6/ndisc.c:1838:5: sparse: sparse: symbol 'ndisc_ifinfo_sysctl_change' 
redeclared with different type (incompatible argument 3 (different address 
spaces)):
   net/ipv6/ndisc.c:1838:5: sparse:int extern [addressable] [signed] 
[toplevel] ndisc_ifinfo_sysctl_change( ... )
   include/net/ndisc.h:496:5: sparse: note: previously declared as:
   include/net/ndisc.h:496:5: sparse:int extern [addressable] [signed] 
[toplevel] ndisc_ifinfo_sysctl_change( ... )
   include/net/addrconf.h:478:36: sparse: sparse: restricted __be32 degrades to 
integer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/c

[kbuild] [linux-next:master 2996/14131] sound/soc/fsl/fsl_asrc.c:1050:60: sparse: got restricted snd_pcm_format_t *

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Shengjiu, Wang," 
CC: Mark Brown 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 4520af41fd21863d026d53c7e1eb987509cb3c24 [2996/14131] ASoC: fsl_asrc: 
Support new property fsl,asrc-format
:: branch date: 3 days ago
:: commit date: 6 weeks ago
config: openrisc-randconfig-s031-20200601 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 4520af41fd21863d026d53c7e1eb987509cb3c24
# save the attached .config to linux build tree
make W=1 C=1 ARCH=openrisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   sound/soc/fsl/fsl_asrc.c:1050:60: sparse: sparse: incorrect type in argument 
3 (different base types) @@ expected unsigned int [usertype] *out_value @@  
   got restricted snd_pcm_format_t * @@
   sound/soc/fsl/fsl_asrc.c:1050:60: sparse: expected unsigned int 
[usertype] *out_value
>> sound/soc/fsl/fsl_asrc.c:1050:60: sparse: got restricted 
>> snd_pcm_format_t *
   sound/soc/fsl/fsl_asrc.c:1073:47: sparse: sparse: restricted 
snd_pcm_format_t degrades to integer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4520af41fd21863d026d53c7e1eb987509cb3c24
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 4520af41fd21863d026d53c7e1eb987509cb3c24
vim +1050 sound/soc/fsl/fsl_asrc.c

3117bb3109dc22 Nicolin Chen  2014-07-29   933  
3117bb3109dc22 Nicolin Chen  2014-07-29   934  static int fsl_asrc_probe(struct 
platform_device *pdev)
3117bb3109dc22 Nicolin Chen  2014-07-29   935  {
3117bb3109dc22 Nicolin Chen  2014-07-29   936   struct device_node *np = 
pdev->dev.of_node;
7470704d8b425c Shengjiu Wang 2020-04-16   937   struct fsl_asrc *asrc;
3117bb3109dc22 Nicolin Chen  2014-07-29   938   struct resource *res;
3117bb3109dc22 Nicolin Chen  2014-07-29   939   void __iomem *regs;
3117bb3109dc22 Nicolin Chen  2014-07-29   940   int irq, ret, i;
c05f10f28ef697 Shengjiu Wang 2019-12-04   941   u32 map_idx;
3117bb3109dc22 Nicolin Chen  2014-07-29   942   char tmp[16];
4520af41fd2186 Shengjiu Wang 2020-04-16   943   u32 width;
3117bb3109dc22 Nicolin Chen  2014-07-29   944  
7470704d8b425c Shengjiu Wang 2020-04-16   945   asrc = devm_kzalloc(&pdev->dev, 
sizeof(*asrc), GFP_KERNEL);
7470704d8b425c Shengjiu Wang 2020-04-16   946   if (!asrc)
3117bb3109dc22 Nicolin Chen  2014-07-29   947   return -ENOMEM;
3117bb3109dc22 Nicolin Chen  2014-07-29   948  
7470704d8b425c Shengjiu Wang 2020-04-16   949   asrc->pdev = pdev;
3117bb3109dc22 Nicolin Chen  2014-07-29   950  
3117bb3109dc22 Nicolin Chen  2014-07-29   951   /* Get the addresses and IRQ */
3117bb3109dc22 Nicolin Chen  2014-07-29   952   res = 
platform_get_resource(pdev, IORESOURCE_MEM, 0);
3117bb3109dc22 Nicolin Chen  2014-07-29   953   regs = 
devm_ioremap_resource(&pdev->dev, res);
3117bb3109dc22 Nicolin Chen  2014-07-29   954   if (IS_ERR(regs))
3117bb3109dc22 Nicolin Chen  2014-07-29   955   return PTR_ERR(regs);
3117bb3109dc22 Nicolin Chen  2014-07-29   956  
7470704d8b425c Shengjiu Wang 2020-04-16   957   asrc->paddr = res->start;
3117bb3109dc22 Nicolin Chen  2014-07-29   958  
7470704d8b425c Shengjiu Wang 2020-04-16   959   asrc->regmap = 
devm_regmap_init_mmio_clk(&pdev->dev, "mem", regs,
3117bb3109dc22 Nicolin Chen  2014-07-29   960   
 &fsl_asrc_regmap_config);
7470704d8b425c Shengjiu Wang 2020-04-16   961   if (IS_ERR(asrc->regmap)) {
3117bb3109dc22 Nicolin Chen  2014-07-29   962   dev_err(&pdev->dev, 
"failed to init regmap\n");
7470704d8b425c Shengjiu Wang 2020-04-16   963   return 
PTR_ERR(asrc->regmap);
3117bb3109dc22 Nicolin Chen  2014-07-29   964   }
3117bb3109dc22 Nicolin Chen  2014-07-29   965  
3117bb3109dc22 Nicolin Chen  2014-07-29   966   irq = platform_get_irq(pdev, 0);
cf9441adb1a355 Stephen Boyd  2019-07-30   967   if (irq < 0)
3117bb3109dc22 Nicolin Chen  2014-07-29   968   return irq;
3117bb3109dc22 Nicolin Chen  2014-07-29   969  
3117bb3109dc22 Nicolin Chen  2014-07-29   970   ret = 
devm_request_irq(&pdev->dev, irq, fsl_asrc_isr, 0,
7470704d8b425c Shengjiu Wang 2020-04-16   971  
dev_name(&pdev->dev), asrc);
3117bb3109dc22 Nicolin Chen  2014-07-29   972   if (ret) {
3117bb3109dc22 Nicolin Chen  2014-07-29   973   dev_err(&pdev->dev, 
"failed to claim irq %u: %d\n", irq, ret);
3117bb3109dc22 Nicolin Chen  2014-07-29   974   return ret;
3117b

[kbuild] Re: [Intel-gfx] [PATCH v1] drm/i915: Fix wrong CDCLK adjustment changes

2020-06-01 Thread Dan Carpenter
Hi Stanislav,

url:
https://github.com/0day-ci/linux/commits/Stanislav-Lisovskiy/drm-i915-Fix-wrong-CDCLK-adjustment-changes/20200526-180642
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
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 
Reported-by: Dan Carpenter 

smatch warnings:
drivers/gpu/drm/i915/display/intel_bw.c:453 skl_bw_calc_min_cdclk() error: 
uninitialized symbol 'pipe'.

# 
https://github.com/0day-ci/linux/commit/21b0324886122a396687d977d67eb6ce3caf2b17
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 21b0324886122a396687d977d67eb6ce3caf2b17
vim +/pipe +453 drivers/gpu/drm/i915/display/intel_bw.c

366b6200f76e0f Jani Nikula 2019-08-06  430  
cd19154608610a Stanislav Lisovskiy 2020-05-20  431  int 
skl_bw_calc_min_cdclk(struct intel_atomic_state *state)
cd19154608610a Stanislav Lisovskiy 2020-05-20  432  {
cd19154608610a Stanislav Lisovskiy 2020-05-20  433  struct drm_i915_private 
*dev_priv = to_i915(state->base.dev);
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  434  struct intel_bw_state 
*new_bw_state = NULL;
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  435  struct intel_bw_state 
*old_bw_state = NULL;
cd19154608610a Stanislav Lisovskiy 2020-05-20  436  const struct 
intel_crtc_state *crtc_state;
cd19154608610a Stanislav Lisovskiy 2020-05-20  437  struct intel_crtc *crtc;
cd19154608610a Stanislav Lisovskiy 2020-05-20  438  int max_bw = 0;
cd19154608610a Stanislav Lisovskiy 2020-05-20  439  int slice_id;
21b0324886122a Stanislav Lisovskiy 2020-05-26  440  enum pipe pipe;
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  441  int i;
cd19154608610a Stanislav Lisovskiy 2020-05-20  442  
cd19154608610a Stanislav Lisovskiy 2020-05-20  443  
for_each_new_intel_crtc_in_state(state, crtc, crtc_state, i) {
cd19154608610a Stanislav Lisovskiy 2020-05-20  444  enum plane_id 
plane_id;
cd19154608610a Stanislav Lisovskiy 2020-05-20  445  struct 
intel_dbuf_bw *crtc_bw;
cd19154608610a Stanislav Lisovskiy 2020-05-20  446  
cd19154608610a Stanislav Lisovskiy 2020-05-20  447  new_bw_state = 
intel_atomic_get_bw_state(state);
cd19154608610a Stanislav Lisovskiy 2020-05-20  448  if 
(IS_ERR(new_bw_state))
cd19154608610a Stanislav Lisovskiy 2020-05-20  449  return 
PTR_ERR(new_bw_state);
cd19154608610a Stanislav Lisovskiy 2020-05-20  450  
21b0324886122a Stanislav Lisovskiy 2020-05-26  451  old_bw_state = 
intel_atomic_get_old_bw_state(state);
21b0324886122a Stanislav Lisovskiy 2020-05-26  452  
21b0324886122a Stanislav Lisovskiy 2020-05-26 @453  crtc_bw = 
&new_bw_state->dbuf_bw[pipe];

 
Not initialized.  Probably "i" was intended?

cd19154608610a Stanislav Lisovskiy 2020-05-20  454  
cd19154608610a Stanislav Lisovskiy 2020-05-20  455  
memset(&crtc_bw->used_bw, 0, sizeof(crtc_bw->used_bw));
cd19154608610a Stanislav Lisovskiy 2020-05-20  456  
cd19154608610a Stanislav Lisovskiy 2020-05-20  457  
for_each_plane_id_on_crtc(crtc, plane_id) {
cd19154608610a Stanislav Lisovskiy 2020-05-20  458  const 
struct skl_ddb_entry *plane_alloc =
cd19154608610a Stanislav Lisovskiy 2020-05-20  459  
&crtc_state->wm.skl.plane_ddb_y[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  460  const 
struct skl_ddb_entry *uv_plane_alloc =
cd19154608610a Stanislav Lisovskiy 2020-05-20  461  
&crtc_state->wm.skl.plane_ddb_uv[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  462  
unsigned int data_rate = crtc_state->data_rate[plane_id];
cd19154608610a Stanislav Lisovskiy 2020-05-20  463  
unsigned int dbuf_mask = 0;
cd19154608610a Stanislav Lisovskiy 2020-05-20  464  
cd19154608610a Stanislav Lisovskiy 2020-05-20  465  
dbuf_mask |= skl_ddb_dbuf_slice_mask(dev_priv, plane_alloc);
cd19154608610a Stanislav Lisovskiy 2020-05-20  466  
dbuf_mask |= skl_ddb_dbuf_slice_mask(dev_priv, uv_plane_alloc);
cd19154608610a Stanislav Lisovskiy 2020-05-20  467  
cd19154608610a Stanislav Lisovskiy 2020-05-20  468  /*
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  469   * 
FIXME: To calculate that more properly we probably
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  470   * need 
to to split per plane data_rate into data_rate_y
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  471   * and 
data_rate_uv for multiplanar formats in order not
cac91e671ad5dc Stanislav Lisovskiy 2020-05-22  472   * to

[kbuild] drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: got restricted __be32

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Florian, Fainelli," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3 net: dsa: bcm_sf2: Support 
specifying VLAN tag egress rule
date:   9 weeks ago
:: branch date: 14 hours ago
:: commit date: 9 weeks ago
config: x86_64-randconfig-s022-20200601 (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
git checkout 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
# 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 


sparse warnings: (new ones prefixed by >>)

   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: expected restricted __be16 
[usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: got int
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: expected restricted __be16 
[usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: got int
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: incorrect type in 
argument 1 (different base types) @@ expected unsigned int [usertype] val 
@@ got restricted __be32 @@
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: expected unsigned int 
[usertype] val
>> drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: got restricted __be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: restricted __be32 
degrades to integer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
vim +890 drivers/net/dsa/bcm_sf2_cfp.c

ba0696c22e7c5b Florian Fainelli 2017-10-20  845  
ce24b08a2e6f7c Florian Fainelli 2018-11-06  846  static int 
bcm_sf2_cfp_rule_insert(struct dsa_switch *ds, int port,
3306145866b62f Florian Fainelli 2017-10-20  847 
   struct ethtool_rx_flow_spec *fs)
3306145866b62f Florian Fainelli 2017-10-20  848  {
3306145866b62f Florian Fainelli 2017-10-20  849 struct bcm_sf2_priv 
*priv = bcm_sf2_to_priv(ds);
68bb8ea8ad0d49 Vivien Didelot   2019-10-21  850 s8 cpu_port = 
dsa_to_port(ds, port)->cpu_dp->index;
8a75f4f2acd78a Florian Fainelli 2018-08-07  851 __u64 ring_cookie = 
fs->ring_cookie;
8b3abe304c5f10 Florian Fainelli 2020-03-30  852 struct 
switchdev_obj_port_vlan vlan;
3306145866b62f Florian Fainelli 2017-10-20  853 unsigned int queue_num, 
port_num;
8b3abe304c5f10 Florian Fainelli 2020-03-30  854 u16 vid;
ce24b08a2e6f7c Florian Fainelli 2018-11-06  855 int ret;
ae7a5aff783c79 Florian Fainelli 2018-11-06  856  
8a75f4f2acd78a Florian Fainelli 2018-08-07  857 /* This rule is a 
Wake-on-LAN filter and we must specifically
8a75f4f2acd78a Florian Fainelli 2018-08-07  858  * target the CPU port 
in order for it to be working.
8a75f4f2acd78a Florian Fainelli 2018-08-07  859  */
8a75f4f2acd78a Florian Fainelli 2018-08-07  860 if (ring_cookie == 
RX_CLS_FLOW_WAKE)
8a75f4f2acd78a Florian Fainelli 2018-08-07  861 ring_cookie = 
cpu_port * SF2_NUM_EGRESS_QUEUES;
8a75f4f2acd78a Florian Fainelli 2018-08-07  862  
3306145866b62f Florian Fainelli 2017-10-20  863 /* We do not support 
discarding packets, check that the
3306145866b62f Florian Fainelli 2017-10-20  864  * destination port is 
enabled and that we are within the
3306145866b62f Florian Fainelli 2017-10-20  865  * number of ports 
supported by the switch
3306145866b62f Florian Fainelli 2017-10-20  866  */
8a75f4f2acd78a Florian Fainelli 2018-08-07  867 port_num = ring_cookie 
/ SF2_NUM_EGRESS_QUEUES;
3306145866b62f Florian Fainelli 2017-10-20  868 

[kbuild] drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: expected unsigned int [usertype] val

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Florian, Fainelli," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3 net: dsa: bcm_sf2: Support 
specifying VLAN tag egress rule
date:   9 weeks ago
:: branch date: 14 hours ago
:: commit date: 9 weeks ago
config: x86_64-randconfig-s022-20200601 (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
git checkout 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
# 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 


sparse warnings: (new ones prefixed by >>)

   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: expected restricted __be16 
[usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:352:44: sparse: got int
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: expected restricted __be16 
[usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:633:43: sparse: got int
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: incorrect type in 
argument 1 (different base types) @@ expected unsigned int [usertype] val 
@@ got restricted __be32 @@
>> drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: expected unsigned int 
>> [usertype] val
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: got restricted __be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: cast from restricted 
__be32
   drivers/net/dsa/bcm_sf2_cfp.c:890:21: sparse: sparse: restricted __be32 
degrades to integer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 8b3abe304c5f1057b7bac70fd5576dfa67e3e2b3
vim +890 drivers/net/dsa/bcm_sf2_cfp.c

ba0696c22e7c5b Florian Fainelli 2017-10-20  845  
ce24b08a2e6f7c Florian Fainelli 2018-11-06  846  static int 
bcm_sf2_cfp_rule_insert(struct dsa_switch *ds, int port,
3306145866b62f Florian Fainelli 2017-10-20  847 
   struct ethtool_rx_flow_spec *fs)
3306145866b62f Florian Fainelli 2017-10-20  848  {
3306145866b62f Florian Fainelli 2017-10-20  849 struct bcm_sf2_priv 
*priv = bcm_sf2_to_priv(ds);
68bb8ea8ad0d49 Vivien Didelot   2019-10-21  850 s8 cpu_port = 
dsa_to_port(ds, port)->cpu_dp->index;
8a75f4f2acd78a Florian Fainelli 2018-08-07  851 __u64 ring_cookie = 
fs->ring_cookie;
8b3abe304c5f10 Florian Fainelli 2020-03-30  852 struct 
switchdev_obj_port_vlan vlan;
3306145866b62f Florian Fainelli 2017-10-20  853 unsigned int queue_num, 
port_num;
8b3abe304c5f10 Florian Fainelli 2020-03-30  854 u16 vid;
ce24b08a2e6f7c Florian Fainelli 2018-11-06  855 int ret;
ae7a5aff783c79 Florian Fainelli 2018-11-06  856  
8a75f4f2acd78a Florian Fainelli 2018-08-07  857 /* This rule is a 
Wake-on-LAN filter and we must specifically
8a75f4f2acd78a Florian Fainelli 2018-08-07  858  * target the CPU port 
in order for it to be working.
8a75f4f2acd78a Florian Fainelli 2018-08-07  859  */
8a75f4f2acd78a Florian Fainelli 2018-08-07  860 if (ring_cookie == 
RX_CLS_FLOW_WAKE)
8a75f4f2acd78a Florian Fainelli 2018-08-07  861 ring_cookie = 
cpu_port * SF2_NUM_EGRESS_QUEUES;
8a75f4f2acd78a Florian Fainelli 2018-08-07  862  
3306145866b62f Florian Fainelli 2017-10-20  863 /* We do not support 
discarding packets, check that the
3306145866b62f Florian Fainelli 2017-10-20  864  * destination port is 
enabled and that we are within the
3306145866b62f Florian Fainelli 2017-10-20  865  * number of ports 
supported by the switch
3306145866b62f Florian Fainelli 2017-10-20  866  */
8a75f4f2acd78a Florian Fainelli 2018-08-07  867 port_num = ring_cookie 
/ SF2_NUM_EGRESS_QUEUES;
3306145866b62f Florian Fainelli 2017-10

[kbuild] [rdma-rdma:for-next 81/228] drivers/infiniband/core/cm.c:2533:12: sparse: sparse: context imbalance in 'cm_establish_handler' - different lock contexts for basic block

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Jason, Gunthorpe," 
CC: Leon Romanovsky 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
head:   0258b569a53b87742104a3ecb1d1204d5974a28b
commit: e83f195aa45c1ffd73b3a950a887e41c260cf194 [81/228] RDMA/cm: Pull 
duplicated code into cm_queue_work_unlock()
:: branch date: 3 days ago
:: commit date: 3 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout e83f195aa45c1ffd73b3a950a887e41c260cf194
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/infiniband/core/cm.c:1297:21: sparse: sparse: cast from restricted 
__be32
   drivers/infiniband/core/cm.c:936:24: sparse: sparse: context imbalance in 
'cm_queue_work_unlock' - unexpected unlock
   drivers/infiniband/core/cm.c:2043:12: sparse: sparse: context imbalance in 
'cm_req_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2422:12: sparse: sparse: context imbalance in 
'cm_rep_handler' - different lock contexts for basic block
>> drivers/infiniband/core/cm.c:2533:12: sparse: sparse: context imbalance in 
>> 'cm_establish_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2556:12: sparse: sparse: context imbalance in 
'cm_rtu_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2770:12: sparse: sparse: context imbalance in 
'cm_dreq_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2847:12: sparse: sparse: context imbalance in 
'cm_drep_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:2995:12: sparse: sparse: context imbalance in 
'cm_rej_handler' - wrong count at exit
   drivers/infiniband/core/cm.c:3153:12: sparse: sparse: context imbalance in 
'cm_mra_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:3271:12: sparse: sparse: context imbalance in 
'cm_lap_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:3360:12: sparse: sparse: context imbalance in 
'cm_apr_handler' - different lock contexts for basic block
   drivers/infiniband/core/cm.c:3405:12: sparse: sparse: context imbalance in 
'cm_timewait_handler' - different lock contexts for basic block

# 
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=e83f195aa45c1ffd73b3a950a887e41c260cf194
git remote add rdma-rdma 
https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git remote update rdma-rdma
git checkout e83f195aa45c1ffd73b3a950a887e41c260cf194
vim +/cm_establish_handler +2533 drivers/infiniband/core/cm.c

a977049dacdef6 Hal Rosenstock  2005-07-27  2532  
a977049dacdef6 Hal Rosenstock  2005-07-27 @2533  static int 
cm_establish_handler(struct cm_work *work)
a977049dacdef6 Hal Rosenstock  2005-07-27  2534  {
a977049dacdef6 Hal Rosenstock  2005-07-27  2535 struct cm_id_private 
*cm_id_priv;
a977049dacdef6 Hal Rosenstock  2005-07-27  2536  
e1444b5a163e81 Sean Hefty  2006-11-28  2537 /* See comment in 
cm_establish about lookup. */
a977049dacdef6 Hal Rosenstock  2005-07-27  2538 cm_id_priv = 
cm_acquire_id(work->local_id, work->remote_id);
a977049dacdef6 Hal Rosenstock  2005-07-27  2539 if (!cm_id_priv)
a977049dacdef6 Hal Rosenstock  2005-07-27  2540 return -EINVAL;
a977049dacdef6 Hal Rosenstock  2005-07-27  2541  
24be6e81c78314 Sean Hefty  2007-06-18  2542 
spin_lock_irq(&cm_id_priv->lock);
a977049dacdef6 Hal Rosenstock  2005-07-27  2543 if 
(cm_id_priv->id.state != IB_CM_ESTABLISHED) {
24be6e81c78314 Sean Hefty  2007-06-18  2544 
spin_unlock_irq(&cm_id_priv->lock);
a977049dacdef6 Hal Rosenstock  2005-07-27  2545 goto out;
a977049dacdef6 Hal Rosenstock  2005-07-27  2546 }
a977049dacdef6 Hal Rosenstock  2005-07-27  2547  
34816ad98efe4d Sean Hefty  2005-10-25  2548 
ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg);
e83f195aa45c1f Jason Gunthorpe 2020-05-06  2549 
cm_queue_work_unlock(cm_id_priv, work);
a977049dacdef6 Hal Rosenstock  2005-07-27  2550 return 0;
a977049dacdef6 Hal Rosenstock  2005-07-27  2551  out:
a977049dacdef6 Hal Rosenstock  2005-07-27  2552 cm_deref_id(cm_id_priv);
a977049dacdef6 Hal Rosenstock  2005-07-27  2553 return -EINVAL;
a977049dacdef6 Hal Rosenstock  2005-07-27  2554  }
a977049dacdef6 Hal Rosens

[kbuild] [linux-next:master 3191/14131] drivers/net/ethernet/mscc/ocelot_flower.c:184:54: sparse: got restricted __be16 [usertype]

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Vladimir, Oltean," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 86b956de119c09818d0aabaf668280d8e4bd0d4b [3191/14131] net: mscc: 
ocelot: support matching on EtherType
:: branch date: 3 days ago
:: commit date: 6 weeks ago
config: openrisc-randconfig-s031-20200601 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 86b956de119c09818d0aabaf668280d8e4bd0d4b
# save the attached .config to linux build tree
make W=1 C=1 ARCH=openrisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/mscc/ocelot_flower.c:184:54: sparse: sparse: incorrect 
type in assignment (different base types) @@ expected unsigned short 
[usertype] @@ got restricted __be16 [usertype] @@
   drivers/net/ethernet/mscc/ocelot_flower.c:184:54: sparse: expected 
unsigned short [usertype]
>> drivers/net/ethernet/mscc/ocelot_flower.c:184:54: sparse: got restricted 
>> __be16 [usertype]

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=86b956de119c09818d0aabaf668280d8e4bd0d4b
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 86b956de119c09818d0aabaf668280d8e4bd0d4b
vim +184 drivers/net/ethernet/mscc/ocelot_flower.c

fe3490e6107e10 Horatiu Vultur2019-05-31   48  
f9e30088d20016 Pablo Neira Ayuso 2019-07-09   49  static int 
ocelot_flower_parse(struct flow_cls_offload *f,
ce6659c55b7dad Vladimir Oltean   2020-02-29   50   
struct ocelot_ace_rule *ace)
fe3490e6107e10 Horatiu Vultur2019-05-31   51  {
f9e30088d20016 Pablo Neira Ayuso 2019-07-09   52struct flow_rule *rule 
= flow_cls_offload_flow_rule(f);
fe3490e6107e10 Horatiu Vultur2019-05-31   53struct flow_dissector 
*dissector = rule->match.dissector;
86b956de119c09 Vladimir Oltean   2020-04-20   54u16 proto = 
ntohs(f->common.protocol);
86b956de119c09 Vladimir Oltean   2020-04-20   55bool match_protocol = 
true;
fe3490e6107e10 Horatiu Vultur2019-05-31   56  
fe3490e6107e10 Horatiu Vultur2019-05-31   57if 
(dissector->used_keys &
fe3490e6107e10 Horatiu Vultur2019-05-31   58
~(BIT(FLOW_DISSECTOR_KEY_CONTROL) |
fe3490e6107e10 Horatiu Vultur2019-05-31   59  
BIT(FLOW_DISSECTOR_KEY_BASIC) |
fe3490e6107e10 Horatiu Vultur2019-05-31   60  
BIT(FLOW_DISSECTOR_KEY_PORTS) |
fe3490e6107e10 Horatiu Vultur2019-05-31   61  
BIT(FLOW_DISSECTOR_KEY_VLAN) |
fe3490e6107e10 Horatiu Vultur2019-05-31   62  
BIT(FLOW_DISSECTOR_KEY_IPV4_ADDRS) |
fe3490e6107e10 Horatiu Vultur2019-05-31   63  
BIT(FLOW_DISSECTOR_KEY_IPV6_ADDRS) |
fe3490e6107e10 Horatiu Vultur2019-05-31   64  
BIT(FLOW_DISSECTOR_KEY_ETH_ADDRS))) {
fe3490e6107e10 Horatiu Vultur2019-05-31   65return 
-EOPNOTSUPP;
fe3490e6107e10 Horatiu Vultur2019-05-31   66}
fe3490e6107e10 Horatiu Vultur2019-05-31   67  
fe3490e6107e10 Horatiu Vultur2019-05-31   68if 
(flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) {
fe3490e6107e10 Horatiu Vultur2019-05-31   69struct 
flow_match_control match;
fe3490e6107e10 Horatiu Vultur2019-05-31   70  
fe3490e6107e10 Horatiu Vultur2019-05-31   71
flow_rule_match_control(rule, &match);
fe3490e6107e10 Horatiu Vultur2019-05-31   72}
fe3490e6107e10 Horatiu Vultur2019-05-31   73  
fe3490e6107e10 Horatiu Vultur2019-05-31   74if 
(flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
fe3490e6107e10 Horatiu Vultur2019-05-31   75struct 
flow_match_eth_addrs match;
fe3490e6107e10 Horatiu Vultur2019-05-31   76  
fe3490e6107e10 Horatiu Vultur2019-05-31   77/* The hw 
support mac matches only for MAC_ETYPE key,
fe3490e6107e10 Horatiu Vultur2019-05-31   78 * therefore if 
other matches(port, tcp flags, etc) are added
fe3490e6107e10 Horatiu Vultur2019-05-31   79 * then just 
bail out
fe3490e6107e10 Horatiu Vultur2019-05-31   80 */
fe3490e6107e10 Horatiu Vultur2019-05-31   81if 
((dissector->used_keys &
fe3490e6107e10 Horatiu Vultur2019-05-31   82
(BIT(FLOW_DISSECTOR_KEY_ETH_ADDRS) |
fe3490e6107e10 Horatiu Vultur2019-05-31   83 
BIT(FLOW_DISSECTOR_KEY_BASIC) |
fe3490e6107e10 Horatiu Vultur2019-05-31   84 
BIT(

[kbuild] [kdave:for-5.8 2/133] fs/btrfs/locking.c:534:22: sparse: sparse: context imbalance in 'btrfs_lock_root_node' - wrong count at exit

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Jules, Irenge," 
CC: David Sterba 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.8
head:   2166e5edce9ac1edf3b113d6091ef72fcac2d6c4
commit: 78d933c79cb649906577715af15400c7724ca633 [2/133] btrfs: add missing 
annotation for btrfs_tree_lock()
:: branch date: 4 days ago
:: commit date: 7 days ago
config: x86_64-randconfig-s022-20200601 (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
git checkout 78d933c79cb649906577715af15400c7724ca633
# 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 


sparse warnings: (new ones prefixed by >>)

   include/linux/kasan-checks.h:38:20: sparse: sparse: context imbalance in 
'btrfs_set_lock_blocking_read' - unexpected unlock
   fs/btrfs/locking.c:232:41: sparse: sparse: context imbalance in 
'btrfs_set_lock_blocking_write' - unexpected unlock
   fs/btrfs/locking.c:247:6: sparse: sparse: context imbalance in 
'btrfs_tree_read_lock' - different lock contexts for basic block
   fs/btrfs/locking.c:288:5: sparse: sparse: context imbalance in 
'btrfs_tree_read_lock_atomic' - different lock contexts for basic block
   fs/btrfs/locking.c:310:5: sparse: sparse: context imbalance in 
'btrfs_try_tree_read_lock' - different lock contexts for basic block
   fs/btrfs/locking.c:335:5: sparse: sparse: context imbalance in 
'btrfs_try_tree_write_lock' - different lock contexts for basic block
   include/linux/kasan-checks.h:38:20: sparse: sparse: context imbalance in 
'btrfs_tree_read_unlock' - unexpected unlock
   fs/btrfs/locking.c:129:9: sparse: sparse: context imbalance in 
'btrfs_tree_unlock' - unexpected unlock
>> fs/btrfs/locking.c:534:22: sparse: sparse: context imbalance in 
>> 'btrfs_lock_root_node' - wrong count at exit

# 
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git/commit/?id=78d933c79cb649906577715af15400c7724ca633
git remote add kdave 
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git
git remote update kdave
git checkout 78d933c79cb649906577715af15400c7724ca633
vim +/btrfs_lock_root_node +534 fs/btrfs/locking.c

b908c334e7a419 David Sterba 2020-02-05  527  
b908c334e7a419 David Sterba 2020-02-05  528  /*
b908c334e7a419 David Sterba 2020-02-05  529   * Loop around taking references 
on and locking the root node of the tree until
b908c334e7a419 David Sterba 2020-02-05  530   * we end up with a lock on the 
root node.
b908c334e7a419 David Sterba 2020-02-05  531   *
b908c334e7a419 David Sterba 2020-02-05  532   * Return: root extent buffer with 
write lock held
b908c334e7a419 David Sterba 2020-02-05  533   */
b908c334e7a419 David Sterba 2020-02-05 @534  struct extent_buffer 
*btrfs_lock_root_node(struct btrfs_root *root)
b908c334e7a419 David Sterba 2020-02-05  535  {
b908c334e7a419 David Sterba 2020-02-05  536 struct extent_buffer *eb;
b908c334e7a419 David Sterba 2020-02-05  537  
b908c334e7a419 David Sterba 2020-02-05  538 while (1) {
b908c334e7a419 David Sterba 2020-02-05  539 eb = 
btrfs_root_node(root);
b908c334e7a419 David Sterba 2020-02-05  540 btrfs_tree_lock(eb);
b908c334e7a419 David Sterba 2020-02-05  541 if (eb == root->node)
b908c334e7a419 David Sterba 2020-02-05  542 break;
b908c334e7a419 David Sterba 2020-02-05  543 btrfs_tree_unlock(eb);
b908c334e7a419 David Sterba 2020-02-05  544 free_extent_buffer(eb);
b908c334e7a419 David Sterba 2020-02-05  545 }
b908c334e7a419 David Sterba 2020-02-05  546 return eb;
b908c334e7a419 David Sterba 2020-02-05  547  }
b908c334e7a419 David Sterba 2020-02-05  548  

:: The code at line 534 was first introduced by commit
:: b908c334e7a419e5cd08a45d31284b4a93de3bd7 btrfs: move root node locking 
helpers to locking.c

:: TO: David Sterba 
:: CC: David Sterba 

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [linux-next:master 10504/14131] net/ipv6/mcast.c:606:34: sparse: expected void [noderef] *to

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Al, Viro," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 931ca7ab7fe804d77bc6952f1512950c0d870f26 [10504/14131] ip*_mc_gsfget(): 
lift copyout of struct group_filter into callers
:: branch date: 3 days ago
:: commit date: 12 days ago
config: microblaze-randconfig-s032-20200601 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 931ca7ab7fe804d77bc6952f1512950c0d870f26
# save the attached .config to linux build tree
make W=1 C=1 ARCH=microblaze CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   include/linux/byteorder/big_endian.h:8:2: sparse: sparse: inconsistent 
configuration, needs CONFIG_CPU_BIG_ENDIAN
   net/ipv6/mcast.c:606:34: sparse: sparse: incorrect type in argument 1 
(different address spaces) @@ expected void [noderef]  *to @@ 
got struct __kernel_sockaddr_storage *p @@
>> net/ipv6/mcast.c:606:34: sparse: expected void [noderef]  *to
   net/ipv6/mcast.c:606:34: sparse: got struct __kernel_sockaddr_storage *p
   net/ipv6/mcast.c:549:5: sparse: sparse: symbol 'ip6_mc_msfget' redeclared 
with different type (incompatible argument 3 (different address spaces)):
   net/ipv6/mcast.c:549:5: sparse:int extern [addressable] [signed] 
[toplevel] ip6_mc_msfget( ... )
>> include/net/ipv6.h:1140:5: sparse: note: previously declared as:
   include/net/ipv6.h:1140:5: sparse:int extern [addressable] [signed] 
[toplevel] ip6_mc_msfget( ... )
   net/ipv6/mcast.c:259:25: sparse: sparse: context imbalance in 
'ip6_mc_find_dev_rcu' - different lock contexts for basic block
   net/ipv6/mcast.c:453:9: sparse: sparse: context imbalance in 'ip6_mc_source' 
- unexpected unlock
   net/ipv6/mcast.c:542:9: sparse: sparse: context imbalance in 
'ip6_mc_msfilter' - unexpected unlock
   net/ipv6/mcast.c:589:21: sparse: sparse: context imbalance in 
'ip6_mc_msfget' - unexpected unlock
   net/ipv6/mcast.c:2700:25: sparse: sparse: context imbalance in 
'igmp6_mc_get_next' - unexpected unlock
   net/ipv6/mcast.c:2722:9: sparse: sparse: context imbalance in 
'igmp6_mc_get_idx' - wrong count at exit
   net/ipv6/mcast.c:2749:9: sparse: sparse: context imbalance in 
'igmp6_mc_seq_stop' - unexpected unlock
   net/ipv6/mcast.c:2821:31: sparse: sparse: context imbalance in 
'igmp6_mcf_get_next' - unexpected unlock
   net/ipv6/mcast.c:2853:9: sparse: sparse: context imbalance in 
'igmp6_mcf_get_idx' - wrong count at exit
   net/ipv6/mcast.c:2870:9: sparse: sparse: context imbalance in 
'igmp6_mcf_seq_next' - wrong count at exit
   net/ipv6/mcast.c:2883:17: sparse: sparse: context imbalance in 
'igmp6_mcf_seq_stop' - unexpected unlock

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=931ca7ab7fe804d77bc6952f1512950c0d870f26
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 931ca7ab7fe804d77bc6952f1512950c0d870f26
vim +606 net/ipv6/mcast.c

^1da177e4c3f41 Linus Torvalds2005-04-16  548  
^1da177e4c3f41 Linus Torvalds2005-04-16  549  int ip6_mc_msfget(struct sock 
*sk, struct group_filter *gsf,
931ca7ab7fe804 Al Viro   2020-03-29  550struct sockaddr_storage 
*p)
^1da177e4c3f41 Linus Torvalds2005-04-16  551  {
^1da177e4c3f41 Linus Torvalds2005-04-16  552int err, i, count, 
copycount;
b71d1d426d263b Eric Dumazet  2011-04-22  553const struct in6_addr 
*group;
^1da177e4c3f41 Linus Torvalds2005-04-16  554struct ipv6_mc_socklist 
*pmc;
^1da177e4c3f41 Linus Torvalds2005-04-16  555struct inet6_dev *idev;
^1da177e4c3f41 Linus Torvalds2005-04-16  556struct ipv6_pinfo 
*inet6 = inet6_sk(sk);
^1da177e4c3f41 Linus Torvalds2005-04-16  557struct ip6_sf_socklist 
*psl;
3b1e0a655f8eba YOSHIFUJI Hideaki 2008-03-26  558struct net *net = 
sock_net(sk);
^1da177e4c3f41 Linus Torvalds2005-04-16  559  
^1da177e4c3f41 Linus Torvalds2005-04-16  560group = &((struct 
sockaddr_in6 *)&gsf->gf_group)->sin6_addr;
^1da177e4c3f41 Linus Torvalds2005-04-16  561  
^1da177e4c3f41 Linus Torvalds2005-04-16  562if 
(!ipv6_addr_is_multicast(group))
^1da177e4c3f41 Linus Torvalds2005-04-16  563return -EINVAL;
^1da177e4c3f41 Linus Torvalds2005-04-16  564  
96b52e61be1ad4 Eric Dumazet  2010-06-07  565rcu_read_lock();
96b52e61be1ad4 Eric Dumazet  2010-06-07  566idev

[kbuild] [linux-next:master 3942/14131] drivers/cdrom/cdrom.c:3597:42: sparse: got void [noderef] *buffer

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Christoph, Hellwig," 
CC: Al Viro 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass 
kernel pointers to ->proc_handler
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/cdrom/cdrom.c:3597:42: sparse: sparse: incorrect type in argument 3 
(different address spaces) @@ expected void * @@ got void [noderef] 
 *buffer @@
   drivers/cdrom/cdrom.c:3597:42: sparse: expected void *
>> drivers/cdrom/cdrom.c:3597:42: sparse: got void [noderef]  *buffer
   drivers/cdrom/cdrom.c:3665:35: sparse: sparse: incorrect type in initializer 
(incompatible argument 3 (different address spaces)) @@ expected int ( 
[usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@
   drivers/cdrom/cdrom.c:3665:35: sparse: expected int ( [usertype] 
*proc_handler )( ... )
>> drivers/cdrom/cdrom.c:3665:35: sparse: got int ( * )( ... )

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
vim +3597 drivers/cdrom/cdrom.c

554988d6fe3697 Dave Young2007-06-19  3519  
90a3b89e00658b Joe Perches   2014-06-06  3520  static int 
cdrom_sysctl_info(struct ctl_table *ctl, int write,
^1da177e4c3f41 Linus Torvalds2005-04-16  3521 
void __user *buffer, size_t *lenp, loff_t *ppos)
^1da177e4c3f41 Linus Torvalds2005-04-16  3522  {
^1da177e4c3f41 Linus Torvalds2005-04-16  3523   int pos;
^1da177e4c3f41 Linus Torvalds2005-04-16  3524   char *info = 
cdrom_sysctl_settings.info;
554988d6fe3697 Dave Young2007-06-19  3525   const int max_size = 
sizeof(cdrom_sysctl_settings.info);
^1da177e4c3f41 Linus Torvalds2005-04-16  3526   
^1da177e4c3f41 Linus Torvalds2005-04-16  3527   if (!*lenp || (*ppos && 
!write)) {
^1da177e4c3f41 Linus Torvalds2005-04-16  3528   *lenp = 0;
^1da177e4c3f41 Linus Torvalds2005-04-16  3529   return 0;
^1da177e4c3f41 Linus Torvalds2005-04-16  3530   }
^1da177e4c3f41 Linus Torvalds2005-04-16  3531  
554988d6fe3697 Dave Young2007-06-19  3532   
mutex_lock(&cdrom_mutex);
^1da177e4c3f41 Linus Torvalds2005-04-16  3533  
554988d6fe3697 Dave Young2007-06-19  3534   pos = sprintf(info, 
"CD-ROM information, " VERSION "\n");
^1da177e4c3f41 Linus Torvalds2005-04-16  3535   
554988d6fe3697 Dave Young2007-06-19  3536   if 
(cdrom_print_info("\ndrive name:\t", 0, info, &pos, CTL_NAME))
554988d6fe3697 Dave Young2007-06-19  3537   goto done;
554988d6fe3697 Dave Young2007-06-19  3538   if 
(cdrom_print_info("\ndrive speed:\t", 0, info, &pos, CTL_SPEED))
554988d6fe3697 Dave Young2007-06-19  3539   goto done;
554988d6fe3697 Dave Young2007-06-19  3540   if 
(cdrom_print_info("\ndrive # of slots:", 0, info, &pos, CTL_SLOTS))
554988d6fe3697 Dave Young2007-06-19  3541   goto done;
554988d6fe3697 Dave Young2007-06-19  3542   if 
(cdrom_print_info("\nCan close tray:\t",
554988d6fe3697 Dave Young2007-06-19  3543   
CDC_CLOSE_TRAY, info, &pos, CTL_CAPABILITY))
554988d6fe3697 Dave Young2007-06-19  3544   goto done;
554988d6fe3697 Dave Young2007-06-19  3545   if 
(cdrom_print_info("\nCan open tray:\t",
554988d6fe3697 Dave Young2007-06-19  3546   
CDC_OPEN_TRAY, info, &pos, CTL_CAPABILITY))
554988d6fe3697 Dave Young2007-06-19  3547   goto done;
554988d6fe3697 Dave Young2007-06-19  3548   if 
(cdrom_print_info("\nCan lock tray:\t",
554988d6fe3697 Dave Young2007-06-19  3549   
CDC_LOCK, info, &pos, CTL_CAPABILITY))
554988d6fe3697 Dave Young2007-06-19  3550   goto done;
554988d6fe3697 Dave Young2007-06-19  3551   if 
(cdrom_pr

[kbuild] [linux-next:master 3942/14131] net/core/sysctl_net_core.c:129:42: sparse: expected char const [noderef] *buf

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Christoph, Hellwig," 
CC: Al Viro 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3942/14131] sysctl: pass 
kernel pointers to ->proc_handler
:: branch date: 3 days ago
:: commit date: 5 weeks ago
config: ia64-randconfig-s032-20200601 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
# save the attached .config to linux build tree
make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   net/core/sysctl_net_core.c:129:42: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@ expected char const [noderef] 
 *buf @@ got void *buffer @@
>> net/core/sysctl_net_core.c:129:42: sparse: expected char const [noderef] 
>>  *buf
   net/core/sysctl_net_core.c:129:42: sparse: got void *buffer

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
vim +129 net/core/sysctl_net_core.c

99bbc70741903c Willem de Bruijn  2013-05-20  116  
fe2c6338fd2c6f Joe Perches   2013-06-11  117  static int 
flow_limit_cpu_sysctl(struct ctl_table *table, int write,
32927393dc1ccd Christoph Hellwig 2020-04-24  118
 void *buffer, size_t *lenp, loff_t *ppos)
99bbc70741903c Willem de Bruijn  2013-05-20  119  {
99bbc70741903c Willem de Bruijn  2013-05-20  120struct sd_flow_limit 
*cur;
99bbc70741903c Willem de Bruijn  2013-05-20  121struct softnet_data *sd;
99bbc70741903c Willem de Bruijn  2013-05-20  122cpumask_var_t mask;
99bbc70741903c Willem de Bruijn  2013-05-20  123int i, len, ret = 0;
99bbc70741903c Willem de Bruijn  2013-05-20  124  
99bbc70741903c Willem de Bruijn  2013-05-20  125if 
(!alloc_cpumask_var(&mask, GFP_KERNEL))
99bbc70741903c Willem de Bruijn  2013-05-20  126return -ENOMEM;
99bbc70741903c Willem de Bruijn  2013-05-20  127  
99bbc70741903c Willem de Bruijn  2013-05-20  128if (write) {
99bbc70741903c Willem de Bruijn  2013-05-20 @129ret = 
cpumask_parse_user(buffer, *lenp, mask);
99bbc70741903c Willem de Bruijn  2013-05-20  130if (ret)
99bbc70741903c Willem de Bruijn  2013-05-20  131goto 
done;
99bbc70741903c Willem de Bruijn  2013-05-20  132  
99bbc70741903c Willem de Bruijn  2013-05-20  133
mutex_lock(&flow_limit_update_mutex);
99bbc70741903c Willem de Bruijn  2013-05-20  134len = 
sizeof(*cur) + netdev_flow_limit_table_len;
99bbc70741903c Willem de Bruijn  2013-05-20  135
for_each_possible_cpu(i) {
99bbc70741903c Willem de Bruijn  2013-05-20  136sd = 
&per_cpu(softnet_data, i);
99bbc70741903c Willem de Bruijn  2013-05-20  137cur = 
rcu_dereference_protected(sd->flow_limit,
99bbc70741903c Willem de Bruijn  2013-05-20  138
 lockdep_is_held(&flow_limit_update_mutex));
99bbc70741903c Willem de Bruijn  2013-05-20  139if (cur 
&& !cpumask_test_cpu(i, mask)) {
99bbc70741903c Willem de Bruijn  2013-05-20  140
RCU_INIT_POINTER(sd->flow_limit, NULL);
99bbc70741903c Willem de Bruijn  2013-05-20  141
synchronize_rcu();
99bbc70741903c Willem de Bruijn  2013-05-20  142
kfree(cur);
99bbc70741903c Willem de Bruijn  2013-05-20  143} else 
if (!cur && cpumask_test_cpu(i, mask)) {
5b59d467ad9ff9 Eric Dumazet  2013-12-18  144
cur = kzalloc_node(len, GFP_KERNEL,
5b59d467ad9ff9 Eric Dumazet  2013-12-18  145
   cpu_to_node(i));
99bbc70741903c Willem de Bruijn  2013-05-20  146
if (!cur) {
99bbc70741903c Willem de Bruijn  2013-05-20  147
/* not unwinding previous changes */
99bbc70741903c Willem de Bruijn  2013-05-20  148
ret = -ENOMEM;
99bbc70741903c Willem de Bruijn  2013-05-20  149
goto write_unlock;
99bbc70741903c Willem de Bruijn  2013-05-20  150
}
99bbc70741903c Wil

[kbuild] drivers/net/dsa/bcm_sf2_cfp.c:350:44: sparse: expected restricted __be16 [usertype] vlan_m_tci

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Florian, Fainelli," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 7555020c44db75a0d934dffc0aa6c678b52b2a13 net: dsa: bcm_sf2: Add support 
for matching VLAN TCI
date:   9 weeks ago
:: branch date: 12 hours ago
:: commit date: 9 weeks ago
config: x86_64-randconfig-s022-20200601 (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
git checkout 7555020c44db75a0d934dffc0aa6c678b52b2a13
# 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 


sparse warnings: (new ones prefixed by >>)

   drivers/net/dsa/bcm_sf2_cfp.c:350:44: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
>> drivers/net/dsa/bcm_sf2_cfp.c:350:44: sparse: expected restricted __be16 
>> [usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:350:44: sparse: got int
   drivers/net/dsa/bcm_sf2_cfp.c:631:43: sparse: sparse: incorrect type in 
initializer (different base types) @@ expected restricted __be16 [usertype] 
vlan_m_tci @@ got int @@
   drivers/net/dsa/bcm_sf2_cfp.c:631:43: sparse: expected restricted __be16 
[usertype] vlan_m_tci
   drivers/net/dsa/bcm_sf2_cfp.c:631:43: sparse: got int

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7555020c44db75a0d934dffc0aa6c678b52b2a13
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 7555020c44db75a0d934dffc0aa6c678b52b2a13
vim +350 drivers/net/dsa/bcm_sf2_cfp.c

bc3fc44c12d6a4 Florian Fainelli  2017-10-20  343  
3306145866b62f Florian Fainelli  2017-10-20  344  static int 
bcm_sf2_cfp_ipv4_rule_set(struct bcm_sf2_priv *priv, int port,
3306145866b62f Florian Fainelli  2017-10-20  345
 unsigned int port_num,
3306145866b62f Florian Fainelli  2017-10-20  346
 unsigned int queue_num,
3306145866b62f Florian Fainelli  2017-10-20  347
 struct ethtool_rx_flow_spec *fs)
3306145866b62f Florian Fainelli  2017-10-20  348  {
e4f7ef54cbd8c8 Pablo Neira Ayuso 2019-02-02  349struct 
ethtool_rx_flow_spec_input input = {};
7555020c44db75 Florian Fainelli  2020-03-30 @350__be16 vlan_tci = 0 , 
vlan_m_tci = 0x;
3306145866b62f Florian Fainelli  2017-10-20  351const struct 
cfp_udf_layout *layout;
3306145866b62f Florian Fainelli  2017-10-20  352unsigned int slice_num, 
rule_index;
e4f7ef54cbd8c8 Pablo Neira Ayuso 2019-02-02  353struct 
ethtool_rx_flow_rule *flow;
e4f7ef54cbd8c8 Pablo Neira Ayuso 2019-02-02  354struct 
flow_match_ipv4_addrs ipv4;
e4f7ef54cbd8c8 Pablo Neira Ayuso 2019-02-02  355struct flow_match_ports 
ports;
e4f7ef54cbd8c8 Pablo Neira Ayuso 2019-02-02  356struct flow_match_ip ip;
3306145866b62f Florian Fainelli  2017-10-20  357u8 ip_proto, ip_frag;
3306145866b62f Florian Fainelli  2017-10-20  358u8 num_udf;
3306145866b62f Florian Fainelli  2017-10-20  359u32 reg;
3306145866b62f Florian Fainelli  2017-10-20  360int ret;
7318166cacad15 Florian Fainelli  2017-01-30  361  
7318166cacad15 Florian Fainelli  2017-01-30  362switch (fs->flow_type & 
~FLOW_EXT) {
7318166cacad15 Florian Fainelli  2017-01-30  363case TCP_V4_FLOW:
7318166cacad15 Florian Fainelli  2017-01-30  364ip_proto = 
IPPROTO_TCP;
7318166cacad15 Florian Fainelli  2017-01-30  365break;
7318166cacad15 Florian Fainelli  2017-01-30  366case UDP_V4_FLOW:
7318166cacad15 Florian Fainelli  2017-01-30  367ip_proto = 
IPPROTO_UDP;
7318166cacad15 Florian Fainelli  2017-01-30  368break;
7318166cacad15 Florian Fainelli  2017-01-30  369default:
7318166cacad15 Florian Fainelli  2017-01-30  370return -EINVAL;
7318166cacad15 Florian Fainelli  2017-01-30  371}
7318166cacad15 Florian Fainelli  2017-01-30  372  
7c3125f0a6ebc1 Florian Fainelli  2019-12-20  373ip_frag = 
!!(be32_to_cpu(fs->h_ext.data[0]) & 1);
3306145866b62f Florian Fainelli  2017-10-20  374  
7555020c44db75 Florian Fainelli  2020-03-30  375/* Extract VLAN TCI */
7555020c44db75 Florian Fainelli  2020-03-30  376if (fs->flow_type & 
FLOW_EXT) {
7555020c44db75 Florian Fainelli  2020-03-30  377vlan_tci = 
fs->h_ext.vlan_tci;
7555020c44db75 Florian Fainelli  2020-03-30  378vlan_m_tci = 
fs->

[kbuild] [linux-next:master 5305/14131] net/sched/cls_api.c:3719:9: sparse: sparse: context imbalance in 'tc_setup_flow_action' - different lock contexts for basic block

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Po, Liu," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: d29bdd69ecdd70e8e3c2268fc8e188d6ab55e54a [5305/14131] net: schedule: 
add action gate offloading
:: branch date: 3 days ago
:: commit date: 4 weeks ago
config: i386-randconfig-s001-20200601 (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
git checkout d29bdd69ecdd70e8e3c2268fc8e188d6ab55e54a
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   net/sched/cls_api.c:270:22: sparse: sparse: incorrect type in assignment 
(different base types) @@ expected restricted __be16 [usertype] protocol @@ 
got unsigned int [usertype] protocol @@
   net/sched/cls_api.c:270:22: sparse: expected restricted __be16 
[usertype] protocol
   net/sched/cls_api.c:270:22: sparse: got unsigned int [usertype] protocol
   net/sched/cls_api.c:1727:16: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
   net/sched/cls_api.c:1727:16: sparse:struct tcf_proto *
   net/sched/cls_api.c:1727:16: sparse:struct tcf_proto [noderef]  *
   net/sched/cls_api.c:1827:20: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
   net/sched/cls_api.c:1827:20: sparse:struct tcf_proto [noderef]  *
   net/sched/cls_api.c:1827:20: sparse:struct tcf_proto *
   net/sched/cls_api.c:1789:25: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
   net/sched/cls_api.c:1789:25: sparse:struct tcf_proto [noderef]  *
   net/sched/cls_api.c:1789:25: sparse:struct tcf_proto *
   net/sched/cls_api.c:1809:16: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
   net/sched/cls_api.c:1809:16: sparse:struct tcf_proto *
   net/sched/cls_api.c:1809:16: sparse:struct tcf_proto [noderef]  *
   net/sched/cls_api.c:1874:25: sparse: sparse: restricted __be16 degrades to 
integer
   net/sched/cls_api.c:2538:50: sparse: sparse: restricted __be16 degrades to 
integer
>> net/sched/cls_api.c:3719:9: sparse: sparse: context imbalance in 
>> 'tc_setup_flow_action' - different lock contexts for basic block

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d29bdd69ecdd70e8e3c2268fc8e188d6ab55e54a
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout d29bdd69ecdd70e8e3c2268fc8e188d6ab55e54a
vim +/tc_setup_flow_action +3719 net/sched/cls_api.c

d29bdd69ecdd70 Po Liu   2020-05-01  3550  
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3551  int 
tc_setup_flow_action(struct flow_action *flow_action,
b15e7a6e8d31d6 Vlad Buslov  2020-02-17  3552
 const struct tcf_exts *exts)
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3553  {
7a47281439ba00 Vlad Buslov  2020-02-17  3554struct 
tc_action *act;
9838b20a7fb28c Vlad Buslov  2019-08-26  3555int i, j, k, 
err = 0;
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3556  
0dfb2d82af4cd7 Jakub Kicinski   2020-03-19  3557
BUILD_BUG_ON(TCA_ACT_HW_STATS_ANY != FLOW_ACTION_HW_STATS_ANY);
0dfb2d82af4cd7 Jakub Kicinski   2020-03-19  3558
BUILD_BUG_ON(TCA_ACT_HW_STATS_IMMEDIATE != FLOW_ACTION_HW_STATS_IMMEDIATE);
0dfb2d82af4cd7 Jakub Kicinski   2020-03-19  3559
BUILD_BUG_ON(TCA_ACT_HW_STATS_DELAYED != FLOW_ACTION_HW_STATS_DELAYED);
44f8658017419d Jiri Pirko   2020-03-07  3560  
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3561if (!exts)
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3562return 
0;
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3563  
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3564j = 0;
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3565
tcf_exts_for_each_action(i, act, exts) {
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3566struct 
flow_action_entry *entry;
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3567  
3a7b68617de749 Pablo Neira Ayuso2019-02-02  3568entry = 
&flow_action->entries[j];
7a47281439ba00 Vlad Buslov  2020-02-17  3569
spin_lock_bh(&act->tcfa_lock);
2008495d81159a Jiri Pirko   2020-02-25  3570err = 
tcf_act_get_cookie(entry, act);
2008495d81159a Jiri Pirko   2020-02-25  3571  

[kbuild] arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Al, Viro," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 57d563c8292569f2849569853e846bf740df5032 x86: ia32_setup_rt_frame(): 
consolidate uaccess areas
date:   10 weeks ago
:: branch date: 9 hours ago
:: commit date: 10 weeks ago
config: x86_64-randconfig-s021-20200601 (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
git checkout 57d563c8292569f2849569853e846bf740df5032
# 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 


sparse warnings: (new ones prefixed by >>)

>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
   arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: incorrect type in 
argument 1 (different address spaces) @@ expected void const volatile 
[noderef]  * @@ got unsigned long long [usertype] * @@
   arch/x86/ia32/ia32_signal.c:350:9: sparse: expected void const volatile 
[noderef]  *
   arch/x86/ia32/ia32_signal.c:350:9: sparse: got unsigned long long 
[usertype] *
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression
>> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address 
>> space '' of expression

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=57d563c8292569f2849569853e846bf740df5032
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 57d563c8292569f2849569853e846bf740df5032
vim +350 arch/x86/ia32/ia32_signal.c

^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  299 
 
235b80226b986d arch/x86/ia32/ia32_signal.cAl Viro   2012-11-09  300 
 int ia32_setup_rt_frame(int sig, struct ksignal *ksig,
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  301 
compat_sigset_t *set, struct pt_regs *regs)
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  302 
 {
3b0d29ee1c73b6 arch/x86/ia32/ia32_signal.cHiroshi Shimamoto 2008-12-17  303 
struct rt_sigframe_ia32 __user *frame;
af65d64845a90c arch/x86/ia32/ia32_signal.cRoland McGrath2008-01-30  304 
void __user *restorer;
44a1d996325982 arch/x86/ia32/ia32_signal.cAl Viro   2020-02-15  305 
void __user *fp = NULL;
^1da177e4c3f41 arch/x86_64/ia32/ia32_signal.c Linus Torvalds2005-04-16  306 
 
57d563c8292569 arch/x86/ia32/ia32_signal.cAl Viro   2020-02-15  307 
/* unsafe_put_user optimizes that into a single 8 byte store */
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  308 
static const struct {
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  309 
u8 movl;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  310 
u32 val;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  311 
u16 int80;
9cc3c49ed1b1db arch/x86/ia32/ia32_signal.cHiroshi Shimamoto 2008-11-11  312 
u8  pad;
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  313 
} __attribute__((packed)) code = {
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  314 
0xb8,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  315 
__NR_ia32_rt_sigreturn,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cThomas Gleixner   2008-01-30  316 
0x80cd,
99b9cdf758af70 arch/x86/ia32/ia32_signal.cTh

[kbuild] net/netlink/af_netlink.c:2585:13: sparse: sparse: context imbalance in 'netlink_seq_start' - wrong count at exit

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Jules, Irenge," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
commit: 64fbca011976ce1564f191f4154e4a6ade25779a net: Add missing annotation 
for *netlink_seq_start()
date:   3 months ago
:: branch date: 9 hours ago
:: commit date: 3 months ago
config: i386-randconfig-s002-20200601 (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
git checkout 64fbca011976ce1564f191f4154e4a6ade25779a
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   net/netlink/af_netlink.c:2543:13: sparse: sparse: context imbalance in 
'netlink_walk_start' - wrong count at exit
   net/netlink/af_netlink.c:2549:13: sparse: sparse: context imbalance in 
'netlink_walk_stop' - unexpected unlock
>> net/netlink/af_netlink.c:2585:13: sparse: sparse: context imbalance in 
>> 'netlink_seq_start' - wrong count at exit

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=64fbca011976ce1564f191f4154e4a6ade25779a
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 64fbca011976ce1564f191f4154e4a6ade25779a
vim +/netlink_seq_start +2585 net/netlink/af_netlink.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  2584  
56d28b1e921b57 Herbert Xu 2015-02-04 @2585  static void 
*netlink_seq_start(struct seq_file *seq, loff_t *posp)
64fbca011976ce Jules Irenge   2020-03-11  2586  __acquires(RCU)
56d28b1e921b57 Herbert Xu 2015-02-04  2587  {
56d28b1e921b57 Herbert Xu 2015-02-04  2588  struct nl_seq_iter 
*iter = seq->private;
56d28b1e921b57 Herbert Xu 2015-02-04  2589  void *obj = 
SEQ_START_TOKEN;
56d28b1e921b57 Herbert Xu 2015-02-04  2590  loff_t pos;
^1da177e4c3f41 Linus Torvalds 2005-04-16  2591  
56d28b1e921b57 Herbert Xu 2015-02-04  2592  iter->link = 0;
56d28b1e921b57 Herbert Xu 2015-02-04  2593  
abf9979f7ef34e Taehee Yoo 2019-06-10  2594  
netlink_walk_start(iter);
56d28b1e921b57 Herbert Xu 2015-02-04  2595  
56d28b1e921b57 Herbert Xu 2015-02-04  2596  for (pos = *posp; pos 
&& obj && !IS_ERR(obj); pos--)
56d28b1e921b57 Herbert Xu 2015-02-04  2597  obj = 
__netlink_seq_next(seq);
56d28b1e921b57 Herbert Xu 2015-02-04  2598  
56d28b1e921b57 Herbert Xu 2015-02-04  2599  return obj;
56d28b1e921b57 Herbert Xu 2015-02-04  2600  }
56d28b1e921b57 Herbert Xu 2015-02-04  2601  

:: The code at line 2585 was first introduced by commit
:: 56d28b1e921b57b918a0ae6b13a1671115fe788d netlink: Use rhashtable walk 
iterator

:: TO: Herbert Xu 
:: CC: David S. Miller 

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org


.config.gz
Description: application/gzip
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org


[kbuild] [block:async-readahead 15/20] fs/nfs/read.c:405:5: sparse: int extern [addressable] [signed] [toplevel] nfs_readpages( ... )

2020-06-01 Thread kbuild test robot
CC: kbuild-...@lists.01.org
TO: "Jens, Axboe," 

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
async-readahead
head:   77ca3affd737b5ca9f4222ead263a55b5a663e79
commit: ed611876580275e085cba3bb9c1f948ad5d882ab [15/20] fs: make 
aops->readpages() take kiocb argument
:: branch date: 4 hours ago
:: commit date: 6 hours ago
config: i386-randconfig-s002-20200601 (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
git checkout ed611876580275e085cba3bb9c1f948ad5d882ab
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

>> fs/nfs/file.c:515:22: sparse: sparse: incorrect type in initializer 
>> (incompatible argument 1 (different base types)) @@ expected int ( 
>> *readpages )( ... ) @@ got int ( * )( ... ) @@
>> fs/nfs/file.c:515:22: sparse: expected int ( *readpages )( ... )
>> fs/nfs/file.c:515:22: sparse: got int ( * )( ... )
--
   fs/nfs/read.c:405:5: sparse: sparse: symbol 'nfs_readpages' redeclared with 
different type (incompatible argument 1 (different base types)):
>> fs/nfs/read.c:405:5: sparse:int extern [addressable] [signed] [toplevel] 
>> nfs_readpages( ... )
>> include/linux/nfs_fs.h:553:13: sparse: note: previously declared as:
>> include/linux/nfs_fs.h:553:13: sparse:int extern [addressable] [signed] 
>> [toplevel] nfs_readpages( ... )

# 
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=ed611876580275e085cba3bb9c1f948ad5d882ab
git remote add block 
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git remote update block
git checkout ed611876580275e085cba3bb9c1f948ad5d882ab
vim +405 fs/nfs/read.c

^1da177e4c3f41 Linus Torvalds2005-04-16  404  
ed611876580275 Jens Axboe2020-05-31 @405  int nfs_readpages(struct 
kiocb *kiocb, struct address_space *mapping,
^1da177e4c3f41 Linus Torvalds2005-04-16  406struct 
list_head *pages, unsigned nr_pages)
^1da177e4c3f41 Linus Torvalds2005-04-16  407  {
ed611876580275 Jens Axboe2020-05-31  408struct file *filp = 
kiocb->ki_filp;
8b09bee3083897 Trond Myklebust   2007-04-02  409struct 
nfs_pageio_descriptor pgio;
a7d42ddb309972 Weston Andros Adamson 2014-09-19  410struct nfs_pgio_mirror 
*pgm;
^1da177e4c3f41 Linus Torvalds2005-04-16  411struct nfs_readdesc 
desc = {
8b09bee3083897 Trond Myklebust   2007-04-02  412.pgio = &pgio,
^1da177e4c3f41 Linus Torvalds2005-04-16  413};
^1da177e4c3f41 Linus Torvalds2005-04-16  414struct inode *inode = 
mapping->host;
8b09bee3083897 Trond Myklebust   2007-04-02  415unsigned long npages;
5f004cf2aa8494 Trond Myklebust   2006-09-14  416int ret = -ESTALE;
^1da177e4c3f41 Linus Torvalds2005-04-16  417  
1e8968c5b05823 Niels de Vos  2013-12-17  418dprintk("NFS: 
nfs_readpages (%s/%Lu %d)\n",
^1da177e4c3f41 Linus Torvalds2005-04-16  419
inode->i_sb->s_id,
1e8968c5b05823 Niels de Vos  2013-12-17  420
(unsigned long long)NFS_FILEID(inode),
^1da177e4c3f41 Linus Torvalds2005-04-16  421
nr_pages);
91d5b47023b608 Chuck Lever   2006-03-20  422nfs_inc_stats(inode, 
NFSIOS_VFSREADPAGES);
^1da177e4c3f41 Linus Torvalds2005-04-16  423  
5f004cf2aa8494 Trond Myklebust   2006-09-14  424if (NFS_STALE(inode))
5f004cf2aa8494 Trond Myklebust   2006-09-14  425goto out;
5f004cf2aa8494 Trond Myklebust   2006-09-14  426  
^1da177e4c3f41 Linus Torvalds2005-04-16  427if (filp == NULL) {
d530838bfa507d Trond Myklebust   2005-11-04  428desc.ctx = 
nfs_find_open_context(inode, NULL, FMODE_READ);
^1da177e4c3f41 Linus Torvalds2005-04-16  429if (desc.ctx == 
NULL)
^1da177e4c3f41 Linus Torvalds2005-04-16  430return 
-EBADF;
^1da177e4c3f41 Linus Torvalds2005-04-16  431} else
cd3758e37ddea6 Trond Myklebust   2007-08-10  432desc.ctx = 
get_nfs_open_context(nfs_file_open_context(filp));
9a9fc1c03315f1 David Howells 2009-04-03  433  
9a9fc1c03315f1 David Howells 2009-04-03  434/* attempt to read as 
many of the pages as possible from the cache
9a9fc1c03315f1 David Howells 2009-04-03  435 * - this returns 
-ENOBUFS immediately if the cookie is negative
9a9fc1c03315f1 David Howells 2009-04-03  436 */
9a9fc1c03315f1 David Howells 2009-0