Re: [PATCH 1/5] misc: fastrpc: add mmap/unmap support

2019-09-16 Thread kbuild test robot
Hi Jorge,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jorge-Ramirez-Ortiz/misc-fastrpc-fixes-and-map-unmap-support/20190916-150416
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   drivers/misc/fastrpc.c: In function 'fastrpc_req_mmap':
>> drivers/misc/fastrpc.c:1399:16: warning: cast from pointer to integer of 
>> different size [-Wpointer-to-int-cast]
 args[0].ptr = (u64) _msg;
   ^
   drivers/misc/fastrpc.c:1405:16: warning: cast from pointer to integer of 
different size [-Wpointer-to-int-cast]
 args[1].ptr = (u64) 
   ^
   drivers/misc/fastrpc.c:1408:16: warning: cast from pointer to integer of 
different size [-Wpointer-to-int-cast]
 args[2].ptr = (u64) _msg;
   ^

vim +1399 drivers/misc/fastrpc.c

  1361  
  1362  static int fastrpc_req_mmap(struct fastrpc_user *fl, char __user *argp)
  1363  {
  1364  struct fastrpc_invoke_args args[3] = { [0 ... 2] = { 0 } };
  1365  struct fastrpc_buf *buf = NULL;
  1366  struct fastrpc_mmap_req_msg req_msg;
  1367  struct fastrpc_mmap_rsp_msg rsp_msg;
  1368  struct fastrpc_req_munmap req_unmap;
  1369  struct fastrpc_phy_page pages;
  1370  struct fastrpc_req_mmap req;
  1371  struct device *dev = fl->sctx->dev;
  1372  int err;
  1373  u32 sc;
  1374  
  1375  if (copy_from_user(, argp, sizeof(req)))
  1376  return -EFAULT;
  1377  
  1378  if (req.flags != ADSP_MMAP_ADD_PAGES) {
  1379  dev_err(dev, "flag not supported 0x%x\n", req.flags);
  1380  return -EINVAL;
  1381  }
  1382  
  1383  if (req.vaddrin) {
  1384  dev_err(dev, "adding user allocated pages is not 
supported\n");
  1385  return -EINVAL;
  1386  }
  1387  
  1388  err = fastrpc_buf_alloc(fl, fl->sctx->dev, req.size, );
  1389  if (err) {
  1390  dev_err(dev, "failed to allocate buffer\n");
  1391  return err;
  1392  }
  1393  
  1394  req_msg.pgid = fl->tgid;
  1395  req_msg.flags = req.flags;
  1396  req_msg.vaddr = req.vaddrin;
  1397  req_msg.num = sizeof(pages);
  1398  
> 1399  args[0].ptr = (u64) _msg;
  1400  args[0].length = sizeof(req_msg);
  1401  
  1402  pages.addr = buf->phys;
  1403  pages.size = buf->size;
  1404  
  1405  args[1].ptr = (u64) 
  1406  args[1].length = sizeof(pages);
  1407  
  1408  args[2].ptr = (u64) _msg;
  1409  args[2].length = sizeof(rsp_msg);
  1410  
  1411  sc = FASTRPC_SCALARS(FASTRPC_RMID_INIT_MMAP, 2, 1);
  1412  err = fastrpc_internal_invoke(fl, true, FASTRPC_INIT_HANDLE, sc,
  1413[0]);
  1414  if (err) {
  1415  dev_err(dev, "mmap error (len 0x%08llx)\n", buf->size);
  1416  goto err_invoke;
  1417  }
  1418  
  1419  /* update the buffer to be able to deallocate the memory on the 
DSP */
  1420  buf->raddr = (uintptr_t) rsp_msg.vaddr;
  1421  
  1422  /* let the client know the address to use */
  1423  req.vaddrout = rsp_msg.vaddr;
  1424  
  1425  spin_lock(>lock);
  1426  list_add_tail(>node, >mmaps);
  1427  spin_unlock(>lock);
  1428  
  1429  if (copy_to_user((void __user *)argp, , sizeof(req))) {
  1430  /* unmap the memory and release the buffer */
  1431  req_unmap.vaddrout = buf->raddr;
  1432  req_unmap.size = buf->size;
  1433  fastrpc_req_munmap_impl(fl, _unmap);
  1434  return -EFAULT;
  1435  }
  1436  
  1437  dev_dbg(dev, "mmap\t\tpt 0x%09lx OK [len 0x%08llx]\n",
  1438  buf->raddr, buf->size);
  1439  
  1440  return 0;
  1441  
  1442  err_invoke:
  1443  fastrpc_buf_free(buf);
  1444  
  1445  return err;
  1446  }
  1447  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] x86_64: new and improved memset()

2019-09-16 Thread kbuild test robot
Hi Alexey,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/x86_64-new-and-improved-memset/20190916-140315
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=um SUBARCH=x86_64

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

All errors (new ones prefixed by >>):

   /usr/bin/ld: arch/um/kernel/mem.o: in function `pgd_alloc':
>> mem.c:(.text+0x4a): undefined reference to `memset0_mov'
   /usr/bin/ld: arch/um/kernel/mem.o: in function `pmd_alloc_one':
>> mem.c:(.text+0xd1): undefined reference to `_memset0_mov'
   /usr/bin/ld: arch/um/kernel/mem.o: in function `mem_init':
>> mem.c:(.init.text+0x20): undefined reference to `_memset0_mov'
>> /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0x1): undefined 
>> reference to `_memset0_rep_stosq'
>> /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0x6): undefined 
>> reference to `memset0_rep_stosb'
>> /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0xb): undefined 
>> reference to `memset0_rep_stosq'
   /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0x10): undefined 
reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0x15): undefined 
reference to `_memset0_rep_stosq'
   /usr/bin/ld: arch/um/kernel/mem.o:(.altinstr_replacement+0x1a): undefined 
reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/kernel/process.o: in function `copy_from_user_proc':
>> process.c:(.text+0x665): undefined reference to `memset0_mov'
   /usr/bin/ld: arch/um/kernel/process.o: in function `sysemu_proc_write':
   process.c:(.text+0x76a): undefined reference to `memset0_mov'
>> /usr/bin/ld: arch/um/kernel/process.o:(.altinstr_replacement+0x1): undefined 
>> reference to `memset0_rep_stosq'
>> /usr/bin/ld: arch/um/kernel/process.o:(.altinstr_replacement+0x6): undefined 
>> reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/kernel/process.o:(.altinstr_replacement+0xb): undefined 
reference to `memset0_rep_stosq'
   /usr/bin/ld: arch/um/kernel/process.o:(.altinstr_replacement+0x10): 
undefined reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/drivers/net_kern.o: in function `eth_configure':
>> net_kern.c:(.text+0xbd0): undefined reference to `memset0_mov'
>> /usr/bin/ld: arch/um/drivers/net_kern.o:(.altinstr_replacement+0x1): 
>> undefined reference to `memset0_rep_stosq'
>> /usr/bin/ld: arch/um/drivers/net_kern.o:(.altinstr_replacement+0x6): 
>> undefined reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/drivers/ubd_kern.o: in function `ubd_ioctl':
>> ubd_kern.c:(.text+0x984): undefined reference to `_memset0_mov'
>> /usr/bin/ld: ubd_kern.c:(.text+0xa5a): undefined reference to `memset0_mov'
   /usr/bin/ld: arch/um/drivers/ubd_kern.o: in function `io_thread':
>> ubd_kern.c:(.text+0x211f): undefined reference to `memset0_mov'
>> /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0x1): 
>> undefined reference to `_memset0_rep_stosq'
>> /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0x6): 
>> undefined reference to `memset0_rep_stosb'
>> /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0xb): 
>> undefined reference to `memset0_rep_stosq'
   /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0x10): 
undefined reference to `memset0_rep_stosb'
   /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0x15): 
undefined reference to `memset0_rep_stosq'
   /usr/bin/ld: arch/um/drivers/ubd_kern.o:(.altinstr_replacement+0x1a): 
undefined reference to `memset0_rep_stosb'
   /usr/bin/ld: kernel/fork.o: in function `copy_clone_args_from_user':
>> fork.c:(.text+0x5c4): undefined reference to `memset0_mov'
   /usr/bin/ld: kernel/fork.o: in function `mm_init.isra.5':
>> fork.c:(.text+0x75c): undefined reference to `_memset0_mov'
   /usr/bin/ld: kernel/fork.o: in function `vm_area_alloc':
   fork.c:(.text+0xaa4): undefined reference to `_memset0_mov'
   /usr/bin/ld: kernel/fork.o: in function `mm_alloc':
   fork.c:(.text+0xb9f): undefined reference to `_memset0_mov'
   /usr/bin/ld: kernel/fork.o: in function `copy_process':
   fork.c:(.text+0x1e0c): undefined reference to `_memset0_mov'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] x86_64: new and improved memset()

2019-09-16 Thread kbuild test robot
Hi Alexey,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/x86_64-new-and-improved-memset/20190916-140315
config: x86_64-fedora-25 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   sound/core/pcm_iec958.c: In function 'create_iec958_consumer':
>> sound/core/pcm_iec958.c:77:9: warning: 'ws' may be used uninitialized in 
>> this function [-Wmaybe-uninitialized]
  cs[4] = ws;
  ~~^~~~

vim +/ws +77 sound/core/pcm_iec958.c

9203dd016a5d8f Russell King 2015-05-09  11  
4a4436573a6669 Jyri Sarha   2016-03-31  12  static int 
create_iec958_consumer(uint rate, uint sample_width,
4a4436573a6669 Jyri Sarha   2016-03-31  13u8 
*cs, size_t len)
9203dd016a5d8f Russell King 2015-05-09  14  {
9203dd016a5d8f Russell King 2015-05-09  15  unsigned int fs, ws;
9203dd016a5d8f Russell King 2015-05-09  16  
9203dd016a5d8f Russell King 2015-05-09  17  if (len < 4)
9203dd016a5d8f Russell King 2015-05-09  18  return -EINVAL;
9203dd016a5d8f Russell King 2015-05-09  19  
4a4436573a6669 Jyri Sarha   2016-03-31  20  switch (rate) {
9203dd016a5d8f Russell King 2015-05-09  21  case 32000:
9203dd016a5d8f Russell King 2015-05-09  22  fs = 
IEC958_AES3_CON_FS_32000;
9203dd016a5d8f Russell King 2015-05-09  23  break;
9203dd016a5d8f Russell King 2015-05-09  24  case 44100:
9203dd016a5d8f Russell King 2015-05-09  25  fs = 
IEC958_AES3_CON_FS_44100;
9203dd016a5d8f Russell King 2015-05-09  26  break;
9203dd016a5d8f Russell King 2015-05-09  27  case 48000:
9203dd016a5d8f Russell King 2015-05-09  28  fs = 
IEC958_AES3_CON_FS_48000;
9203dd016a5d8f Russell King 2015-05-09  29  break;
9203dd016a5d8f Russell King 2015-05-09  30  case 88200:
9203dd016a5d8f Russell King 2015-05-09  31  fs = 
IEC958_AES3_CON_FS_88200;
9203dd016a5d8f Russell King 2015-05-09  32  break;
9203dd016a5d8f Russell King 2015-05-09  33  case 96000:
9203dd016a5d8f Russell King 2015-05-09  34  fs = 
IEC958_AES3_CON_FS_96000;
9203dd016a5d8f Russell King 2015-05-09  35  break;
9203dd016a5d8f Russell King 2015-05-09  36  case 176400:
9203dd016a5d8f Russell King 2015-05-09  37  fs = 
IEC958_AES3_CON_FS_176400;
9203dd016a5d8f Russell King 2015-05-09  38  break;
9203dd016a5d8f Russell King 2015-05-09  39  case 192000:
9203dd016a5d8f Russell King 2015-05-09  40  fs = 
IEC958_AES3_CON_FS_192000;
9203dd016a5d8f Russell King 2015-05-09  41  break;
9203dd016a5d8f Russell King 2015-05-09  42  default:
9203dd016a5d8f Russell King 2015-05-09  43  return -EINVAL;
9203dd016a5d8f Russell King 2015-05-09  44  }
9203dd016a5d8f Russell King 2015-05-09  45  
9203dd016a5d8f Russell King 2015-05-09  46  if (len > 4) {
4a4436573a6669 Jyri Sarha   2016-03-31  47  switch (sample_width) {
9203dd016a5d8f Russell King 2015-05-09  48  case 16:
9203dd016a5d8f Russell King 2015-05-09  49  ws = 
IEC958_AES4_CON_WORDLEN_20_16;
9203dd016a5d8f Russell King 2015-05-09  50  break;
9203dd016a5d8f Russell King 2015-05-09  51  case 18:
9203dd016a5d8f Russell King 2015-05-09  52  ws = 
IEC958_AES4_CON_WORDLEN_22_18;
9203dd016a5d8f Russell King 2015-05-09  53  break;
9203dd016a5d8f Russell King 2015-05-09  54  case 20:
9203dd016a5d8f Russell King 2015-05-09  55  ws = 
IEC958_AES4_CON_WORDLEN_20_16 |
9203dd016a5d8f Russell King 2015-05-09  56   
IEC958_AES4_CON_MAX_WORDLEN_24;
9203dd016a5d8f Russell King 2015-05-09  57  break;
9203dd016a5d8f Russell King 2015-05-09  58  case 24:
4a462ce084d5be Jyri Sarha   2016-03-31  59  case 32: /* Assume 
24-bit width for 32-bit samples. */
9203dd016a5d8f Russell King 2015-05-09  60  ws = 
IEC958_AES4_CON_WORDLEN_24_20 |
9203dd016a5d8f Russell King 2015-05-09  61   
IEC958_AES4_CON_MAX_WORDLEN_24;
9203dd016a5d8f Russell King 2015-05-09  62  break;
9203dd016a5d8f Russell King 2015-05-09  63  
9203dd016a5d8f Russell King 2015-05-09  64  default:
9203dd016a5d8f Russell King 2015-05-09  65

Re: [PATCH 2/2] nvme: add API for getting nsid by bdev

2019-09-16 Thread kbuild test robot
Hi Robert,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Robert-Baldyga/nvme-Add-kernel-API-for-admin-command/20190916-134358
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:7:0,
from include/linux/kernel.h:8,
from include/asm-generic/bug.h:18,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/sparc/include/asm/current.h:15,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from drivers/nvme/host/core.c:7:
>> drivers/nvme/host/core.c:827:19: error: 'nvme_nsid_by_bdev' undeclared here 
>> (not in a function); did you mean 'nvme_get_nsid_by_bdev'?
EXPORT_SYMBOL_GPL(nvme_nsid_by_bdev);
  ^
   include/linux/export.h:79:16: note: in definition of macro '___EXPORT_SYMBOL'
 extern typeof(sym) sym;  \
   ^~~
>> drivers/nvme/host/core.c:827:1: note: in expansion of macro 
>> 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(nvme_nsid_by_bdev);
^

vim +827 drivers/nvme/host/core.c

   814  
   815  int nvme_get_nsid_by_bdev(struct block_device *bdev, unsigned int *nsid)
   816  {
   817  struct nvme_ns *ns;
   818  
   819  if (!bdev && !nsid)
   820  return -EINVAL;
   821  
   822  ns = bdev->bd_disk->private_data;
   823  *nsid = ns->head->ns_id;
   824  
   825  return 0;
   826  }
 > 827  EXPORT_SYMBOL_GPL(nvme_nsid_by_bdev);
   828  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] nvme: add API for sending admin commands by bdev

2019-09-16 Thread kbuild test robot
Hi Robert,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Robert-Baldyga/nvme-Add-kernel-API-for-admin-command/20190916-134358
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/nvme/host/nvme.h:9:0,
from drivers/nvme/host/fault_inject.c:9:
>> include/linux/nvme.h:1395:42: warning: 'struct block_device' declared inside 
>> parameter list will not be visible outside of this definition or declaration
int nvme_submit_admin_cmd_by_bdev(struct block_device *bdev,
 ^~~~

vim +1395 include/linux/nvme.h

  1394  
> 1395  int nvme_submit_admin_cmd_by_bdev(struct block_device *bdev,
  1396  struct nvme_command *c, void *buffer, unsigned int 
bufflen);
  1397  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[RFC PATCH] mm, slab_common: all_kmalloc_info[] can be static

2019-09-15 Thread kbuild test robot


Fixes: 95f3b3d20e9b ("mm, slab_common: Make kmalloc_caches[] start at size 
KMALLOC_MIN_SIZE")
Signed-off-by: kbuild test robot 
---
 slab_common.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/slab_common.c b/mm/slab_common.c
index 2aed30deb0714..bf1cf4ba35f86 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -1118,7 +1118,7 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
  * time. kmalloc_index() supports up to 2^26=64MB, so the final entry of the
  * table is kmalloc-67108864.
  */
-const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
+static const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
SET_KMALLOC_SIZE(   8,8),SET_KMALLOC_SIZE(  16,   16),
SET_KMALLOC_SIZE(  32,   32),SET_KMALLOC_SIZE(  64,   64),
 #if KMALLOC_SIZE_96_EXIST == 1


Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-15 Thread kbuild test robot
Hi Pengfei,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-065820
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> mm/slab_common.c:1121:34: sparse: sparse: symbol 'all_kmalloc_info' was not 
>> declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-15 Thread kbuild test robot
Hi Pengfei,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-065820
config: sh-rsk7269_defconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

>> mm/slab_common.c:1144:34: error: 'KMALLOC_INFO_START_IDX' undeclared here 
>> (not in a function); did you mean 'KMALLOC_IDX_ADJ_2'?
kmalloc_info = _kmalloc_info[KMALLOC_INFO_START_IDX];
 ^~
 KMALLOC_IDX_ADJ_2

vim +1144 mm/slab_common.c

  1142  
  1143  const struct kmalloc_info_struct * const __initconst
> 1144  kmalloc_info = _kmalloc_info[KMALLOC_INFO_START_IDX];
  1145  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-15 Thread kbuild test robot
Hi Pengfei,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-065820
config: parisc-allmodconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=parisc 

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

All errors (new ones prefixed by >>):

>> mm/slab_common.c:1144:34: error: 'KMALLOC_INFO_START_IDX' undeclared here 
>> (not in a function); did you mean 'VMALLOC_START'?
kmalloc_info = _kmalloc_info[KMALLOC_INFO_START_IDX];
 ^~
 VMALLOC_START

vim +1144 mm/slab_common.c

  1142  
  1143  const struct kmalloc_info_struct * const __initconst
> 1144  kmalloc_info = _kmalloc_info[KMALLOC_INFO_START_IDX];
  1145  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3] powerpc/lockdep: fix a false positive warning

2019-09-14 Thread kbuild test robot
Hi Qian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Qian-Cai/powerpc-lockdep-fix-a-false-positive-warning/20190910-053719
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

>> kernel/locking/lockdep.o:(.toc+0x0): undefined reference to `bss_hole_start'
>> kernel/locking/lockdep.o:(.toc+0x8): undefined reference to `bss_hole_end'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] scsi: storvsc: Add the support of hibernation

2019-09-12 Thread kbuild test robot
Hi Dexuan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dexuan-Cui/scsi-storvsc-Add-the-support-of-hibernation/20190912-234223
config: i386-randconfig-b004-201936 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All error/warnings (new ones prefixed by >>):

>> drivers//scsi/storvsc_drv.c:1982:3: error: 'struct hv_driver' has no member 
>> named 'suspend'
 .suspend = storvsc_suspend,
  ^~~
>> drivers//scsi/storvsc_drv.c:1982:13: error: initialization from incompatible 
>> pointer type [-Werror=incompatible-pointer-types]
 .suspend = storvsc_suspend,
^~~
   drivers//scsi/storvsc_drv.c:1982:13: note: (near initialization for 
'storvsc_drv.shutdown')
>> drivers//scsi/storvsc_drv.c:1983:3: error: 'struct hv_driver' has no member 
>> named 'resume'; did you mean 'remove'?
 .resume = storvsc_resume,
  ^~
  remove
>> drivers//scsi/storvsc_drv.c:1983:12: warning: excess elements in struct 
>> initializer
 .resume = storvsc_resume,
   ^~
   drivers//scsi/storvsc_drv.c:1983:12: note: (near initialization for 
'storvsc_drv')
   cc1: some warnings being treated as errors

vim +1982 drivers//scsi/storvsc_drv.c

  1976  
  1977  static struct hv_driver storvsc_drv = {
  1978  .name = KBUILD_MODNAME,
  1979  .id_table = id_table,
  1980  .probe = storvsc_probe,
  1981  .remove = storvsc_remove,
> 1982  .suspend = storvsc_suspend,
> 1983  .resume = storvsc_resume,
  1984  .driver = {
  1985  .probe_type = PROBE_PREFER_ASYNCHRONOUS,
  1986  },
  1987  };
  1988  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCHv4] MIPS: JZ4780: DTS: Add I2C nodes

2019-09-12 Thread kbuild test robot
Hi Alexandre,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Alexandre-GRIVEAUX/MIPS-JZ4780-DTS-Add-I2C-nodes/20190910-210527
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

>> ERROR: Input tree has errors, aborting (use -f to force output)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


drivers/power/reset/nvmem-reboot-mode.c:27:42: error: passing argument 2 of 'nvmem_cell_write' from incompatible pointer type

2019-09-11 Thread kbuild test robot
Hi Han,

FYI, the error/warning still remains.

tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   3120b9a6a3f7487f96af7bd634ec49c87ef712ab
commit: 7a78a7f7695bf9ef9cef3c06fbc5fa4573fd0eef power: reset: 
nvmem-reboot-mode: use NVMEM as reboot mode write interface
date:   3 months ago
config: i386-randconfig-e003-201936 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
git checkout 7a78a7f7695bf9ef9cef3c06fbc5fa4573fd0eef
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/power/reset/nvmem-reboot-mode.c: In function 
'nvmem_reboot_mode_write':
>> drivers/power/reset/nvmem-reboot-mode.c:27:42: error: passing argument 2 of 
>> 'nvmem_cell_write' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
 ret = nvmem_cell_write(nvmem_rbm->cell, , sizeof(magic));
 ^
   In file included from drivers/power/reset/nvmem-reboot-mode.c:10:0:
   include/linux/nvmem-consumer.h:120:19: note: expected 'const char *' but 
argument is of type 'unsigned int *'
static inline int nvmem_cell_write(struct nvmem_cell *cell,
  ^~~~
   cc1: some warnings being treated as errors

vim +/nvmem_cell_write +27 drivers/power/reset/nvmem-reboot-mode.c

18  
19  static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot,
20  unsigned int magic)
21  {
22  int ret;
23  struct nvmem_reboot_mode *nvmem_rbm;
24  
25  nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, 
reboot);
26  
  > 27  ret = nvmem_cell_write(nvmem_rbm->cell, , sizeof(magic));
28  if (ret < 0)
29  dev_err(reboot->dev, "update reboot mode bits 
failed\n");
30  
31  return ret;
32  }
33  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


drivers/video/fbdev/fsl-diu-fb.c:1287:3: note: in expansion of macro 'dev_warn'

2019-09-10 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   56037cadf60461b4a2996b4d8f0057c4d343c17c
commit: a035d552a93bb9ef6048733bb9f2a0dc857ff869 Makefile: Globally enable 
fall-through warning
date:   7 weeks ago
config: powerpc-mpc512x_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a035d552a93bb9ef6048733bb9f2a0dc857ff869
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/acpi.h:15:0,
from include/linux/i2c.h:13,
from include/uapi/linux/fb.h:6,
from include/linux/fb.h:6,
from drivers/video/fbdev/fsl-diu-fb.c:20:
   drivers/video/fbdev/fsl-diu-fb.c: In function 'fsl_diu_ioctl':
   include/linux/device.h:1495:2: warning: this statement may fall through 
[-Wimplicit-fallthrough=]
 _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
 ^~~
>> drivers/video/fbdev/fsl-diu-fb.c:1287:3: note: in expansion of macro 
>> 'dev_warn'
  dev_warn(info->dev,
  ^~~~
   drivers/video/fbdev/fsl-diu-fb.c:1290:2: note: here
 case MFB_SET_PIXFMT:
 ^~~~
   In file included from include/linux/acpi.h:15:0,
from include/linux/i2c.h:13,
from include/uapi/linux/fb.h:6,
from include/linux/fb.h:6,
from drivers/video/fbdev/fsl-diu-fb.c:20:
   include/linux/device.h:1495:2: warning: this statement may fall through 
[-Wimplicit-fallthrough=]
 _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
 ^~~
   drivers/video/fbdev/fsl-diu-fb.c:1296:3: note: in expansion of macro 
'dev_warn'
  dev_warn(info->dev,
  ^~~~
   drivers/video/fbdev/fsl-diu-fb.c:1299:2: note: here
 case MFB_GET_PIXFMT:
 ^~~~

vim +/dev_warn +1287 drivers/video/fbdev/fsl-diu-fb.c

9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1265  
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1266  static 
int fsl_diu_ioctl(struct fb_info *info, unsigned int cmd,
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1267   
   unsigned long arg)
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1268  {
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1269   struct 
mfb_info *mfbi = info->par;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1270   struct 
diu_ad *ad = mfbi->ad;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1271   struct 
mfb_chroma_key ck;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1272   
unsigned char global_alpha;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1273   struct 
aoi_display_offset aoi_d;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1274   __u32 
pix_fmt;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1275   void 
__user *buf = (void __user *)arg;
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1276  
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1277   if 
(!arg)
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1278   
return -EINVAL;
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1279  
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1280   
dev_dbg(info->dev, "ioctl %08x (dir=%s%s type=%u nr=%u size=%u)\n", cmd,
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1281   
_IOC_DIR(cmd) & _IOC_READ ? "R" : "",
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1282   
_IOC_DIR(cmd) & _IOC_WRITE ? "W" : "",
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1283   
_IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd));
5cc2a36fe8aad0 drivers/video/fsl-diu-fb.c Timur Tabi 2012-10-16  1284  
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-04-28  1285   switch 
(cmd) {
36b0b1d41541fc drivers/video/fsl-diu-fb.c Timur Tabi 2011-10-04  1286   case 
MFB_SET_PIXFMT_OLD:
36b0b1d41541fc drivers/video/fsl-diu-fb.c Timur Tabi 2011-10-04 @1287   
dev_warn(info->dev,
36b0b1d41541fc drivers/video/fsl-diu-fb.c Timur Tabi 2011-10-04  1288   
 "MFB_SET_PIXFMT value of 0x%08x is deprecated.\n",
36b0b1d41541fc drivers/video/fsl-diu-fb.c Timur Tabi 2011-10-04  1289   
 MFB_SET_PIXFMT_OLD);
9b53a9e28a34ed drivers/video/fsl-diu-fb.c York Sun   2008-0

Re: [PATCH] smack: include linux/watch_queue.h

2019-09-09 Thread kbuild test robot
Hi Arnd,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Arnd-Bergmann/smack-include-linux-watch_queue-h/20190910-095704
reproduce:
# apt-get install sparse
# sparse version: 
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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

All errors (new ones prefixed by >>):

>> security/smack/smack_lsm.c:45:11: sparse: error: unable to open 
>> 'linux/watch_queue.h'

vim +45 security/smack/smack_lsm.c

  > 45  #include 
46  #include "smack.h"
47  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] smack: include linux/watch_queue.h

2019-09-09 Thread kbuild test robot
Hi Arnd,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Arnd-Bergmann/smack-include-linux-watch_queue-h/20190910-095704
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All errors (new ones prefixed by >>):

>> security/smack/smack_lsm.c:45:10: fatal error: linux/watch_queue.h: No such 
>> file or directory
#include 
 ^
   compilation terminated.

vim +45 security/smack/smack_lsm.c

  > 45  #include 
46  #include "smack.h"
47  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 6/9] select: Extract common code into do_sys_ppoll()

2019-09-09 Thread kbuild test robot
Hi Dmitry,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dmitry-Safonov/restart_block-Prepare-the-ground-for-dumping-timeout/20190909-182945
config: i386-randconfig-a003-201936 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   fs/select.c: In function 'do_sys_ppoll':
>> fs/select.c:1089:3: error: implicit declaration of function 
>> 'set_compat_user_sigmask' [-Werror=implicit-function-declaration]
  ret = set_compat_user_sigmask(sigmask, sigsetsize);
  ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 2 include/asm-generic/bitops-instrumented.h:test_bit
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
   Cyclomatic Complexity 1 include/asm-generic/atomic-long.h:atomic_long_inc
   Cyclomatic Complexity 1 include/linux/time64.h:timespec64_sub
   Cyclomatic Complexity 3 include/linux/time64.h:timespec64_valid
   Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
   Cyclomatic Complexity 68 include/asm-generic/getorder.h:get_order
   Cyclomatic Complexity 1 include/linux/thread_info.h:test_ti_thread_flag
   Cyclomatic Complexity 1 include/linux/thread_info.h:check_object_size
   Cyclomatic Complexity 2 include/linux/thread_info.h:copy_overflow
   Cyclomatic Complexity 4 include/linux/thread_info.h:check_copy_size
   Cyclomatic Complexity 1 arch/x86/include/asm/preempt.h:preempt_count
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_unlock
   Cyclomatic Complexity 2 include/linux/ktime.h:ktime_set
   Cyclomatic Complexity 1 include/linux/ktime.h:timespec64_to_ktime
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_acquire
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_release
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock
   Cyclomatic Complexity 1 include/linux/wait.h:init_waitqueue_func_entry
   Cyclomatic Complexity 1 include/linux/sched.h:task_nice
   Cyclomatic Complexity 1 include/linux/sched.h:task_thread_info
   Cyclomatic Complexity 1 include/linux/sched.h:test_tsk_thread_flag
   Cyclomatic Complexity 1 include/linux/sched.h:need_resched
   Cyclomatic Complexity 1 arch/x86/include/asm/smap.h:clac
   Cyclomatic Complexity 1 arch/x86/include/asm/smap.h:stac
   Cyclomatic Complexity 3 arch/x86/include/asm/uaccess.h:__chk_range_not_ok
   Cyclomatic Complexity 1 arch/x86/include/asm/uaccess_32.h:raw_copy_to_user
   Cyclomatic Complexity 1 include/linux/uaccess.h:__copy_to_user
   Cyclomatic Complexity 2 include/linux/uaccess.h:copy_from_user
   Cyclomatic Complexity 2 include/linux/uaccess.h:copy_to_user
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled
   Cyclomatic Complexity 1 include/linux/sched/signal.h:signal_pending
   Cyclomatic Complexity 2 
include/linux/sched/signal.h:test_and_clear_restore_sigmask
   Cyclomatic Complexity 2 include/linux/sched/signal.h:restore_saved_sigmask
   Cyclomatic Complexity 3 
include/linux/sched/signal.h:restore_saved_sigmask_unless
   Cyclomatic Complexity 1 include/linux/sched/signal.h:task_rlimit
   Cyclomatic Complexity 1 include/linux/sched/signal.h:rlimit
   Cyclomatic Complexity 2 include/linux/sched/rt.h:rt_prio
   Cyclomatic Complexity 1 include/linux/sched/rt.h:rt_task
   Cyclomatic Complexity 1 include/linux/fs.h:get_file
   Cyclomatic Complexity 8 include/linux/overflow.h:__ab_c_size
   Cyclomatic Complexity 1 include/linux/mm.h:kvmalloc
   Cyclomatic Complexity 1 include/linux/poll.h:init_poll_funcptr
   Cyclomatic Complexity 2 include/linux/poll.h:vfs_poll
   Cyclomatic Complexity 1 include/linux/poll.h:mangle_poll
   Cyclomatic Complexity 1 include/linux/po

Re: [PATCH v1 4/4] x86/mce: Add Zhaoxin LMCE support

2019-09-09 Thread kbuild test robot
Hi Tony,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Tony-W-Wang-oc/x86-mce-Add-Zhaoxin-MCE-support/20190909-190435
config: i386-randconfig-b002-201936 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   arch/x86//kernel/cpu/mce/core.c:1792:6: error: redefinition of 
'mce_zhaoxin_feature_init'
void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)
 ^~~~
   In file included from arch/x86//kernel/cpu/mce/core.c:50:0:
   arch/x86/include/asm/mce.h:357:20: note: previous definition of 
'mce_zhaoxin_feature_init' was here
static inline void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c) { }
   ^~~~
>> arch/x86//kernel/cpu/mce/core.c:1814:6: error: redefinition of 
>> 'mce_zhaoxin_feature_clear'
void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)
 ^
   In file included from arch/x86//kernel/cpu/mce/core.c:50:0:
   arch/x86/include/asm/mce.h:358:20: note: previous definition of 
'mce_zhaoxin_feature_clear' was here
static inline void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c) { }
   ^

vim +/mce_zhaoxin_feature_clear +1814 arch/x86//kernel/cpu/mce/core.c

  1791  
> 1792  void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)
  1793  {
  1794  struct mce_bank *mce_banks = this_cpu_ptr(mce_banks_array);
  1795  
  1796  /*
  1797   * These CPUs bank8 SVAD error may be triggered unexpected when
  1798   * bringup virtual machine. it is not hardware bug. Always 
disable
  1799   * bank8 SVAD error by default.
  1800   */
  1801  if ((c->x86 == 6 && c->x86_model == 0x19 &&
  1802  (c->x86_stepping > 3 && c->x86_stepping < 8)) ||
  1803  (c->x86 == 6 && c->x86_model == 0x1f) ||
  1804  (c->x86 == 7 && c->x86_model == 0x1b)) {
  1805  if (this_cpu_read(mce_num_banks) > 8)
  1806  mce_banks[8].ctl = 0;
  1807  }
  1808  
  1809  intel_init_cmci();
  1810  intel_init_lmce();
  1811  mce_adjust_timer = cmci_intel_adjust_timer;
  1812  }
  1813  
> 1814  void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)
  1815  {
  1816  intel_clear_lmce();
  1817  }
  1818  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v1 3/4] x86/mce: Add Zhaoxin CMCI support

2019-09-09 Thread kbuild test robot
Hi Tony,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Tony-W-Wang-oc/x86-mce-Add-Zhaoxin-MCE-support/20190909-190435
config: i386-randconfig-b002-201936 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

>> arch/x86/kernel/cpu/mce/core.c:1780:6: error: redefinition of 
>> 'mce_zhaoxin_feature_init'
void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)
 ^~~~
   In file included from arch/x86/kernel/cpu/mce/core.c:50:0:
   arch/x86/include/asm/mce.h:356:20: note: previous definition of 
'mce_zhaoxin_feature_init' was here
static inline void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c) { }
   ^~~~

vim +/mce_zhaoxin_feature_init +1780 arch/x86/kernel/cpu/mce/core.c

  1779  
> 1780  void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)
  1781  {
  1782  struct mce_bank *mce_banks = this_cpu_ptr(mce_banks_array);
  1783  
  1784  /*
  1785   * These CPUs bank8 SVAD error may be triggered unexpected when
  1786   * bringup virtual machine. it is not hardware bug. Always 
disable
  1787   * bank8 SVAD error by default.
  1788   */
  1789  if ((c->x86 == 6 && c->x86_model == 0x19 &&
  1790  (c->x86_stepping > 3 && c->x86_stepping < 8)) ||
  1791  (c->x86 == 6 && c->x86_model == 0x1f) ||
  1792  (c->x86 == 7 && c->x86_model == 0x1b)) {
  1793  if (this_cpu_read(mce_num_banks) > 8)
  1794  mce_banks[8].ctl = 0;
  1795  }
  1796  
  1797  intel_init_cmci();
  1798  mce_adjust_timer = cmci_intel_adjust_timer;
  1799  }
  1800  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 2/3] soc: amazon: al-pos: Introduce Amazon's Annapurna Labs POS driver

2019-09-09 Thread kbuild test robot
Hi Talel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Talel-Shenhar/Amazon-s-Annapurna-Labs-POS-Driver/20190909-180243
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=m68k 

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

All warnings (new ones prefixed by >>):

   drivers/soc/amazon/al_pos.c: In function 'al_pos_irq_handler':
>> drivers/soc/amazon/al_pos.c:56:57: warning: left shift count >= width of 
>> type [-Wshift-count-overflow]
 addr |= (FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1) << 32);
^~

vim +56 drivers/soc/amazon/al_pos.c

37  
38  static irqreturn_t al_pos_irq_handler(int irq, void *info)
39  {
40  struct platform_device *pdev = info;
41  struct al_pos *pos = platform_get_drvdata(pdev);
42  u32 log1;
43  u32 log0;
44  u64 addr;
45  u16 request_id;
46  u8 bresp;
47  
48  log1 = readl_relaxed(pos->mmio_base + AL_POS_ERROR_LOG_1);
49  if (!FIELD_GET(AL_POS_ERROR_LOG_1_VALID, log1))
50  return IRQ_NONE;
51  
52  log0 = readl_relaxed(pos->mmio_base + AL_POS_ERROR_LOG_0);
53  writel_relaxed(0, pos->mmio_base + AL_POS_ERROR_LOG_1);
54  
55  addr = FIELD_GET(AL_POS_ERROR_LOG_0_ADDR_LOW, log0);
  > 56  addr |= (FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1) << 32);
57  request_id = FIELD_GET(AL_POS_ERROR_LOG_1_REQUEST_ID, log1);
58  bresp = FIELD_GET(AL_POS_ERROR_LOG_1_BRESP, log1);
59  
60  dev_err(>dev, "addr=0x%llx request_id=0x%x bresp=0x%x\n",
61  addr, request_id, bresp);
62  
63  if (al_pos_panic)
64  panic("POS");
65  
66  return IRQ_HANDLED;
67  }
68  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 6/9] select: Extract common code into do_sys_ppoll()

2019-09-09 Thread kbuild test robot
Hi Dmitry,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc8 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dmitry-Safonov/restart_block-Prepare-the-ground-for-dumping-timeout/20190909-182945
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   fs/select.c: In function 'do_sys_ppoll':
>> fs/select.c:1089:9: error: implicit declaration of function 
>> 'set_compat_user_sigmask'; did you mean 'set_user_sigmask'? 
>> [-Werror=implicit-function-declaration]
  ret = set_compat_user_sigmask(sigmask, sigsetsize);
^~~
set_user_sigmask
   cc1: some warnings being treated as errors

vim +1089 fs/select.c

  1058  
  1059  static int do_sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
  1060  void __user *tsp, const void __user *sigmask,
  1061  size_t sigsetsize, enum poll_time_type pt_type)
  1062  {
  1063  struct timespec64 ts, end_time, *to = NULL;
  1064  int ret;
  1065  
  1066  if (tsp) {
  1067  switch (pt_type) {
  1068  case PT_TIMESPEC:
  1069  if (get_timespec64(, tsp))
  1070  return -EFAULT;
  1071  break;
  1072  case PT_OLD_TIMESPEC:
  1073  if (get_old_timespec32(, tsp))
  1074  return -EFAULT;
  1075  break;
  1076  default:
  1077  WARN_ON_ONCE(1);
  1078  return -ENOSYS;
  1079  }
  1080  
  1081  to = _time;
  1082  if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec))
  1083  return -EINVAL;
  1084  }
  1085  
  1086  if (!in_compat_syscall())
  1087  ret = set_user_sigmask(sigmask, sigsetsize);
  1088  else
> 1089  ret = set_compat_user_sigmask(sigmask, sigsetsize);
  1090  
  1091  if (ret)
  1092  return ret;
  1093  
  1094  ret = do_sys_poll(ufds, nfds, to);
  1095  return poll_select_finish(_time, tsp, pt_type, ret);
  1096  }
  1097  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


drivers/video/fbdev/vt8500lcdfb.c:229:6: warning: this statement may fall through

2019-09-09 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f74c2bb98776e2de508f4d607cd519873065118e
commit: a035d552a93bb9ef6048733bb9f2a0dc857ff869 Makefile: Globally enable 
fall-through warning
date:   6 weeks ago
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a035d552a93bb9ef6048733bb9f2a0dc857ff869
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   drivers/video/fbdev/vt8500lcdfb.c: In function 'vt8500lcd_blank':
>> drivers/video/fbdev/vt8500lcdfb.c:229:6: warning: this statement may fall 
>> through [-Wimplicit-fallthrough=]
  if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
 ^
   drivers/video/fbdev/vt8500lcdfb.c:233:2: note: here
 case FB_BLANK_UNBLANK:
 ^~~~

vim +229 drivers/video/fbdev/vt8500lcdfb.c

d6ff7d0fe22cdf drivers/video/vt8500lcdfb.c Alexey Charkov 2010-11-09  213  
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  214  /*
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  215   * 
vt8500lcd_blank():
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  216   *   
Blank the display by setting all palette values to zero.  Note,
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  217   *   
True Color modes do not really use the palette, so this will not
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  218   *   
   blank the display in all modes.
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  219   */
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  220  
static int vt8500lcd_blank(int blank, struct fb_info *info)
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  221  {
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  222   
int i;
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  223  
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  224   
switch (blank) {
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  225   
case FB_BLANK_POWERDOWN:
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  226   
case FB_BLANK_VSYNC_SUSPEND:
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  227   
case FB_BLANK_HSYNC_SUSPEND:
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  228   
case FB_BLANK_NORMAL:
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12 @229   
if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  230   
info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  231   
for (i = 0; i < 256; i++)
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  232   
vt8500lcd_setcolreg(i, 0, 0, 0, 0, info);
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  233   
case FB_BLANK_UNBLANK:
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  234   
if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  235   
info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  236   
fb_set_cmap(>cmap, info);
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  237   
}
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  238   
return 0;
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  239  }
e41f1a98940824 drivers/video/vt8500lcdfb.c Alexey Charkov 2011-01-12  240  

:: The code at line 229 was first introduced by commit
:: e41f1a98940824ad0c95271e69939acdc6092e5f fbdev: Implement simple 
blanking in pseudocolor modes for vt8500lcdfb

:: TO: Alexey Charkov 
:: CC: Paul Mundt 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


drivers/power/reset/nvmem-reboot-mode.c:27:42: error: passing argument 2 of 'nvmem_cell_write' from incompatible pointer type

2019-09-07 Thread kbuild test robot
Hi Han,

FYI, the error/warning still remains.

tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   950b07c14e8c59444e2359f15fd70ed5112e11a0
commit: 7a78a7f7695bf9ef9cef3c06fbc5fa4573fd0eef power: reset: 
nvmem-reboot-mode: use NVMEM as reboot mode write interface
date:   2 months ago
config: i386-randconfig-e003-201936 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
git checkout 7a78a7f7695bf9ef9cef3c06fbc5fa4573fd0eef
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/power/reset/nvmem-reboot-mode.c: In function 
'nvmem_reboot_mode_write':
>> drivers/power/reset/nvmem-reboot-mode.c:27:42: error: passing argument 2 of 
>> 'nvmem_cell_write' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
 ret = nvmem_cell_write(nvmem_rbm->cell, , sizeof(magic));
 ^
   In file included from drivers/power/reset/nvmem-reboot-mode.c:10:0:
   include/linux/nvmem-consumer.h:120:19: note: expected 'const char *' but 
argument is of type 'unsigned int *'
static inline int nvmem_cell_write(struct nvmem_cell *cell,
  ^~~~
   cc1: some warnings being treated as errors

vim +/nvmem_cell_write +27 drivers/power/reset/nvmem-reboot-mode.c

18  
19  static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot,
20  unsigned int magic)
21  {
22  int ret;
23  struct nvmem_reboot_mode *nvmem_rbm;
24  
25  nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, 
reboot);
26  
  > 27  ret = nvmem_cell_write(nvmem_rbm->cell, , sizeof(magic));
28  if (ret < 0)
29  dev_err(reboot->dev, "update reboot mode bits 
failed\n");
30  
31  return ret;
32  }
33  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


drivers/crypto/talitos.c:3142:4: warning: this statement may fall through

2019-09-07 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   1e3778cb223e861808ae0daccf353536e7573eed
commit: a035d552a93bb9ef6048733bb9f2a0dc857ff869 Makefile: Globally enable 
fall-through warning
date:   6 weeks ago
config: powerpc-mpc83xx_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a035d552a93bb9ef6048733bb9f2a0dc857ff869
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

   drivers/crypto/talitos.c: In function 'talitos_remove':
>> drivers/crypto/talitos.c:3142:4: warning: this statement may fall through 
>> [-Wimplicit-fallthrough=]
   crypto_unregister_aead(_alg->algt.alg.aead);
   ^
   drivers/crypto/talitos.c:3143:3: note: here
  case CRYPTO_ALG_TYPE_AHASH:
  ^~~~

vim +3142 drivers/crypto/talitos.c

9c4a79653b35ef Kim Phillips 2008-06-23  3129  
2dc11581376829 Grant Likely 2010-08-06  3130  static int talitos_remove(struct 
platform_device *ofdev)
9c4a79653b35ef Kim Phillips 2008-06-23  3131  {
9c4a79653b35ef Kim Phillips 2008-06-23  3132struct device *dev = 
>dev;
9c4a79653b35ef Kim Phillips 2008-06-23  3133struct talitos_private *priv = 
dev_get_drvdata(dev);
9c4a79653b35ef Kim Phillips 2008-06-23  3134struct talitos_crypto_alg 
*t_alg, *n;
9c4a79653b35ef Kim Phillips 2008-06-23  3135int i;
9c4a79653b35ef Kim Phillips 2008-06-23  3136  
9c4a79653b35ef Kim Phillips 2008-06-23  3137list_for_each_entry_safe(t_alg, 
n, >alg_list, entry) {
acbf7c627fb59d Lee Nipper   2010-05-19  3138switch 
(t_alg->algt.type) {
acbf7c627fb59d Lee Nipper   2010-05-19  3139case 
CRYPTO_ALG_TYPE_ABLKCIPHER:
acbf7c627fb59d Lee Nipper   2010-05-19  3140break;
aeb4c132f33d21 Herbert Xu   2015-07-30  3141case 
CRYPTO_ALG_TYPE_AEAD:
aeb4c132f33d21 Herbert Xu   2015-07-30 @3142
crypto_unregister_aead(_alg->algt.alg.aead);
acbf7c627fb59d Lee Nipper   2010-05-19  3143case 
CRYPTO_ALG_TYPE_AHASH:
acbf7c627fb59d Lee Nipper   2010-05-19  3144
crypto_unregister_ahash(_alg->algt.alg.hash);
acbf7c627fb59d Lee Nipper   2010-05-19  3145break;
acbf7c627fb59d Lee Nipper   2010-05-19  3146}
9c4a79653b35ef Kim Phillips 2008-06-23  3147list_del(_alg->entry);
9c4a79653b35ef Kim Phillips 2008-06-23  3148}
9c4a79653b35ef Kim Phillips 2008-06-23  3149  
9c4a79653b35ef Kim Phillips 2008-06-23  3150if (hw_supports(dev, 
DESC_HDR_SEL0_RNG))
9c4a79653b35ef Kim Phillips 2008-06-23  3151
talitos_unregister_rng(dev);
9c4a79653b35ef Kim Phillips 2008-06-23  3152  
c3e337f88a5b37 Kim Phillips 2011-11-21  3153for (i = 0; i < 2; i++)
2cdba3cf6ffc1f Kim Phillips 2011-12-12  3154if (priv->irq[i]) {
c3e337f88a5b37 Kim Phillips 2011-11-21  3155
free_irq(priv->irq[i], dev);
c3e337f88a5b37 Kim Phillips 2011-11-21  3156
irq_dispose_mapping(priv->irq[i]);
9c4a79653b35ef Kim Phillips 2008-06-23  3157}
9c4a79653b35ef Kim Phillips 2008-06-23  3158  
c3e337f88a5b37 Kim Phillips 2011-11-21  3159
tasklet_kill(>done_task[0]);
2cdba3cf6ffc1f Kim Phillips 2011-12-12  3160if (priv->irq[1])
c3e337f88a5b37 Kim Phillips 2011-11-21  3161
tasklet_kill(>done_task[1]);
9c4a79653b35ef Kim Phillips 2008-06-23  3162  
9c4a79653b35ef Kim Phillips 2008-06-23  3163return 0;
9c4a79653b35ef Kim Phillips 2008-06-23  3164  }
9c4a79653b35ef Kim Phillips 2008-06-23  3165  

:: The code at line 3142 was first introduced by commit
:: aeb4c132f33d21f6cf37558a932e66e40dd8982e crypto: talitos - Convert to 
new AEAD interface

:: TO: Herbert Xu 
:: CC: Herbert Xu 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] net: stmmac: socfpga: re-use the `interface` parameter from platform data

2019-09-07 Thread kbuild test robot
Hi Alexandru,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190904]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Alexandru-Ardelean/net-stmmac-socfpga-re-use-the-interface-parameter-from-platform-data/20190907-190627
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/dma-mapping.h:7:0,
from include/linux/skbuff.h:30,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/phy.h:16,
from 
drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c:11:
   drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c: In function 
'socfpga_gen5_set_phy_mode':
>> drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c:264:44: error: 
>> 'phymode' undeclared (first use in this function); did you mean 'phy_modes'?
  dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
   ^
   include/linux/device.h:1499:32: note: in definition of macro 'dev_err'
 _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
   ^~~
   drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c:264:44: note: each 
undeclared identifier is reported only once for each function it appears in
  dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
   ^
   include/linux/device.h:1499:32: note: in definition of macro 'dev_err'
 _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
   ^~~
   drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c: In function 
'socfpga_gen10_set_phy_mode':
   drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c:340:6: error: 'phymode' 
undeclared (first use in this function); did you mean 'phy_modes'?
 phymode == PHY_INTERFACE_MODE_MII ||
 ^~~
 phy_modes

vim +264 drivers/net//ethernet/stmicro/stmmac/dwmac-socfpga.c

40ae25505fe834 Dinh Nguyen2019-06-05  255  
40ae25505fe834 Dinh Nguyen2019-06-05  256  static int 
socfpga_gen5_set_phy_mode(struct socfpga_dwmac *dwmac)
40ae25505fe834 Dinh Nguyen2019-06-05  257  {
40ae25505fe834 Dinh Nguyen2019-06-05  258   struct regmap 
*sys_mgr_base_addr = dwmac->sys_mgr_base_addr;
40ae25505fe834 Dinh Nguyen2019-06-05  259   u32 reg_offset = 
dwmac->reg_offset;
40ae25505fe834 Dinh Nguyen2019-06-05  260   u32 reg_shift = 
dwmac->reg_shift;
40ae25505fe834 Dinh Nguyen2019-06-05  261   u32 ctrl, val, module;
40ae25505fe834 Dinh Nguyen2019-06-05  262  
6169afbe4a340b Alexandru Ardelean 2019-09-06  263   if 
(socfpga_set_phy_mode_common(dwmac, )) {
801d233b7302ee Dinh Nguyen2014-03-26 @264   
dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
801d233b7302ee Dinh Nguyen2014-03-26  265   return -EINVAL;
801d233b7302ee Dinh Nguyen2014-03-26  266   }
801d233b7302ee Dinh Nguyen2014-03-26  267  
b4834c86e11baf Ley Foon Tan   2014-08-20  268   /* Overwrite val to 
GMII if splitter core is enabled. The phymode here
b4834c86e11baf Ley Foon Tan   2014-08-20  269* is the actual phy 
mode on phy hardware, but phy interface from
b4834c86e11baf Ley Foon Tan   2014-08-20  270* EMAC core is GMII.
b4834c86e11baf Ley Foon Tan   2014-08-20  271*/
b4834c86e11baf Ley Foon Tan   2014-08-20  272   if 
(dwmac->splitter_base)
b4834c86e11baf Ley Foon Tan   2014-08-20  273   val = 
SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_GMII_MII;
b4834c86e11baf Ley Foon Tan   2014-08-20  274  
70cb136f773083 Joachim Eastwood   2016-05-01  275   /* Assert reset to the 
enet controller before changing the phy mode */
bc8a2d9bcbf1ca Dinh Nguyen2018-06-19  276   
reset_control_assert(dwmac->stmmac_ocp_rst);
70cb136f773083 Joachim Eastwood   2016-05-01  277   
reset_control_assert(dwmac->stmmac_rst);
70cb136f773083 Joachim Eastwood   2016-05-01  278  
801d233b7302ee Dinh Nguyen2014-03-26  279   
regmap_read(sys_mgr_base_addr, reg_offset, );
801d233b7302ee Dinh Nguyen2014-03-26  280   ctrl &= 
~(SYSMGR_EMACGRP_CTRL_PHYSEL_MASK <

Re: [PATCH 2/2] ipc/sem: Convert to use built-in RCU list checking

2019-09-03 Thread kbuild test robot
Hi "Joel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190903]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Joel-Fernandes-Google/pci-Convert-to-use-built-in-RCU-list-checking/20190901-211013
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All error/warnings (new ones prefixed by >>):

   ipc/sem.c: In function '__lookup_undo':
>> ipc/sem.c:1856:31: error: macro "list_for_each_entry_rcu" passed 4 
>> arguments, but takes just 3
spin_is_locked(>lock)) {
  ^
>> ipc/sem.c:1855:2: error: 'list_for_each_entry_rcu' undeclared (first use in 
>> this function); did you mean 'class_for_each_device'?
 list_for_each_entry_rcu(un, >list_proc, list_proc,
 ^~~
 class_for_each_device
   ipc/sem.c:1855:2: note: each undeclared identifier is reported only once for 
each function it appears in
>> ipc/sem.c:1856:33: error: expected ';' before '{' token
spin_is_locked(>lock)) {
^
   ipc/sem.c:1853:19: warning: unused variable 'un' [-Wunused-variable]
 struct sem_undo *un;
  ^~
>> ipc/sem.c:1861:1: warning: no return statement in function returning 
>> non-void [-Wreturn-type]
}
^

vim +/list_for_each_entry_rcu +1856 ipc/sem.c

  1850  
  1851  static struct sem_undo *__lookup_undo(struct sem_undo_list *ulp, int 
semid)
  1852  {
  1853  struct sem_undo *un;
  1854  
> 1855  list_for_each_entry_rcu(un, >list_proc, list_proc,
> 1856  spin_is_locked(>lock)) {
  1857  if (un->semid == semid)
  1858  return un;
  1859  }
  1860  return NULL;
> 1861  }
  1862  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v5 4/4] ftrace: Add an option for tracing console latencies

2019-09-03 Thread kbuild test robot
Hi Viktor,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190903]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Viktor-Rosendahl/Some-new-features-for-the-preempt-irqsoff-tracers/20190904-083632
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   In file included from kernel/events/hw_breakpoint.c:20:0:
>> include/linux/irqflags.h:71:9: error: unknown type name 'bool'
 extern bool console_tracing_disabled(void);
^~~~

vim +/bool +71 include/linux/irqflags.h

66  
67  #if defined(CONFIG_IRQSOFF_TRACER) || \
68  defined(CONFIG_PREEMPT_TRACER)
69   extern void stop_critical_timings(void);
70   extern void start_critical_timings(void);
  > 71   extern bool console_tracing_disabled(void);
72  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] pci: Convert to use built-in RCU list checking

2019-09-03 Thread kbuild test robot
Hi "Joel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190903]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Joel-Fernandes-Google/pci-Convert-to-use-built-in-RCU-list-checking/20190901-211013
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All error/warnings (new ones prefixed by >>):

   drivers/pci/controller/vmd.c: In function 'vmd_irq':
>> drivers/pci/controller/vmd.c:722:37: error: macro "list_for_each_entry_rcu" 
>> passed 4 arguments, but takes just 3
srcu_read_lock_held(>srcu))
^
>> drivers/pci/controller/vmd.c:721:2: error: unknown type name 
>> 'list_for_each_entry_rcu'
 list_for_each_entry_rcu(vmdirq, >irq_list, node,
 ^~~
>> drivers/pci/controller/vmd.c:723:28: error: expected ')' before '->' token
  generic_handle_irq(vmdirq->virq);
   ^~
>> drivers/pci/controller/vmd.c:721:2: warning: ISO C90 forbids mixed 
>> declarations and code [-Wdeclaration-after-statement]
 list_for_each_entry_rcu(vmdirq, >irq_list, node,
 ^~~
   drivers/pci/controller/vmd.c:717:18: warning: unused variable 'vmdirq' 
[-Wunused-variable]
 struct vmd_irq *vmdirq;
 ^~

vim +/list_for_each_entry_rcu +722 drivers/pci/controller/vmd.c

   713  
   714  static irqreturn_t vmd_irq(int irq, void *data)
   715  {
   716  struct vmd_irq_list *irqs = data;
   717  struct vmd_irq *vmdirq;
   718  int idx;
   719  
   720  idx = srcu_read_lock(>srcu);
 > 721  list_for_each_entry_rcu(vmdirq, >irq_list, node,
 > 722  srcu_read_lock_held(>srcu))
 > 723  generic_handle_irq(vmdirq->virq);
   724  srcu_read_unlock(>srcu, idx);
   725  
   726  return IRQ_HANDLED;
   727  }
   728  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCHv5 2/4] firmware: add Intel Stratix10 remote system update driver

2019-09-03 Thread kbuild test robot
Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190903]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/richard-gong-linux-intel-com/add-Intel-Stratix10-remote-system-update-driver/20190904-072434
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> drivers/firmware/stratix10-rsu.c:443:4: error: 'struct device_driver' has no 
>> member named 'dev_groups'; did you mean 'groups'?
  .dev_groups = rsu_groups,
   ^~
   groups
>> drivers/firmware/stratix10-rsu.c:443:17: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
  .dev_groups = rsu_groups,
^~
   drivers/firmware/stratix10-rsu.c:443:17: note: (near initialization for 
'stratix10_rsu_driver.driver.bus')
   cc1: some warnings being treated as errors

vim +443 drivers/firmware/stratix10-rsu.c

   437  
   438  static struct platform_driver stratix10_rsu_driver = {
   439  .probe = stratix10_rsu_probe,
   440  .remove = stratix10_rsu_remove,
   441  .driver = {
   442  .name = "stratix10-rsu",
 > 443  .dev_groups = rsu_groups,
   444  },
   445  };
   446  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 5/7] arm64: dts: mt8183: add usb and phy nodes

2019-09-03 Thread kbuild test robot
Hi Chunfeng,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Chunfeng-Yun/add-support-USB-for-MT8183/20190901-163637
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> arch/arm64/boot/dts/mediatek/mt8183-evb.dts:11:10: fatal error: mt6358.dtsi: 
>> No such file or directory
  11 | #include "mt6358.dtsi"
 |  ^
   compilation terminated.

vim +11 arch/arm64/boot/dts/mediatek/mt8183-evb.dts

  > 11  #include "mt6358.dtsi"
12  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/1] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-03 Thread kbuild test robot
Hi Anshuman,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Anshuman-Khandual/mm-debug-Add-tests-for-architecture-exported-page-table-helpers/20190903-162959
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=m68k 

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

All error/warnings (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/bug.h:32:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mm_types_task.h:13,
from include/linux/mm_types.h:5,
from include/linux/hugetlb.h:5,
from mm/arch_pgtable_test.c:14:
   mm/arch_pgtable_test.c: In function 'pmd_clear_tests':
>> arch/m68k/include/asm/page.h:31:22: error: lvalue required as unary '&' 
>> operand
#define pmd_val(x) (()->pmd[0])
 ^
   include/asm-generic/bug.h:124:25: note: in definition of macro 'WARN_ON'
 int __ret_warn_on = !!(condition);\
^
>> arch/m68k/include/asm/motorola_pgtable.h:138:26: note: in expansion of macro 
>> 'pmd_val'
#define pmd_none(pmd)  (!pmd_val(pmd))
 ^~~
>> mm/arch_pgtable_test.c:233:11: note: in expansion of macro 'pmd_none'
 WARN_ON(!pmd_none(READ_ONCE(*pmdp)));
  ^~~~
   mm/arch_pgtable_test.c: In function 'pmd_populate_tests':
>> arch/m68k/include/asm/page.h:31:22: error: lvalue required as unary '&' 
>> operand
#define pmd_val(x) (()->pmd[0])
 ^
   include/asm-generic/bug.h:124:25: note: in definition of macro 'WARN_ON'
 int __ret_warn_on = !!(condition);\
^
   arch/m68k/include/asm/motorola_pgtable.h:139:25: note: in expansion of macro 
'pmd_val'
#define pmd_bad(pmd)  ((pmd_val(pmd) & _DESCTYPE_MASK) != _PAGE_TABLE)
^~~
>> mm/arch_pgtable_test.c:245:10: note: in expansion of macro 'pmd_bad'
 WARN_ON(pmd_bad(READ_ONCE(*pmdp)));
 ^~~

vim +/pmd_none +233 mm/arch_pgtable_test.c

   228  
   229  static void pmd_clear_tests(pmd_t *pmdp)
   230  {
   231  memset(pmdp, RANDOM_NZVALUE, sizeof(pmd_t));
   232  pmd_clear(pmdp);
 > 233  WARN_ON(!pmd_none(READ_ONCE(*pmdp)));
   234  }
   235  
   236  static void pmd_populate_tests(struct mm_struct *mm, pmd_t *pmdp,
   237 pgtable_t pgtable)
   238  {
   239  /*
   240   * This entry points to next level page table page.
   241   * Hence this must not qualify as pmd_bad().
   242   */
   243  pmd_clear(pmdp);
   244  pmd_populate(mm, pmdp, pgtable);
 > 245  WARN_ON(pmd_bad(READ_ONCE(*pmdp)));
   246  }
   247  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 3/3] task: Clean house now that tasks on the runqueue are rcu protected

2019-09-03 Thread kbuild test robot
Hi "Eric,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc7 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Eric-W-Biederman/task-Making-tasks-on-the-runqueue-rcu-protected/20190903-130546
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> kernel/sched/membarrier.c:74:21: sparse: sparse: incompatible types in 
>> comparison expression (different address spaces):
>> kernel/sched/membarrier.c:74:21: sparse:struct task_struct [noderef] 
>>  *
>> kernel/sched/membarrier.c:74:21: sparse:struct task_struct *
   kernel/sched/membarrier.c:153:21: sparse: sparse: incompatible types in 
comparison expression (different address spaces):
   kernel/sched/membarrier.c:153:21: sparse:struct task_struct [noderef] 
 *
   kernel/sched/membarrier.c:153:21: sparse:struct task_struct *

vim +74 kernel/sched/membarrier.c

32  
33  static int membarrier_global_expedited(void)
34  {
35  int cpu;
36  bool fallback = false;
37  cpumask_var_t tmpmask;
38  
39  if (num_online_cpus() == 1)
40  return 0;
41  
42  /*
43   * Matches memory barriers around rq->curr modification in
44   * scheduler.
45   */
46  smp_mb();   /* system call entry is not a mb. */
47  
48  /*
49   * Expedited membarrier commands guarantee that they won't
50   * block, hence the GFP_NOWAIT allocation flag and fallback
51   * implementation.
52   */
53  if (!zalloc_cpumask_var(, GFP_NOWAIT)) {
54  /* Fallback for OOM. */
55  fallback = true;
56  }
57  
58  cpus_read_lock();
59  for_each_online_cpu(cpu) {
60  struct task_struct *p;
61  
62  /*
63   * Skipping the current CPU is OK even through we can be
64   * migrated at any point. The current CPU, at the point
65   * where we read raw_smp_processor_id(), is ensured to
66   * be in program order with respect to the caller
67   * thread. Therefore, we can skip this CPU from the
68   * iteration.
69   */
70  if (cpu == raw_smp_processor_id())
71  continue;
72  
73  rcu_read_lock();
  > 74  p = rcu_dereference(cpu_rq(cpu)->curr);
75  if (p && p->mm && 
(atomic_read(>mm->membarrier_state) &
76 MEMBARRIER_STATE_GLOBAL_EXPEDITED)) {
77  if (!fallback)
78  __cpumask_set_cpu(cpu, tmpmask);
79  else
80  smp_call_function_single(cpu, ipi_mb, 
NULL, 1);
81  }
82  rcu_read_unlock();
83  }
84  if (!fallback) {
85  preempt_disable();
86  smp_call_function_many(tmpmask, ipi_mb, NULL, 1);
87  preempt_enable();
88  free_cpumask_var(tmpmask);
89  }
90  cpus_read_unlock();
91  
92  /*
93   * Memory barrier on the caller thread _after_ we finished
94   * waiting for the last IPI. Matches memory barriers around
95   * rq->curr modification in scheduler.
96   */
97  smp_mb();   /* exit from system call is not a mb */
98  return 0;
99  }
   100  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


Re: [PATCHv1 1/3] arm64: dts: meson: odroid-c2: Add missing regulator linked to P5V0 regulator

2019-09-03 Thread kbuild test robot
Hi Anand,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Anand-Moon/arm64-dts-meson-odroid-c2-Add-missing-regulator-linked-to-P5V0-regulator/20190901-025920
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> ERROR: Input tree has errors, aborting (use -f to force output)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] net: hisilicon: Variable "reg_value" in function mdio_sc_cfg_reg_write() could be uninitialized

2019-09-02 Thread kbuild test robot
Hi Yizhuo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc7 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yizhuo/net-hisilicon-Variable-reg_value-in-function-mdio_sc_cfg_reg_write-could-be-uninitialized/20190903-071544
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/acpi.h:15:0,
from drivers/net//ethernet/hisilicon/hns_mdio.c:6:
   drivers/net//ethernet/hisilicon/hns_mdio.c: In function 
'mdio_sc_cfg_reg_write':
>> drivers/net//ethernet/hisilicon/hns_mdio.c:158:20: error: 'struct 
>> hns_mdio_device' has no member named 'regmap'
   dev_err(mdio_dev->regmap->dev, "Fail to read from the register\n");
   ^
   include/linux/device.h:1499:11: note: in definition of macro 'dev_err'
 _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
  ^~~

vim +158 drivers/net//ethernet/hisilicon/hns_mdio.c

   > 6  #include 
 7  #include 
 8  #include 
 9  #include 
10  #include 
11  #include 
12  #include 
13  #include 
14  #include 
15  #include 
16  #include 
17  #include 
18  #include 
19  #include 
20  #include 
21  #include 
22  
23  #define MDIO_DRV_NAME "Hi-HNS_MDIO"
24  #define MDIO_BUS_NAME "Hisilicon MII Bus"
25  
26  #define MDIO_TIMEOUT100
27  
28  struct hns_mdio_sc_reg {
29  u16 mdio_clk_en;
30  u16 mdio_clk_dis;
31  u16 mdio_reset_req;
32  u16 mdio_reset_dreq;
33  u16 mdio_clk_st;
34  u16 mdio_reset_st;
35  };
36  
37  struct hns_mdio_device {
38  u8 __iomem *vbase;  /* mdio reg base address */
39  struct regmap *subctrl_vbase;
40  struct hns_mdio_sc_reg sc_reg;
41  };
42  
43  /* mdio reg */
44  #define MDIO_COMMAND_REG0x0
45  #define MDIO_ADDR_REG   0x4
46  #define MDIO_WDATA_REG  0x8
47  #define MDIO_RDATA_REG  0xc
48  #define MDIO_STA_REG0x10
49  
50  /* cfg phy bit map */
51  #define MDIO_CMD_DEVAD_M0x1f
52  #define MDIO_CMD_DEVAD_S0
53  #define MDIO_CMD_PRTAD_M0x1f
54  #define MDIO_CMD_PRTAD_S5
55  #define MDIO_CMD_OP_S   10
56  #define MDIO_CMD_ST_S   12
57  #define MDIO_CMD_START_B14
58  
59  #define MDIO_ADDR_DATA_M0x
60  #define MDIO_ADDR_DATA_S0
61  
62  #define MDIO_WDATA_DATA_M   0x
63  #define MDIO_WDATA_DATA_S   0
64  
65  #define MDIO_RDATA_DATA_M   0x
66  #define MDIO_RDATA_DATA_S   0
67  
68  #define MDIO_STATE_STA_B0
69  
70  enum mdio_st_clause {
71  MDIO_ST_CLAUSE_45 = 0,
72  MDIO_ST_CLAUSE_22
73  };
74  
75  enum mdio_c22_op_seq {
76  MDIO_C22_WRITE = 1,
77  MDIO_C22_READ = 2
78  };
79  
80  enum mdio_c45_op_seq {
81  MDIO_C45_WRITE_ADDR = 0,
82  MDIO_C45_WRITE_DATA,
83  MDIO_C45_READ_INCREMENT,
84  MDIO_C45_READ
85  };
86  
87  /* peri subctrl reg */
88  #define MDIO_SC_CLK_EN  0x338
89  #define MDIO_SC_CLK_DIS 0x33C
90  #define MDIO_SC_RESET_REQ   0xA38
91  #define MDIO_SC_RESET_DREQ  0xA3C
92  #define MDIO_SC_CLK_ST  0x531C
93  #define MDIO_SC_RESET_ST0x5A1C
94  
95  static void mdio_write_reg(u8 __iomem *base, u32 reg, u32 value)
96  {
97  writel_relaxed(value, base + reg);
98  }
99  
   100  #define MDIO_WRITE_REG(a, reg, value) \
   101  mdio_write_reg((a)->vbase, (reg), (value))
   102  
   103  static u32 mdio_read_reg(u8 __iomem *base, u32 reg)
   104  {
   105  return readl_relaxed(base + reg);
   106  }
   107  
   108  #define mdio_set_field(origin, mask, shift, val) \
   109  do { \
   110  (origin) &= (~((mask) << (shift))); \
   111  (origin) |= (((val) & (mask)) << (shift)); \
   112  } while (0)
   113  
   114  #define mdio_get_field(origin, mask, shift) (((origin) >> (shift)

Re: [PATCH v6 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-09-02 Thread kbuild test robot
Hi Stephen,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ]

url:
https://github.com/0day-ci/linux/commits/Stephen-Boyd/tpm-Add-driver-for-cr50/20190901-100447
base:
config: x86_64-randconfig-s1-09021303 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   WARNING: modpost: missing MODULE_LICENSE() in drivers/char/tpm/cr50_spi.o
   see include/linux/module.h for more information
>> ERROR: "tpm_tis_spi_resume" [drivers/char/tpm/tpm_tis_spi.ko] undefined!
   ERROR: "cr50_spi_probe" [drivers/char/tpm/tpm_tis_spi.ko] undefined!
   ERROR: "tpm_tis_spi_read16" [drivers/char/tpm/cr50_spi.ko] undefined!
   ERROR: "tpm_tis_spi_write32" [drivers/char/tpm/cr50_spi.ko] undefined!
   ERROR: "tpm_tis_spi_read32" [drivers/char/tpm/cr50_spi.ko] undefined!
   ERROR: "tpm_tis_spi_init" [drivers/char/tpm/cr50_spi.ko] undefined!
   ERROR: "tpm_tis_spi_transfer" [drivers/char/tpm/cr50_spi.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v6 4/4] tpm: tpm_tis_spi: Support cr50 devices

2019-09-02 Thread kbuild test robot
Hi Stephen,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ]

url:
https://github.com/0day-ci/linux/commits/Stephen-Boyd/tpm-Add-driver-for-cr50/20190901-100447
base:
config: i386-randconfig-a004-201935 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   WARNING: modpost: missing MODULE_LICENSE() in drivers/char/tpm/cr50_spi.o
   see include/linux/module.h for more information
>> ERROR: "cr50_spi_probe" [drivers/char/tpm/tpm_tis_spi.ko] undefined!
>> ERROR: "tpm_tis_spi_write32" [drivers/char/tpm/cr50_spi.ko] undefined!
>> ERROR: "tpm_tis_spi_read32" [drivers/char/tpm/cr50_spi.ko] undefined!
>> ERROR: "tpm_tis_spi_read16" [drivers/char/tpm/cr50_spi.ko] undefined!
>> ERROR: "tpm_tis_spi_init" [drivers/char/tpm/cr50_spi.ko] undefined!
>> ERROR: "tpm_tis_spi_transfer" [drivers/char/tpm/cr50_spi.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v1 3/3] arm64: dts: Add power-domains properity to mfgcfg

2019-09-02 Thread kbuild test robot
Hi Weiyi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Weiyi-Lu/clk-mediatek-Register-clock-gate-with-device/20190902-174605
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/mediatek/mt8183.dtsi:391.29-30 syntax error
   FATAL ERROR: Unable to parse input tree

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH -tip] kprobes: Prohibit probing on BUG() and WARN() address

2019-09-02 Thread kbuild test robot
Hi Masami,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/kprobes-Prohibit-probing-on-BUG-and-WARN-address/20190902-211736
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All errors (new ones prefixed by >>):

   kernel/kprobes.c: In function 'check_kprobe_address_safe':
>> kernel/kprobes.c:1518:6: error: implicit declaration of function 'find_bug'; 
>> did you mean 'find_vma'? [-Werror=implicit-function-declaration]
 find_bug(p->addr)) {
 ^~~~
 find_vma
   cc1: some warnings being treated as errors

vim +1518 kernel/kprobes.c

  1502  
  1503  static int check_kprobe_address_safe(struct kprobe *p,
  1504   struct module **probed_mod)
  1505  {
  1506  int ret;
  1507  
  1508  ret = arch_check_ftrace_location(p);
  1509  if (ret)
  1510  return ret;
  1511  jump_label_lock();
  1512  preempt_disable();
  1513  
  1514  /* Ensure it is not in reserved area nor out of text */
  1515  if (!kernel_text_address((unsigned long) p->addr) ||
  1516  within_kprobe_blacklist((unsigned long) p->addr) ||
  1517  jump_label_text_reserved(p->addr, p->addr) ||
> 1518  find_bug(p->addr)) {
  1519  ret = -EINVAL;
  1520  goto out;
  1521  }
  1522  
  1523  /* Check if are we probing a module */
  1524  *probed_mod = __module_text_address((unsigned long) p->addr);
  1525  if (*probed_mod) {
  1526  /*
  1527   * We must hold a refcount of the probed module while 
updating
  1528   * its code to prohibit unexpected unloading.
  1529   */
  1530  if (unlikely(!try_module_get(*probed_mod))) {
  1531  ret = -ENOENT;
  1532  goto out;
  1533  }
  1534  
  1535  /*
  1536   * If the module freed .init.text, we couldn't insert
  1537   * kprobes in there.
  1538   */
  1539  if (within_module_init((unsigned long)p->addr, 
*probed_mod) &&
  1540  (*probed_mod)->state != MODULE_STATE_COMING) {
  1541  module_put(*probed_mod);
  1542  *probed_mod = NULL;
  1543  ret = -ENOENT;
  1544  }
  1545  }
  1546  out:
  1547  preempt_enable();
  1548  jump_label_unlock();
  1549  
  1550  return ret;
  1551  }
  1552  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH -tip] kprobes: Prohibit probing on BUG() and WARN() address

2019-09-02 Thread kbuild test robot
Hi Masami,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190902]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/kprobes-Prohibit-probing-on-BUG-and-WARN-address/20190902-211736
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

   kernel/kprobes.c: In function 'check_kprobe_address_safe':
>> kernel/kprobes.c:1518:15: warning: passing argument 1 of 'find_bug' makes 
>> integer from pointer without a cast [-Wint-conversion]
 find_bug(p->addr)) {
  ^
   In file included from arch/powerpc/include/asm/mmu.h:130:0,
from arch/powerpc/include/asm/lppaca.h:47,
from arch/powerpc/include/asm/paca.h:17,
from arch/powerpc/include/asm/current.h:13,
from include/linux/mutex.h:14,
from include/linux/notifier.h:14,
from include/linux/kprobes.h:22,
from kernel/kprobes.c:21:
   include/linux/bug.h:39:19: note: expected 'long unsigned int' but argument 
is of type 'kprobe_opcode_t * {aka unsigned int *}'
struct bug_entry *find_bug(unsigned long bugaddr);
  ^~~~

vim +/find_bug +1518 kernel/kprobes.c

  1502  
  1503  static int check_kprobe_address_safe(struct kprobe *p,
  1504   struct module **probed_mod)
  1505  {
  1506  int ret;
  1507  
  1508  ret = arch_check_ftrace_location(p);
  1509  if (ret)
  1510  return ret;
  1511  jump_label_lock();
  1512  preempt_disable();
  1513  
  1514  /* Ensure it is not in reserved area nor out of text */
  1515  if (!kernel_text_address((unsigned long) p->addr) ||
  1516  within_kprobe_blacklist((unsigned long) p->addr) ||
  1517  jump_label_text_reserved(p->addr, p->addr) ||
> 1518  find_bug(p->addr)) {
  1519  ret = -EINVAL;
  1520  goto out;
  1521  }
  1522  
  1523  /* Check if are we probing a module */
  1524  *probed_mod = __module_text_address((unsigned long) p->addr);
  1525  if (*probed_mod) {
  1526  /*
  1527   * We must hold a refcount of the probed module while 
updating
  1528   * its code to prohibit unexpected unloading.
  1529   */
  1530  if (unlikely(!try_module_get(*probed_mod))) {
  1531  ret = -ENOENT;
  1532  goto out;
  1533  }
  1534  
  1535  /*
  1536   * If the module freed .init.text, we couldn't insert
  1537   * kprobes in there.
  1538   */
  1539  if (within_module_init((unsigned long)p->addr, 
*probed_mod) &&
  1540  (*probed_mod)->state != MODULE_STATE_COMING) {
  1541  module_put(*probed_mod);
  1542  *probed_mod = NULL;
  1543  ret = -ENOENT;
  1544  }
  1545  }
  1546  out:
  1547  preempt_enable();
  1548  jump_label_unlock();
  1549  
  1550  return ret;
  1551  }
  1552  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 4/7] usb: mtk-xhci: support ip-sleep wakeup for MT8183

2019-09-02 Thread kbuild test robot
Hi Chunfeng,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Chunfeng-Yun/add-support-USB-for-MT8183/20190901-163637
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:5:0,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/usb/host/xhci-mtk.c:10:
   drivers/usb/host/xhci-mtk.c: In function 'usb_wakeup_ip_sleep_set':
   include/linux/bits.h:8:19: warning: large integer implicitly truncated to 
unsigned type [-Woverflow]
#define BIT(nr)   (UL(1) << (nr))
  ^
>> drivers/usb/host/xhci-mtk.c:64:19: note: in expansion of macro 'BIT'
#define WC0_IS_EN BIT(6)
  ^~~
>> drivers/usb/host/xhci-mtk.c:294:9: note: in expansion of macro 'WC0_IS_EN'
  msk = WC0_IS_EN | WC0_IS_C(0xf) | WC0_IS_P;
^

vim +/BIT +64 drivers/usb/host/xhci-mtk.c

  > 10  #include 
11  #include 
12  #include 
13  #include 
14  #include 
15  #include 
16  #include 
17  #include 
18  #include 
19  #include 
20  #include 
21  
22  #include "xhci.h"
23  #include "xhci-mtk.h"
24  
25  /* ip_pw_ctrl0 register */
26  #define CTRL0_IP_SW_RST BIT(0)
27  
28  /* ip_pw_ctrl1 register */
29  #define CTRL1_IP_HOST_PDN   BIT(0)
30  
31  /* ip_pw_ctrl2 register */
32  #define CTRL2_IP_DEV_PDNBIT(0)
33  
34  /* ip_pw_sts1 register */
35  #define STS1_IP_SLEEP_STS   BIT(30)
36  #define STS1_U3_MAC_RST BIT(16)
37  #define STS1_XHCI_RST   BIT(11)
38  #define STS1_SYS125_RST BIT(10)
39  #define STS1_REF_RSTBIT(8)
40  #define STS1_SYSPLL_STABLE  BIT(0)
41  
42  /* ip_xhci_cap register */
43  #define CAP_U3_PORT_NUM(p)  ((p) & 0xff)
44  #define CAP_U2_PORT_NUM(p)  (((p) >> 8) & 0xff)
45  
46  /* u3_ctrl_p register */
47  #define CTRL_U3_PORT_HOST_SEL   BIT(2)
48  #define CTRL_U3_PORT_PDNBIT(1)
49  #define CTRL_U3_PORT_DISBIT(0)
50  
51  /* u2_ctrl_p register */
52  #define CTRL_U2_PORT_HOST_SEL   BIT(2)
53  #define CTRL_U2_PORT_PDNBIT(1)
54  #define CTRL_U2_PORT_DISBIT(0)
55  
56  /* u2_phy_pll register */
57  #define CTRL_U2_FORCE_PLL_STB   BIT(28)
58  
59  /* usb remote wakeup registers in syscon */
60  /* mt8183 etc */
61  #define PERI_WK_CTRL0   0x20
62  #define WC0_IS_C(x) (((x) & 0xf) << 28)  /* cycle debounce */
63  #define WC0_IS_PBIT(12) /* polarity */
  > 64  #define WC0_IS_EN   BIT(6)
65  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH net-next 05/13] net: stmmac: selftests: Add selftest for L3/L4 Filters

2019-09-02 Thread kbuild test robot
Hi Jose,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Jose-Abreu/net-stmmac-Improvements-for-next/20190902-160927
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips 

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c: In function 
'__stmmac_test_l3filt':
>> drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1249:1: warning: the 
>> frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
   drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c: In function 
'__stmmac_test_l4filt':
   drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1362:1: warning: the 
frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^

vim +1249 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c

  1170  
  1171  #ifdef CONFIG_NET_CLS_ACT
  1172  static int __stmmac_test_l3filt(struct stmmac_priv *priv, u32 dst, u32 
src,
  1173  u32 dst_mask, u32 src_mask)
  1174  {
  1175  struct flow_dissector_key_ipv4_addrs key, mask;
  1176  unsigned long dummy_cookie = 0xdeadbeef;
  1177  struct flow_dissector dissector = { };
  1178  struct stmmac_packet_attrs attr = { };
  1179  struct flow_cls_offload cls = { };
  1180  struct flow_rule *rule;
  1181  int ret;
  1182  
  1183  if (!tc_can_offload(priv->dev))
  1184  return -EOPNOTSUPP;
  1185  if (!priv->dma_cap.l3l4fnum)
  1186  return -EOPNOTSUPP;
  1187  if (priv->rss.enable) {
  1188  struct stmmac_rss rss = { .enable = false, };
  1189  
  1190  stmmac_rss_configure(priv, priv->hw, ,
  1191   priv->plat->rx_queues_to_use);
  1192  }
  1193  
  1194  dissector.used_keys |= (1 << FLOW_DISSECTOR_KEY_IPV4_ADDRS);
  1195  dissector.offset[FLOW_DISSECTOR_KEY_IPV4_ADDRS] = 0;
  1196  
  1197  cls.common.chain_index = 0;
  1198  cls.command = FLOW_CLS_REPLACE;
  1199  cls.cookie = dummy_cookie;
  1200  
  1201  rule = kzalloc(struct_size(rule, action.entries, 1), 
GFP_KERNEL);
  1202  if (!rule) {
  1203  ret = -ENOMEM;
  1204  goto cleanup_rss;
  1205  }
  1206  
  1207  rule->match.dissector = 
  1208  rule->match.key = (void *)
  1209  rule->match.mask = (void *)
  1210  
  1211  key.src = htonl(src);
  1212  key.dst = htonl(dst);
  1213  mask.src = src_mask;
  1214  mask.dst = dst_mask;
  1215  
  1216  cls.rule = rule;
  1217  
  1218  rule->action.entries[0].id = FLOW_ACTION_DROP;
  1219  rule->action.num_entries = 1;
  1220  
  1221  attr.dst = priv->dev->dev_addr;
  1222  attr.ip_dst = dst;
  1223  attr.ip_src = src;
  1224  
  1225  /* Shall receive packet */
  1226  ret = __stmmac_test_loopback(priv, );
  1227  if (ret)
  1228  goto cleanup_rule;
  1229  
  1230  ret = stmmac_tc_setup_cls(priv, priv, );
  1231  if (ret)
  1232  goto cleanup_rule;
  1233  
  1234  /* Shall NOT receive packet */
  1235  ret = __stmmac_test_loopback(priv, );
  1236  ret = ret ? 0 : -EINVAL;
  1237  
  1238  cls.command = FLOW_CLS_DESTROY;
  1239  stmmac_tc_setup_cls(priv, priv, );
  1240  cleanup_rule:
  1241  kfree(rule);
  1242  cleanup_rss:
  1243  if (priv->rss.enable) {
  1244  stmmac_rss_configure(priv, priv->hw, >rss,
  1245   priv->plat->rx_queues_to_use);
  1246  }
  1247  
  1248  return ret;
> 1249  }
  1250  #else
  1251  static int __stmmac_test_l3filt(struct stmmac_priv *priv, u32 dst, u32 
src,
  1252  u32 dst_mask, u32 src_mask)
  1253  {
  1254  return -EOPNOTSUPP;
  1255  }
  1256  #endif
  1257  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 3/7] usb: mtu3: support ip-sleep wakeup for MT8183

2019-09-02 Thread kbuild test robot
Hi Chunfeng,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Chunfeng-Yun/add-support-USB-for-MT8183/20190901-163637
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:5:0,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers//usb/mtu3/mtu3_host.c:10:
   drivers//usb/mtu3/mtu3_host.c: In function 'ssusb_wakeup_ip_sleep_set':
>> include/linux/bits.h:8:19: warning: large integer implicitly truncated to 
>> unsigned type [-Woverflow]
#define BIT(nr)   (UL(1) << (nr))
  ^
>> drivers//usb/mtu3/mtu3_host.c:25:19: note: in expansion of macro 'BIT'
#define WC0_IS_EN BIT(6)
  ^~~
>> drivers//usb/mtu3/mtu3_host.c:55:9: note: in expansion of macro 'WC0_IS_EN'
  msk = WC0_IS_EN | WC0_IS_C(0xf) | WC0_IS_P;
^
--
   In file included from include/linux/bitops.h:5:0,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/usb/mtu3/mtu3_host.c:10:
   drivers/usb/mtu3/mtu3_host.c: In function 'ssusb_wakeup_ip_sleep_set':
>> include/linux/bits.h:8:19: warning: large integer implicitly truncated to 
>> unsigned type [-Woverflow]
#define BIT(nr)   (UL(1) << (nr))
  ^
   drivers/usb/mtu3/mtu3_host.c:25:19: note: in expansion of macro 'BIT'
#define WC0_IS_EN BIT(6)
  ^~~
   drivers/usb/mtu3/mtu3_host.c:55:9: note: in expansion of macro 'WC0_IS_EN'
  msk = WC0_IS_EN | WC0_IS_C(0xf) | WC0_IS_P;
^

vim +/WC0_IS_EN +55 drivers//usb/mtu3/mtu3_host.c

  > 10  #include 
11  #include 
12  #include 
13  #include 
14  #include 
15  #include 
16  #include 
17  
18  #include "mtu3.h"
19  #include "mtu3_dr.h"
20  
21  /* mt8183 etc */
22  #define PERI_WK_CTRL0   0x20
23  #define WC0_IS_C(x) (((x) & 0xf) << 28)  /* cycle debounce */
24  #define WC0_IS_PBIT(12) /* polarity */
  > 25  #define WC0_IS_EN   BIT(6)
26  
27  /* mt8173 etc */
28  #define PERI_WK_CTRL1   0x4
29  #define WC1_IS_C(x) (((x) & 0xf) << 26)  /* cycle debounce */
30  #define WC1_IS_EN   BIT(25)
31  #define WC1_IS_PBIT(6)  /* polarity for ip sleep */
32  
33  /* mt2712 etc */
34  #define PERI_SSUSB_SPM_CTRL 0x0
35  #define SSC_IP_SLEEP_EN BIT(4)
36  #define SSC_SPM_INT_EN  BIT(1)
37  
38  enum ssusb_uwk_vers {
39  SSUSB_UWK_V0 = 0,
40  SSUSB_UWK_V1,
41  SSUSB_UWK_V2,
42  };
43  
44  /*
45   * ip-sleep wakeup mode:
46   * all clocks can be turn off, but power domain should be kept on
47   */
48  static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool 
enable)
49  {
50  u32 reg, msk, val;
51  
52  switch (ssusb->uwk_vers) {
53  case SSUSB_UWK_V0:
54  reg = ssusb->uwk_reg_base + PERI_WK_CTRL0;
  > 55  msk = WC0_IS_EN | WC0_IS_C(0xf) | WC0_IS_P;
56  val = enable ? (WC0_IS_EN | WC0_IS_C(0x8)) : 0;
57  break;
58  case SSUSB_UWK_V1:
59  reg = ssusb->uwk_reg_base + PERI_WK_CTRL1;
60  msk = WC1_IS_EN | WC1_IS_C(0xf) | WC1_IS_P;
61  val = enable ? (WC1_IS_EN | WC1_IS_C(0x8)) : 0;
62  break;
63  case SSUSB_UWK_V2:
64  reg = ssusb->uwk_reg_base + PERI_SSUSB_SPM_CTRL;
65  msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN;
66  val = enable ? msk : 0;
67  break;
68  default:
69  return;
70  }
71  regmap_update_bits(ssusb->uwk, reg, msk, val);
72  }
73  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 13/16] ARM: mmp: move cputype.h to include/linux/soc/

2019-09-02 Thread kbuild test robot
Hi Lubomir,

I love your patch! Yet something to improve:

[auto build test ERROR on arm/for-next]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Lubomir-Rintel/Initial-support-for-Marvell-MMP3-SoC/20190901-110305
base:   git://git.armlinux.org.uk/~rmk/linux-arm.git for-next
config: x86_64-randconfig-s2-09021304 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from :0:0:
>> include/linux/soc/mmp/cputype.h:5:10: fatal error: asm/cputype.h: No such 
>> file or directory
#include 
 ^~~
   compilation terminated.

vim +5 include/linux/soc/mmp/cputype.h

49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20  4 
 
49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20 @5 
 #include 
49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20  6 
 

:: The code at line 5 was first introduced by commit
:: 49cbe78637eb0503f45fc9b556ec08918a616534 [ARM] pxa: add base support for 
Marvell's PXA168 processor line

:: TO: Eric Miao 
:: CC: Eric Miao 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 3/3] pmbus: ibm-cffps: Add support for version 2 of the PSU

2019-09-02 Thread kbuild test robot
Hi Eddie,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Eddie-James/pmbus-ibm-cffps-Add-support-for-version-2-of-PSU/20190901-151755
config: x86_64-randconfig-s0-09021304 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   drivers/hwmon/pmbus/ibm-cffps.c: In function 'ibm_cffps_probe':
>> drivers/hwmon/pmbus/ibm-cffps.c:404:8: warning: cast from pointer to integer 
>> of different size [-Wpointer-to-int-cast]
  vs = (int)md;
   ^

vim +404 drivers/hwmon/pmbus/ibm-cffps.c

   393  
   394  static int ibm_cffps_probe(struct i2c_client *client,
   395 const struct i2c_device_id *id)
   396  {
   397  int i, rc, vs;
   398  struct dentry *debugfs;
   399  struct dentry *ibm_cffps_dir;
   400  struct ibm_cffps *psu;
   401  const void *md = of_device_get_match_data(>dev);
   402  
   403  if (md)
 > 404  vs = (int)md;
   405  else if (id)
   406  vs = (int)id->driver_data;
   407  else
   408  vs = 1;
   409  
   410  client->dev.platform_data = _cffps_pdata;
   411  rc = pmbus_do_probe(client, id, _cffps_info[vs - 1]);
   412  if (rc)
   413  return rc;
   414  
   415  /*
   416   * Don't fail the probe if there isn't enough memory for leds 
and
   417   * debugfs.
   418   */
   419  psu = devm_kzalloc(>dev, sizeof(*psu), GFP_KERNEL);
   420  if (!psu)
   421  return 0;
   422  
   423  psu->version = vs;
   424  psu->client = client;
   425  mutex_init(>input_history.update_lock);
   426  psu->input_history.last_update = jiffies - HZ;
   427  
   428  ibm_cffps_create_led_class(psu);
   429  
   430  /* Don't fail the probe if we can't create debugfs */
   431  debugfs = pmbus_get_debugfs_dir(client);
   432  if (!debugfs)
   433  return 0;
   434  
   435  ibm_cffps_dir = debugfs_create_dir(client->name, debugfs);
   436  if (!ibm_cffps_dir)
   437  return 0;
   438  
   439  for (i = 0; i < CFFPS_DEBUGFS_NUM_ENTRIES; ++i)
   440  psu->debugfs_entries[i] = i;
   441  
   442  debugfs_create_file("input_history", 0444, ibm_cffps_dir,
   443  
>debugfs_entries[CFFPS_DEBUGFS_INPUT_HISTORY],
   444  _cffps_fops);
   445  debugfs_create_file("fru", 0444, ibm_cffps_dir,
   446  >debugfs_entries[CFFPS_DEBUGFS_FRU],
   447  _cffps_fops);
   448  debugfs_create_file("part_number", 0444, ibm_cffps_dir,
   449  >debugfs_entries[CFFPS_DEBUGFS_PN],
   450  _cffps_fops);
   451  debugfs_create_file("serial_number", 0444, ibm_cffps_dir,
   452  >debugfs_entries[CFFPS_DEBUGFS_SN],
   453  _cffps_fops);
   454  debugfs_create_file("ccin", 0444, ibm_cffps_dir,
   455  >debugfs_entries[CFFPS_DEBUGFS_CCIN],
   456  _cffps_fops);
   457  debugfs_create_file("fw_version", 0444, ibm_cffps_dir,
   458  >debugfs_entries[CFFPS_DEBUGFS_FW],
   459  _cffps_fops);
   460  
   461  return 0;
   462  }
   463  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/4] regulator: provide regulator_bulk_set_supply_names()

2019-09-02 Thread kbuild test robot
Hi Bartosz,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/regulator-add-and-use-a-helper-for-setting-supply-names/20190901-140224
config: c6x-evmc6678_defconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=c6x 

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

All errors (new ones prefixed by >>):

   drivers/of/platform.o: In function `regulator_bulk_set_supply_names':
>> platform.c:(.text+0xc80): multiple definition of 
>> `regulator_bulk_set_supply_names'
   drivers/usb/phy/of.o:of.c:(.text+0xa8): first defined here

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 2/2] touchscreen: goodix: define GPIO mapping for GPD P2 Max

2019-09-02 Thread kbuild test robot
Hi Peter,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Peter-Cai/gpio-acpi-add-quirk-to-override-GpioInt-polarity/20190902-004801
config: x86_64-fedora-25 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> drivers/input/touchscreen/goodix.c:168:18: warning: initialization discards 
>> 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  .driver_data = _mapping_force_irq_active_high
 ^
   drivers/input/touchscreen/goodix.c: In function 'goodix_ts_probe':
>> drivers/input/touchscreen/goodix.c:830:12: warning: assignment discards 
>> 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 dmi_match = dmi_first_match(need_gpio_mapping);
   ^

vim +/const +168 drivers/input/touchscreen/goodix.c

   156  
   157  /*
   158   * Devices that need acpi_gpio_mapping to function correctly
   159   */
   160  static const struct dmi_system_id need_gpio_mapping[] = {
   161  #if defined(CONFIG_DMI) && defined(CONFIG_X86)
   162  {
   163  .ident = "GPD P2 Max",
   164  .matches = {
   165  DMI_MATCH(DMI_SYS_VENDOR, "GPD"),
   166  DMI_MATCH(DMI_PRODUCT_NAME, "P2 MAX")
   167  },
 > 168  .driver_data = _mapping_force_irq_active_high
   169  },
   170  #endif
   171  {}
   172  };
   173  #endif
   174  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/4] regulator: provide regulator_bulk_set_supply_names()

2019-09-01 Thread kbuild test robot
Hi Bartosz,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/regulator-add-and-use-a-helper-for-setting-supply-names/20190901-140224
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=nds32 

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

All errors (new ones prefixed by >>):

   nds32le-linux-ld: drivers/of/platform.o: in function 
`regulator_bulk_set_supply_names':
>> platform.c:(.text+0xe8): multiple definition of 
>> `regulator_bulk_set_supply_names'; drivers/usb/phy/of.o:of.c:(.text+0x0): 
>> first defined here

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v2] powerpc/32: Add VDSO version of getcpu

2019-09-01 Thread kbuild test robot
Hi Christophe,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-32-Add-VDSO-version-of-getcpu/20190819-034351
config: powerpc-sequoia_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/head_booke.h:7:0,
from arch/powerpc/kernel/asm-offsets.c:61:
>> arch/powerpc/include/asm/asm-offsets.h:1:10: fatal error: 
>> generated/asm-offsets.h: No such file or directory
#include 
 ^
   compilation terminated.
   make[2]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2
   20 real  7 user  6 sys  67.53% cpu   make prepare

vim +1 arch/powerpc/include/asm/asm-offsets.h

559df2e0210352 Sam Ravnborg 2009-04-19 @1  #include 

:: The code at line 1 was first introduced by commit
:: 559df2e0210352f83926d178c40c51142292a18c kbuild: move asm-offsets.h to 
include/generated

:: TO: Sam Ravnborg 
:: CC: Michal Marek 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v4 2/2] drm/bridge: Add NWL MIPI DSI host controller support

2019-09-01 Thread kbuild test robot
Hi "Guido,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Guido-G-nther/dt-bindings-display-bridge-Add-binding-for-NWL-mipi-dsi-host-controller/20190901-114958
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:22:0:
   drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c: In function 'nwl_dsi_read_packet':
>> include/drm/drm_print.h:313:32: warning: format '%lu' expects argument of 
>> type 'long unsigned int', but argument 5 has type 'size_t {aka const 
>> unsigned int}' [-Wformat=]
 drm_dev_printk(dev, KERN_ERR, "*ERROR* " fmt, ##__VA_ARGS__)
   ^
>> drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:402:4: note: in expansion of macro 
>> 'DRM_DEV_ERROR'
   DRM_DEV_ERROR(
   ^
   drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:404:41: note: format string is 
defined here
"[%02X] Receive buffer too small: %lu (< %u)\n",
  ~~^
  %u

coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/bridge/nwl-dsi/nwl-dsi.c:233:5-17: WARNING: Unsigned 
>> expression compared with zero: color_format < 0

vim +313 include/drm/drm_print.h

02c9656b2f0d69 Haneen Mohammed 2017-10-17  288  
02c9656b2f0d69 Haneen Mohammed 2017-10-17  289  #define _DRM_PRINTK(once, 
level, fmt, ...)  \
db87086492581c Joe Perches 2018-03-16  290  
printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  291  
02c9656b2f0d69 Haneen Mohammed 2017-10-17  292  #define DRM_INFO(fmt, ...)  
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  293  _DRM_PRINTK(, INFO, 
fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  294  #define DRM_NOTE(fmt, ...)  
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  295  _DRM_PRINTK(, NOTICE, 
fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  296  #define DRM_WARN(fmt, ...)  
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  297  _DRM_PRINTK(, WARNING, 
fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  298  
02c9656b2f0d69 Haneen Mohammed 2017-10-17  299  #define DRM_INFO_ONCE(fmt, ...) 
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  300  _DRM_PRINTK(_once, 
INFO, fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  301  #define DRM_NOTE_ONCE(fmt, ...) 
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  302  _DRM_PRINTK(_once, 
NOTICE, fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  303  #define DRM_WARN_ONCE(fmt, ...) 
\
02c9656b2f0d69 Haneen Mohammed 2017-10-17  304  _DRM_PRINTK(_once, 
WARNING, fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  305  
02c9656b2f0d69 Haneen Mohammed 2017-10-17  306  /**
02c9656b2f0d69 Haneen Mohammed 2017-10-17  307   * Error output.
02c9656b2f0d69 Haneen Mohammed 2017-10-17  308   *
091756bbb1a961 Haneen Mohammed 2017-10-17  309   * @dev: device pointer
091756bbb1a961 Haneen Mohammed 2017-10-17  310   * @fmt: printf() like format 
string.
02c9656b2f0d69 Haneen Mohammed 2017-10-17  311   */
02c9656b2f0d69 Haneen Mohammed 2017-10-17  312  #define DRM_DEV_ERROR(dev, fmt, 
...)\
db87086492581c Joe Perches 2018-03-16 @313  drm_dev_printk(dev, 
KERN_ERR, "*ERROR* " fmt, ##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  314  #define DRM_ERROR(fmt, ...) 
\
99a954874e7b9f Joe Perches 2018-03-13  315  drm_err(fmt, 
##__VA_ARGS__)
02c9656b2f0d69 Haneen Mohammed 2017-10-17  316  

:: The code at line 313 was first introduced by commit
:: db87086492581c87f768b7d17d01308153ecffc1 drm: Reduce object size of 
DRM_DEV_ uses

:: TO: Joe Perches 
:: CC: Daniel Vetter 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 2/2] tpm: tpm_crb: enhance resource mapping mechanism for supporting AMD's fTPM

2019-08-31 Thread kbuild test robot
Hi Seunghun,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on jss-tpmdd/next]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Seunghun-Han/Enhance-support-for-the-AMD-s-fTPM/20190901-042313
base:   git://git.infradead.org/users/jjs/linux-tpmdd next

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


coccinelle warnings: (new ones prefixed by >>)

>> drivers/char/tpm/tpm_crb.c:457:29-32: WARNING: Suspicious code. 
>> resource_size is maybe missing with res

vim +457 drivers/char/tpm/tpm_crb.c

   452  
   453  static void __iomem *crb_ioremap_resource(struct device *dev,
   454const struct resource *res)
   455  {
   456  int rc;
 > 457  resource_size_t size = res->end - res->start;
   458  
   459  /* Broken BIOS assigns command and response buffers in ACPI NVS 
region.
   460   * Check intersections between a resource and ACPI NVS for W/A.
   461   */
   462  rc = region_intersects(res->start, size, IORESOURCE_MEM |
   463 IORESOURCE_BUSY, 
IORES_DESC_ACPI_NV_STORAGE);
   464  if (rc != REGION_DISJOINT) {
   465  dev_err(dev,
   466  FW_BUG "Resource overlaps with a ACPI NVS. 
%pr\n",
   467  res);
   468  return devm_ioremap(dev, res->start, size);
   469  }
   470  
   471  return devm_ioremap_resource(dev, res);
   472  }
   473  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


Re: [PATCH v4] tpm: Parse event log from TPM2 ACPI table

2019-08-31 Thread kbuild test robot
Hi Jordan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on jss-tpmdd/next]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jordan-Hand/tpm-Parse-event-log-from-TPM2-ACPI-table/20190831-234702
base:   git://git.infradead.org/users/jjs/linux-tpmdd next
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/char/tpm/eventlog/acpi.c: In function 'tpm_read_log_acpi':
>> drivers/char/tpm/eventlog/acpi.c:96:21: error: 'tpm2_trailer' is a pointer; 
>> did you mean to use '->'?
  len = tpm2_trailer.minimum_log_length;
^
->
   drivers/char/tpm/eventlog/acpi.c:97:23: error: 'tpm2_trailer' is a pointer; 
did you mean to use '->'?
  start = tpm2_trailer.log_address;
  ^
  ->

vim +96 drivers/char/tpm/eventlog/acpi.c

43  
44  /* If an event log is present, the TPM2 ACPI table will contain the full
45   * trailer
46   */
47  
48  /* read binary bios log */
49  int tpm_read_log_acpi(struct tpm_chip *chip)
50  {
51  struct acpi_table_header *buff;
52  struct acpi_tcpa *tcpa;
53  struct acpi_tpm2_trailer *tpm2_trailer;
54  acpi_status status;
55  void __iomem *virt;
56  u64 len, start;
57  int log_type;
58  struct tpm_bios_log *log;
59  bool is_tpm2 = chip->flags & TPM_CHIP_FLAG_TPM2;
60  acpi_string table_sig;
61  
62  log = >log;
63  
64  /* Unfortuntely ACPI does not associate the event log with a 
specific
65   * TPM, like PPI. Thus all ACPI TPMs will read the same log.
66   */
67  if (!chip->acpi_dev_handle)
68  return -ENODEV;
69  
70  /* Find TCPA or TPM2 entry in RSDT (ACPI_LOGICAL_ADDRESSING) */
71  table_sig = is_tpm2 ? ACPI_SIG_TPM2 : ACPI_SIG_TCPA;
72  status = acpi_get_table(table_sig, 1, );
73  
74  if (ACPI_FAILURE(status))
75  return -ENODEV;
76  
77  if (!is_tpm2) {
78  tcpa = (struct acpi_tcpa *)buff;
79  switch (tcpa->platform_class) {
80  case BIOS_SERVER:
81  len = tcpa->server.log_max_len;
82  start = tcpa->server.log_start_addr;
83  break;
84  case BIOS_CLIENT:
85  default:
86  len = tcpa->client.log_max_len;
87  start = tcpa->client.log_start_addr;
88  break;
89  }
90  log_type = EFI_TCG2_EVENT_LOG_FORMAT_TCG_1_2;
91  } else if (buff->length ==
92 sizeof(struct acpi_table_tpm2) +
93 sizeof(struct acpi_tpm2_trailer)) {
94  tpm2_trailer = (struct acpi_tpm2_trailer *)buff;
95  
  > 96  len = tpm2_trailer.minimum_log_length;
97  start = tpm2_trailer.log_address;
98  log_type = EFI_TCG2_EVENT_LOG_FORMAT_TCG_2;
99  } else {
   100  return -ENODEV;
   101  }
   102  
   103  if (!len) {
   104  dev_warn(>dev, "%s: %s log area empty\n",
   105   __func__, table_sig);
   106  return -EIO;
   107  }
   108  
   109  /* malloc EventLog space */
   110  log->bios_event_log = kmalloc(len, GFP_KERNEL);
   111  if (!log->bios_event_log)
   112  return -ENOMEM;
   113  
   114  log->bios_event_log_end = log->bios_event_log + len;
   115  
   116  virt = acpi_os_map_iomem(start, len);
   117  if (!virt)
   118  goto err;
   119  
   120  memcpy_fromio(log->bios_event_log, virt, len);
   121  
   122  acpi_os_unmap_iomem(virt, len);
   123  return log_type;
   124  
   125  err:
   126  kfree(log->bios_event_log);
   127  log->bios_event_log = NULL;
   128  return -EIO;
   129  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] arm: fix page faults in do_alignment

2019-08-31 Thread kbuild test robot
Hi Jing,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on arm/for-next]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Jing-Xiangfeng/arm-fix-page-faults-in-do_alignment/20190831-173417
base:   git://git.armlinux.org.uk/~rmk/linux-arm.git for-next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   arch/arm/mm/alignment.c: In function 'do_alignment':
>> arch/arm/mm/alignment.c:792:28: warning: passing argument 1 of 
>> '__copy_from_user' makes pointer from integer without a cast 
>> [-Wint-conversion]
  fault = __copy_from_user(tinstr,
   ^~
   In file included from include/linux/sched/task.h:11:0,
from include/linux/sched/signal.h:9,
from arch/arm/mm/alignment.c:20:
   include/linux/uaccess.h:67:1: note: expected 'void *' but argument is of 
type 'u16 {aka short unsigned int}'
__copy_from_user(void *to, const void __user *from, unsigned long n)
^~~~
   arch/arm/mm/alignment.c:801:30: warning: passing argument 1 of 
'__copy_from_user' makes pointer from integer without a cast [-Wint-conversion]
fault = __copy_from_user(tinst2,
 ^~
   In file included from include/linux/sched/task.h:11:0,
from include/linux/sched/signal.h:9,
from arch/arm/mm/alignment.c:20:
   include/linux/uaccess.h:67:1: note: expected 'void *' but argument is of 
type 'u16 {aka short unsigned int}'
__copy_from_user(void *to, const void __user *from, unsigned long n)
^~~~
   arch/arm/mm/alignment.c:813:28: warning: passing argument 1 of 
'__copy_from_user' makes pointer from integer without a cast [-Wint-conversion]
  fault = __copy_from_user(instr,
   ^
   In file included from include/linux/sched/task.h:11:0,
from include/linux/sched/signal.h:9,
from arch/arm/mm/alignment.c:20:
   include/linux/uaccess.h:67:1: note: expected 'void *' but argument is of 
type 'long unsigned int'
__copy_from_user(void *to, const void __user *from, unsigned long n)
^~~~

vim +/__copy_from_user +792 arch/arm/mm/alignment.c

   769  
   770  static int
   771  do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
   772  {
   773  union offset_union uninitialized_var(offset);
   774  unsigned long instr = 0, instrptr;
   775  int (*handler)(unsigned long addr, unsigned long instr, struct 
pt_regs *regs);
   776  unsigned int type;
   777  mm_segment_t fs;
   778  unsigned int fault;
   779  u16 tinstr = 0;
   780  int isize = 4;
   781  int thumb2_32b = 0;
   782  
   783  if (interrupts_enabled(regs))
   784  local_irq_enable();
   785  
   786  instrptr = instruction_pointer(regs);
   787  
   788  fs = get_fs();
   789  set_fs(KERNEL_DS);
   790  if (thumb_mode(regs)) {
   791  u16 *ptr = (u16 *)(instrptr & ~1);
 > 792  fault = __copy_from_user(tinstr,
   793  (__force const void __user *)ptr,
   794  sizeof(tinstr));
   795  tinstr = __mem_to_opcode_thumb16(tinstr);
   796  if (!fault) {
   797  if (cpu_architecture() >= CPU_ARCH_ARMv7 &&
   798  IS_T32(tinstr)) {
   799  /* Thumb-2 32-bit */
   800  u16 tinst2 = 0;
   801  fault = __copy_from_user(tinst2,
   802  (__force const void 
__user *)(ptr+1),
   803  sizeof(tinst2));
   804  tinst2 = 
__mem_to_opcode_thumb16(tinst2);
   805  instr = 
__opcode_thumb32_compose(tinstr, tinst2);
   806  thumb2_32b = 1;
   807  } else {
   808  isize = 2;
   809  instr = thumb2arm(tinstr);
   810  }
   811  }
   812  } else {
   813  

Re: [PATCH][next] zd1211rw: zd_usb: Use struct_size() helper

2019-08-31 Thread kbuild test robot
Hi "Gustavo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Gustavo-A-R-Silva/zd1211rw-zd_usb-Use-struct_size-helper/20190831-161121
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/zydas/zd1211rw/zd_usb.c:22:0:
   drivers/net/wireless/zydas/zd1211rw/zd_usb.c: In function 'check_read_regs':
>> drivers/net/wireless/zydas/zd1211rw/zd_def.h:18:25: warning: format '%ld' 
>> expects argument of type 'long int', but argument 6 has type 'size_t {aka 
>> unsigned int}' [-Wformat=]
 dev_printk(level, dev, "%s() " fmt, __func__, ##args)
^
>> drivers/net/wireless/zydas/zd1211rw/zd_def.h:22:4: note: in expansion of 
>> macro 'dev_printk_f'
   dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
   ^~~~
>> drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1635:3: note: in expansion of 
>> macro 'dev_dbg_f'
  dev_dbg_f(zd_usb_dev(usb),
  ^
   drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1636:51: note: format string is 
defined here
"error: actual length %d less than expected %ld\n",
~~^
%d

vim +/dev_dbg_f +1635 drivers/net/wireless/zydas/zd1211rw/zd_usb.c

e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1622  
c900eff30a14ec drivers/net/wireless/zd1211rw/zd_usb.c   Jussi Kivilinna 
2011-06-20  1623  static bool check_read_regs(struct zd_usb *usb, struct 
usb_req_read_regs *req,
c900eff30a14ec drivers/net/wireless/zd1211rw/zd_usb.c   Jussi Kivilinna 
2011-06-20  1624unsigned int count)
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1625  {
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1626int i;
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1627struct zd_usb_interrupt *intr = >intr;
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1628struct read_regs_int *rr = >read_regs;
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1629struct usb_int_regs *regs = (struct usb_int_regs 
*)rr->buffer;
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1630  
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1631/* The created block size seems to be larger than 
expected.
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1632 * However results appear to be correct.
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1633 */
d352eeccec7e84 drivers/net/wireless/zydas/zd1211rw/zd_usb.c Gustavo A. R. Silva 
2019-08-30  1634if (rr->length < struct_size(regs, regs, count)) {
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02 @1635dev_dbg_f(zd_usb_dev(usb),
d352eeccec7e84 drivers/net/wireless/zydas/zd1211rw/zd_usb.c Gustavo A. R. Silva 
2019-08-30  1636 "error: actual length %d less than 
expected %ld\n",
d352eeccec7e84 drivers/net/wireless/zydas/zd1211rw/zd_usb.c Gustavo A. R. Silva 
2019-08-30  1637 rr->length, struct_size(regs, regs, 
count));
c900eff30a14ec drivers/net/wireless/zd1211rw/zd_usb.c   Jussi Kivilinna 
2011-06-20  1638return false;
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1639}
c900eff30a14ec drivers/net/wireless/zd1211rw/zd_usb.c   Jussi Kivilinna 
2011-06-20  1640  
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1641if (rr->length > sizeof(rr->buffer)) {
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06-02  1642dev_dbg_f(zd_usb_dev(usb),
e85d0918b54fbd drivers/net/wireless/zd1211rw/zd_usb.c   Daniel Drake
2006-06

Re: [PATCH] printf: add support for printing symbolic error codes

2019-08-31 Thread kbuild test robot
Hi Rasmus,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Rasmus-Villemoes/printf-add-support-for-printing-symbolic-error-codes/20190831-162013
config: x86_64-randconfig-b002-201934 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from :0:0:
   include/linux/errcode.h: In function 'errcode':
>> include/linux/errcode.h:10:9: error: 'NULL' undeclared (first use in this 
>> function)
 return NULL;
^~~~
   include/linux/errcode.h:10:9: note: each undeclared identifier is reported 
only once for each function it appears in

vim +/NULL +10 include/linux/errcode.h

 4  
 5  #ifdef CONFIG_SYMBOLIC_ERRCODE
 6  const char *errcode(int code);
 7  #else
 8  static inline const char *errcode(int code)
 9  {
  > 10  return NULL;
11  }
12  #endif
13  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-08-30 Thread kbuild test robot
Hi Thomas,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Thomas-Bogendoerfer/w1-add-1-wire-master-driver-for-IP-block-found-in-SGI-ASICs/20190830-122322
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   In file included from drivers/w1/masters/sgi_w1.c:13:0:
>> include/linux/platform_data/sgi-w1.h:9:10: fatal error: asm/sn/types.h: No 
>> such file or directory
#include 
 ^~~~
   compilation terminated.

vim +9 include/linux/platform_data/sgi-w1.h

 8  
   > 9  #include 
10  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v2] staging: rts5208: Fix checkpath warning

2019-08-30 Thread kbuild test robot
Hi SAI,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190830]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/P-SAI-PRASANTH/staging-rts5208-Fix-checkpath-warning/20190831-034841
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All errors (new ones prefixed by >>):

   drivers/staging//rts5208/rtsx_transport.c: In function 
'rtsx_transfer_sglist_adma':
>> drivers/staging//rts5208/rtsx_transport.c:548:4: error: expected ';' before 
>> 'rtsx_add_sg_tbl'
   rtsx_add_sg_tbl(chip, (u32)addr, (u32)len, option);
   ^~~

vim +548 drivers/staging//rts5208/rtsx_transport.c

fa590c222fbaa4 Micky Ching   2013-11-12  479  
fa590c222fbaa4 Micky Ching   2013-11-12  480  static int 
rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
fa590c222fbaa4 Micky Ching   2013-11-12  481
 struct scatterlist *sg, int num_sg,
d1303c1a9a68e5 Shaun Ren 2016-02-15  482
 enum dma_data_direction dma_dir,
d1303c1a9a68e5 Shaun Ren 2016-02-15  483
 int timeout)
fa590c222fbaa4 Micky Ching   2013-11-12  484  {
fa590c222fbaa4 Micky Ching   2013-11-12  485struct rtsx_dev *rtsx = 
chip->rtsx;
fa590c222fbaa4 Micky Ching   2013-11-12  486struct completion 
trans_done;
fa590c222fbaa4 Micky Ching   2013-11-12  487u8 dir;
fa590c222fbaa4 Micky Ching   2013-11-12  488int buf_cnt, i;
fa590c222fbaa4 Micky Ching   2013-11-12  489int err = 0;
fa590c222fbaa4 Micky Ching   2013-11-12  490long timeleft;
fa590c222fbaa4 Micky Ching   2013-11-12  491struct scatterlist 
*sg_ptr;
fa590c222fbaa4 Micky Ching   2013-11-12  492  
50dcad2a2c85d5 Shaun Ren 2016-02-15  493if (!sg || (num_sg <= 
0))
fa590c222fbaa4 Micky Ching   2013-11-12  494return -EIO;
fa590c222fbaa4 Micky Ching   2013-11-12  495  
fa590c222fbaa4 Micky Ching   2013-11-12  496if (dma_dir == 
DMA_TO_DEVICE)
fa590c222fbaa4 Micky Ching   2013-11-12  497dir = 
HOST_TO_DEVICE;
fa590c222fbaa4 Micky Ching   2013-11-12  498else if (dma_dir == 
DMA_FROM_DEVICE)
fa590c222fbaa4 Micky Ching   2013-11-12  499dir = 
DEVICE_TO_HOST;
fa590c222fbaa4 Micky Ching   2013-11-12  500else
fa590c222fbaa4 Micky Ching   2013-11-12  501return -ENXIO;
fa590c222fbaa4 Micky Ching   2013-11-12  502  
fa590c222fbaa4 Micky Ching   2013-11-12  503if (card == SD_CARD)
fa590c222fbaa4 Micky Ching   2013-11-12  504
rtsx->check_card_cd = SD_EXIST;
fa590c222fbaa4 Micky Ching   2013-11-12  505else if (card == 
MS_CARD)
fa590c222fbaa4 Micky Ching   2013-11-12  506
rtsx->check_card_cd = MS_EXIST;
fa590c222fbaa4 Micky Ching   2013-11-12  507else if (card == 
XD_CARD)
fa590c222fbaa4 Micky Ching   2013-11-12  508
rtsx->check_card_cd = XD_EXIST;
fa590c222fbaa4 Micky Ching   2013-11-12  509else
fa590c222fbaa4 Micky Ching   2013-11-12  510
rtsx->check_card_cd = 0;
fa590c222fbaa4 Micky Ching   2013-11-12  511  
fa590c222fbaa4 Micky Ching   2013-11-12  512
spin_lock_irq(>reg_lock);
fa590c222fbaa4 Micky Ching   2013-11-12  513  
fa590c222fbaa4 Micky Ching   2013-11-12  514/* set up data 
structures for the wakeup system */
fa590c222fbaa4 Micky Ching   2013-11-12  515rtsx->done = 
_done;
fa590c222fbaa4 Micky Ching   2013-11-12  516  
fa590c222fbaa4 Micky Ching   2013-11-12  517rtsx->trans_state = 
STATE_TRANS_SG;
fa590c222fbaa4 Micky Ching   2013-11-12  518rtsx->trans_result = 
TRANS_NOT_READY;
fa590c222fbaa4 Micky Ching   2013-11-12  519  
fa590c222fbaa4 Micky Ching   2013-11-12  520
spin_unlock_irq(>reg_lock);
fa590c222fbaa4 Micky Ching   2013-11-12  521  
69e3bc543c5610 Shaun Ren 2016-02-15  522buf_cnt = 
dma_map_sg(>pci->dev, sg, num_sg, dma_dir);
fa590c222fbaa4 Micky Ching   2013-11-12  523  
fa590c222fbaa4 Micky Ching   2013-11-12  524sg_ptr = sg;
fa590c222fbaa4 Micky Ching   2013-11-12  525  
fa590c222fbaa4 Micky Ching   2013-11-12  526for (i = 0; i <= 
buf_cnt / (HOST_SG_TBL_BUF_LEN /

Re: [PATCH 2/2] w1: add DS2501, DS2502, DS2505 EPROM device driver

2019-08-30 Thread kbuild test robot
Hi Thomas,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Thomas-Bogendoerfer/w1-add-1-wire-master-driver-for-IP-block-found-in-SGI-ASICs/20190830-122322

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


coccinelle warnings: (new ones prefixed by >>)

>> drivers/w1/slaves/w1_ds250x.c:215:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


[PATCH] w1: fix ptr_ret.cocci warnings

2019-08-30 Thread kbuild test robot
From: kbuild test robot 

drivers/w1/slaves/w1_ds250x.c:215:1-3: WARNING: PTR_ERR_OR_ZERO can be used


 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Fixes: d835b3166dd6 ("w1: add DS2501, DS2502, DS2505 EPROM device driver")
CC: Thomas Bogendoerfer 
Signed-off-by: kbuild test robot 
---

url:
https://github.com/0day-ci/linux/commits/Thomas-Bogendoerfer/w1-add-1-wire-master-driver-for-IP-block-found-in-SGI-ASICs/20190830-122322

 w1_ds250x.c |5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/drivers/w1/slaves/w1_ds250x.c
+++ b/drivers/w1/slaves/w1_ds250x.c
@@ -212,10 +212,7 @@ static int w1_eprom_add_slave(struct w1_
nvmem_cfg.size = data->size;
 
nvmem = devm_nvmem_register(>dev, _cfg);
-   if (IS_ERR(nvmem))
-   return PTR_ERR(nvmem);
-
-   return 0;
+   return PTR_ERR_OR_ZERO(nvmem);
 }
 
 static struct w1_family_ops w1_eprom_fops = {


drivers/block/rbd.c:2124:21: warning: 'current_state' may be used uninitialized in this function

2019-08-30 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   26538100499460ee81546a0dc8d6f14f5151d427
commit: 22e8bd51bb0469d1a524130a057f894ff632376a rbd: support for object-map 
and fast-diff
date:   8 weeks ago
config: x86_64-randconfig-s1-08301454 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
git checkout 22e8bd51bb0469d1a524130a057f894ff632376a
# save the attached .config to linux build tree
make ARCH=x86_64 

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

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/block/rbd.c: In function 'rbd_object_map_callback':
>> drivers/block/rbd.c:2124:21: warning: 'current_state' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 (current_state == OBJECT_EXISTS && state == OBJECT_EXISTS_CLEAN))
   drivers/block/rbd.c:2092:23: note: 'current_state' was declared here
 u8 state, new_state, current_state;
  ^

vim +/current_state +2124 drivers/block/rbd.c

  2075  
  2076  /*
  2077   * This function needs snap_id (or more precisely just something to
  2078   * distinguish between HEAD and snapshot object maps), new_state and
  2079   * current_state that were passed to rbd_object_map_update().
  2080   *
  2081   * To avoid allocating and stashing a context we piggyback on the OSD
  2082   * request.  A HEAD update has two ops (assert_locked).  For new_state
  2083   * and current_state we decode our own object_map_update op, encoded in
  2084   * rbd_cls_object_map_update().
  2085   */
  2086  static int rbd_object_map_update_finish(struct rbd_obj_request *obj_req,
  2087  struct ceph_osd_request 
*osd_req)
  2088  {
  2089  struct rbd_device *rbd_dev = obj_req->img_request->rbd_dev;
  2090  struct ceph_osd_data *osd_data;
  2091  u64 objno;
  2092  u8 state, new_state, current_state;
  2093  bool has_current_state;
  2094  void *p;
  2095  
  2096  if (osd_req->r_result)
  2097  return osd_req->r_result;
  2098  
  2099  /*
  2100   * Nothing to do for a snapshot object map.
  2101   */
  2102  if (osd_req->r_num_ops == 1)
  2103  return 0;
  2104  
  2105  /*
  2106   * Update in-memory HEAD object map.
  2107   */
  2108  rbd_assert(osd_req->r_num_ops == 2);
  2109  osd_data = osd_req_op_data(osd_req, 1, cls, request_data);
  2110  rbd_assert(osd_data->type == CEPH_OSD_DATA_TYPE_PAGES);
  2111  
  2112  p = page_address(osd_data->pages[0]);
  2113  objno = ceph_decode_64();
  2114  rbd_assert(objno == obj_req->ex.oe_objno);
  2115  rbd_assert(ceph_decode_64() == objno + 1);
  2116  new_state = ceph_decode_8();
  2117  has_current_state = ceph_decode_8();
  2118  if (has_current_state)
  2119  current_state = ceph_decode_8();
  2120  
  2121  spin_lock(_dev->object_map_lock);
  2122  state = __rbd_object_map_get(rbd_dev, objno);
  2123  if (!has_current_state || current_state == state ||
> 2124  (current_state == OBJECT_EXISTS && state == 
> OBJECT_EXISTS_CLEAN))
  2125  __rbd_object_map_set(rbd_dev, objno, new_state);
  2126  spin_unlock(_dev->object_map_lock);
  2127  
  2128  return 0;
  2129  }
  2130  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-08-29 Thread kbuild test robot
Hi Thomas,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Thomas-Bogendoerfer/w1-add-1-wire-master-driver-for-IP-block-found-in-SGI-ASICs/20190830-122322
reproduce: make htmldocs

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

All warnings (new ones prefixed by >>):

   Warning: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. Make sure 
you have the theme installed to produce pretty HTML output. Falling back to the 
default theme.
   WARNING: dot(1) not found, for better output quality install graphviz from 
http://www.graphviz.org
   WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick 
(https://www.imagemagick.org)
>> include/linux/w1.h:156: warning: Function parameter or member 'dev_id' not 
>> described in 'w1_bus_master'
   include/linux/w1.h:274: warning: Function parameter or member 
'of_match_table' not described in 'w1_family'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'quotactl' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'quota_on' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'sb_free_mnt_opts' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'sb_eat_lsm_opts' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'sb_kern_mount' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'sb_show_options' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'sb_add_mnt_opt' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'd_instantiate' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'getprocattr' not described in 'security_list_options'
   include/linux/lsm_hooks.h:1811: warning: Function parameter or member 
'setprocattr' not described in 'security_list_options'
   lib/genalloc.c:1: warning: 'gen_pool_add_virt' not found
   lib/genalloc.c:1: warning: 'gen_pool_alloc' not found
   lib/genalloc.c:1: warning: 'gen_pool_free' not found
   lib/genalloc.c:1: warning: 'gen_pool_alloc_algo' not found
   include/linux/i2c.h:337: warning: Function parameter or member 'init_irq' 
not described in 'i2c_client'
   include/linux/spi/spi.h:190: warning: Function parameter or member 
'driver_override' not described in 'spi_device'
   drivers/usb/typec/bus.c:1: warning: 'typec_altmode_register_driver' not found
   drivers/usb/typec/bus.c:1: warning: 'typec_altmode_unregister_driver' not 
found
   drivers/usb/typec/class.c:1: warning: 'typec_altmode_unregister_notifier' 
not found
   drivers/usb/typec/class.c:1: warning: 'typec_altmode_register_notifier' not 
found
   include/linux/input/sparse-keymap.h:43: warning: Function parameter or 
member 'sw' not described in 'key_entry'
   include/linux/regulator/machine.h:196: warning: Function parameter or member 
'max_uV_step' not described in 'regulation_constraints'
   include/linux/regulator/driver.h:223: warning: Function parameter or member 
'resume' not described in 'regulator_ops'
   fs/direct-io.c:258: warning: Excess function parameter 'offset' description 
in 'dio_complete'
   fs/libfs.c:496: warning: Excess function parameter 'available' description 
in 'simple_write_end'
   fs/posix_acl.c:647: warning: Function parameter or member 'inode' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:647: warning: Function parameter or member 'mode_p' not 
described in 'posix_acl_update_mode'
   fs/posix_acl.c:647: warning: Function parameter or member 'acl' not 
described in 'posix_acl_update_mode'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'dev_scratch' not described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 'list' not 
described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'ip_defrag_offset' not described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'skb_mstamp_ns' not described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'__cloned_offset' not described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'head_frag' not described in 'sk_buff'
   include/linux/skbuff.h:893: warning: Function parameter or member 
'__pkt_type_offset' not described in 'sk_buff'
   include/linux/skbuff.h:893:

Re: [PATCH v4 1/2] drivers: hv: vmbus: Introduce latency testing

2019-08-29 Thread kbuild test robot
Hi Branden,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Branden-Bonaby/drivers-hv-vmbus-Introduce-latency-testing/20190830-032123
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

>> ERROR: "hv_debug_add_dev_dir" [drivers/hv/hv_vmbus.ko] undefined!
>> ERROR: "hv_debug_init" [drivers/hv/hv_vmbus.ko] undefined!
>> ERROR: "hv_debug_delay_test" [drivers/hv/hv_vmbus.ko] undefined!
>> ERROR: "hv_debug_rm_all_dir" [drivers/hv/hv_vmbus.ko] undefined!
>> ERROR: "hv_debug_rm_dev_dir" [drivers/hv/hv_vmbus.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [tip: timers/core] itimers: Use quick sample function

2019-08-29 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Thomas-Gleixner/itimers-Use-quick-sample-function/20190830-063115
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   kernel/time/itimer.c: In function 'get_cpu_itimer':
>> kernel/time/itimer.c:61:3: error: implicit declaration of function 
>> 'thread_group_sample_cputime'; did you mean 'thread_group_cputime'? 
>> [-Werror=implicit-function-declaration]
  thread_group_sample_cputime(tsk, );
  ^~~
  thread_group_cputime
   cc1: some warnings being treated as errors

vim +61 kernel/time/itimer.c

46  
47  static void get_cpu_itimer(struct task_struct *tsk, unsigned int 
clock_id,
48 struct itimerval *const value)
49  {
50  u64 val, interval;
51  struct cpu_itimer *it = >signal->it[clock_id];
52  
53  spin_lock_irq(>sighand->siglock);
54  
55  val = it->expires;
56  interval = it->incr;
57  if (val) {
58  struct task_cputime cputime;
59  u64 t;
60  
  > 61  thread_group_sample_cputime(tsk, );
62  if (clock_id == CPUCLOCK_PROF)
63  t = cputime.utime + cputime.stime;
64  else
65  /* CPUCLOCK_VIRT */
66  t = cputime.utime;
67  
68  if (val < t)
69  /* about to fire */
70  val = TICK_NSEC;
71  else
72  val -= t;
73  }
74  
75  spin_unlock_irq(>sighand->siglock);
76  
77  value->it_value = ns_to_timeval(val);
78  value->it_interval = ns_to_timeval(interval);
79  }
80  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] ipv6: Not to probe neighbourless routes

2019-08-29 Thread kbuild test robot
Hi Yi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yi-Wang/ipv6-Not-to-probe-neighbourless-routes/20190830-025439
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   net/ipv6/route.c: In function 'rt6_probe':
>> net/ipv6/route.c:660:10: error: 'struct fib6_nh' has no member named 
>> 'last_probe'
  fib6_nh->last_probe = jiffies;
 ^~

vim +660 net/ipv6/route.c

c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  619  
cc3a86c802f0ba David Ahern  2019-04-09  620  static void 
rt6_probe(struct fib6_nh *fib6_nh)
270972554c91ac YOSHIFUJI Hideaki2006-03-20  621  {
f547fac624be53 Sabrina Dubroca  2018-10-12  622 struct 
__rt6_probe_work *work = NULL;
5e670d844b2a4e David Ahern  2018-04-17  623 const struct 
in6_addr *nh_gw;
f2c31e32b378a6 Eric Dumazet 2011-07-29  624 struct 
neighbour *neigh;
5e670d844b2a4e David Ahern  2018-04-17  625 struct 
net_device *dev;
f547fac624be53 Sabrina Dubroca  2018-10-12  626 struct 
inet6_dev *idev;
5e670d844b2a4e David Ahern  2018-04-17  627  
270972554c91ac YOSHIFUJI Hideaki2006-03-20  628 /*
270972554c91ac YOSHIFUJI Hideaki2006-03-20  629  * Okay, this 
does not seem to be appropriate
270972554c91ac YOSHIFUJI Hideaki2006-03-20  630  * for now, 
however, we need to check if it
270972554c91ac YOSHIFUJI Hideaki2006-03-20  631  * is really 
so; aka Router Reachability Probing.
270972554c91ac YOSHIFUJI Hideaki2006-03-20  632  *
270972554c91ac YOSHIFUJI Hideaki2006-03-20  633  * Router 
Reachability Probe MUST be rate-limited
270972554c91ac YOSHIFUJI Hideaki2006-03-20  634  * to no more 
than one per minute.
270972554c91ac YOSHIFUJI Hideaki2006-03-20  635  */
cc3a86c802f0ba David Ahern  2019-04-09  636 if 
(fib6_nh->fib_nh_gw_family)
7ff74a596b6aa4 YOSHIFUJI Hideaki /  2013-01-17  637 
return;
5e670d844b2a4e David Ahern  2018-04-17  638  
cc3a86c802f0ba David Ahern  2019-04-09  639 nh_gw = 
_nh->fib_nh_gw6;
cc3a86c802f0ba David Ahern  2019-04-09  640 dev = 
fib6_nh->fib_nh_dev;
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  641 
rcu_read_lock_bh();
5e670d844b2a4e David Ahern  2018-04-17  642 neigh = 
__ipv6_neigh_lookup_noref(dev, nh_gw);
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  643 if 
(neigh) {
8d6c31bf574177 Martin KaFai Lau 2015-07-24  644 if 
(neigh->nud_state & NUD_VALID)
8d6c31bf574177 Martin KaFai Lau 2015-07-24  645 
goto out;
8d6c31bf574177 Martin KaFai Lau 2015-07-24  646  
e3f0c73ec3f208 Cheng Lin2019-08-27  647 idev = 
__in6_dev_get(dev);
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  648 
write_lock(>lock);
990edb428c2c85 Martin KaFai Lau 2015-07-24  649 if 
(!(neigh->nud_state & NUD_VALID) &&
990edb428c2c85 Martin KaFai Lau 2015-07-24  650 
time_after(jiffies,
dcd1f572954f9d David Ahern  2018-04-18  651 
   neigh->updated + idev->cnf.rtr_probe_interval)) {
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  652 
work = kmalloc(sizeof(*work), GFP_ATOMIC);
990edb428c2c85 Martin KaFai Lau 2015-07-24  653 
if (work)
7e980569642811 Jiri Benc2013-12-11  654 
__neigh_set_probe_once(neigh);
990edb428c2c85 Martin KaFai Lau 2015-07-24  655 }
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  656 
write_unlock(>lock);
990edb428c2c85 Martin KaFai Lau 2015-07-24  657 }
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  658  
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  659 if (work) {
cc3a86c802f0ba David Ahern  2019-04-09 @660 
fib6_nh->last_probe = jiffies;
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  661 
INIT_WORK(>work, rt6_probe_deferred);
5e670d844b2a4e David Ahern  2018-04-17  662 
work

Re: [PATCH] ipv6: Not to probe neighbourless routes

2019-08-29 Thread kbuild test robot
Hi Yi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yi-Wang/ipv6-Not-to-probe-neighbourless-routes/20190830-025439
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   net/ipv6/route.c: In function 'rt6_probe':
>> net/ipv6/route.c:660:10: error: 'struct fib6_nh' has no member named 
>> 'last_probe'
  fib6_nh->last_probe = jiffies;
 ^~

vim +660 net/ipv6/route.c

c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  619  
cc3a86c802f0ba David Ahern  2019-04-09  620  static void 
rt6_probe(struct fib6_nh *fib6_nh)
270972554c91ac YOSHIFUJI Hideaki2006-03-20  621  {
f547fac624be53 Sabrina Dubroca  2018-10-12  622 struct 
__rt6_probe_work *work = NULL;
5e670d844b2a4e David Ahern  2018-04-17  623 const struct 
in6_addr *nh_gw;
f2c31e32b378a6 Eric Dumazet 2011-07-29  624 struct 
neighbour *neigh;
5e670d844b2a4e David Ahern  2018-04-17  625 struct 
net_device *dev;
f547fac624be53 Sabrina Dubroca  2018-10-12  626 struct 
inet6_dev *idev;
5e670d844b2a4e David Ahern  2018-04-17  627  
270972554c91ac YOSHIFUJI Hideaki2006-03-20  628 /*
270972554c91ac YOSHIFUJI Hideaki2006-03-20  629  * Okay, this 
does not seem to be appropriate
270972554c91ac YOSHIFUJI Hideaki2006-03-20  630  * for now, 
however, we need to check if it
270972554c91ac YOSHIFUJI Hideaki2006-03-20  631  * is really 
so; aka Router Reachability Probing.
270972554c91ac YOSHIFUJI Hideaki2006-03-20  632  *
270972554c91ac YOSHIFUJI Hideaki2006-03-20  633  * Router 
Reachability Probe MUST be rate-limited
270972554c91ac YOSHIFUJI Hideaki2006-03-20  634  * to no more 
than one per minute.
270972554c91ac YOSHIFUJI Hideaki2006-03-20  635  */
cc3a86c802f0ba David Ahern  2019-04-09  636 if 
(fib6_nh->fib_nh_gw_family)
7ff74a596b6aa4 YOSHIFUJI Hideaki /  2013-01-17  637 
return;
5e670d844b2a4e David Ahern  2018-04-17  638  
cc3a86c802f0ba David Ahern  2019-04-09  639 nh_gw = 
_nh->fib_nh_gw6;
cc3a86c802f0ba David Ahern  2019-04-09  640 dev = 
fib6_nh->fib_nh_dev;
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  641 
rcu_read_lock_bh();
5e670d844b2a4e David Ahern  2018-04-17  642 neigh = 
__ipv6_neigh_lookup_noref(dev, nh_gw);
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  643 if 
(neigh) {
8d6c31bf574177 Martin KaFai Lau 2015-07-24  644 if 
(neigh->nud_state & NUD_VALID)
8d6c31bf574177 Martin KaFai Lau 2015-07-24  645 
goto out;
8d6c31bf574177 Martin KaFai Lau 2015-07-24  646  
e3f0c73ec3f208 Cheng Lin2019-08-27  647 idev = 
__in6_dev_get(dev);
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  648 
write_lock(>lock);
990edb428c2c85 Martin KaFai Lau 2015-07-24  649 if 
(!(neigh->nud_state & NUD_VALID) &&
990edb428c2c85 Martin KaFai Lau 2015-07-24  650 
time_after(jiffies,
dcd1f572954f9d David Ahern  2018-04-18  651 
   neigh->updated + idev->cnf.rtr_probe_interval)) {
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  652 
work = kmalloc(sizeof(*work), GFP_ATOMIC);
990edb428c2c85 Martin KaFai Lau 2015-07-24  653 
if (work)
7e980569642811 Jiri Benc2013-12-11  654 
__neigh_set_probe_once(neigh);
990edb428c2c85 Martin KaFai Lau 2015-07-24  655 }
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  656 
write_unlock(>lock);
990edb428c2c85 Martin KaFai Lau 2015-07-24  657 }
2152caea719657 YOSHIFUJI Hideaki /  2013-01-17  658  
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  659 if (work) {
cc3a86c802f0ba David Ahern  2019-04-09 @660 
fib6_nh->last_probe = jiffies;
c2f17e827b4199 Hannes Frederic Sowa 2013-10-21  661 
INIT_WORK(>work, rt6_probe_deferred);
5e670d844b2a4e David Ahern  2018-04-17  662 
work->tar

Re: [PATCH v5 2/2] tty: add rpmsg driver

2019-08-29 Thread kbuild test robot
Hi Arnaud,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/rpmsg-core-add-API-to-get-message-length/20190829-222443
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

   include/linux/sched.h:609:43: sparse: sparse: bad integer constant expression
   include/linux/sched.h:609:73: sparse: sparse: invalid named zero-width 
bitfield `value'
   include/linux/sched.h:610:43: sparse: sparse: bad integer constant expression
   include/linux/sched.h:610:67: sparse: sparse: invalid named zero-width 
bitfield `bucket_id'
>> drivers/tty/rpmsg_tty.c:152:20: sparse: sparse: incompatible types in 
>> comparison expression (different type sizes):
>> drivers/tty/rpmsg_tty.c:152:20: sparse:int *
>> drivers/tty/rpmsg_tty.c:152:20: sparse:long *

vim +152 drivers/tty/rpmsg_tty.c

   132  
   133  static int rpmsg_tty_write(struct tty_struct *tty, const u8 *buf, int 
len)
   134  {
   135  struct rpmsg_tty_port *cport = tty->driver_data;
   136  struct rpmsg_device *rpdev;
   137  ssize_t msg_max_size, msg_size;
   138  int ret;
   139  u8 *tmpbuf;
   140  
   141  /* If cts not set, the message is not sent*/
   142  if (!cport->cts)
   143  return 0;
   144  
   145  rpdev = cport->rpdev;
   146  
   147  dev_dbg(>dev, "%s: send msg from tty->index = %d, len = 
%d\n",
   148  __func__, tty->index, len);
   149  
   150  msg_max_size = rpmsg_get_mtu(rpdev->ept);
   151  
 > 152  msg_size = min(len, msg_max_size);
   153  tmpbuf = kzalloc(msg_size, GFP_KERNEL);
   154  if (!tmpbuf)
   155  return -ENOMEM;
   156  
   157  memcpy(tmpbuf, buf, msg_size);
   158  
   159  /*
   160   * Try to send the message to remote processor, if failed 
return 0 as
   161   * no data sent
   162   */
   163  ret = rpmsg_trysendto(cport->d_ept, tmpbuf, msg_size, 
cport->data_dst);
   164  kfree(tmpbuf);
   165  if (ret) {
   166  dev_dbg(>dev, "rpmsg_send failed: %d\n", ret);
   167  return 0;
   168  }
   169  
   170  return msg_size;
   171  }
   172  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


Re: [PATCH] freezer,NFS: add an unsafe schedule_timeout_interruptable freezable helper for NFS

2019-08-29 Thread kbuild test robot
Hi Benjamin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Benjamin-Coddington/freezer-NFS-add-an-unsafe-schedule_timeout_interruptable-freezable-helper-for-NFS/20190829-161623
config: i386-randconfig-a002-201934 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   fs/nfs/nfs4proc.c: In function 'nfs4_delay_interruptible':
>> fs/nfs/nfs4proc.c:418:2: error: implicit declaration of function 
>> 'freezable_schedule_timeout_interruptible_unsafe' 
>> [-Werror=implicit-function-declaration]
 
freezable_schedule_timeout_interruptible_unsafe(nfs4_update_delay(timeout));
 ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_clear_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:set_bit
   Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:clear_bit
   Cyclomatic Complexity 1 
include/asm-generic/bitops-instrumented.h:test_and_clear_bit
   Cyclomatic Complexity 2 include/asm-generic/bitops-instrumented.h:test_bit
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
   Cyclomatic Complexity 68 include/asm-generic/getorder.h:get_order
   Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch
   Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpu_max_bits_warn
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_check
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_test_cpu
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_set
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
   Cyclomatic Complexity 2 
arch/x86/include/asm/atomic.h:arch_atomic_dec_and_test
   Cyclomatic Complexity 2 arch/x86/include/asm/atomic.h:arch_atomic_try_cmpxchg
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_32.h:arch_atomic64_set
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic64_32.h:arch_atomic64_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_set
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
   Cyclomatic Complexity 1 
include/asm-generic/atomic-instrumented.h:atomic_try_cmpxchg
   Cyclomatic Complexity 1 
include/asm-generic/atomic-instrumented.h:atomic_dec_and_test
   Cyclomatic Complexity 1 
include/asm-generic/atomic-instrumented.h:atomic64_read
   Cyclomatic Complexity 1 
include/asm-generic/atomic-instrumented.h:atomic64_set
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 1 include/linux/err.h:ERR_CAST
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_save_fl
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_restore_fl
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_irq_disable
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_save_flags
   Cyclomatic Complexity 1 
arch/x86/include/asm/irqflags.h:arch_local_irq_restore
   Cyclomatic Complexity 1 
arch/x86/include/asm/irqflags.h:arch_local_irq_disable
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_irq_save
   Cyclomatic Complexity 1 
arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
   Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:rep_nop
   Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:cpu_relax
   Cyclomatic Complexity 1 include/linux/thread_info.h:test_ti_thread_flag
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x

Re: [PATCH v5 2/2] tty: add rpmsg driver

2019-08-29 Thread kbuild test robot
Hi Arnaud,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/rpmsg-core-add-API-to-get-message-length/20190829-222443
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/list.h:9:0,
from include/linux/module.h:9,
from drivers/tty/rpmsg_tty.c:7:
   drivers/tty/rpmsg_tty.c: In function 'rpmsg_tty_write':
   include/linux/kernel.h:821:29: warning: comparison of distinct pointer types 
lacks a cast
  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
   include/linux/kernel.h:835:4: note: in expansion of macro '__typecheck'
  (__typecheck(x, y) && __no_side_effects(x, y))
   ^~~
   include/linux/kernel.h:845:24: note: in expansion of macro '__safe_cmp'
 __builtin_choose_expr(__safe_cmp(x, y), \
   ^~
   include/linux/kernel.h:854:19: note: in expansion of macro '__careful_cmp'
#define min(x, y) __careful_cmp(x, y, <)
  ^
>> drivers/tty/rpmsg_tty.c:152:13: note: in expansion of macro 'min'
 msg_size = min(len, msg_max_size);
^~~

vim +/min +152 drivers/tty/rpmsg_tty.c

   132  
   133  static int rpmsg_tty_write(struct tty_struct *tty, const u8 *buf, int 
len)
   134  {
   135  struct rpmsg_tty_port *cport = tty->driver_data;
   136  struct rpmsg_device *rpdev;
   137  ssize_t msg_max_size, msg_size;
   138  int ret;
   139  u8 *tmpbuf;
   140  
   141  /* If cts not set, the message is not sent*/
   142  if (!cport->cts)
   143  return 0;
   144  
   145  rpdev = cport->rpdev;
   146  
   147  dev_dbg(>dev, "%s: send msg from tty->index = %d, len = 
%d\n",
   148  __func__, tty->index, len);
   149  
   150  msg_max_size = rpmsg_get_mtu(rpdev->ept);
   151  
 > 152  msg_size = min(len, msg_max_size);
   153  tmpbuf = kzalloc(msg_size, GFP_KERNEL);
   154  if (!tmpbuf)
   155  return -ENOMEM;
   156  
   157  memcpy(tmpbuf, buf, msg_size);
   158  
   159  /*
   160   * Try to send the message to remote processor, if failed 
return 0 as
   161   * no data sent
   162   */
   163  ret = rpmsg_trysendto(cport->d_ept, tmpbuf, msg_size, 
cport->data_dst);
   164  kfree(tmpbuf);
   165  if (ret) {
   166  dev_dbg(>dev, "rpmsg_send failed: %d\n", ret);
   167  return 0;
   168  }
   169  
   170  return msg_size;
   171  }
   172  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[RFC PATCH] x86/init: x86_wallclock_init() can be static

2019-08-29 Thread kbuild test robot


Fixes: 1461badd03e7 ("x86/init: Noop get/set wallclock when platform doesn't 
support RTC")
Signed-off-by: kbuild test robot 
---
 x86_init.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index 88c120710d5d5..50aa8257fd20a 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -39,7 +39,7 @@ static const struct of_device_id of_cmos_match[] = {
{}
 };
 
-void x86_wallclock_init(void)
+static void x86_wallclock_init(void)
 {
struct device_node *node;
 


Re: [PATCH v2 1/1] x86/init: Noop get/set wallclock when platform doesn't support RTC

2019-08-29 Thread kbuild test robot
Hi Rahul,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Rahul-Tanwar/x86-init-Noop-get-set-wallclock-when-platform-doesn-t-support-RTC/20190829-202237
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kernel/x86_init.c:42:6: sparse: sparse: symbol 'x86_wallclock_init' 
>> was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


Re: [tip: x86/vmware] input/vmmouse: Update the backdoor call with support for new instructions

2019-08-29 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190829]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Thomas-Hellstrom/input-vmmouse-Update-the-backdoor-call-with-support-for-new-instructions/20190829-205315
config: x86_64-randconfig-s0-08291619 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/input/mouse/vmmouse.c:19:24: fatal error: asm/vmware.h: No such file 
>> or directory
#include 
   ^
   compilation terminated.

vim +19 drivers/input/mouse/vmmouse.c

  > 19  #include 
20  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [tip: timers/core] posix-cpu-timers: Use common permission check in posix_cpu_clock_get()

2019-08-29 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc6 next-20190827]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Thomas-Gleixner/posix-cpu-timers-Use-common-permission-check-in-posix_cpu_clock_get/20190829-181227
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 8.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=nds32 

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

All warnings (new ones prefixed by >>):

   kernel/time/posix-cpu-timers.c: In function 'posix_cpu_clock_get':
   kernel/time/posix-cpu-timers.c:275:8: error: implicit declaration of 
function 'get_task_for_clock'; did you mean 'get_task_struct'? 
[-Werror=implicit-function-declaration]
 tsk = get_task_for_clock(clock);
   ^~
   get_task_struct
>> kernel/time/posix-cpu-timers.c:275:6: warning: assignment to 'struct 
>> task_struct *' from 'int' makes pointer from integer without a cast 
>> [-Wint-conversion]
 tsk = get_task_for_clock(clock);
 ^
   cc1: some warnings being treated as errors

vim +275 kernel/time/posix-cpu-timers.c

   268  
   269  static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 
*tp)
   270  {
   271  const clockid_t clkid = CPUCLOCK_WHICH(clock);
   272  struct task_struct *tsk;
   273  u64 t;
   274  
 > 275  tsk = get_task_for_clock(clock);
   276  if (!tsk)
   277  return -EINVAL;
   278  
   279  if (CPUCLOCK_PERTHREAD(clock))
   280  cpu_clock_sample(clkid, tsk, );
   281  else
   282  cpu_clock_sample_group(clkid, tsk, );
   283  put_task_struct(tsk);
   284  
   285  *tp = ns_to_timespec64(t);
   286  return 0;
   287  }
   288  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] freezer,NFS: add an unsafe schedule_timeout_interruptable freezable helper for NFS

2019-08-29 Thread kbuild test robot
Hi Benjamin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190828]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Benjamin-Coddington/freezer-NFS-add-an-unsafe-schedule_timeout_interruptable-freezable-helper-for-NFS/20190829-161623
config: x86_64-randconfig-f004-201934 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   fs/nfs/nfs4proc.c: In function 'nfs4_delay_interruptible':
>> fs/nfs/nfs4proc.c:418:2: error: implicit declaration of function 
>> 'freezable_schedule_timeout_interruptible_unsafe'; did you mean 
>> 'freezable_schedule_timeout_interruptible'? 
>> [-Werror=implicit-function-declaration]
 
freezable_schedule_timeout_interruptible_unsafe(nfs4_update_delay(timeout));
 ^~~
 freezable_schedule_timeout_interruptible
   cc1: some warnings being treated as errors

vim +418 fs/nfs/nfs4proc.c

   413  
   414  static int nfs4_delay_interruptible(long *timeout)
   415  {
   416  might_sleep();
   417  
 > 418  
 > freezable_schedule_timeout_interruptible_unsafe(nfs4_update_delay(timeout));
   419  if (!signal_pending(current))
   420  return 0;
   421  return __fatal_signal_pending(current) ? -EINTR :-ERESTARTSYS;
   422  }
   423  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [tip: timers/core] posix-cpu-timers: Use common permission check in posix_cpu_clock_get()

2019-08-29 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190828]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Thomas-Gleixner/posix-cpu-timers-Use-common-permission-check-in-posix_cpu_clock_get/20190829-181227
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=parisc 

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

All error/warnings (new ones prefixed by >>):

   kernel/time/posix-cpu-timers.c: In function 'posix_cpu_clock_get':
>> kernel/time/posix-cpu-timers.c:275:8: error: implicit declaration of 
>> function 'get_task_for_clock'; did you mean 'get_task_struct'? 
>> [-Werror=implicit-function-declaration]
 tsk = get_task_for_clock(clock);
   ^~
   get_task_struct
>> kernel/time/posix-cpu-timers.c:275:6: warning: assignment makes pointer from 
>> integer without a cast [-Wint-conversion]
 tsk = get_task_for_clock(clock);
 ^
   cc1: some warnings being treated as errors

vim +275 kernel/time/posix-cpu-timers.c

   268  
   269  static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 
*tp)
   270  {
   271  const clockid_t clkid = CPUCLOCK_WHICH(clock);
   272  struct task_struct *tsk;
   273  u64 t;
   274  
 > 275  tsk = get_task_for_clock(clock);
   276  if (!tsk)
   277  return -EINVAL;
   278  
   279  if (CPUCLOCK_PERTHREAD(clock))
   280  cpu_clock_sample(clkid, tsk, );
   281  else
   282  cpu_clock_sample_group(clkid, tsk, );
   283  put_task_struct(tsk);
   284  
   285  *tp = ns_to_timespec64(t);
   286  return 0;
   287  }
   288  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[tip:irq/core 3/3] kernel/irq/affinity.c:287:31: warning: passing argument 2 of 'alloc_nodes_vectors' from incompatible pointer type

2019-08-27 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
irq/core
head:   b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0
commit: b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0 [3/3] genirq/affinity: Spread 
vectors on node according to nr_cpu ratio
config: x86_64-randconfig-a002-201934 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   kernel/irq/affinity.c: In function '__irq_build_affinity_masks':
>> kernel/irq/affinity.c:287:31: warning: passing argument 2 of 
>> 'alloc_nodes_vectors' from incompatible pointer type
 alloc_nodes_vectors(numvecs, node_to_cpumask, cpu_mask,
  ^
   kernel/irq/affinity.c:128:13: note: expected 'const struct cpumask (*)[1]' 
but argument is of type 'struct cpumask (*)[1]'
static void alloc_nodes_vectors(unsigned int numvecs,
^
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_clear_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:arch_test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 arch/x86/include/asm/arch_hweight.h:__arch_hweight64
   Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:set_bit
   Cyclomatic Complexity 1 include/asm-generic/bitops-instrumented.h:clear_bit
   Cyclomatic Complexity 1 
include/asm-generic/bitops-instrumented.h:test_and_clear_bit
   Cyclomatic Complexity 2 include/linux/bitops.h:hweight_long
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/bitmap.h:bitmap_zero
   Cyclomatic Complexity 1 include/linux/bitmap.h:bitmap_copy
   Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_and
   Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_or
   Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_andnot
   Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_intersects
   Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_weight
   Cyclomatic Complexity 2 include/linux/cpumask.h:cpu_max_bits_warn
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_check
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_first
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_set_cpu
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_clear_cpu
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_test_and_clear_cpu
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_clear
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_and
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_or
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_andnot
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_intersects
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_weight
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_copy
   Cyclomatic Complexity 1 include/linux/cpumask.h:zalloc_cpumask_var
   Cyclomatic Complexity 1 include/linux/cpumask.h:free_cpumask_var
   Cyclomatic Complexity 69 include/asm-generic/getorder.h:get_order
   Cyclomatic Complexity 1 include/linux/nodemask.h:__node_set
   Cyclomatic Complexity 1 include/linux/nodemask.h:__first_node
   Cyclomatic Complexity 1 include/linux/nodemask.h:__next_node
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_type
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 4 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 9 include/linux/slab.h:kmalloc_array
   Cyclomatic Complexity 1 include/linux/slab.h:kcalloc
   Cyclomatic Complexity 1 include/linux/cpu.h:get_online_cpus
   Cyclomatic Complexity 1 include/linux/cpu.h:put_online_cpus
   Cyclomatic Complexity 3 kernel/irq/affinity.c:get_nodes_in_cpumask
   Cyclomatic Complexity 1 kernel/irq/affinity.c:ncpus_cmp_func
   Cyclomatic Complexity 1 kernel/irq/affinity.c:default_calc_sets
   Cyclomatic Complexity 5 kernel/irq/affinity.c:alloc_node_to_cpumask
   Cyclomatic Complexity 2 kernel/irq/affinity.c:free_node_to_cpumask
   Cyclomatic Complexity 2 kernel/irq/affinity.c:build_node_to_cpumask
   Cyclomatic Complexity 6 kernel/irq/affinity.c:irq_spread_init_one
   Cyclomatic Complexity 8 kernel/irq/affinity.c:alloc_nodes_vectors
   Cyclomatic Complexity 13 kernel/irq/affinity.c:__irq_build_affinity_masks
   Cyclomatic Complexity 9 kernel/irq/affinity.c:irq_build_affinity_masks
   Cyclomatic Complexity 13 kernel/irq/affinity.c:irq_create_affinity_masks
   Cyclomatic Complexity 3 kernel/irq/affinity.c:irq_calc_affinity_vectors
   Cyclomatic Complexity 1 
ker

Re: [PATCH 10/10] mm/oom_debug: Add Enhanced Process Print Information

2019-08-27 Thread kbuild test robot
Hi Edward,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190827]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Edward-Chron/mm-oom_debug-Add-Debug-base-code/20190827-183210
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   ld: mm/oom_kill_debug.o: in function `timespec_format.constprop.2':
>> oom_kill_debug.c:(.text+0x156): undefined reference to `__udivdi3'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 01/10] mm/oom_debug: Add Debug base code

2019-08-27 Thread kbuild test robot
Hi Edward,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190827]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Edward-Chron/mm-oom_debug-Add-Debug-base-code/20190827-183210
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from mm/oom_kill_debug.c:135:
>> mm/oom_kill_debug.c:261:17: error: initialization from incompatible pointer 
>> type [-Werror=incompatible-pointer-types]
subsys_initcall(oom_debug_init)
^
   include/linux/init.h:197:50: note: in definition of macro 
'___define_initcall'
  __attribute__((__section__(#__sec ".init"))) = fn;
 ^~
   include/linux/init.h:224:30: note: in expansion of macro '__define_initcall'
#define subsys_initcall(fn)  __define_initcall(fn, 4)
 ^
>> mm/oom_kill_debug.c:261:1: note: in expansion of macro 'subsys_initcall'
subsys_initcall(oom_debug_init)
^~~
   cc1: some warnings being treated as errors

vim +261 mm/oom_kill_debug.c

 > 135  #include 
   136  #include 
   137  #include 
   138  #include 
   139  #include 
   140  #include 
   141  #include 
   142  #include 
   143  #include 
   144  #include 
   145  #include "oom_kill_debug.h"
   146  
   147  #define OOMD_MAX_FNAME 48
   148  #define OOMD_MAX_OPTNAME 32
   149  
   150  #define K(x) ((x) << (PAGE_SHIFT-10))
   151  
   152  static const char oom_debug_path[] = "/sys/kernel/debug/oom";
   153  
   154  static const char od_root_name[] = "oom";
   155  static struct dentry *od_root_dir;
   156  static u32 oom_kill_debug_oom_events;
   157  
   158  /* One oom_debug_option entry per debug option */
   159  struct oom_debug_option {
   160  const char *option_name;
   161  umode_t mode;
   162  struct dentry *dir_dentry;
   163  struct dentry *enabled_dentry;
   164  struct dentry *tenthpercent_dentry;
   165  bool enabled;
   166  u16 tenthpercent;
   167  bool support_tpercent;
   168  };
   169  
   170  /* Table of oom debug options, new options need to be added here */
   171  static struct oom_debug_option oom_debug_options_table[] = {
   172  {}
   173  };
   174  
   175  /* Option index by name for order one-lookup, add new options entry 
here */
   176  enum oom_debug_options_index {
   177  OUT_OF_BOUNDS
   178  };
   179  
   180  bool oom_kill_debug_enabled(u16 index)
   181  {
   182  return oom_debug_options_table[index].enabled;
   183  }
   184  
   185  u16 oom_kill_debug_tenthpercent(u16 index)
   186  {
   187  return oom_debug_options_table[index].tenthpercent;
   188  }
   189  
   190  static void filename_gen(char *pdest, const char *optname, const char 
*fname)
   191  {
   192  size_t len;
   193  char *pmsg;
   194  
   195  sprintf(pdest, "%s", optname);
   196  len = strnlen(pdest, OOMD_MAX_OPTNAME);
   197  pmsg = pdest + len;
   198  sprintf(pmsg, "%s", fname);
   199  }
   200  
   201  static void enabled_file_gen(struct oom_debug_option *entry)
   202  {
   203  char filename[OOMD_MAX_FNAME];
   204  
   205  filename_gen(filename, entry->option_name, "enabled");
   206  debugfs_create_bool(filename, 0644, entry->dir_dentry,
   207  >enabled);
   208  entry->enabled = OOM_KILL_DEBUG_DEFAULT_ENABLED;
   209  }
   210  
   211  static void tpercent_file_gen(struct oom_debug_option *entry)
   212  {
   213  char filename[OOMD_MAX_FNAME];
   214  
   215  filename_gen(filename, entry->option_name, "tenthpercent");
   216  debugfs_create_u16(filename, 0644, entry->dir_dentry,
   217 >tenthpercent);
   218  entry->tenthpercent = OOM_KILL_DEBUG_DEFAULT_TENTHPERCENT;
   219

Re: [PATCH] Staging: speakup: spk_types: fixed an unnamed parameter style issue

2019-08-27 Thread kbuild test robot
Hi Matthew,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190827]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Matthew-Hanzelik/Staging-speakup-spk_types-fixed-an-unnamed-parameter-style-issue/20190817-235230
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=c6x 

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

All errors (new ones prefixed by >>):

>> drivers/staging/speakup/speakup_dectlk.c:132:19: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
 .read_buff_add = read_buff_add,
  ^
   drivers/staging/speakup/speakup_dectlk.c:132:19: note: (near initialization 
for 'synth_dectlk.read_buff_add')
   cc1: some warnings being treated as errors
--
>> drivers/staging/speakup/speakup_decext.c:126:19: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
 .read_buff_add = read_buff_add,
  ^
   drivers/staging/speakup/speakup_decext.c:126:19: note: (near initialization 
for 'synth_decext.read_buff_add')
   cc1: some warnings being treated as errors

vim +132 drivers/staging/speakup/speakup_dectlk.c

c6e3fd22cd5383 William Hubbs 2010-10-07  106  
c6e3fd22cd5383 William Hubbs 2010-10-07  107  static struct spk_synth 
synth_dectlk = {
c6e3fd22cd5383 William Hubbs 2010-10-07  108.name = "dectlk",
c6e3fd22cd5383 William Hubbs 2010-10-07  109.version = DRV_VERSION,
c6e3fd22cd5383 William Hubbs 2010-10-07  110.long_name = "Dectalk Express",
c6e3fd22cd5383 William Hubbs 2010-10-07  111.init = "[:error sp :name paul 
:rate 180 :tsr off] ",
c6e3fd22cd5383 William Hubbs 2010-10-07  112.procspeech = PROCSPEECH,
c6e3fd22cd5383 William Hubbs 2010-10-07  113.clear = SYNTH_CLEAR,
c6e3fd22cd5383 William Hubbs 2010-10-07  114.delay = 500,
c6e3fd22cd5383 William Hubbs 2010-10-07  115.trigger = 50,
c6e3fd22cd5383 William Hubbs 2010-10-07  116.jiffies = 50,
c6e3fd22cd5383 William Hubbs 2010-10-07  117.full = 4,
8a21ff775f5654 Okash Khawaja 2017-06-25  118.dev_name = SYNTH_DEFAULT_DEV,
c6e3fd22cd5383 William Hubbs 2010-10-07  119.startup = SYNTH_START,
c6e3fd22cd5383 William Hubbs 2010-10-07  120.checkval = SYNTH_CHECK,
c6e3fd22cd5383 William Hubbs 2010-10-07  121.vars = vars,
c6e3fd22cd5383 William Hubbs 2010-10-07  122.default_pitch = ap_defaults,
c6e3fd22cd5383 William Hubbs 2010-10-07  123.default_vol = g5_defaults,
470790eefede39 Okash Khawaja 2017-05-15  124.io_ops = _ttyio_ops,
470790eefede39 Okash Khawaja 2017-05-15  125.probe = spk_ttyio_synth_probe,
470790eefede39 Okash Khawaja 2017-05-15  126.release = spk_ttyio_release,
470790eefede39 Okash Khawaja 2017-05-15  127.synth_immediate = 
spk_ttyio_synth_immediate,
c6e3fd22cd5383 William Hubbs 2010-10-07  128.catch_up = do_catch_up,
c6e3fd22cd5383 William Hubbs 2010-10-07  129.flush = synth_flush,
c6e3fd22cd5383 William Hubbs 2010-10-07  130.is_alive = 
spk_synth_is_alive_restart,
c6e3fd22cd5383 William Hubbs 2010-10-07  131.synth_adjust = NULL,
c6e3fd22cd5383 William Hubbs 2010-10-07 @132.read_buff_add = read_buff_add,
c6e3fd22cd5383 William Hubbs 2010-10-07  133.get_index = get_index,
c6e3fd22cd5383 William Hubbs 2010-10-07  134.indexing = {
c6e3fd22cd5383 William Hubbs 2010-10-07  135.command = "[:in re %d 
] ",
c6e3fd22cd5383 William Hubbs 2010-10-07  136.lowindex = 1,
c6e3fd22cd5383 William Hubbs 2010-10-07  137.highindex = 8,
c6e3fd22cd5383 William Hubbs 2010-10-07  138.currindex = 1,
c6e3fd22cd5383 William Hubbs 2010-10-07  139},
c6e3fd22cd5383 William Hubbs 2010-10-07  140.attributes = {
c6e3fd22cd5383 William Hubbs 2010-10-07  141.attrs = synth_attrs,
c6e3fd22cd5383 William Hubbs 2010-10-07  142.name = "dectlk",
c6e3fd22cd5383 William Hubbs 2010-10-07  143},
c6e3fd22cd5383 William Hubbs 2010-10-07  144  };
c6e3fd22cd5383 William Hubbs 2010-10-07  145  

:: The code at line 132 was first introduced by commit
:: c6e3fd22cd538365bfeb82997d5b89562e077d42 Staging: add speakup to the 
staging directory

:: TO: William Hubbs 
:: CC: Greg Kroah-Hartman 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] clk: Evict unregistered clks from parent caches

2019-08-27 Thread kbuild test robot
Hi Stephen,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190827]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Stephen-Boyd/clk-Evict-unregistered-clks-from-parent-caches/20190827-165138
config: mips-allnoconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

   drivers/clk/clk.c: In function 'clk_core_evict_parent_cache':
>> drivers/clk/clk.c:3785:15: error: 'all_lists' undeclared (first use in this 
>> function); did you mean 'lists'?
 for (lists = all_lists; *lists; lists++)
  ^
  lists
   drivers/clk/clk.c:3785:15: note: each undeclared identifier is reported only 
once for each function it appears in

vim +3785 drivers/clk/clk.c

  3776  
  3777  /* Remove this clk from all parent caches */
  3778  static void clk_core_evict_parent_cache(struct clk_core *core)
  3779  {
  3780  struct hlist_head **lists;
  3781  struct clk_core *root;
  3782  
  3783  lockdep_assert_held(_lock);
  3784  
> 3785  for (lists = all_lists; *lists; lists++)
  3786  hlist_for_each_entry(root, *lists, child_node)
  3787  clk_core_evict_parent_cache_subtree(root, core);
  3788  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [tip: x86/cpu] x86/cpu/intel: Fix rename fallout

2019-08-26 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Ingo-Molnar/x86-cpu-intel-Fix-rename-fallout/20190827-083739
config: x86_64-randconfig-s2-08250055 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/platform/x86/intel_pmc_core.c:27:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE_L' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:809:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(SKYLAKE_L, spt_reg_map),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:810:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(SKYLAKE, spt_reg_map),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE_L' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:811:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(KABYLAKE_L, spt_reg_map),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:812:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(KABYLAKE, spt_reg_map),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_CANNONLAKE_L' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:813:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(CANNONLAKE_L, cnp_reg_map),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ICELAKE_L' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core.c:814:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(ICELAKE_L, icl_reg_map),
 ^
--
   In file included from drivers/platform/x86/intel_pmc_core_pltdrv.c:19:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE_L' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core_pltdrv.c:33:2: note: in expansion of 
macro 'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(SKYLAKE_L, pmc_core_device),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE' 
>> undeclared here (not in a function)
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^
   drivers/platform/x86/intel_pmc_core_pltdrv.c:34:2: note: in expansion of 
macro 'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(SKYLAKE, pmc_core_device),
 ^
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KAB

Re: [tip: x86/cpu] x86/cpu/intel: Fix rename fallout

2019-08-26 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Ingo-Molnar/x86-cpu-intel-Fix-rename-fallout/20190827-083739
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/idle/intel_idle.c:53:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1075:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(HASWELL,   idle_cpu_hsw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_L' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1077:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(HASWELL_L,  idle_cpu_hsw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_G' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_L'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1078:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(HASWELL_G,  idle_cpu_hsw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 
>> 'INTEL_FAM6_ATOM_SILVERMONT_D' undeclared here (not in a function); did you 
>> mean 'INTEL_FAM6_ATOM_SILVERMONT_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1079:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(ATOM_SILVERMONT_D, idle_cpu_avn),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1080:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(BROADWELL,  idle_cpu_bdw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_G' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1081:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(BROADWELL_G,  idle_cpu_bdw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_D' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_G'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1083:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(BROADWELL_D,  idle_cpu_bdw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE_L' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_AN

Re: [tip: x86/cpu] x86/cpu/intel: Aggregate big core client naming

2019-08-26 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Peter-Zijlstra/x86-cpu-intel-Aggregate-big-core-client-naming/20190827-055636
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/powercap/intel_rapl_common.c:27:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_CORE' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_GT3E'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/powercap/intel_rapl_common.c:960:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(HASWELL_CORE, rapl_defaults_core),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 
>> 'INTEL_FAM6_BROADWELL_CORE' undeclared here (not in a function); did you 
>> mean 'INTEL_FAM6_BROADWELL_GT3E'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/powercap/intel_rapl_common.c:965:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(BROADWELL_CORE, rapl_defaults_core),
 ^~
   arch/x86/include/asm/intel-family.h:114:23: error: 
'INTEL_FAM6_SKYLAKE_DESKTOP' undeclared here (not in a function); did you mean 
'INTEL_FAM6_SKYLAKE_X'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/powercap/intel_rapl_common.c:970:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(SKYLAKE_DESKTOP, rapl_defaults_core),
 ^~
   arch/x86/include/asm/intel-family.h:114:23: error: 
'INTEL_FAM6_KABYLAKE_DESKTOP' undeclared here (not in a function); did you mean 
'INTEL_FAM6_SKYLAKE_DESKTOP'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/powercap/intel_rapl_common.c:974:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(KABYLAKE_DESKTOP, rapl_defaults_core),
 ^~
   arch/x86/include/asm/intel-family.h:114:23: error: 
'INTEL_FAM6_ICELAKE_DESKTOP' undeclared here (not in a function); did you mean 
'INTEL_FAM6_SKYLAKE_DESKTOP'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/powercap/intel_rapl_common.c:977:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(ICELAKE_DESKTOP, rapl_defaults_core),
 ^~
--
   In file included from drivers/idle/intel_idle.c:53:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_CORE' 
>> undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_GT3E'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1075:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(HASWELL_CORE,  idle_cpu_hsw),
 ^~
>> arch/x86/include/asm/intel-family.h:114:23: error: 
>> 'INTEL_FAM6_BROADWELL_CORE' undeclared here (not in a function); did you 
>> mean 'INTEL_FAM6_BROADWELL_GT3E'?
 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
  ^
   arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 
'INTEL_CPU_FAM_ANY'
 .model  = _model,\
   ^~
   drivers/idle/intel_idle.c:1080:2: note: in expansion of macro 
'INTEL_CPU_FAM6'
 INTEL_CPU_FAM6(BROADWELL_CORE,  idle_cpu_bdw),
 ^~
   arch/x86/include/asm/intel-family.h:114:23: error: 
'INTEL_FAM6_SKYLAKE_DESKTOP' undeclared here (not in a function); did you mean 
'INTEL_F

Re: sched,time: Allow better constprop/DCE for schedule_timeout()

2019-08-26 Thread kbuild test robot
Hi Peter,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Peter-Zijlstra/sched-time-Allow-better-constprop-DCE-for-schedule_timeout/20190827-061612
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/uaccess.h:5:0,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets.c:9:
   include/linux/sched.h: In function 'schedule_timeout':
>> include/linux/sched.h:222:3: error: implicit declaration of function 
>> 'schedule' [-Werror=implicit-function-declaration]
  schedule();
  ^~~~
   include/linux/sched.h: At top level:
   include/linux/sched.h:233:17: warning: conflicting types for 'schedule'
asmlinkage void schedule(void);
^~~~
   include/linux/sched.h:222:3: note: previous implicit declaration of 
'schedule' was here
  schedule();
  ^~~~
   cc1: some warnings being treated as errors
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2
   18 real  10 user  3 sys  78.71% cpu  make prepare

vim +/schedule +222 include/linux/sched.h

   218  
   219  static inline long schedule_timeout(long timeout)
   220  {
   221  if (__builtin_constant_p(timeout) && timeout == 
MAX_SCHEDULE_TIMEOUT) {
 > 222  schedule();
   223  return timeout;
   224  }
   225  
   226  return __schedule_timeout(timeout);
   227  }
   228  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: sched,time: Allow better constprop/DCE for schedule_timeout()

2019-08-26 Thread kbuild test robot
Hi Peter,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Peter-Zijlstra/sched-time-Allow-better-constprop-DCE-for-schedule_timeout/20190827-061612
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=um SUBARCH=x86_64

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

All errors (new ones prefixed by >>):

   In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:0,
from arch/um/kernel/asm-offsets.c:1:
   include/linux/sched.h: In function 'schedule_timeout':
>> include/linux/sched.h:222:3: error: implicit declaration of function 
>> 'schedule'; did you mean 'schedule_work'? 
>> [-Werror=implicit-function-declaration]
  schedule();
  ^~~~
  schedule_work
   include/linux/sched.h: At top level:
   include/linux/sched.h:233:17: warning: conflicting types for 'schedule'
asmlinkage void schedule(void);
^~~~
   include/linux/sched.h:222:3: note: previous implicit declaration of 
'schedule' was here
  schedule();
  ^~~~
   cc1: some warnings being treated as errors
   make[2]: *** [arch/um/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2
   8 real  6 user  4 sys  130.06% cpu   make prepare

vim +222 include/linux/sched.h

   218  
   219  static inline long schedule_timeout(long timeout)
   220  {
   221  if (__builtin_constant_p(timeout) && timeout == 
MAX_SCHEDULE_TIMEOUT) {
 > 222  schedule();
   223  return timeout;
   224  }
   225  
   226  return __schedule_timeout(timeout);
   227  }
   228  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[tip:x86/urgent 3/3] arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true'

2019-08-26 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
x86/urgent
head:   cfa16294b1c5b320c0a0e1cac37c784b92366c87
commit: cfa16294b1c5b320c0a0e1cac37c784b92366c87 [3/3] x86/apic: Include the 
LDR when clearing out APIC registers
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout cfa16294b1c5b320c0a0e1cac37c784b92366c87
# save the attached .config to linux build tree
make ARCH=i386 

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

All warnings (new ones prefixed by >>):

   arch/x86/kernel/apic/apic.c: In function 'clear_local_APIC':
>> arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' 
>> will always evaluate as 'true' [-Waddress]
 if (!x2apic_enabled) {
 ^

vim +1182 arch/x86/kernel/apic/apic.c

  1142  
  1143  /*
  1144   * Local APIC start and shutdown
  1145   */
  1146  
  1147  /**
  1148   * clear_local_APIC - shutdown the local APIC
  1149   *
  1150   * This is called, when a CPU is disabled and before rebooting, so the 
state of
  1151   * the local APIC has no dangling leftovers. Also used to cleanout any 
BIOS
  1152   * leftovers during boot.
  1153   */
  1154  void clear_local_APIC(void)
  1155  {
  1156  int maxlvt;
  1157  u32 v;
  1158  
  1159  /* APIC hasn't been mapped yet */
  1160  if (!x2apic_mode && !apic_phys)
  1161  return;
  1162  
  1163  maxlvt = lapic_get_maxlvt();
  1164  /*
  1165   * Masking an LVT entry can trigger a local APIC error
  1166   * if the vector is zero. Mask LVTERR first to prevent this.
  1167   */
  1168  if (maxlvt >= 3) {
  1169  v = ERROR_APIC_VECTOR; /* any non-zero vector will do */
  1170  apic_write(APIC_LVTERR, v | APIC_LVT_MASKED);
  1171  }
  1172  /*
  1173   * Careful: we have to set masks only first to deassert
  1174   * any level-triggered sources.
  1175   */
  1176  v = apic_read(APIC_LVTT);
  1177  apic_write(APIC_LVTT, v | APIC_LVT_MASKED);
  1178  v = apic_read(APIC_LVT0);
  1179  apic_write(APIC_LVT0, v | APIC_LVT_MASKED);
  1180  v = apic_read(APIC_LVT1);
  1181  apic_write(APIC_LVT1, v | APIC_LVT_MASKED);
> 1182  if (!x2apic_enabled) {
  1183  v = apic_read(APIC_LDR) & ~APIC_LDR_MASK;
  1184  apic_write(APIC_LDR, v);
  1185  }
  1186  if (maxlvt >= 4) {
  1187  v = apic_read(APIC_LVTPC);
  1188  apic_write(APIC_LVTPC, v | APIC_LVT_MASKED);
  1189  }
  1190  
  1191  /* lets not touch this if we didn't frob it */
  1192  #ifdef CONFIG_X86_THERMAL_VECTOR
  1193  if (maxlvt >= 5) {
  1194  v = apic_read(APIC_LVTTHMR);
  1195  apic_write(APIC_LVTTHMR, v | APIC_LVT_MASKED);
  1196  }
  1197  #endif
  1198  #ifdef CONFIG_X86_MCE_INTEL
  1199  if (maxlvt >= 6) {
  1200  v = apic_read(APIC_LVTCMCI);
  1201  if (!(v & APIC_LVT_MASKED))
  1202  apic_write(APIC_LVTCMCI, v | APIC_LVT_MASKED);
  1203  }
  1204  #endif
  1205  
  1206  /*
  1207   * Clean APIC state for other OSs:
  1208   */
  1209  apic_write(APIC_LVTT, APIC_LVT_MASKED);
  1210  apic_write(APIC_LVT0, APIC_LVT_MASKED);
  1211  apic_write(APIC_LVT1, APIC_LVT_MASKED);
  1212  if (maxlvt >= 3)
  1213  apic_write(APIC_LVTERR, APIC_LVT_MASKED);
  1214  if (maxlvt >= 4)
  1215  apic_write(APIC_LVTPC, APIC_LVT_MASKED);
  1216  
  1217  /* Integrated APIC (!82489DX) ? */
  1218  if (lapic_is_integrated()) {
  1219  if (maxlvt > 3)
  1220  /* Clear ESR due to Pentium errata 3AP and 11AP 
*/
  1221  apic_write(APIC_ESR, 0);
  1222  apic_read(APIC_ESR);
  1223  }
  1224  }
  1225  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-25 Thread kbuild test robot
Hi Waiman,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190823]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Waiman-Long/fs-proc-page-Skip-uninitialized-page-when-iterating-page-structures/20190826-105836
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   fs/proc/page.c: In function 'find_next_zone_range':
>> fs/proc/page.c:58:2: error: expected ';' before 'for'
 for (pgdat = first_online_pgdat(); pgdat;
 ^~~
   fs/proc/page.c:52:6: warning: unused variable 'i' [-Wunused-variable]
 int i;
 ^
   fs/proc/page.c:51:15: warning: unused variable 'zone' [-Wunused-variable]
 struct zone *zone;
  ^~~~
   fs/proc/page.c:50:13: warning: unused variable 'pgdat' [-Wunused-variable]
 pg_data_t *pgdat;
^
   fs/proc/page.c: In function 'pfn_in_zone':
>> fs/proc/page.c:79:23: error: 'struct zone_range' has no member named 
>> 'start'; did you mean 'pfn_start'?
 return pfn >= range->start && pfn < range->end;
  ^
  pfn_start
>> fs/proc/page.c:79:43: error: 'struct zone_range' has no member named 'end'
 return pfn >= range->start && pfn < range->end;
  ^~
   fs/proc/page.c:80:1: warning: control reaches end of non-void function 
[-Wreturn-type]
}
^

vim +58 fs/proc/page.c

46  
47  static void find_next_zone_range(struct zone_range *range)
48  {
49  unsigned long start, end;
  > 50  pg_data_t *pgdat;
  > 51  struct zone *zone;
52  int i;
53  
54  /*
55   * Scan all the zone structures to find the next closest one.
56   */
57  start = end = -1UL
  > 58  for (pgdat = first_online_pgdat(); pgdat;
59   pgdat = next_online_pgdat(pgdat)) {
60  for (zone = pgdat->node_zones, i = 0; i < MAX_NR_ZONES;
61   zone++, i++) {
62  if (!zone->spanned_pages)
63  continue;
64  if ((zone->zone_start_pfn >= range->pfn_end) &&
65  (zone->zone_start_pfn < start)) {
66  start = zone->zone_start_pfn;
67  end   = start + zone->spanned_pages;
68  }
69  }
70  }
71  range->pfn_start = start;
72  range->pfn_end   = end;
73  }
74  
75  static inline bool pfn_in_zone(unsigned long pfn, struct zone_range 
*range)
76  {
77  if (pfn >= range->pfn_end)
78  find_next_zone_range(range);
  > 79  return pfn >= range->start && pfn < range->end;
80  }
81  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [tip: perf/core] tools headers: Synchronize linux/bits.h with the kernel sources

2019-08-25 Thread kbuild test robot
Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc5 next-20190823]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/tip-bot2-for-Arnaldo-Carvalho-de-Melo/tools-headers-Synchronize-linux-bits-h-with-the-kernel-sources/20190826-001511
config: x86_64-randconfig-a004-201934 (attached as .config)
compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from tools/include/linux/bitops.h:13:0,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from builtin-check.c:18:
   tools/include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
>> tools/include/linux/bits.h:10:24: error: implicit declaration of function 
>> 'UL' [-Werror=implicit-function-declaration]
#define BIT_MASK(nr)  (UL(1) << ((nr) % BITS_PER_LONG))
   ^
   tools/include/asm-generic/bitops/non-atomic.h:18:23: note: in expansion of 
macro 'BIT_MASK'
 unsigned long mask = BIT_MASK(nr);
  ^~~~
   In file included from tools/include/asm-generic/bitops.h:30:0,
from tools/include/linux/bitops.h:32,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from builtin-check.c:18:
   tools/include/asm-generic/bitops/non-atomic.h:18:2: error: nested extern 
declaration of 'UL' [-Werror=nested-externs]
 unsigned long mask = BIT_MASK(nr);
 ^~~~
   In file included from tools/include/linux/bitops.h:13:0,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from builtin-orc.c:17:
   tools/include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
>> tools/include/linux/bits.h:10:24: error: implicit declaration of function 
>> 'UL' [-Werror=implicit-function-declaration]
#define BIT_MASK(nr)  (UL(1) << ((nr) % BITS_PER_LONG))
   ^
   tools/include/asm-generic/bitops/non-atomic.h:18:23: note: in expansion of 
macro 'BIT_MASK'
 unsigned long mask = BIT_MASK(nr);
  ^~~~
   In file included from tools/include/asm-generic/bitops.h:30:0,
from tools/include/linux/bitops.h:32,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from builtin-orc.c:17:
   tools/include/asm-generic/bitops/non-atomic.h:18:2: error: nested extern 
declaration of 'UL' [-Werror=nested-externs]
 unsigned long mask = BIT_MASK(nr);
 ^~~~
   cc1: all warnings being treated as errors
   In file included from tools/include/linux/bitops.h:13:0,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from check.c:10:
   tools/include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
>> tools/include/linux/bits.h:10:24: error: implicit declaration of function 
>> 'UL' [-Werror=implicit-function-declaration]
#define BIT_MASK(nr)  (UL(1) << ((nr) % BITS_PER_LONG))
   ^
   tools/include/asm-generic/bitops/non-atomic.h:18:23: note: in expansion of 
macro 'BIT_MASK'
 unsigned long mask = BIT_MASK(nr);
  ^~~~
   In file included from tools/include/asm-generic/bitops.h:30:0,
from tools/include/linux/bitops.h:32,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from check.c:10:
   tools/include/asm-generic/bitops/non-atomic.h:18:2: error: nested extern 
declaration of 'UL' [-Werror=nested-externs]
 unsigned long mask = BIT_MASK(nr);
 ^~~~
   In file included from tools/include/linux/bitops.h:13:0,
from tools/include/linux/hashtable.h:13,
from elf.h:12,
from check.h:10,
from orc_gen.c:10:
   tools/include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
>> tools/include/linux/bits.h:10:24: error: implicit declaration of function 
>> 'UL' [-Werror=implicit-function-declaration]
#define BIT_MASK(nr)  (UL(1) << ((nr) % BITS_PER_LONG))
   ^
   tools/include/asm-generic/bitops/non-atomic.h:18:23:

Re: [PATCH v2 -next] soundwire: Fix -Wunused-function warning

2019-08-24 Thread kbuild test robot
Hi YueHaibing,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20190823]

url:
https://github.com/0day-ci/linux/commits/YueHaibing/soundwire-Fix-Wunused-function-warning/20190825-083159
config: x86_64-randconfig-g004-201934 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> ERROR: "sdw_acpi_find_slaves" [drivers/soundwire/soundwire-bus.ko] undefined!
   WARNING: "ftrace_set_clr_event" [vmlinux] is a static EXPORT_SYMBOL_GPL

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH 1/2] media: imx: Move capture device init to registered

2019-08-24 Thread kbuild test robot
Hi Steve,

I love your patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[cannot apply to v5.3-rc5 next-20190823]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Steve-Longerbeam/media-imx-Move-capture-device-init-to-registered/20190824-182241
base:   git://linuxtv.org/media_tree.git master
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

Note: the 
linux-review/Steve-Longerbeam/media-imx-Move-capture-device-init-to-registered/20190824-182241
 HEAD 7c4284abbf1ba252792db5645a7004bd033dd3b0 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/staging/media/imx/imx-ic-prpencvf.c: In function 'prp_registered':
>> drivers/staging/media/imx/imx-ic-prpencvf.c:1274:45: error: 'ic_priv' 
>> undeclared (first use in this function); did you mean 'priv'?
 priv->vdev = imx_media_capture_device_init(ic_priv->ipu_dev,
^~~
priv
   drivers/staging/media/imx/imx-ic-prpencvf.c:1274:45: note: each undeclared 
identifier is reported only once for each function it appears in

vim +1274 drivers/staging/media/imx/imx-ic-prpencvf.c

  1242  
  1243  /*
  1244   * retrieve our pads parsed from the OF graph by the media device
  1245   */
  1246  static int prp_registered(struct v4l2_subdev *sd)
  1247  {
  1248  struct prp_priv *priv = sd_to_priv(sd);
  1249  int i, ret;
  1250  u32 code;
  1251  
  1252  for (i = 0; i < PRPENCVF_NUM_PADS; i++) {
  1253  priv->pad[i].flags = (i == PRPENCVF_SINK_PAD) ?
  1254  MEDIA_PAD_FL_SINK : MEDIA_PAD_FL_SOURCE;
  1255  
  1256  /* set a default mbus format  */
  1257  imx_media_enum_ipu_format(, 0, CS_SEL_YUV);
  1258  ret = imx_media_init_mbus_fmt(>format_mbus[i],
  1259640, 480, code, 
V4L2_FIELD_NONE,
  1260>cc[i]);
  1261  if (ret)
  1262  return ret;
  1263  }
  1264  
  1265  /* init default frame interval */
  1266  priv->frame_interval.numerator = 1;
  1267  priv->frame_interval.denominator = 30;
  1268  
  1269  ret = media_entity_pads_init(>entity, PRPENCVF_NUM_PADS,
  1270   priv->pad);
  1271  if (ret)
  1272  return ret;
  1273  
> 1274  priv->vdev = imx_media_capture_device_init(ic_priv->ipu_dev,
  1275 _priv->sd,
  1276 PRPENCVF_SRC_PAD);
  1277  if (IS_ERR(priv->vdev))
  1278  return PTR_ERR(priv->vdev);
  1279  
  1280  ret = imx_media_capture_device_register(priv->vdev);
  1281  if (ret)
  1282  goto remove_vdev;
  1283  
  1284  ret = prp_init_controls(priv);
  1285  if (ret)
  1286  goto unreg_vdev;
  1287  
  1288  return 0;
  1289  
  1290  unreg_vdev:
  1291  imx_media_capture_device_unregister(priv->vdev);
  1292  remove_vdev:
  1293  imx_media_capture_device_remove(priv->vdev);
  1294  return ret;
  1295  }
  1296  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH] [media] pvrusb2: qctrl.flag will be uninitlaized if cx2341x_ctrl_query() returns error code

2019-08-22 Thread kbuild test robot
Hi Yizhuo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[cannot apply to v5.3-rc5 next-20190822]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Yizhuo/pvrusb2-qctrl-flag-will-be-uninitlaized-if-cx2341x_ctrl_query-returns-error-code/20190823-075303
base:   git://linuxtv.org/media_tree.git master
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   drivers/media/usb/pvrusb2/pvrusb2-hdw.c: In function 
'ctrl_cx2341x_getv4lflags':
>> drivers/media/usb/pvrusb2/pvrusb2-hdw.c:790:10: error: 'qctr' undeclared 
>> (first use in this function); did you mean 'qctrl'?
 memset(, 0, sizeof(qctrl))
 ^~~~
 qctrl
   drivers/media/usb/pvrusb2/pvrusb2-hdw.c:790:10: note: each undeclared 
identifier is reported only once for each function it appears in
>> drivers/media/usb/pvrusb2/pvrusb2-hdw.c:791:2: error: expected ';' before 
>> 'cx2341x_ctrl_query'
 cx2341x_ctrl_query(>hdw->enc_ctl_state,);
 ^~

vim +790 drivers/media/usb/pvrusb2/pvrusb2-hdw.c

   784  
   785  static unsigned int ctrl_cx2341x_getv4lflags(struct pvr2_ctrl *cptr)
   786  {
   787  struct v4l2_queryctrl qctrl;
   788  struct pvr2_ctl_info *info;
   789  qctrl.id = cptr->info->v4l_id;
 > 790  memset(, 0, sizeof(qctrl))
 > 791  cx2341x_ctrl_query(>hdw->enc_ctl_state,);
   792  /* Strip out the const so we can adjust a function pointer.  
It's
   793 OK to do this here because we know this is a dynamically 
created
   794 control, so the underlying storage for the info pointer is 
(a)
   795 private to us, and (b) not in read-only storage.  Either we 
do
   796 this or we significantly complicate the underlying control
   797 implementation. */
   798  info = (struct pvr2_ctl_info *)(cptr->info);
   799  if (qctrl.flags & V4L2_CTRL_FLAG_READ_ONLY) {
   800  if (info->set_value) {
   801  info->set_value = NULL;
   802  }
   803  } else {
   804  if (!(info->set_value)) {
   805  info->set_value = ctrl_cx2341x_set;
   806  }
   807  }
   808  return qctrl.flags;
   809  }
   810  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'?

2019-08-21 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
timers/core
head:   b74e1d61dbc614ff35ef3ad9267c61ed06b09051
commit: b74e1d61dbc614ff35ef3ad9267c61ed06b09051 [34/34] clocksource/hyperv: 
Add Hyper-V specific sched clock function
config: i386-randconfig-g002-201933 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout b74e1d61dbc614ff35ef3ad9267c61ed06b09051
# save the attached .config to linux build tree
make ARCH=i386 

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

All error/warnings (new ones prefixed by >>):

   drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' 
>> undeclared (first use in this function); did you mean 'sched_clock_register'?
 return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
  ^
  sched_clock_register
   drivers//clocksource/hyperv_timer.c:264:35: note: each undeclared identifier 
is reported only once for each function it appears in
   drivers//clocksource/hyperv_timer.c: In function 'hv_init_clocksource':
   drivers//clocksource/hyperv_timer.c:334:2: error: 'hv_sched_clock_offset' 
undeclared (first use in this function); did you mean 'sched_clock_register'?
 hv_sched_clock_offset = hyperv_cs->read(hyperv_cs);
 ^
 sched_clock_register
   drivers//clocksource/hyperv_timer.c: In function 'read_hv_sched_clock_msr':
>> drivers//clocksource/hyperv_timer.c:265:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
}
^

vim +264 drivers//clocksource/hyperv_timer.c

   261  
   262  static u64 read_hv_sched_clock_msr(void)
   263  {
 > 264  return read_hv_clock_msr(NULL) - hv_sched_clock_offset;
 > 265  }
   266  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[rcu:dev.2019.08.17a 8/36] ERROR: "tick_nohz_full_running" [kernel/rcu/rcutorture.ko] undefined!

2019-08-20 Thread kbuild test robot
Hi Paul,

FYI, the error/warning still remains.

tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git 
dev.2019.08.17a
head:   9120323ada960bc9f1427e546772a983ad036b9a
commit: 14569aa16daa1cd7610624a500ed2750fe341351 [8/36] rcutorture: Force on 
tick for readers and callback flooders
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout 14569aa16daa1cd7610624a500ed2750fe341351
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   ERROR: "tick_nohz_dep_clear_task" [kernel/rcu/rcutorture.ko] undefined!
   ERROR: "tick_nohz_dep_set_task" [kernel/rcu/rcutorture.ko] undefined!
>> ERROR: "tick_nohz_full_running" [kernel/rcu/rcutorture.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-19 Thread kbuild test robot
Hi Juri,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc5 next-20190819]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Juri-Lelli/net-xfrm-xfrm_ipcomp-Protect-scratch-buffer-with-local_lock/20190820-113542
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All errors (new ones prefixed by >>):

>> net//xfrm/xfrm_ipcomp.c:17:10: fatal error: linux/locallock.h: No such file 
>> or directory
#include 
 ^~~
   compilation terminated.

vim +17 net//xfrm/xfrm_ipcomp.c

  > 17  #include 
18  #include 
19  #include 
20  #include 
21  #include 
22  #include 
23  #include 
24  #include 
25  #include 
26  #include 
27  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-19 Thread kbuild test robot
Hi Daniel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on bpf-next/master]

url:
https://github.com/0day-ci/linux/commits/Daniel-Xu/tracing-probe-Add-PERF_EVENT_IOC_QUERY_PROBE-ioctl/20190820-003910
base:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   init/do_mounts.o: In function `perf_kprobe_event_query':
>> do_mounts.c:(.text+0x4e8): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   init/do_mounts.o: In function `perf_uprobe_event_query':
>> do_mounts.c:(.text+0x4f0): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   init/do_mounts_initrd.o: In function `perf_kprobe_event_query':
   do_mounts_initrd.c:(.text+0x0): multiple definition of 
`perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   init/do_mounts_initrd.o: In function `perf_uprobe_event_query':
   do_mounts_initrd.c:(.text+0x8): multiple definition of 
`perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   init/initramfs.o: In function `perf_kprobe_event_query':
   initramfs.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   init/initramfs.o: In function `perf_uprobe_event_query':
   initramfs.c:(.text+0x8): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/process.o: In function `perf_kprobe_event_query':
   process.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/process.o: In function `perf_uprobe_event_query':
   process.c:(.text+0x8): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/signal.o: In function `perf_kprobe_event_query':
   signal.c:(.text+0x11e0): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/signal.o: In function `perf_uprobe_event_query':
   signal.c:(.text+0x11e8): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/sys.o: In function `perf_kprobe_event_query':
   sys.c:(.text+0xb8): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/sys.o: In function `perf_uprobe_event_query':
   sys.c:(.text+0xc0): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/traps.o: In function `perf_kprobe_event_query':
   traps.c:(.text+0x510): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/traps.o: In function `perf_uprobe_event_query':
   traps.c:(.text+0x518): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/syscall.o: In function `perf_kprobe_event_query':
   syscall.c:(.text+0x168): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/syscall.o: In function `perf_uprobe_event_query':
   syscall.c:(.text+0x170): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/sys32.o: In function `perf_kprobe_event_query':
   sys32.c:(.text+0x228): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/sys32.o: In function `perf_uprobe_event_query':
   sys32.c:(.text+0x230): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/signal32.o: In function `perf_kprobe_event_query':
   signal32.c:(.text+0x1548): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.text+0x168): first defined here
   arch/arm64/kernel/signal32.o: In function `perf_uprobe_event_query':
   signal32.c:(.text+0x1550): multiple definition of `perf_uprobe_event_query'
   init/main.o:main.c:(.text+0x170): first defined here
   arch/arm64/kernel/sys_compat.o: In function `perf_kprobe_event_query':
   sys_compat.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'
   init/main.o:main.c:(.

[tip:WIP.timers/core 50/68] include/linux/posix-timers.h:98:19: error: 'RLIM_INFINITY' undeclared

2019-08-19 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
WIP.timers/core
head:   b16101077cbc7e0dde91e7ffb258ce1f979b
commit: 5ccda256adfd2674f96b6f7a90b2ea8aaddc46bd [50/68] posix-cpu-timers: Move 
expiry cache into struct posix_cputimers
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5ccda256adfd2674f96b6f7a90b2ea8aaddc46bd
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All errors (new ones prefixed by >>):

   In file included from :0:0:
   include/linux/posix-timers.h:82:22: error: field 'cputime_expires' has 
incomplete type
 struct task_cputime cputime_expires;
 ^~~
   include/linux/posix-timers.h: In function 'posix_cputimers_group_init':
>> include/linux/posix-timers.h:98:19: error: 'RLIM_INFINITY' undeclared (first 
>> use in this function)
 if (cpu_limit != RLIM_INFINITY)
  ^
   include/linux/posix-timers.h:98:19: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/RLIM_INFINITY +98 include/linux/posix-timers.h

72  
73  #ifdef CONFIG_POSIX_TIMERS
74  /**
75   * posix_cputimers - Container for posix CPU timer related data
76   * @cputime_expires:Earliest-expiration cache
77   * @cpu_timers: List heads to queue posix CPU timers
78   *
79   * Used in task_struct and signal_struct
80   */
81  struct posix_cputimers {
  > 82  struct task_cputime cputime_expires;
83  struct list_headcpu_timers[CPUCLOCK_MAX];
84  };
85  
86  static inline void posix_cputimers_init(struct posix_cputimers *pct)
87  {
88  memset(>cputime_expires, 0, sizeof(pct->cputime_expires));
89  INIT_LIST_HEAD(>cpu_timers[0]);
90  INIT_LIST_HEAD(>cpu_timers[1]);
91  INIT_LIST_HEAD(>cpu_timers[2]);
92  }
93  
94  static inline void posix_cputimers_group_init(struct posix_cputimers 
*pct,
95u64 cpu_limit)
96  {
97  posix_cputimers_init(pct);
  > 98  if (cpu_limit != RLIM_INFINITY)
99  pct->cputime_expires.prof_exp = cpu_limit * 
NSEC_PER_SEC;
   100  }
   101  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[tip:WIP.timers/core 27/68] include/linux/rcupdate.h:644:9: sparse: sparse: context imbalance in 'timer_wait_running' - unexpected unlock

2019-08-19 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
WIP.timers/core
head:   b16101077cbc7e0dde91e7ffb258ce1f979b
commit: e51f39feec02940feeb0914ef9ff8fe5e05965c1 [27/68] posix-timer: Use a 
callback for cancel synchronization
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
git checkout e51f39feec02940feeb0914ef9ff8fe5e05965c1
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

   kernel/time/posix-timers.c:588:24: sparse: sparse: context imbalance in 
'__lock_timer' - different lock contexts for basic block
>> include/linux/rcupdate.h:644:9: sparse: sparse: context imbalance in 
>> 'timer_wait_running' - unexpected unlock
   kernel/time/posix-timers.c:870:12: sparse: sparse: context imbalance in 
'do_timer_settime' - different lock contexts for basic block
   kernel/time/posix-timers.c:976:1: sparse: sparse: context imbalance in 
'__se_sys_timer_delete' - different lock contexts for basic block

vim +/timer_wait_running +644 include/linux/rcupdate.h

^1da177e4c3f41 Linus Torvalds  2005-04-16  596  
^1da177e4c3f41 Linus Torvalds  2005-04-16  597  /*
^1da177e4c3f41 Linus Torvalds  2005-04-16  598   * So where is 
rcu_write_lock()?  It does not exist, as there is no
^1da177e4c3f41 Linus Torvalds  2005-04-16  599   * way for writers to lock 
out RCU readers.  This is a feature, not
^1da177e4c3f41 Linus Torvalds  2005-04-16  600   * a bug -- this property 
is what provides RCU's performance benefits.
^1da177e4c3f41 Linus Torvalds  2005-04-16  601   * Of course, writers must 
coordinate with each other.  The normal
^1da177e4c3f41 Linus Torvalds  2005-04-16  602   * spinlock primitives work 
well for this, but any other technique may be
^1da177e4c3f41 Linus Torvalds  2005-04-16  603   * used as well.  RCU does 
not care how the writers keep out of each
^1da177e4c3f41 Linus Torvalds  2005-04-16  604   * others' way, as long as 
they do so.
^1da177e4c3f41 Linus Torvalds  2005-04-16  605   */
3d76c082907e8f Paul E. McKenney2009-09-28  606  
3d76c082907e8f Paul E. McKenney2009-09-28  607  /**
ca5ecddfa8fcbd Paul E. McKenney2010-04-28  608   * rcu_read_unlock() - 
marks the end of an RCU read-side critical section.
3d76c082907e8f Paul E. McKenney2009-09-28  609   *
f27bc4873fa8b7 Paul E. McKenney2014-05-04  610   * In most situations, 
rcu_read_unlock() is immune from deadlock.
f27bc4873fa8b7 Paul E. McKenney2014-05-04  611   * However, in kernels 
built with CONFIG_RCU_BOOST, rcu_read_unlock()
f27bc4873fa8b7 Paul E. McKenney2014-05-04  612   * is responsible for 
deboosting, which it does via rt_mutex_unlock().
f27bc4873fa8b7 Paul E. McKenney2014-05-04  613   * Unfortunately, this 
function acquires the scheduler's runqueue and
f27bc4873fa8b7 Paul E. McKenney2014-05-04  614   * priority-inheritance 
spinlocks.  This means that deadlock could result
f27bc4873fa8b7 Paul E. McKenney2014-05-04  615   * if the caller of 
rcu_read_unlock() already holds one of these locks or
ec84b27f9b3b56 Anna-Maria Gleixner 2018-05-25  616   * any lock that is ever 
acquired while holding them.
f27bc4873fa8b7 Paul E. McKenney2014-05-04  617   *
f27bc4873fa8b7 Paul E. McKenney2014-05-04  618   * That said, RCU readers 
are never priority boosted unless they were
f27bc4873fa8b7 Paul E. McKenney2014-05-04  619   * preempted.  Therefore, 
one way to avoid deadlock is to make sure
f27bc4873fa8b7 Paul E. McKenney2014-05-04  620   * that preemption never 
happens within any RCU read-side critical
f27bc4873fa8b7 Paul E. McKenney2014-05-04  621   * section whose outermost 
rcu_read_unlock() is called with one of
f27bc4873fa8b7 Paul E. McKenney2014-05-04  622   * rt_mutex_unlock()'s 
locks held.  Such preemption can be avoided in
f27bc4873fa8b7 Paul E. McKenney2014-05-04  623   * a number of ways, for 
example, by invoking preempt_disable() before
f27bc4873fa8b7 Paul E. McKenney2014-05-04  624   * critical section's 
outermost rcu_read_lock().
f27bc4873fa8b7 Paul E. McKenney2014-05-04  625   *
f27bc4873fa8b7 Paul E. McKenney2014-05-04  626   * Given that the set of 
locks acquired by rt_mutex_unlock() might change
f27bc4873fa8b7 Paul E. McKenney2014-05-04  627   * at any time, a somewhat 
more future-proofed approach is to make sure
f27bc4873fa8b7 Paul E. McKenney2014-05-04  628   * that that preemption 
never happens within any RCU read-side critical
f27bc4873fa8b7 Paul E. McKenney2014-05-04  629   * section whose outermost 
rcu_read_unlock() is called with irqs disabled.
f27bc4873fa8b7 Paul E. McKenney2014-05-04  630   * This approach relies on 
the fact that rt_mutex_unlock() currently only
f27bc4873fa8b7 Paul E. McKenney2014-05-04

[tip:WIP.timers/core 49/68] include/linux/sched/types.h:16:2: error: unknown type name 'u64'

2019-08-19 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
WIP.timers/core
head:   b16101077cbc7e0dde91e7ffb258ce1f979b
commit: 83083078874a3b1b29b8171714455b469a17b8ab [49/68] sched: Move struct 
task_cputime to types.h
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 83083078874a3b1b29b8171714455b469a17b8ab
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

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

All errors (new ones prefixed by >>):

   In file included from :0:0:
>> include/linux/sched/types.h:16:2: error: unknown type name 'u64'
 u64utime;
 ^~~
   include/linux/sched/types.h:17:2: error: unknown type name 'u64'
 u64stime;
 ^~~

vim +/u64 +16 include/linux/sched/types.h

 4  
 5  /**
 6   * struct task_cputime - collected CPU time counts
 7   * @utime:  time spent in user mode, in nanoseconds
 8   * @stime:  time spent in kernel mode, in nanoseconds
 9   * @sum_exec_runtime:   total time spent on the CPU, in nanoseconds
10   *
11   * This structure groups together three kinds of CPU time that are 
tracked for
12   * threads and thread groups.  Most things considering CPU time want to 
group
13   * these counts together and treat all three of them in parallel.
14   */
15  struct task_cputime {
  > 16  u64 utime;
17  u64 stime;
18  unsigned long long  sum_exec_runtime;
19  };
20  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[tip:irq/urgent 1/1] kernel/irq/irqdesc.c:446:6: error: 'irq_kobj_base' undeclared; did you mean 'irq_kobj_type'?

2019-08-19 Thread kbuild test robot
tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git 
irq/urgent
head:   e1ee29624746fbf667f80e8ae3815a76e4d1bd5b
commit: e1ee29624746fbf667f80e8ae3815a76e4d1bd5b [1/1] genirq: Properly pair 
kobject_del() with kobject_add()
config: powerpc-allnoconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.4.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e1ee29624746fbf667f80e8ae3815a76e4d1bd5b
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

   kernel/irq/irqdesc.c: In function 'free_desc':
>> kernel/irq/irqdesc.c:446:6: error: 'irq_kobj_base' undeclared (first use in 
>> this function); did you mean 'irq_kobj_type'?
 if (irq_kobj_base)
 ^
 irq_kobj_type
   kernel/irq/irqdesc.c:446:6: note: each undeclared identifier is reported 
only once for each function it appears in

vim +446 kernel/irq/irqdesc.c

   424  
   425  static void free_desc(unsigned int irq)
   426  {
   427  struct irq_desc *desc = irq_to_desc(irq);
   428  
   429  irq_remove_debugfs_entry(desc);
   430  unregister_irq_proc(irq, desc);
   431  
   432  /*
   433   * sparse_irq_lock protects also show_interrupts() and
   434   * kstat_irq_usr(). Once we deleted the descriptor from the
   435   * sparse tree we can free it. Access in proc will fail to
   436   * lookup the descriptor.
   437   *
   438   * The sysfs entry must be serialized against a concurrent
   439   * irq_sysfs_init() as well.
   440   *
   441   * If irq_sysfs_init() has not yet been invoked (early boot), 
then
   442   * irq_kobj_base is NULL and the descriptor was never added.
   443   * kobject_del() complains about a object with no parent, so 
make
   444   * it conditional.
   445   */
 > 446  if (irq_kobj_base)
   447  kobject_del(>kobj);
   448  delete_irq_desc(irq);
   449  
   450  /*
   451   * We free the descriptor, masks and stat fields via RCU. That
   452   * allows demultiplex interrupts to do rcu based management of
   453   * the child interrupts.
   454   * This also allows us to use rcu in kstat_irqs_usr().
   455   */
   456  call_rcu(>rcu, delayed_free_desc);
   457  }
   458  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


[rcu:test 8/35] ERROR: "tick_nohz_full_running" [kernel/rcu/rcutorture.ko] undefined!

2019-08-19 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git 
test
head:   b0e7c384ed8a8b5be17376a00e6f22e2d89456b9
commit: 14569aa16daa1cd7610624a500ed2750fe341351 [8/35] rcutorture: Force on 
tick for readers and callback flooders
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
git checkout 14569aa16daa1cd7610624a500ed2750fe341351
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   ERROR: "tick_nohz_dep_clear_task" [kernel/rcu/rcutorture.ko] undefined!
   ERROR: "tick_nohz_dep_set_task" [kernel/rcu/rcutorture.ko] undefined!
>> ERROR: "tick_nohz_full_running" [kernel/rcu/rcutorture.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-19 Thread kbuild test robot
Hi Daniel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on bpf-next/master]

url:
https://github.com/0day-ci/linux/commits/Daniel-Xu/tracing-probe-Add-PERF_EVENT_IOC_QUERY_PROBE-ioctl/20190820-003910
base:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: i386-alldefconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

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

All errors (new ones prefixed by >>):

   ld: init/do_mounts.o: in function `perf_kprobe_event_query':
>> do_mounts.c:(.text+0x80): multiple definition of `perf_kprobe_event_query'; 
>> init/main.o:main.c:(.text+0x80): first defined here
   ld: init/do_mounts.o: in function `perf_uprobe_event_query':
>> do_mounts.c:(.text+0x90): multiple definition of `perf_uprobe_event_query'; 
>> init/main.o:main.c:(.text+0x90): first defined here
   ld: init/noinitramfs.o: in function `perf_kprobe_event_query':
   noinitramfs.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: init/noinitramfs.o: in function `perf_uprobe_event_query':
   noinitramfs.c:(.text+0x10): multiple definition of 
`perf_uprobe_event_query'; init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/entry/common.o: in function `perf_kprobe_event_query':
   common.c:(.text+0x2c0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/entry/common.o: in function `perf_uprobe_event_query':
   common.c:(.text+0x2d0): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/process_32.o: in function `perf_kprobe_event_query':
   process_32.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/process_32.o: in function `perf_uprobe_event_query':
   process_32.c:(.text+0x10): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/signal.o: in function `perf_kprobe_event_query':
   signal.c:(.text+0x2e0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/signal.o: in function `perf_uprobe_event_query':
   signal.c:(.text+0x2f0): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/ioport.o: in function `perf_kprobe_event_query':
   ioport.c:(.text+0x0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/ioport.o: in function `perf_uprobe_event_query':
   ioport.c:(.text+0x10): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/ldt.o: in function `perf_kprobe_event_query':
   ldt.c:(.text+0x500): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/ldt.o: in function `perf_uprobe_event_query':
   ldt.c:(.text+0x510): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/process.o: in function `perf_kprobe_event_query':
   process.c:(.text+0xe0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/process.o: in function `perf_uprobe_event_query':
   process.c:(.text+0xf0): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: arch/x86/kernel/tls.o: in function `perf_kprobe_event_query':
   tls.c:(.text+0x2c0): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: arch/x86/kernel/tls.o: in function `perf_uprobe_event_query':
   tls.c:(.text+0x2d0): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: kernel/fork.o: in function `perf_kprobe_event_query':
   fork.c:(.text+0x510): multiple definition of `perf_kprobe_event_query'; 
init/main.o:main.c:(.text+0x80): first defined here
   ld: kernel/fork.o: in function `perf_uprobe_event_query':
   fork.c:(.text+0x520): multiple definition of `perf_uprobe_event_query'; 
init/main.o:main.c:(.text+0x90): first defined here
   ld: kernel/exec_domain.o: in function `perf_kprobe_event_query':
   exec_domain.c:(.text+0x20): multiple definition of 
`perf_kprobe_event_query'; init/main.o:main.c:(.text+0x80): first defined here
   ld: kernel/exec_domain.o: in function `perf_uprobe_event_query':
   exec_domain.c:(.text+0x30): multiple definition of 
`perf_uprobe_event_query'; 

Re: [PATCH v2] iommu/amd: Override wrong IVRS IOAPIC on Raven Ridge systems

2019-08-19 Thread kbuild test robot
Hi Kai-Heng,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc5 next-20190816]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Kai-Heng-Feng/iommu-amd-Override-wrong-IVRS-IOAPIC-on-Raven-Ridge-systems/20190819-133843
config: x86_64-randconfig-f001-201933 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers//iommu/amd_iommu_quirks.c:87:13: error: redefinition of 
>> 'amd_iommu_apply_ivrs_quirks'
void __init amd_iommu_apply_ivrs_quirks(void)
^~~
   In file included from drivers//iommu/amd_iommu_quirks.c:11:0:
   drivers//iommu/amd_iommu.h:11:13: note: previous definition of 
'amd_iommu_apply_ivrs_quirks' was here
static void amd_iommu_apply_ivrs_quirks(void) { }
^~~
   drivers//iommu/amd_iommu.h:11:13: warning: 'amd_iommu_apply_ivrs_quirks' 
defined but not used [-Wunused-function]

vim +/amd_iommu_apply_ivrs_quirks +87 drivers//iommu/amd_iommu_quirks.c

86  
  > 87  void __init amd_iommu_apply_ivrs_quirks(void)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip


<    3   4   5   6   7   8   9   10   11   12   >