tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5d765451c2409e63563fa6a3e8005bd03ab9e82f commit: 11c2f6c1b30392d366e84bbe9937616e79279bca [4551/5003] Merge remote-tracking branches 'riscv/next-misc' and 'riscv/fixes' into for-next config: riscv-randconfig-r006-20210525 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=11c2f6c1b30392d366e84bbe9937616e79279bca git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 11c2f6c1b30392d366e84bbe9937616e79279bca # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from drivers/most/most_cdev.c:10: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:9: In file included from include/linux/sched/task.h:11: In file included from include/linux/uaccess.h:11: In file included from arch/riscv/include/asm/uaccess.h:11: arch/riscv/include/asm/pgtable.h:579:20: error: redefinition of 'set_pmd_at' static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ arch/riscv/include/asm/pgtable.h:420:20: note: previous definition is here static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ >> drivers/most/most_cdev.c:448:2: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion] INIT_KFIFO(c->fifo); ^~~~~~~~~~~~~~~~~~~ include/linux/kfifo.h:130:69: note: expanded from macro 'INIT_KFIFO' __kfifo->mask = __is_kfifo_ptr(__tmp) ? 0 : ARRAY_SIZE(__tmp->buf) - 1;\ ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ 1 warning and 1 error generated. -- In file included from drivers/iio/adc/fsl-imx25-gcq.c:12: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:15: In file included from include/linux/pgtable.h:6: arch/riscv/include/asm/pgtable.h:579:20: error: redefinition of 'set_pmd_at' static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ arch/riscv/include/asm/pgtable.h:420:20: note: previous definition is here static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ >> drivers/iio/adc/fsl-imx25-gcq.c:115:8: warning: shift count is negative [-Wshift-count-negative] MX25_ADCQ_ITEM(0, chan->channel)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/mfd/imx25-tsadc.h:54:3: note: expanded from macro 'MX25_ADCQ_ITEM' _MX25_ADCQ_ITEM((item) - 8, (x)) : _MX25_ADCQ_ITEM((item), (x))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/mfd/imx25-tsadc.h:52:39: note: expanded from macro '_MX25_ADCQ_ITEM' #define _MX25_ADCQ_ITEM(item, x) ((x) << ((item) * 4)) ^ ~~~~~~~~~~~~ 1 warning and 1 error generated. -- In file included from drivers/net/ethernet/socionext/sni_ave.c:10: In file included from include/linux/etherdevice.h:20: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:14: In file included from include/linux/mm.h:33: In file included from include/linux/pgtable.h:6: arch/riscv/include/asm/pgtable.h:579:20: error: redefinition of 'set_pmd_at' static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ arch/riscv/include/asm/pgtable.h:420:20: note: previous definition is here static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ >> drivers/net/ethernet/socionext/sni_ave.c:1622:14: warning: shift count >= width of type [-Wshift-count-overflow] dma_mask = DMA_BIT_MASK(64); ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK' #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ ~~~ 1 warning and 1 error generated. -- In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.c:10: In file included from include/linux/gpio.h:62: In file included from include/asm-generic/gpio.h:11: In file included from include/linux/gpio/driver.h:7: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:15: In file included from include/linux/pgtable.h:6: arch/riscv/include/asm/pgtable.h:579:20: error: redefinition of 'set_pmd_at' static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ arch/riscv/include/asm/pgtable.h:420:20: note: previous definition is here static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, ^ drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2042:20: warning: cast to smaller integer type 'enum xgene_enet_id' from 'const void *' [-Wvoid-pointer-to-enum-cast] pdata->enet_id = (enum xgene_enet_id)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2071:42: warning: shift count >= width of type [-Wshift-count-overflow] ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64)); ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK' #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ ~~~ 2 warnings and 1 error generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for LOCKDEP Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86) Selected by - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT vim +448 drivers/most/most_cdev.c 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 400 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 401 /** 1fd923f38610a8 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 402 * comp_probe - probe function of the driver module 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 403 * @iface: pointer to interface instance 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 404 * @channel_id: channel index/ID 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 405 * @cfg: pointer to actual channel configuration 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 406 * @name: name of the device to be created 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 407 * 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 408 * This allocates achannel object and creates the device node in /dev 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 409 * 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 410 * Returns 0 on success or error code otherwise. 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 411 */ 1fd923f38610a8 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 412 static int comp_probe(struct most_interface *iface, int channel_id, dfee92dd50464c drivers/staging/most/cdev/cdev.c Christian Gromm 2019-04-03 413 struct most_channel_config *cfg, char *name, char *args) 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 414 { ef0fbbbb9a6004 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 415 struct comp_channel *c; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 416 unsigned long cl_flags; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 417 int retval; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 418 int current_minor; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 419 e8e0f7fd7715de drivers/staging/most/cdev/cdev.c Christian Gromm 2020-06-22 420 if (!cfg || !name) 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 421 return -EINVAL; 61fd971eddecdc drivers/staging/most/cdev/cdev.c Christian Gromm 2020-06-22 422 d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 423 c = get_channel(iface, channel_id); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 424 if (c) 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 425 return -EEXIST; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 426 c73d915dd293a4 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 427 current_minor = ida_simple_get(&comp.minor_id, 0, 0, GFP_KERNEL); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 428 if (current_minor < 0) 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 429 return current_minor; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 430 d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 431 c = kzalloc(sizeof(*c), GFP_KERNEL); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 432 if (!c) { 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 433 retval = -ENOMEM; bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 434 goto err_remove_ida; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 435 } 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 436 c73d915dd293a4 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 437 c->devno = MKDEV(comp.major, current_minor); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 438 cdev_init(&c->cdev, &channel_fops); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 439 c->cdev.owner = THIS_MODULE; 5ae890780e1b4d drivers/staging/most/cdev/cdev.c Colin Ian King 2019-02-02 440 retval = cdev_add(&c->cdev, c->devno, 1); 5ae890780e1b4d drivers/staging/most/cdev/cdev.c Colin Ian King 2019-02-02 441 if (retval < 0) 5ae890780e1b4d drivers/staging/most/cdev/cdev.c Colin Ian King 2019-02-02 442 goto err_free_c; d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 443 c->iface = iface; d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 444 c->cfg = cfg; d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 445 c->channel_id = channel_id; b3c9f3c56c41cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 446 c->access_ref = 0; fa96b8ed9cc562 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 447 spin_lock_init(&c->unlink); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 @448 INIT_KFIFO(c->fifo); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 449 retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL); ebf256e36754fc drivers/staging/most/cdev/cdev.c Keyur Patel 2019-07-14 450 if (retval) bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 451 goto err_del_cdev_and_free_channel; d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 452 init_waitqueue_head(&c->wq); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 453 mutex_init(&c->io_mutex); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 454 spin_lock_irqsave(&ch_list_lock, cl_flags); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 455 list_add_tail(&c->list, &channel_list); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 456 spin_unlock_irqrestore(&ch_list_lock, cl_flags); c73d915dd293a4 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 457 c->dev = device_create(comp.class, NULL, c->devno, NULL, "%s", name); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 458 ea39854712ba8a drivers/staging/most/aim-cdev/cdev.c Sudip Mukherjee 2016-02-08 459 if (IS_ERR(c->dev)) { ea39854712ba8a drivers/staging/most/aim-cdev/cdev.c Sudip Mukherjee 2016-02-08 460 retval = PTR_ERR(c->dev); bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 461 goto err_free_kfifo_and_del_list; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 462 } d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 463 kobject_uevent(&c->dev->kobj, KOBJ_ADD); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 464 return 0; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 465 bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 466 err_free_kfifo_and_del_list: d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 467 kfifo_free(&c->fifo); d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 468 list_del(&c->list); bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 469 err_del_cdev_and_free_channel: d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 470 cdev_del(&c->cdev); 5ae890780e1b4d drivers/staging/most/cdev/cdev.c Colin Ian King 2019-02-02 471 err_free_c: d8b082e6c625cb drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-12-22 472 kfree(c); bddd3c2546e9c4 drivers/staging/most/cdev/cdev.c Christian Gromm 2018-09-21 473 err_remove_ida: c73d915dd293a4 drivers/staging/most/cdev/cdev.c Christian Gromm 2017-11-21 474 ida_simple_remove(&comp.minor_id, current_minor); 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 475 return retval; 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 476 } 9bc79bbcd0c526 drivers/staging/most/aim-cdev/cdev.c Christian Gromm 2015-07-24 477 :::::: The code at line 448 was first introduced by commit :::::: d8b082e6c625cba59ecfb80e4506c8f30bed24ea staging: most: rename variable channel :::::: TO: Christian Gromm <christian.gromm@xxxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip