Re: [PATCH v6 3/5] remoteproc: qcom: Update PIL relocation info on load
Hi Bjorn, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200526] [also build test WARNING on v5.7-rc7] [cannot apply to robh/for-next linus/master agross-msm/qcom/for-next remoteproc/for-next rpmsg/for-next hwspinlock/for-next v5.7-rc7 v5.7-rc6 v5.7-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Bjorn-Andersson/remoteproc-qcom-PIL-info-support/20200527-135911 base:b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8 config: arm64-allyesconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/remoteproc/qcom_pil_info.c:69:5: warning: no previous prototype for >> 'qcom_pil_info_store' [-Wmissing-prototypes] 69 | int qcom_pil_info_store(const char *image, phys_addr_t base, size_t size) | ^~~ vim +/qcom_pil_info_store +69 drivers/remoteproc/qcom_pil_info.c 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 60 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 61 /** 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 62 * qcom_pil_info_store() - store PIL information of image in IMEM 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 63 * @image: name of the image 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 64 * @base: base address of the loaded image 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 65 * @size: size of the loaded image 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 66 * 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 67 * Return: 0 on success, negative errno on failure 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 68 */ 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 @69 int qcom_pil_info_store(const char *image, phys_addr_t base, size_t size) 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 70 { 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 71 char buf[PIL_RELOC_NAME_LEN]; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 72 void __iomem *entry; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 73 int ret; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 74 int i; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 75 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 76 mutex_lock(_mutex); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 77 ret = qcom_pil_info_init(); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 78 if (ret < 0) { 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 79 mutex_unlock(_mutex); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 80 return ret; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 81 } 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 82 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 83 for (i = 0; i < _reloc.num_entries; i++) { 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 84 entry = _reloc.base + i * sizeof(struct pil_reloc_entry); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 85 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 86 memcpy_fromio(buf, entry, PIL_RELOC_NAME_LEN); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 87 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 88 /* 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 89 * An empty record means we didn't find it, given that the 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 90 * records are packed. 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 91 */ 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 92 if (!buf[0]) 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 93 goto found_unused; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 94 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 95 if (!strncmp(buf, image, PIL_RELOC_NAME_LEN)) 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 96 goto found_existing; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 97 } 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 98 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 99 pr_warn("insufficient PIL info slots\n"); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 100 mutex_unlock(_mutex); 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 101 return -ENOMEM; 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 102 41d96cc2fee2c1 Bjorn Andersson 2020-05-26 103 found_unused: 41d96c
Re: [PATCH 3/4] mailbox: qcom: Add ipq6018 apcs compatible
Hi Sivaprakash, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v5.7-rc7 next-20200528] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Sivaprakash-Murugesan/Add-ipq6018-apcs-mailbox-driver/20200527-204025 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: x86_64-randconfig-a004-20200528 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/mailbox/qcom-apcs-ipc-mailbox.c:48:34: warning: unused variable >> 'apcs_clk_match_table' [-Wunused-const-variable] static const struct of_device_id apcs_clk_match_table[] = { ^ 1 warning generated. vim +/apcs_clk_match_table +48 drivers/mailbox/qcom-apcs-ipc-mailbox.c 47 > 48 static const struct of_device_id apcs_clk_match_table[] = { 49 { .compatible = "qcom,ipq6018-apcs-apps-global", .data = "qcom,apss-ipq6018-clk", }, 50 { .compatible = "qcom,msm8916-apcs-kpss-global", .data = "qcom-apcs-msm8916-clk", }, 51 { .compatible = "qcom,qcs404-apcs-apps-global", .data = "qcom-apcs-msm8916-clk", }, 52 {} 53 }; 54 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [RESEND PATCH v9 3/3] perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on tip/auto-latest linus/master linux/master v5.7-rc7 next-20200528] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/alexander-antonov-linux-intel-com/perf-x86-Exposing-IO-stack-to-IO-PMON-mapping-through-sysfs/20200525-160819 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git c50c75e9b87946499a62bffc021e95c87a1d57cd config: i386-randconfig-r003-20200528 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/x86/events/intel/uncore_snbep.c:3737:1: warning: 'static' is not at >> beginning of declaration [-Wold-style-declaration] 3737 | const static struct attribute_group *skx_iio_attr_update[] = { | ^ vim +/static +3737 arch/x86/events/intel/uncore_snbep.c 3736 > 3737 const static struct attribute_group *skx_iio_attr_update[] = { 3738 _iio_mapping_group, 3739 NULL, 3740 }; 3741 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:x86/misc] BUILD SUCCESS 140fd4ac78d385e6c8e6a5757585f6c707085f87
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/misc branch HEAD: 140fd4ac78d385e6c8e6a5757585f6c707085f87 x86/reboot/quirks: Add MacBook6,1 reboot quirk elapsed time: 4774m configs tested: 137 configs skipped: 87 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig xtensa virt_defconfig arm milbeaut_m10v_defconfig arm lpd270_defconfig arc nsimosci_hs_defconfig sh se7722_defconfig arcvdk_hs38_defconfig arm gemini_defconfig sh sdk7786_defconfig powerpc ppc64e_defconfig h8300 defconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64defconfig ia64 allnoconfig ia64 allmodconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig arc allyesconfig openrisc allyesconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig x86_64 randconfig-a006-20200527 x86_64 randconfig-a002-20200527 x86_64 randconfig-a005-20200527 x86_64 randconfig-a003-20200527 x86_64 randconfig-a004-20200527 x86_64 randconfig-a001-20200527 i386 randconfig-a001-20200527 i386 randconfig-a004-20200527 i386 randconfig-a003-20200527 i386 randconfig-a006-20200527 i386 randconfig-a002-20200527 i386 randconfig-a005-20200527 i386 randconfig-a001-20200526 i386 randconfig-a004-20200526 i386 randconfig-a003-20200526 i386 randconfig-a006-20200526 i386 randconfig-a002-20200526 i386 randconfig-a005-20200526 x86_64 randconfig-a013-20200528 x86_64 randconfig-a015-20200528 x86_64 randconfig-a012-20200528 x86_64 randconfig-a016-20200528 x86_64 randconfig-a014-20200528 x86_64 randconfig-a011-20200528 x86_64 randconfig-a015-20200526 x86_64 randconfig-a013-20200526 x86_64 randconfig-a016-20200526 x86_64 randconfig-a012-20200526 x86_64 randconfig-a014-20200526 x86_64 randconfig-a011-20200526 i386 randconfig-a013-20200527 i386 randconfig-a015-20200527 i386 randconfig-a012-20200527 i386 randconfig-a011-20200527 i386 randconfig-a016-20200527 i386 randconfig-a014-20200527 i386
Re: [PATCH v3 12/14] spi: mxic: patch for octal DTR mode support
Hi Mason, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20200526] [also build test WARNING on v5.7-rc7] [cannot apply to spi/for-next xlnx/master linus/master linux/master v5.7-rc7 v5.7-rc6 v5.7-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Mason-Yang/mtd-spi-nor-add-xSPI-Octal-DTR-support/20200528-162925 base:b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8 config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/spi/spi-mxic.c:302:21: warning: result of comparison of constant 256 >> with expression of type 'const u8' (aka 'const unsigned char') is always >> false [-Wtautological-constant-out-of-range-compare] if (op->data.dtr == OP_DATA_DDR) ^ ~~~ 1 warning generated. vim +302 drivers/spi/spi-mxic.c 282 283 static u32 mxic_spi_mem_prep_op_cfg(const struct spi_mem_op *op) 284 { 285 u32 cfg = OP_CMD_BYTES(op->cmd.nbytes) | 286 OP_CMD_BUSW(fls(op->cmd.buswidth) - 1) | 287 (op->cmd.dtr ? OP_CMD_DDR : 0); 288 289 if (op->addr.nbytes) 290 cfg |= OP_ADDR_BYTES(op->addr.nbytes) | 291 OP_ADDR_BUSW(fls(op->addr.buswidth) - 1) | 292 (op->addr.dtr ? OP_ADDR_DDR : 0); 293 294 if (op->dummy.nbytes) 295 cfg |= OP_DUMMY_CYC(op->dummy.nbytes); 296 297 if (op->data.nbytes) { 298 cfg |= OP_DATA_BUSW(fls(op->data.buswidth) - 1) | 299(op->data.dtr ? OP_DATA_DDR : 0); 300 if (op->data.dir == SPI_MEM_DATA_IN) { 301 cfg |= OP_READ; > 302 if (op->data.dtr == OP_DATA_DDR) 303 cfg |= OP_DQS_EN; 304 } 305 } 306 307 return cfg; 308 } 309 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/crypto/chelsio/chcr_ktls.c:1018: undefined reference to `tls_validate_xmit_skb'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 5a4b9fe7fece62ecab6fb28fe92362f83b41c33e cxgb4/chcr: complete record tx handling date: 3 months ago config: i386-randconfig-a013-20200528 (attached as .config) compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 reproduce (this is a W=1 build): git checkout 5a4b9fe7fece62ecab6fb28fe92362f83b41c33e # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): ld: drivers/crypto/chelsio/chcr_ktls.o: in function `chcr_ktls_xmit': >> drivers/crypto/chelsio/chcr_ktls.c:1018: undefined reference to >> `tls_validate_xmit_skb' ld: drivers/crypto/chelsio/chcr_ktls.c:1078: undefined reference to `tls_get_record' vim +1018 drivers/crypto/chelsio/chcr_ktls.c 996 997 /* nic tls TX handler */ 998 int chcr_ktls_xmit(struct sk_buff *skb, struct net_device *dev) 999 { 1000 struct chcr_ktls_ofld_ctx_tx *tx_ctx; 1001 struct tcphdr *th = tcp_hdr(skb); 1002 int data_len, qidx, ret = 0, mss; 1003 struct tls_record_info *record; 1004 struct chcr_ktls_info *tx_info; 1005 u32 tls_end_offset, tcp_seq; 1006 struct tls_context *tls_ctx; 1007 struct sk_buff *local_skb; 1008 int new_connection_state; 1009 struct sge_eth_txq *q; 1010 struct adapter *adap; 1011 unsigned long flags; 1012 1013 tcp_seq = ntohl(th->seq); 1014 1015 mss = skb_is_gso(skb) ? skb_shinfo(skb)->gso_size : skb->data_len; 1016 1017 /* check if we haven't set it for ktls offload */ > 1018 if (!skb->sk || !tls_is_sk_tx_device_offloaded(skb->sk)) --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/misc/xilinx_sdfec.c:736:15: sparse: sparse: incorrect type in argument 2 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: a6b07e89fd8530b943217ccd4909d1bf65acc45d misc: xilinx_sdfec: add missing __user annotation date: 5 months ago config: m68k-randconfig-s031-20200528 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout a6b07e89fd8530b943217ccd4909d1bf65acc45d # save the attached .config to linux build tree make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/misc/xilinx_sdfec.c:736:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:736:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:736:15: sparse: sparse: cast removes address space '' of expression >> drivers/misc/xilinx_sdfec.c:736:15: sparse: sparse: incorrect type in >> argument 2 (different address spaces) @@ expected void const * @@ >> got unsigned int enum xsdfec_order [noderef] * @@ drivers/misc/xilinx_sdfec.c:736:15: sparse: expected void const * drivers/misc/xilinx_sdfec.c:736:15: sparse: got unsigned int enum xsdfec_order [noderef] * drivers/misc/xilinx_sdfec.c:761:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:761:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:761:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:761:15: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got bool [noderef] [usertype] *arg @@ drivers/misc/xilinx_sdfec.c:761:15: sparse: expected void const * drivers/misc/xilinx_sdfec.c:761:15: sparse: got bool [noderef] [usertype] *arg drivers/misc/xilinx_sdfec.c:788:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:788:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:788:15: sparse: sparse: cast removes address space '' of expression drivers/misc/xilinx_sdfec.c:788:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got bool [noderef] [usertype] *arg @@ drivers/misc/xilinx_sdfec.c:788:15: sparse: expected void * drivers/misc/xilinx_sdfec.c:788:15: sparse: got bool [noderef] [usertype] *arg drivers/misc/xilinx_sdfec.c:1057:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __poll_t ( *poll )( ... ) @@ got unsigned int ( * )( ... ) @@ drivers/misc/xilinx_sdfec.c:1057:17: sparse: expected restricted __poll_t ( *poll )( ... ) drivers/misc/xilinx_sdfec.c:1057:17: sparse: got unsigned int ( * )( ... ) vim +736 drivers/misc/xilinx_sdfec.c 729 730 static int xsdfec_set_order(struct xsdfec_dev *xsdfec, void __user *arg) 731 { 732 bool order_invalid; 733 enum xsdfec_order order; 734 int err; 735 > 736 err = get_user(order, (enum xsdfec_order __user *)arg); 737 if (err) 738 return -EFAULT; 739 740 order_invalid = (order != XSDFEC_MAINTAIN_ORDER) && 741 (order != XSDFEC_OUT_OF_ORDER); 742 if (order_invalid) 743 return -EINVAL; 744 745 /* Verify Device has not started */ 746 if (xsdfec->state == XSDFEC_STARTED) 747 return -EIO; 748 749 xsdfec_regwrite(xsdfec, XSDFEC_ORDER_ADDR, order); 750 751 xsdfec->config.order = order; 752 753 return 0; 754 } 755 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/mtd/nand/raw/ams-delta.c:373:34: warning: unused variable 'gpio_nand_of_id_table'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 7c2f66a960fccc165d0b6c594f40f0ad3edfc61f mtd: rawnand: ams-delta: Add module device tables date: 3 months ago config: x86_64-randconfig-a004-20200528 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout 7c2f66a960fccc165d0b6c594f40f0ad3edfc61f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/mtd/nand/raw/ams-delta.c:373:34: warning: unused variable >> 'gpio_nand_of_id_table' [-Wunused-const-variable] static const struct of_device_id gpio_nand_of_id_table[] = { ^ 1 warning generated. vim +/gpio_nand_of_id_table +373 drivers/mtd/nand/raw/ams-delta.c 372 > 373 static const struct of_device_id gpio_nand_of_id_table[] = { 374 { 375 /* sentinel */ 376 }, 377 }; 378 MODULE_DEVICE_TABLE(of, gpio_nand_of_id_table); 379 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH net-next 2/4] vmxnet3: add support to get/set rx flow hash
Hi Ronak, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on sparc-next/master linus/master ipvs/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Ronak-Doshi/vmxnet3-upgrade-to-version-4/20200528-112935 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 50ce4c099bebf56be86c9448f7f4bcd34f33663c config: alpha-allyesconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/net/vmxnet3/vmxnet3_ethtool.c: In function 'vmxnet3_get_rss_hash_opts': >> drivers/net/vmxnet3/vmxnet3_ethtool.c:704:6: warning: this statement may >> fall through [-Wimplicit-fallthrough=] 704 | if (rss_fields & VMXNET3_RSS_FIELDS_ESPIP4) | ^ drivers/net/vmxnet3/vmxnet3_ethtool.c:706:2: note: here 706 | case SCTP_V4_FLOW: | ^~~~ vim +704 drivers/net/vmxnet3/vmxnet3_ethtool.c 667 668 static int 669 vmxnet3_get_rss_hash_opts(struct vmxnet3_adapter *adapter, 670struct ethtool_rxnfc *info) 671 { 672 enum Vmxnet3_RSSField rss_fields; 673 674 if (netif_running(adapter->netdev)) { 675 unsigned long flags; 676 677 spin_lock_irqsave(>cmd_lock, flags); 678 679 VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, 680 VMXNET3_CMD_GET_RSS_FIELDS); 681 rss_fields = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_CMD); 682 spin_unlock_irqrestore(>cmd_lock, flags); 683 } else { 684 rss_fields = adapter->rss_fields; 685 } 686 687 info->data = 0; 688 689 /* Report default options for RSS on vmxnet3 */ 690 switch (info->flow_type) { 691 case TCP_V4_FLOW: 692 if (rss_fields & VMXNET3_RSS_FIELDS_TCPIP4) 693 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3 | 694RXH_IP_SRC | RXH_IP_DST; 695 break; 696 case UDP_V4_FLOW: 697 if (rss_fields & VMXNET3_RSS_FIELDS_UDPIP4) 698 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3 | 699RXH_IP_SRC | RXH_IP_DST; 700 break; 701 case AH_ESP_V4_FLOW: 702 case AH_V4_FLOW: 703 case ESP_V4_FLOW: > 704 if (rss_fields & VMXNET3_RSS_FIELDS_ESPIP4) 705 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; 706 case SCTP_V4_FLOW: 707 case IPV4_FLOW: 708 info->data |= RXH_IP_SRC | RXH_IP_DST; 709 break; 710 case TCP_V6_FLOW: 711 if (rss_fields & VMXNET3_RSS_FIELDS_TCPIP6) 712 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3 | 713RXH_IP_SRC | RXH_IP_DST; 714 break; 715 case UDP_V6_FLOW: 716 if (rss_fields & VMXNET3_RSS_FIELDS_UDPIP6) 717 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3 | 718RXH_IP_SRC | RXH_IP_DST; 719 break; 720 case AH_ESP_V6_FLOW: 721 case AH_V6_FLOW: 722 case ESP_V6_FLOW: 723 case SCTP_V6_FLOW: 724 case IPV6_FLOW: 725 info->data |= RXH_IP_SRC | RXH_IP_DST; 726 break; 727 default: 728 return -EINVAL; 729 } 730 731 return 0; 732 } 733 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: bbb1658461ac85ef7e0563bb11283f94ea5eb651 dm crypt: Implement Elephant diffuser for Bitlocker compatibility date: 4 months ago config: parisc-randconfig-s032-20200528 (attached as .config) compiler: hppa-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout bbb1658461ac85ef7e0563bb11283f94ea5eb651 # save the attached .config to linux build tree make W=1 C=1 ARCH=parisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) ./arch/parisc/include/generated/uapi/asm/unistd_32.h:380:41: sparse: sparse: no newline at end of file drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 >> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32 vim +792 drivers/md/dm-crypt.c 785 786 static void diffuser_cpu_to_disk(__le32 *d, size_t n) 787 { 788 #ifndef __LITTLE_ENDIAN 789 int i; 790 791 for (i = 0; i < n; i++) > 792 d[i] = cpu_to_le32((u32)d[i]); 793 #endif 794 } 795 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c:87:1: warning: no previous prototype for 'gk20a_gr_aiv_to_init'
Hi Ben, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: a2bfb50e72aeb139801109e3b4eb73ac53bde314 drm/nouveau/gr/gk20a,gm200-: use nvkm_firmware_load_blob for sw init date: 4 months ago config: arm64-sof-customedconfig-xrun-debug-defconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout a2bfb50e72aeb139801109e3b4eb73ac53bde314 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c:37:1: warning: no previous prototype for 'gk20a_gr_av_to_init' [-Wmissing-prototypes] 37 | gk20a_gr_av_to_init(struct gf100_gr *gr, const char *path, const char *name, | ^~~ >> drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c:87:1: warning: no previous >> prototype for 'gk20a_gr_aiv_to_init' [-Wmissing-prototypes] 87 | gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *path, const char *name, | ^~~~ drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c:130:1: warning: no previous prototype for 'gk20a_gr_av_to_method' [-Wmissing-prototypes] 130 | gk20a_gr_av_to_method(struct gf100_gr *gr, const char *path, const char *name, | ^ vim +/gk20a_gr_aiv_to_init +87 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c 85 86 int > 87 gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *path, const char *name, 88 int ver, struct gf100_gr_pack **ppack) 89 { 90 struct nvkm_subdev *subdev = >base.engine.subdev; 91 struct nvkm_blob blob; 92 struct gf100_gr_init *init; 93 struct gf100_gr_pack *pack; 94 int nent; 95 int ret; 96 int i; 97 98 ret = nvkm_firmware_load_blob(subdev, path, name, ver, ); 99 if (ret) 100 return ret; 101 102 nent = (blob.size / sizeof(struct gk20a_fw_aiv)); 103 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); 104 if (!pack) { 105 ret = -ENOMEM; 106 goto end; 107 } 108 109 init = (void *)(pack + 2); 110 pack[0].init = init; 111 112 for (i = 0; i < nent; i++) { 113 struct gf100_gr_init *ent = [i]; 114 struct gk20a_fw_aiv *av = &((struct gk20a_fw_aiv *)blob.data)[i]; 115 116 ent->addr = av->addr; 117 ent->data = av->data; 118 ent->count = 1; 119 ent->pitch = 1; 120 } 121 122 *ppack = pack; 123 124 end: 125 nvkm_blob_dtor(); 126 return ret; 127 } 128 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c:31:1: warning: no previous prototype for 'tu102_mmu_kind'
Hi James, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 176ada03e3c2cc0e0d725ea4626dfebec681578f drm/nouveau/mmu: Add correct turing page kinds date: 4 months ago config: arm64-sof-customedconfig-xrun-debug-defconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 176ada03e3c2cc0e0d725ea4626dfebec681578f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c:31:1: warning: no previous >> prototype for 'tu102_mmu_kind' [-Wmissing-prototypes] 31 | tu102_mmu_kind(struct nvkm_mmu *mmu, int *count, u8 *invalid) | ^~ vim +/tu102_mmu_kind +31 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c 29 30 const u8 * > 31 tu102_mmu_kind(struct nvkm_mmu *mmu, int *count, u8 *invalid) 32 { 33 static const u8 34 kind[16] = { 35 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00 */ 36 0x06, 0x06, 0x02, 0x01, 0x03, 0x04, 0x05, 0x07, 37 }; 38 *count = ARRAY_SIZE(kind); 39 *invalid = 0x07; 40 return kind; 41 } 42 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
net/mac80211/sta_info.c:1921:4: note: in expansion of macro 'atomic_add'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 3ace10f5b5ad94bdbd4b419dc9da2217d57720a9 mac80211: Implement Airtime-based Queue Limit (AQL) date: 6 months ago config: ia64-randconfig-r035-20200528 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 3ace10f5b5ad94bdbd4b419dc9da2217d57720a9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from arch/ia64/include/asm/pgtable.h:154, from include/linux/mm.h:99, from include/linux/bvec.h:13, from include/linux/skbuff.h:17, from include/linux/if_ether.h:19, from include/linux/etherdevice.h:20, from net/mac80211/sta_info.c:12: arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable] 137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; | ^~~ In file included from include/linux/atomic.h:7, from arch/ia64/include/asm/processor.h:79, from arch/ia64/include/asm/thread_info.h:12, from include/linux/thread_info.h:38, from include/asm-generic/preempt.h:5, from ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/spinlock.h:51, from include/linux/seqlock.h:36, from include/linux/time.h:6, from include/linux/stat.h:19, from include/linux/module.h:10, from net/mac80211/sta_info.c:10: net/mac80211/sta_info.c: In function 'ieee80211_sta_update_pending_airtime': arch/ia64/include/asm/atomic.h:72:8: warning: comparison is always false due to limited range of data type [-Wtype-limits] 72 |(i) == -1 || (i) == -4 || (i) == -8 || (i) == -16) : 0; | ^~ arch/ia64/include/asm/atomic.h:81:2: note: in expansion of macro '__ia64_atomic_const' 81 | __ia64_atomic_const(i) | ^~~ >> arch/ia64/include/asm/atomic.h:218:33: note: in expansion of macro >> 'atomic_add_return' 218 | #define atomic_add(i,v) (void)atomic_add_return((i), (v)) | ^ >> net/mac80211/sta_info.c:1921:4: note: in expansion of macro 'atomic_add' 1921 |atomic_add(tx_airtime, |^~ arch/ia64/include/asm/atomic.h:72:21: warning: comparison is always false due to limited range of data type [-Wtype-limits] 72 |(i) == -1 || (i) == -4 || (i) == -8 || (i) == -16) : 0; | ^~ arch/ia64/include/asm/atomic.h:81:2: note: in expansion of macro '__ia64_atomic_const' 81 | __ia64_atomic_const(i) | ^~~ >> arch/ia64/include/asm/atomic.h:218:33: note: in expansion of macro >> 'atomic_add_return' 218 | #define atomic_add(i,v) (void)atomic_add_return((i), (v)) | ^ >> net/mac80211/sta_info.c:1921:4: note: in expansion of macro 'atomic_add' 1921 |atomic_add(tx_airtime, |^~ arch/ia64/include/asm/atomic.h:72:34: warning: comparison is always false due to limited range of data type [-Wtype-limits] 72 |(i) == -1 || (i) == -4 || (i) == -8 || (i) == -16) : 0; | ^~ arch/ia64/include/asm/atomic.h:81:2: note: in expansion of macro '__ia64_atomic_const' 81 | __ia64_atomic_const(i) | ^~~ >> arch/ia64/include/asm/atomic.h:218:33: note: in expansion of macro >> 'atomic_add_return' 218 | #define atomic_add(i,v) (void)atomic_add_return((i), (v)) | ^ >> net/mac80211/sta_info.c:1921:4: note: in expansion of macro 'atomic_add' 1921 |atomic_add(tx_airtime, |^~ arch/ia64/include/asm/atomic.h:72:47: warning: comparison is always false due to limited range of data type [-Wtype-limits] 72 |(i) == -1 || (i) == -4 || (i) == -8 || (i) == -16) : 0; | ^~ arch/ia64/include/asm/atomic.h:81:2: note: in expansion of macro '__ia64_atomic_const' 81 | __ia64_atomic_const(i) | ^~~ >> arch/ia64/include/asm/atomic.h:218:33: note: in expansion of macro >> 'atomic_add_return' 218 | #define atomic_add(i,v) (void)atomic_add_return((i), (v)) | ^ >> net/mac80211/sta_info.c:1921:4: note: in expansion of macro 'atomic_add' 1921 |atomic_add(tx_airtime, |^~ arch/ia64/include/asm/atomic.h:
Re: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area()
Hi Mike, I love your patch! Yet something to improve: [auto build test ERROR on miklos-vfs/overlayfs-next] [also build test ERROR on linus/master v5.7-rc7] [cannot apply to linux/master next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Mike-Kravetz/ovl-provide-real_file-and-overlayfs-get_unmapped_area/20200528-080533 base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next config: h8300-randconfig-r036-20200528 (attached as .config) compiler: h8300-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): fs/overlayfs/file.c: In function 'ovl_get_unmapped_area': >> fs/overlayfs/file.c:768:14: error: 'struct mm_struct' has no member named >> 'get_unmapped_area' 768 | current->mm->get_unmapped_area)(realfile, | ^~ >> fs/overlayfs/file.c:770:1: warning: control reaches end of non-void function >> [-Wreturn-type] 770 | } | ^ vim +768 fs/overlayfs/file.c 760 761 static unsigned long ovl_get_unmapped_area(struct file *file, 762 unsigned long uaddr, unsigned long len, 763 unsigned long pgoff, unsigned long flags) 764 { 765 struct file *realfile = real_file(file); 766 767 return (realfile->f_op->get_unmapped_area ?: > 768 current->mm->get_unmapped_area)(realfile, 769 uaddr, len, pgoff, flags); > 770 } 771 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
kernel/livepatch/transition.c:372:44: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 913292c97d750fe4188b4f5aa770e5e0ca1e5a91 sched.h: Annotate sighand_struct with __rcu date: 4 months ago config: x86_64-randconfig-s022-20200528 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 913292c97d750fe4188b4f5aa770e5e0ca1e5a91 # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> kernel/livepatch/transition.c:372:44: sparse: sparse: incorrect type in >> argument 1 (different address spaces) @@ expected struct spinlock >> [usertype] *lock @@ got struct spinlock [noderef] * @@ kernel/livepatch/transition.c:372:44: sparse: expected struct spinlock [usertype] *lock kernel/livepatch/transition.c:372:44: sparse: got struct spinlock [noderef] * kernel/livepatch/transition.c:374:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] * @@ kernel/livepatch/transition.c:374:46: sparse: expected struct spinlock [usertype] *lock kernel/livepatch/transition.c:374:46: sparse: got struct spinlock [noderef] * vim +372 kernel/livepatch/transition.c d83a7cb375eec2 Josh Poimboeuf 2017-02-13 338 0b3d52790e1cfd Miroslav Benes 2019-01-15 339 /* 0b3d52790e1cfd Miroslav Benes 2019-01-15 340 * Sends a fake signal to all non-kthread tasks with TIF_PATCH_PENDING set. 0b3d52790e1cfd Miroslav Benes 2019-01-15 341 * Kthreads with TIF_PATCH_PENDING set are woken up. 0b3d52790e1cfd Miroslav Benes 2019-01-15 342 */ 0b3d52790e1cfd Miroslav Benes 2019-01-15 343 static void klp_send_signals(void) 0b3d52790e1cfd Miroslav Benes 2019-01-15 344 { 0b3d52790e1cfd Miroslav Benes 2019-01-15 345 struct task_struct *g, *task; 0b3d52790e1cfd Miroslav Benes 2019-01-15 346 0b3d52790e1cfd Miroslav Benes 2019-01-15 347 if (klp_signals_cnt == SIGNALS_TIMEOUT) 0b3d52790e1cfd Miroslav Benes 2019-01-15 348 pr_notice("signaling remaining tasks\n"); 0b3d52790e1cfd Miroslav Benes 2019-01-15 349 0b3d52790e1cfd Miroslav Benes 2019-01-15 350 read_lock(_lock); 0b3d52790e1cfd Miroslav Benes 2019-01-15 351 for_each_process_thread(g, task) { 0b3d52790e1cfd Miroslav Benes 2019-01-15 352 if (!klp_patch_pending(task)) 0b3d52790e1cfd Miroslav Benes 2019-01-15 353 continue; 0b3d52790e1cfd Miroslav Benes 2019-01-15 354 0b3d52790e1cfd Miroslav Benes 2019-01-15 355 /* 0b3d52790e1cfd Miroslav Benes 2019-01-15 356* There is a small race here. We could see TIF_PATCH_PENDING 0b3d52790e1cfd Miroslav Benes 2019-01-15 357* set and decide to wake up a kthread or send a fake signal. 0b3d52790e1cfd Miroslav Benes 2019-01-15 358* Meanwhile the task could migrate itself and the action 0b3d52790e1cfd Miroslav Benes 2019-01-15 359* would be meaningless. It is not serious though. 0b3d52790e1cfd Miroslav Benes 2019-01-15 360*/ 0b3d52790e1cfd Miroslav Benes 2019-01-15 361 if (task->flags & PF_KTHREAD) { 0b3d52790e1cfd Miroslav Benes 2019-01-15 362 /* 0b3d52790e1cfd Miroslav Benes 2019-01-15 363* Wake up a kthread which sleeps interruptedly and 0b3d52790e1cfd Miroslav Benes 2019-01-15 364* still has not been migrated. 0b3d52790e1cfd Miroslav Benes 2019-01-15 365*/ 0b3d52790e1cfd Miroslav Benes 2019-01-15 366 wake_up_state(task, TASK_INTERRUPTIBLE); 0b3d52790e1cfd Miroslav Benes 2019-01-15 367 } else { 0b3d52790e1cfd Miroslav Benes 2019-01-15 368 /* 0b3d52790e1cfd Miroslav Benes 2019-01-15 369* Send fake signal to all non-kthread tasks which are 0b3d52790e1cfd Miroslav Benes 2019-01-15 370* still not migrated. 0b3d52790e1cfd Miroslav Benes 2019-01-15 371*/ 0b3d52790e1cfd Miroslav Benes 2019-01-15 @372 spin_lock_irq(>sighand->siglock); 0b3d52790e1cfd Miroslav Benes 2019-01-15 373 signal_wake_up(task, 0); 0b3d52790e1cfd Miroslav Benes 2019-01-15 374 spin_unlock_irq(>sighand->siglock); 0b3d52790e1cfd Miroslav Benes 2019-01-15 375 } 0b3d52790e1cfd Miroslav Benes 2019-01-15 376 } 0b3d52790e1cfd Miroslav Benes 2019-01-15 377 read_unlock(_lock); 0b3d52790e1cfd Miroslav Benes 2019-01-15 378 } 0b3d52790e1cfd Miroslav Benes 2019-01-15 379 :
kernel/trace/blktrace.c:347:12: sparse: sparse: incorrect type in assignment (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: c780e86dd48ef6467a1146cf7d0fe1e05a635039 blktrace: Protect q->blk_trace with RCU date: 3 months ago config: x86_64-randconfig-s021-20200528 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout c780e86dd48ef6467a1146cf7d0fe1e05a635039 # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> kernel/trace/blktrace.c:347:12: sparse: sparse: incorrect type in assignment >> (different address spaces) @@ expected struct blk_trace *bt @@ got >> struct blk_trace [noderef] *[assigned] __ret @@ kernel/trace/blktrace.c:347:12: sparse: expected struct blk_trace *bt kernel/trace/blktrace.c:347:12: sparse: got struct blk_trace [noderef] *[assigned] __ret >> kernel/trace/blktrace.c:547:13: sparse: sparse: incorrect type in >> initializer (different address spaces) @@ expected struct blk_trace >> [noderef] *__new @@ got struct blk_trace *[assigned] bt @@ kernel/trace/blktrace.c:547:13: sparse: expected struct blk_trace [noderef] *__new kernel/trace/blktrace.c:547:13: sparse: got struct blk_trace *[assigned] bt kernel/trace/blktrace.c:998:50: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected int error @@ got restricted blk_status_t [usertype] bi_status @@ kernel/trace/blktrace.c:998:50: sparse: expected int error kernel/trace/blktrace.c:998:50: sparse: got restricted blk_status_t [usertype] bi_status kernel/trace/blktrace.c:1036:68: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected int error @@ got restricted blk_status_t [usertype] bi_status @@ kernel/trace/blktrace.c:1036:68: sparse: expected int error kernel/trace/blktrace.c:1036:68: sparse: got restricted blk_status_t [usertype] bi_status kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1257:16: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1264:32: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long long [usertype] sector_from @@ got restricted __be64 const [usertype] sector_from @@ kernel/trace/blktrace.c:1264:32: sparse: expected unsigned long long [usertype] sector_from kernel/trace/blktrace.c:1264:32: sparse: got restricted __be64 const [usertype] sector_from kernel/trace/blktrace.c:1266:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] device_from @@ got unsigned int @@ kernel/trace/blktrace.c:1266:24: sparse: expected restricted __be32 [usertype] device_from kernel/trace/blktrace.c:1266:24: sparse: got unsigned int kernel/trace/blktrace.c:1267:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] device_to @@ got unsigned int @@ kernel/trace/blktrace.c:1267:24: sparse: expected restricted __be32 [usertype] device_to kernel/trace/blktrace.c:1267:24: sparse: got unsigned int kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be64 kernel/trace/blktrace.c:1268:26: sparse: sparse: cast to restricted __be
arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 57d563c8292569f2849569853e846bf740df5032 x86: ia32_setup_rt_frame(): consolidate uaccess areas date: 9 weeks ago config: x86_64-randconfig-s022-20200528 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 57d563c8292569f2849569853e846bf740df5032 # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression >> arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: incorrect type in >> argument 1 (different address spaces) @@ expected void const volatile >> [noderef] * @@ got unsigned long long [usertype] * @@ arch/x86/ia32/ia32_signal.c:350:9: sparse: expected void const volatile [noderef] * arch/x86/ia32/ia32_signal.c:350:9: sparse: got unsigned long long [usertype] * arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression arch/x86/ia32/ia32_signal.c:350:9: sparse: sparse: cast removes address space '' of expression vim +350 arch/x86/ia32/ia32_signal.c 299 300 int ia32_setup_rt_frame(int sig, struct ksignal *ksig, 301 compat_sigset_t *set, struct pt_regs *regs) 302 { 303 struct rt_sigframe_ia32 __user *frame; 304 void __user *restorer; 305 void __user *fp = NULL; 306 307 /* unsafe_put_user optimizes that into a single 8 byte store */ 308 static const struct { 309 u8 movl; 310 u32 val; 311 u16 int80; 312 u8 pad; 313 } __attribute__((packed)) code = { 314 0xb8, 315 __NR_ia32_rt_sigreturn, 316 0x80cd, 317 0, 318 }; 319 320 frame = get_sigframe(ksig, regs, sizeof(*frame), ); 321 322 if (!user_access_begin(frame, sizeof(*frame))) 323 return -EFAULT; 324 325 unsafe_put_user(sig, >sig, Efault); 326 unsafe_put_user(ptr_to_compat(>info), >pinfo, Efault); 327 unsafe_put_user(ptr_to_compat(>uc), >puc, Efault); 328 329 /* Create the ucontext. */ 330 if (static_cpu_has(X86_FEATURE_XSAVE)) 331 unsafe_put_user(UC_FP_XSTATE, >uc.uc_flags, Efault); 332 else 333 unsafe_put_user(0, >uc.uc_flags, Efault); 334 unsafe_put_user(0, >uc.uc_link, Efault); 335 unsafe_compat_save_altstack(>uc.uc_stack, regs->sp, Efault); 336 337 if (ksig->ka.sa.sa_flags & SA_RESTORER) 338 restorer = ksig->ka.sa.sa_restorer; 339 else 340 restorer = current->mm->context.vdso + 341 vdso_image_32.sym___kernel_rt_sigreturn; 342 unsafe_put_user(ptr_to_compat(restorer), >pretcode, Efault); 343 344 /* 345 * Not actually used anymore, but left because some gdb 346 * versions need it. 347 */ 348 unsafe_put_user(*((u64 *)), (u64 __user *)frame->retcode, Efault); 349 unsafe_put_sigcontext32(>uc.uc_mcontext, fp, regs, set, Efault); > 350 unsafe_put_user(*(__u64 *)set, (__u64 *)>uc.uc_sigmask, > Efault); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:x86/cleanups] BUILD SUCCESS e027a2bc934fd05d52ec5b77d159efdfc485b5b3
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups branch HEAD: e027a2bc934fd05d52ec5b77d159efdfc485b5b3 x86/apb_timer: Drop unused declaration and macro elapsed time: 1174m configs tested: 99 configs skipped: 3 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig arm allmodconfig m68kmac_defconfig arc nsimosci_hs_defconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allnoconfig ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allnoconfig m68k allmodconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig arc allyesconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a006-20200527 x86_64 randconfig-a002-20200527 x86_64 randconfig-a005-20200527 x86_64 randconfig-a003-20200527 x86_64 randconfig-a004-20200527 x86_64 randconfig-a001-20200527 i386 randconfig-a001-20200527 i386 randconfig-a004-20200527 i386 randconfig-a003-20200527 i386 randconfig-a006-20200527 i386 randconfig-a002-20200527 i386 randconfig-a005-20200527 i386 randconfig-a013-20200527 i386 randconfig-a015-20200527 i386 randconfig-a012-20200527 i386 randconfig-a011-20200527 i386 randconfig-a016-20200527 i386 randconfig-a014-20200527 riscv allnoconfig riscv defconfig riscvallmodconfig riscvallyesconfig s390 allnoconfig s390defconfig s390 allyesconfig s390 allmodconfig sparc defconfig sparc64 allnoconfig sparcallyesconfig sparc64 defconfig sparc64 allyesconfig sparc64 allmodconfig umallnoconfig um allyesconfig um allmodconfig um defconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation
[tip:WIP.core/rcu] BUILD SUCCESS 07325d4a90d2d84de45cc07b134fd0f023dbb971
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/rcu branch HEAD: 07325d4a90d2d84de45cc07b134fd0f023dbb971 rcu: Provide rcu_irq_exit_check_preempt() elapsed time: 2186m configs tested: 97 configs skipped: 1 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig arc allyesconfig sh allmodconfig shallnoconfig microblazeallnoconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig i386 randconfig-a001-20200527 i386 randconfig-a004-20200527 i386 randconfig-a003-20200527 i386 randconfig-a006-20200527 i386 randconfig-a002-20200527 i386 randconfig-a005-20200527 x86_64 randconfig-a006-20200527 x86_64 randconfig-a002-20200527 x86_64 randconfig-a005-20200527 x86_64 randconfig-a003-20200527 x86_64 randconfig-a004-20200527 x86_64 randconfig-a001-20200527 i386 randconfig-a013-20200527 i386 randconfig-a015-20200527 i386 randconfig-a012-20200527 i386 randconfig-a011-20200527 i386 randconfig-a016-20200527 i386 randconfig-a014-20200527 riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig sparcallyesconfig sparc defconfig sparc64 defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig umallnoconfig um defconfig um allmodconfig um allyesconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
Re: [PATCH v3 5/6] bus: Add Baikal-T1 APB-bus driver
Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on char-misc/char-misc-testing staging/staging-testing linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Serge-Semin/bus-memory-Add-Baikal-T1-SoC-APB-AXI-L2-drivers/20200526-210837 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: sparc-allyesconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/bus/bt1-apb.c: In function 'inject_error_store': drivers/bus/bt1-apb.c:329:3: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration] 329 | readl(apb->res); | ^ In file included from include/linux/kobject.h:20, from include/linux/module.h:20, from drivers/bus/bt1-apb.c:12: drivers/bus/bt1-apb.c: At top level: >> drivers/bus/bt1-apb.c:338:23: error: initialization of 'ssize_t (*)(struct >> device *, struct device_attribute *, char *)' {aka 'long int (*)(struct >> device *, struct device_attribute *, char *)'} from incompatible pointer >> type 'int (*)(struct device *, struct device_attribute *, char *)' >> [-Werror=incompatible-pointer-types] 338 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR' 104 | .show = _show, | ^ include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-apb.c:338:8: note: in expansion of macro 'DEVICE_ATTR_RW' 338 | static DEVICE_ATTR_RW(inject_error); |^~ drivers/bus/bt1-apb.c:338:23: note: (near initialization for 'dev_attr_inject_error.show') 338 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR' 104 | .show = _show, | ^ include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-apb.c:338:8: note: in expansion of macro 'DEVICE_ATTR_RW' 338 | static DEVICE_ATTR_RW(inject_error); |^~ >> drivers/bus/bt1-apb.c:338:23: error: initialization of 'ssize_t (*)(struct >> device *, struct device_attribute *, const char *, size_t)' {aka 'long int >> (*)(struct device *, struct device_attribute *, const char *, long unsigned >> int)'} from incompatible pointer type 'int (*)(struct device *, struct >> device_attribute *, const char *, size_t)' {aka 'int (*)(struct device *, >> struct device_attribute *, const char *, long unsigned int)'} >> [-Werror=incompatible-pointer-types] 338 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR' 105 | .store = _store, | ^~ include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-apb.c:338:8: note: in expansion of macro 'DEVICE_ATTR_RW' 338 | static DEVICE_ATTR_RW(inject_error); |^~ drivers/bus/bt1-apb.c:338:23: note: (near initialization for 'dev_attr_inject_error.store') 338 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR' 105 | .store = _store, | ^~ include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-apb.c:338:8: note: in expansion of macro 'DEVICE_ATTR_RW' 338 | static DEVICE_ATTR_RW(inject_error); |^~ cc1: some warnings being treated as errors vim +338 drivers/bus/bt1-apb.c 317 318 static int inj
arch/mips/vdso/vdso-image.c:13:35: sparse: sparse: incorrect type in assignment (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: ad1df95419cc46b4a832cbb537716e3da9a98881 mips/vdso: Support mremap() for vDSO date: 4 months ago config: mips-randconfig-s032-20200527 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout ad1df95419cc46b4a832cbb537716e3da9a98881 # save the attached .config to linux build tree make W=1 C=1 ARCH=mips CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> arch/mips/vdso/vdso-image.c:13:35: sparse: sparse: incorrect type in >> assignment (different address spaces) @@ expected void *[usertype] vdso >> @@ got void [noderef] * @@ arch/mips/vdso/vdso-image.c:13:35: sparse: expected void *[usertype] vdso arch/mips/vdso/vdso-image.c:13:35: sparse: got void [noderef] * -- >> arch/mips/vdso/vdso-n32-image.c:13:35: sparse: sparse: incorrect type in >> assignment (different address spaces) @@ expected void *[usertype] vdso >> @@ got void [noderef] * @@ arch/mips/vdso/vdso-n32-image.c:13:35: sparse: expected void *[usertype] vdso arch/mips/vdso/vdso-n32-image.c:13:35: sparse: got void [noderef] * --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] gpiolib: split character device into gpiolib-cdev
Hi Kent, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.7-rc5] [cannot apply to gpio/for-next linus/master linux/master v5.7-rc7 v5.7-rc6 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Kent-Gibson/gpiolib-split-character-device-into-gpiolib-cdev/20200528-35 base:2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/gpio/gpiolib-cdev.c:1092:5: warning: no previous prototype for 'gpiolib_cdev_register' [-Wmissing-prototypes] 1092 | int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt) | ^ drivers/gpio/gpiolib-cdev.c:1110:6: warning: no previous prototype for 'gpiolib_cdev_unregister' [-Wmissing-prototypes] 1110 | void gpiolib_cdev_unregister(struct gpio_device *gdev) | ^~~ drivers/gpio/gpiolib-cdev.c: In function 'gpio_desc_to_lineinfo': >> drivers/gpio/gpiolib-cdev.c:779:3: warning: 'strncpy' specified bound 32 >> equals destination size [-Wstringop-truncation] 779 | strncpy(info->name, desc->name, sizeof(info->name)); | ^~~ vim +/strncpy +779 drivers/gpio/gpiolib-cdev.c 769 770 static void gpio_desc_to_lineinfo(struct gpio_desc *desc, 771struct gpioline_info *info) 772 { 773 struct gpio_chip *gc = desc->gdev->chip; 774 unsigned long flags; 775 776 spin_lock_irqsave(_lock, flags); 777 778 if (desc->name) { > 779 strncpy(info->name, desc->name, sizeof(info->name)); 780 info->name[sizeof(info->name) - 1] = '\0'; 781 } else { 782 info->name[0] = '\0'; 783 } 784 785 if (desc->label) { 786 strncpy(info->consumer, desc->label, sizeof(info->consumer)); 787 info->consumer[sizeof(info->consumer) - 1] = '\0'; 788 } else { 789 info->consumer[0] = '\0'; 790 } 791 792 /* 793 * Userspace only need to know that the kernel is using this GPIO so 794 * it can't use it. 795 */ 796 info->flags = 0; 797 if (test_bit(FLAG_REQUESTED, >flags) || 798 test_bit(FLAG_IS_HOGGED, >flags) || 799 test_bit(FLAG_USED_AS_IRQ, >flags) || 800 test_bit(FLAG_EXPORT, >flags) || 801 test_bit(FLAG_SYSFS, >flags) || 802 !pinctrl_gpio_can_use_line(gc->base + info->line_offset)) 803 info->flags |= GPIOLINE_FLAG_KERNEL; 804 if (test_bit(FLAG_IS_OUT, >flags)) 805 info->flags |= GPIOLINE_FLAG_IS_OUT; 806 if (test_bit(FLAG_ACTIVE_LOW, >flags)) 807 info->flags |= GPIOLINE_FLAG_ACTIVE_LOW; 808 if (test_bit(FLAG_OPEN_DRAIN, >flags)) 809 info->flags |= (GPIOLINE_FLAG_OPEN_DRAIN | 810 GPIOLINE_FLAG_IS_OUT); 811 if (test_bit(FLAG_OPEN_SOURCE, >flags)) 812 info->flags |= (GPIOLINE_FLAG_OPEN_SOURCE | 813 GPIOLINE_FLAG_IS_OUT); 814 if (test_bit(FLAG_BIAS_DISABLE, >flags)) 815 info->flags |= GPIOLINE_FLAG_BIAS_DISABLE; 816 if (test_bit(FLAG_PULL_DOWN, >flags)) 817 info->flags |= GPIOLINE_FLAG_BIAS_PULL_DOWN; 818 if (test_bit(FLAG_PULL_UP, >flags)) 819 info->flags |= GPIOLINE_FLAG_BIAS_PULL_UP; 820 821 spin_unlock_irqrestore(_lock, flags); 822 } 823 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] gpiolib: split character device into gpiolib-cdev
Hi Kent, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.7-rc5] [cannot apply to gpio/for-next linus/master linux/master v5.7-rc7 v5.7-rc6 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Kent-Gibson/gpiolib-split-character-device-into-gpiolib-cdev/20200528-35 base:2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 config: nios2-allmodconfig (attached as .config) compiler: nios2-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/gpio/gpiolib-cdev.c:1092:5: warning: no previous prototype for >> 'gpiolib_cdev_register' [-Wmissing-prototypes] 1092 | int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt) | ^ >> drivers/gpio/gpiolib-cdev.c:1110:6: warning: no previous prototype for >> 'gpiolib_cdev_unregister' [-Wmissing-prototypes] 1110 | void gpiolib_cdev_unregister(struct gpio_device *gdev) | ^~~ vim +/gpiolib_cdev_register +1092 drivers/gpio/gpiolib-cdev.c 1091 > 1092 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt) 1093 { 1094 int ret; 1095 1096 cdev_init(>chrdev, _fileops); 1097 gdev->chrdev.owner = THIS_MODULE; 1098 gdev->dev.devt = MKDEV(MAJOR(devt), gdev->id); 1099 1100 ret = cdev_device_add(>chrdev, >dev); 1101 if (ret) 1102 return ret; 1103 1104 chip_dbg(gdev->chip, "added GPIO chardev (%d:%d)\n", 1105 MAJOR(devt), gdev->id); 1106 1107 return 0; 1108 } 1109 > 1110 void gpiolib_cdev_unregister(struct gpio_device *gdev) { 1112 cdev_device_del(>chrdev, >dev); 1113 } 1114 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[rcu:dev.2020.05.26a 56/72] refperf.c:undefined reference to `__umoddi3'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.26a head: 63fdce1252f16032c9e1eb7244bb674ba4f84855 commit: bd5b16d6c88da451a46d068a25fafad8e83d14a6 [56/72] refperf: Allow decimal nanoseconds config: m68k-allyesconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout bd5b16d6c88da451a46d068a25fafad8e83d14a6 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): m68k-linux-ld: kernel/rcu/refperf.o: in function `main_func': >> refperf.c:(.text+0x762): undefined reference to `__umoddi3' >> m68k-linux-ld: refperf.c:(.text+0x8f2): undefined reference to `__udivdi3' m68k-linux-ld: refperf.c:(.text+0x97c): undefined reference to `__udivdi3' --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v1] scsi: ufs: cleanup ufs initialization path
Hi Bean, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on next-20200526] [cannot apply to mkp-scsi/for-next v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Bean-Huo/scsi-ufs-cleanup-ufs-initialization-path/20200528-003043 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next config: i386-randconfig-a003-20200527 (attached as .config) compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/list.h:9:0, from include/linux/async.h:12, from drivers/scsi/ufs/ufshcd.c:40: drivers/scsi/ufs/ufshcd.c: In function 'ufs_get_device_desc': include/linux/kernel.h:942:63: warning: comparison is always false due to limited range of data type [-Wtype-limits] #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >) ^ include/linux/kernel.h:858:30: note: in definition of macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ include/linux/kernel.h:942:27: note: in expansion of macro '__careful_cmp' #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >) ^ >> drivers/scsi/ufs/ufshcd.c:6834:13: note: in expansion of macro 'max_t' buff_len = max_t(size_t, hba->desc_size[QUERY_DESC_IDN_DEVICE], ^ vim +/max_t +6834 drivers/scsi/ufs/ufshcd.c 6825 6826 static int ufs_get_device_desc(struct ufs_hba *hba) 6827 { 6828 int err; 6829 size_t buff_len; 6830 u8 model_index; 6831 u8 *desc_buf; 6832 struct ufs_dev_info *dev_info = >dev_info; 6833 > 6834 buff_len = max_t(size_t, hba->desc_size[QUERY_DESC_IDN_DEVICE], 6835 QUERY_DESC_MAX_SIZE + 1); 6836 desc_buf = kmalloc(buff_len, GFP_KERNEL); 6837 if (!desc_buf) { 6838 err = -ENOMEM; 6839 goto out; 6840 } 6841 6842 err = ufshcd_read_desc_param(hba, QUERY_DESC_IDN_DEVICE, 0, 0, desc_buf, 6843 hba->desc_size[QUERY_DESC_IDN_DEVICE]); 6844 if (err) { 6845 dev_err(hba->dev, "%s: Failed reading Device Desc. err = %d\n", 6846 __func__, err); 6847 goto out; 6848 } 6849 6850 /* 6851 * getting vendor (manufacturerID) and Bank Index in big endian 6852 * format 6853 */ 6854 dev_info->wmanufacturerid = desc_buf[DEVICE_DESC_PARAM_MANF_ID] << 8 | 6855 desc_buf[DEVICE_DESC_PARAM_MANF_ID + 1]; 6856 6857 /* getting Specification Version in big endian format */ 6858 dev_info->wspecversion = desc_buf[DEVICE_DESC_PARAM_SPEC_VER] << 8 | 6859 desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1]; 6860 6861 model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME]; 6862 6863 err = ufshcd_read_string_desc(hba, model_index, 6864_info->model, SD_ASCII_STD); 6865 if (err < 0) { 6866 dev_err(hba->dev, "%s: Failed reading Product Name. err = %d\n", 6867 __func__, err); 6868 goto out; 6869 } 6870 6871 ufs_fixup_device_setup(hba); 6872 6873 /* 6874 * Probe WB only for UFS-3.1 devices or UFS devices with quirk 6875 * UFS_DEVICE_QUIRK_SUPPORT_EXTENDED_FEATURES enabled 6876 */ 6877 if (dev_info->wspecversion >= 0x310 || 6878 (hba->dev_quirks & UFS_DEVICE_QUIRK_SUPPORT_EXTENDED_FEATURES)) 6879 ufshcd_wb_probe(hba, desc_buf); 6880 6881 /* 6882 * ufshcd_read_string_desc returns size of the string 6883 * reset the error value 6884 */ 6885 err = 0; 6886 6887 out: 6888 kfree(desc_buf); 6889 return err; 6890 } 6891 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:x86/entry] BUILD SUCCESS 5a7462b1f9c19312da0e489b859184cc88229bad
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry branch HEAD: 5a7462b1f9c19312da0e489b859184cc88229bad x86/entry: Remove the TRACE_IRQS cruft elapsed time: 2028m configs tested: 85 configs skipped: 4 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig arm allyesconfig mips loongson1c_defconfig mipsmaltaup_xpa_defconfig arm tegra_defconfig mipse55_defconfig arc nsimosci_hs_defconfig m68kmac_defconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa defconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig arc allyesconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig sparc defconfig sparc64 defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig sparcallyesconfig umallnoconfig um allmodconfig um allyesconfig um defconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
Re: [PATCH v3 5/6] bus: Add Baikal-T1 APB-bus driver
Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on char-misc/char-misc-testing staging/staging-testing linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Serge-Semin/bus-memory-Add-Baikal-T1-SoC-APB-AXI-L2-drivers/20200526-210837 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): >> drivers/bus/bt1-apb.c:404:34: error: array type has incomplete element type >> 'struct of_device_id' 404 | static const struct of_device_id bt1_apb_of_match[] = { | ^~~~ >> drivers/bus/bt1-apb.c:405:4: error: field name not in record or union >> initializer 405 | { .compatible = "baikal,bt1-apb" }, |^ drivers/bus/bt1-apb.c:405:4: note: (near initialization for 'bt1_apb_of_match') drivers/bus/bt1-apb.c:404:34: warning: 'bt1_apb_of_match' defined but not used [-Wunused-variable] 404 | static const struct of_device_id bt1_apb_of_match[] = { | ^~~~ vim +404 drivers/bus/bt1-apb.c 403 > 404 static const struct of_device_id bt1_apb_of_match[] = { > 405 { .compatible = "baikal,bt1-apb" }, 406 { } 407 }; 408 MODULE_DEVICE_TABLE(of, bt1_apb_of_match); 409 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[rcu:dev.2020.05.26b] BUILD REGRESSION 795279db1396bf66621fa3f343fa990fe543b89e
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.26b branch HEAD: 795279db1396bf66621fa3f343fa990fe543b89e squash! refperf: Dynamically allocate thread-summary output buffer Error/Warning in current branch: powerpc64-linux-ld: kernel/rcu/refperf.o:(.discard+0x0): multiple definition of `__pcpu_unique_srcu_ctl_perf_srcu_data'; kernel/rcu/rcuperf.o:(.discard+0x0): first defined here Error/Warning ids grouped by kconfigs: recent_errors `-- powerpc-allyesconfig `-- multiple-definition-of-__pcpu_unique_srcu_ctl_perf_srcu_data-kernel-rcu-rcuperf.o:(.discard):first-defined-here elapsed time: 1229m configs tested: 79 configs skipped: 1 arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 i386 allnoconfig ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig arc allyesconfig sh allmodconfig shallnoconfig microblazeallnoconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig sparcallyesconfig sparc defconfig sparc64 defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig umallnoconfig um allyesconfig um defconfig um allmodconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
drivers/regulator/da9063-regulator.c:529:3: warning: initialized field overwritten
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 99f75ce6661993b8ba7ae0c94e95cb25454fdf1e regulator: da9063: fix suspend date: 2 months ago config: i386-randconfig-r032-20200528 (attached as .config) compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3 reproduce (this is a W=1 build): git checkout 99f75ce6661993b8ba7ae0c94e95cb25454fdf1e # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/regulator/da9063-regulator.c:529:3: warning: initialized field >> overwritten [-Woverride-init] .suspend = BFIELD(DA9063_REG_LDO9_CONT, DA9063_VLDO9_SEL), ^ drivers/regulator/da9063-regulator.c:529:3: warning: (near initialization for 'da9063_regulator_info[11].suspend') [-Woverride-init] vim +529 drivers/regulator/da9063-regulator.c 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 462 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 463 /* Info of regulators for DA9063 */ 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 464 static const struct da9063_regulator_info da9063_regulator_info[] = { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 465 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 466 DA9063_BUCK(DA9063, BCORE1, 300, 10, 1570, 5b1f537e49830321 Axel Lin 2019-03-04 467 da9063_buck_a_limits, 5b1f537e49830321 Axel Lin 2019-03-04 468 DA9063_REG_BUCK_ILIM_C, DA9063_BCORE1_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 469 DA9063_BUCK_COMMON_FIELDS(BCORE1), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 470 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 471 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 472 DA9063_BUCK(DA9063, BCORE2, 300, 10, 1570, 5b1f537e49830321 Axel Lin 2019-03-04 473 da9063_buck_a_limits, 5b1f537e49830321 Axel Lin 2019-03-04 474 DA9063_REG_BUCK_ILIM_C, DA9063_BCORE2_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 475 DA9063_BUCK_COMMON_FIELDS(BCORE2), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 476 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 477 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 478 DA9063_BUCK(DA9063, BPRO, 530, 10, 1800, 5b1f537e49830321 Axel Lin 2019-03-04 479 da9063_buck_a_limits, 5b1f537e49830321 Axel Lin 2019-03-04 480 DA9063_REG_BUCK_ILIM_B, DA9063_BPRO_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 481 DA9063_BUCK_COMMON_FIELDS(BPRO), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 482 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 483 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 484 DA9063_BUCK(DA9063, BMEM, 800, 20, 3340, 5b1f537e49830321 Axel Lin 2019-03-04 485 da9063_buck_b_limits, 5b1f537e49830321 Axel Lin 2019-03-04 486 DA9063_REG_BUCK_ILIM_A, DA9063_BMEM_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 487 DA9063_BUCK_COMMON_FIELDS(BMEM), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 488 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 489 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 490 DA9063_BUCK(DA9063, BIO, 800, 20, 3340, 5b1f537e49830321 Axel Lin 2019-03-04 491 da9063_buck_b_limits, 5b1f537e49830321 Axel Lin 2019-03-04 492 DA9063_REG_BUCK_ILIM_A, DA9063_BIO_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 493 DA9063_BUCK_COMMON_FIELDS(BIO), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 494 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 495 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 496 DA9063_BUCK(DA9063, BPERI, 800, 20, 3340, 5b1f537e49830321 Axel Lin 2019-03-04 497 da9063_buck_b_limits, 5b1f537e49830321 Axel Lin 2019-03-04 498 DA9063_REG_BUCK_ILIM_B, DA9063_BPERI_ILIM_MASK), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 499 DA9063_BUCK_COMMON_FIELDS(BPERI), 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 500 }, 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 501 { 69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 502 DA9063_BUCK(DA9063, BCORES_MERGED, 300, 10, 1570, 5b1f537e49830321 Axel Lin 2019-03-04 503 da9063_bcores_merged_limits, 5b1f537e49830321 Axel Lin 2019-03-04 504 DA9063_REG_BUCK_ILIM_C,
drivers/tty/serial/ucc_uart.c:1001:29: sparse: sparse: incorrect type in assignment (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 461c3ac0dc46ba7fc09628aadf63c81253c4c3de soc: fsl: qe: fix sparse warnings for ucc_slow.c date: 9 weeks ago config: arm64-randconfig-s031-20200527 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 461c3ac0dc46ba7fc09628aadf63c81253c4c3de # save the attached .config to linux build tree make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/tty/serial/ucc_uart.c:637:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:637:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:637:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:638:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:638:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:638:9: sparse: got restricted __be32 * drivers/tty/serial/ucc_uart.c:639:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:639:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:639:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:653:46: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct ucc_uart_pram *uccup @@ got struct ucc_uart_pram [noderef] *uccup @@ drivers/tty/serial/ucc_uart.c:653:46: sparse: expected struct ucc_uart_pram *uccup drivers/tty/serial/ucc_uart.c:653:46: sparse: got struct ucc_uart_pram [noderef] *uccup drivers/tty/serial/ucc_uart.c:661:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got unsigned char * @@ drivers/tty/serial/ucc_uart.c:661:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:661:9: sparse: got unsigned char * drivers/tty/serial/ucc_uart.c:662:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got unsigned char * @@ drivers/tty/serial/ucc_uart.c:662:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:662:9: sparse: got unsigned char * drivers/tty/serial/ucc_uart.c:663:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:663:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:663:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:664:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:664:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:664:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:665:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:665:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:665:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:666:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:666:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:666:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:667:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:667:9: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:667:9: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:668:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted
Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver
Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on char-misc/char-misc-testing staging/staging-testing linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Serge-Semin/bus-memory-Add-Baikal-T1-SoC-APB-AXI-L2-drivers/20200526-210837 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: sparc-allyesconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/bus/bt1-axi.c: In function 'inject_error_store': drivers/bus/bt1-axi.c:228:3: error: implicit declaration of function 'readb' [-Werror=implicit-function-declaration] 228 | readb(axi->qos_regs); | ^ drivers/bus/bt1-axi.c:230:3: error: implicit declaration of function 'writeb' [-Werror=implicit-function-declaration] 230 | writeb(0, axi->qos_regs); | ^~ In file included from include/linux/kobject.h:20, from include/linux/module.h:20, from drivers/bus/bt1-axi.c:12: drivers/bus/bt1-axi.c: At top level: >> drivers/bus/bt1-axi.c:236:23: error: initialization of 'ssize_t (*)(struct >> device *, struct device_attribute *, char *)' {aka 'long int (*)(struct >> device *, struct device_attribute *, char *)'} from incompatible pointer >> type 'int (*)(struct device *, struct device_attribute *, char *)' >> [-Werror=incompatible-pointer-types] 236 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR' 104 | .show = _show, | ^ >> include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-axi.c:236:8: note: in expansion of macro 'DEVICE_ATTR_RW' 236 | static DEVICE_ATTR_RW(inject_error); |^~ drivers/bus/bt1-axi.c:236:23: note: (near initialization for 'dev_attr_inject_error.show') 236 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:104:10: note: in definition of macro '__ATTR' 104 | .show = _show, | ^ >> include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-axi.c:236:8: note: in expansion of macro 'DEVICE_ATTR_RW' 236 | static DEVICE_ATTR_RW(inject_error); |^~ >> drivers/bus/bt1-axi.c:236:23: error: initialization of 'ssize_t (*)(struct >> device *, struct device_attribute *, const char *, size_t)' {aka 'long int >> (*)(struct device *, struct device_attribute *, const char *, long unsigned >> int)'} from incompatible pointer type 'int (*)(struct device *, struct >> device_attribute *, const char *, size_t)' {aka 'int (*)(struct device *, >> struct device_attribute *, const char *, long unsigned int)'} >> [-Werror=incompatible-pointer-types] 236 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR' 105 | .store = _store, | ^~ >> include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-axi.c:236:8: note: in expansion of macro 'DEVICE_ATTR_RW' 236 | static DEVICE_ATTR_RW(inject_error); |^~ drivers/bus/bt1-axi.c:236:23: note: (near initialization for 'dev_attr_inject_error.store') 236 | static DEVICE_ATTR_RW(inject_error); | ^~~~ include/linux/sysfs.h:105:11: note: in definition of macro '__ATTR' 105 | .store = _store, | ^~ >> include/linux/device.h:130:45: note: in expansion of macro '__ATTR_RW' 130 | struct device_attribute dev_attr_##_name = __ATTR_RW(_name) | ^ >> drivers/bus/bt1-axi.c:236:8: note:
Re: [PATCH bpf-next 1/4] bpf: Generalize bpf_sk_storage
Hi KP, I love your patch! Yet something to improve: [auto build test ERROR on bpf-next/master] [also build test ERROR on next-20200526] [cannot apply to bpf/master linus/master linux/master v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/KP-Singh/Generalizing-bpf_local_storage/20200527-011230 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: parisc-randconfig-r025-20200527 (attached as .config) compiler: hppa-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): >> make[3]: *** No rule to make target 'kernel/bpf/xskmap.o', needed by >> 'kernel/bpf/built-in.a'. make[3]: Target '__build' not remade because of errors. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH net-next 5/8] net: phy: mscc: 1588 block initialization
Hi Antoine, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20200526] [cannot apply to robh/for-next net/master linus/master v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Antoine-Tenart/net-phy-mscc-PHC-and-timestamping-support/20200528-005111 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git dc0f3ed1973f101508957b59e529e03da1349e09 config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): In file included from arch/m68k/include/asm/io_mm.h:25, from arch/m68k/include/asm/io.h:8, from include/linux/scatterlist.h:9, from include/linux/dma-mapping.h:11, from include/linux/skbuff.h:31, from include/linux/ip.h:16, from drivers/net/phy/mscc/mscc_ptp.c:11: arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb': arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable] 83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); | ^~~ arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8' 430 | rom_out_8(port, *buf++); | ^ arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw': arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable] 86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); |^~~ arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16' 448 | rom_out_be16(port, *buf++); | ^~~~ arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw': arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable] 90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); |^~~ arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16' 466 | rom_out_le16(port, *buf++); | ^~~~ In file included from include/linux/build_bug.h:5, from include/linux/bits.h:23, from include/linux/gpio/consumer.h:5, from drivers/net/phy/mscc/mscc_ptp.c:10: include/linux/scatterlist.h: In function 'sg_set_buf': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~ include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~ In file included from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/gpio/consumer.h:6, from drivers/net/phy/mscc/mscc_ptp.c:10: include/linux/dma-mapping.h: In function 'dma_map_resource': arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra] 169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE' 139 | int __ret_warn_once = !!(condition);| ^ arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid' 170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn)) | ^~~ include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid' 352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr | ^ In file included from drivers/net/phy/mscc/mscc_ptp.c:18: include/linux/unaligned/be_byteshift.h: At top level: >> include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of >> 'get_unaligned_be16' 41 | static inline u16 get_unaligned_be16(const void *p) | ^~ In file included from arch
drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces)
Hi Baolin, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST date: 9 weeks ago config: mips-randconfig-s032-20200527 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 # save the attached .config to linux build tree make W=1 C=1 ARCH=mips CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type >> in initializer (different address spaces) @@ expected void [noderef] >> *lock_addr @@ got void *priv @@ drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: expected void [noderef] *lock_addr drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: got void *priv drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] *lock_addr @@ got void *priv @@ drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse: expected void [noderef] *lock_addr drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse: got void *priv >> drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse: sparse: incorrect type >> in assignment (different address spaces) @@ expected void *priv @@ >> got void [noderef] * @@ drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse: expected void *priv drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse: got void [noderef] * arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 -- >> drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse: sparse: incorrect type >> in initializer (different address spaces) @@ expected void [noderef] >> *lock_addr @@ got void *priv @@ drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse: expected void [noderef] *lock_addr drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse: got void *priv drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] *lock_addr @@ got void *priv @@ drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse: expected void [noderef] *lock_addr drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse: got void *priv >> drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse: sparse: incorrect type >> in assignment (different address spaces) @@ expected void *priv @@ >> got void [noderef] * @@ drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse: expected void *priv drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse: got void [noderef] * arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32 arch/mips/include/asm/
Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver
Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on char-misc/char-misc-testing staging/staging-testing linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Serge-Semin/bus-memory-Add-Baikal-T1-SoC-APB-AXI-L2-drivers/20200526-210837 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): >> drivers/bus/bt1-axi.c:301:34: error: array type has incomplete element type >> 'struct of_device_id' 301 | static const struct of_device_id bt1_axi_of_match[] = { | ^~~~ >> drivers/bus/bt1-axi.c:302:4: error: field name not in record or union >> initializer 302 | { .compatible = "baikal,bt1-axi" }, |^ drivers/bus/bt1-axi.c:302:4: note: (near initialization for 'bt1_axi_of_match') drivers/bus/bt1-axi.c:301:34: warning: 'bt1_axi_of_match' defined but not used [-Wunused-variable] 301 | static const struct of_device_id bt1_axi_of_match[] = { | ^~~~ vim +301 drivers/bus/bt1-axi.c 300 > 301 static const struct of_device_id bt1_axi_of_match[] = { > 302 { .compatible = "baikal,bt1-axi" }, 303 { } 304 }; 305 MODULE_DEVICE_TABLE(of, bt1_axi_of_match); 306 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v2 6/6] spi: Move cadence-quadspi driver to drivers/spi/
Hi Vignesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on spi/for-next] [also build test WARNING on linus/master v5.7-rc7 next-20200526] [cannot apply to mtd/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vignesh-Raghavendra/mtd-spi-nor-Move-cadence-qaudspi-to-spi-mem-framework/20200526-174159 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/spi/spi-cadence-quadspi.c:9: include/linux/scatterlist.h: In function 'sg_set_buf': arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] 193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) | ^~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~ arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid' 201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |^ include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid' 143 | BUG_ON(!virt_addr_valid(buf)); | ^~~ In file included from ./arch/xtensa/include/generated/asm/bug.h:1, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from arch/xtensa/include/asm/current.h:18, from include/linux/mutex.h:14, from include/linux/notifier.h:14, from include/linux/clk.h:14, from drivers/spi/spi-cadence-quadspi.c:9: include/linux/dma-mapping.h: In function 'dma_map_resource': arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] 193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) | ^~ include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE' 139 | int __ret_warn_once = !!(condition);| ^ include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid' 352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr | ^ In file included from include/linux/shm.h:6, from include/linux/sched.h:16, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/spi/spi-cadence-quadspi.c:12: drivers/spi/spi-cadence-quadspi.c: In function 'cqspi_direct_read_execute': arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] 193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) | ^~ arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid' 201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |^ >> drivers/spi/spi-cadence-quadspi.c:911:26: note: in expansion of macro >> 'virt_addr_valid' 911 | if (!cqspi->rx_chan || !virt_addr_valid(buf)) { | ^~~ vim +/virt_addr_valid +911 drivers/spi/spi-cadence-quadspi.c ffa639e069fb55 drivers/mtd/spi-nor/cadence-quadspi.c Vignesh R 2018-04-10 898 d467c948c5d40f drivers/mtd/spi-nor/controllers/cadence-quadspi.c Ramuthevar Vadivel Murugan 2020-05-26 899 static int cqspi_direct_read_execute(struct cqspi_flash_pdata *f_pdata, d467c948c5d40f drivers/mtd/spi-nor/controllers/cadence-quadspi.c Ramuthevar Vadivel Murugan 2020-05-26 900 u_char *buf, loff_t from, size_t len) ffa639e069fb55 drivers/mtd/spi-nor/cadence-quadspi.c Vignesh R 2018-04-10 901 { ffa639e069fb55 drivers/mtd/spi-nor/cadence-quadspi.c Vignesh R 2018-04-10 902 struct cqspi_st *cqspi = f_pdata->cqspi; d467c948c5d40f
drivers/spi/spi-fsl-dspi.c:261:17: sparse: sparse: incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 6c1c26ecd9a31c24f9ea7dfb174528141dd32361 spi: spi-fsl-dspi: Accelerate transfers using larger word size if possible date: 3 months ago config: arm64-randconfig-s031-20200527 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 6c1c26ecd9a31c24f9ea7dfb174528141dd32361 # save the attached .config to linux build tree make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/spi/spi-fsl-dspi.c:261:17: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected unsigned int [usertype] @@ >> got restricted __be32 [usertype] @@ drivers/spi/spi-fsl-dspi.c:261:17: sparse: expected unsigned int [usertype] drivers/spi/spi-fsl-dspi.c:261:17: sparse: got restricted __be32 [usertype] drivers/spi/spi-fsl-dspi.c:267:28: sparse: sparse: cast to restricted __be32 >> drivers/spi/spi-fsl-dspi.c:273:17: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected unsigned int [usertype] @@ >> got restricted __be16 [usertype] @@ drivers/spi/spi-fsl-dspi.c:273:17: sparse: expected unsigned int [usertype] drivers/spi/spi-fsl-dspi.c:273:17: sparse: got restricted __be16 [usertype] drivers/spi/spi-fsl-dspi.c:279:28: sparse: sparse: cast to restricted __be16 vim +261 drivers/spi/spi-fsl-dspi.c 258 259 static void dspi_8on32_host_to_dev(struct fsl_dspi *dspi, u32 *txdata) 260 { > 261 *txdata = cpu_to_be32(*(u32 *)dspi->tx); 262 dspi->tx += sizeof(u32); 263 } 264 265 static void dspi_8on32_dev_to_host(struct fsl_dspi *dspi, u32 rxdata) 266 { 267 *(u32 *)dspi->rx = be32_to_cpu(rxdata); 268 dspi->rx += sizeof(u32); 269 } 270 271 static void dspi_8on16_host_to_dev(struct fsl_dspi *dspi, u32 *txdata) 272 { > 273 *txdata = cpu_to_be16(*(u16 *)dspi->tx); 274 dspi->tx += sizeof(u16); 275 } 276 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/usb/cdns3/drd.c:43:42: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 usb: cdns3: make signed 1 bit bitfields unsigned date: 9 weeks ago config: mips-randconfig-s032-20200527 (attached as .config) compiler: mips64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 # save the attached .config to linux build tree make W=1 C=1 ARCH=mips CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/usb/cdns3/drd.c:43:42: sparse: sparse: incorrect type in argument 1 >> (different address spaces) @@ expected void const volatile [noderef] >> *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:43:42: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:43:42: sparse: got restricted __le32 * >> drivers/usb/cdns3/drd.c:45:42: sparse: sparse: incorrect type in argument 2 >> (different address spaces) @@ expected void volatile [noderef] >> *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:45:42: sparse: expected void volatile [noderef] *mem drivers/usb/cdns3/drd.c:45:42: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:47:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:47:42: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:47:42: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:49:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:49:42: sparse: expected void volatile [noderef] *mem drivers/usb/cdns3/drd.c:49:42: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:71:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:71:25: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:71:25: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:81:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:81:30: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:81:30: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:114:24: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:114:24: sparse: expected void volatile [noderef] *mem drivers/usb/cdns3/drd.c:114:24: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:124:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:124:48: sparse: expected void volatile [noderef] *mem drivers/usb/cdns3/drd.c:124:48: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:141:56: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:141:56: sparse: expected void volatile [noderef] *mem drivers/usb/cdns3/drd.c:141:56: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:144:23: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:144:23: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:144:23: sparse: expected void const volatile [noderef] *mem drivers/usb/cdns3/drd.c:144:23: sparse: got restricted __le32 * drivers/usb/cdns3/drd.c:154:29: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *mem @@ got restricted __le32 * @@ drivers/usb/cdns3/drd.c:154:29: sparse: expected void volatile [noderef] *mem drive
[tip:WIP.sched/core 6/9] kernel//sched/core.c:2299:6: warning: no previous prototype for function 'send_call_function_single_ipi'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 68a1740c687d4a75b9e9dea0ab0aae61f167c880 commit: 516bf252eeb5d316895d83a5bcbe9d5668c5d41c [6/9] smp: Optimize send_call_function_single_ipi() config: x86_64-randconfig-a015-20200527 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout 516bf252eeb5d316895d83a5bcbe9d5668c5d41c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): kernel//sched/core.c:2116:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes] void sched_set_stop_task(int cpu, struct task_struct *stop) ^ kernel//sched/core.c:2116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void sched_set_stop_task(int cpu, struct task_struct *stop) ^ static >> kernel//sched/core.c:2299:6: warning: no previous prototype for function >> 'send_call_function_single_ipi' [-Wmissing-prototypes] void send_call_function_single_ipi(int cpu) ^ kernel//sched/core.c:2299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void send_call_function_single_ipi(int cpu) ^ static kernel//sched/core.c:806:28: warning: unused function 'uclamp_bucket_base_value' [-Wunused-function] static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value) ^ kernel//sched/core.c:1045:1: warning: unused function 'uclamp_update_active' [-Wunused-function] uclamp_update_active(struct task_struct *p, enum uclamp_id clamp_id) ^ 4 warnings generated. vim +/send_call_function_single_ipi +2299 kernel//sched/core.c 2298 > 2299 void send_call_function_single_ipi(int cpu) 2300 { 2301 struct rq *rq = cpu_rq(cpu); 2302 2303 if (!set_nr_if_polling(rq->idle)) 2304 arch_send_call_function_single_ipi(cpu); 2305 else 2306 trace_sched_wake_idle_without_ipi(cpu); 2307 } 2308 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] usb/phy-generic: Add support for OTG VBUS supply control
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on balbi-usb/testing/next] [also build test WARNING on usb/usb-testing v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Mike-Looijmans/usb-phy-generic-Add-support-for-OTG-VBUS-supply-control/20200526-225304 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next config: x86_64-randconfig-a016-20200527 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/usb/phy/phy-generic.c:234:1: warning: non-void function does not >> return a value in all control paths [-Wreturn-type] } ^ 1 warning generated. vim +234 drivers/usb/phy/phy-generic.c 205 206 static int nop_set_vbus(struct usb_otg *otg, bool enabled) 207 { 208 struct usb_phy_generic *nop; 209 int ret; 210 211 if (!otg) 212 return -ENODEV; 213 214 nop = container_of(otg->usb_phy, struct usb_phy_generic, phy); 215 216 if (!nop->vbus_reg) 217 return 0; 218 219 if (enabled) { 220 if (nop->vbus_reg_enabled) 221 return 0; 222 ret = regulator_enable(nop->vbus_reg); 223 if (ret < 0) 224 return ret; 225 nop->vbus_reg_enabled = true; 226 } else { 227 if (!nop->vbus_reg_enabled) 228 return 0; 229 ret = regulator_disable(nop->vbus_reg); 230 if (ret < 0) 231 return ret; 232 nop->vbus_reg_enabled = false; 233 } > 234 } 235 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/crypto/ccp/sev-dev.c:387:14: sparse: sparse: incorrect type in argument 1 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 9b67d08dbc1751ab15d972a63a4d9132e7e7442f crypto: ccp - rename psp-dev files to sev-dev date: 5 months ago config: x86_64-randconfig-s031-20200527 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 9b67d08dbc1751ab15d972a63a4d9132e7e7442f # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/crypto/ccp/sev-dev.c:387:14: sparse: sparse: incorrect type in >> argument 1 (different base types) @@ expected void const volatile >> [noderef] * @@ got unsigned long long [addressable] [usertype] >> address @@ drivers/crypto/ccp/sev-dev.c:387:14: sparse: expected void const volatile [noderef] * drivers/crypto/ccp/sev-dev.c:387:14: sparse: got unsigned long long [addressable] [usertype] address drivers/crypto/ccp/sev-dev.c:626:14: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] * @@ got unsigned long long [addressable] [usertype] address @@ drivers/crypto/ccp/sev-dev.c:626:14: sparse: expected void const volatile [noderef] * drivers/crypto/ccp/sev-dev.c:626:14: sparse: got unsigned long long [addressable] [usertype] address >> drivers/crypto/ccp/sev-dev.c:744:14: sparse: sparse: incorrect type in >> argument 1 (different base types) @@ expected void const volatile >> [noderef] * @@ got unsigned long long [addressable] [usertype] >> pdh_cert_address @@ drivers/crypto/ccp/sev-dev.c:744:14: sparse: expected void const volatile [noderef] * drivers/crypto/ccp/sev-dev.c:744:14: sparse: got unsigned long long [addressable] [usertype] pdh_cert_address >> drivers/crypto/ccp/sev-dev.c:751:14: sparse: sparse: incorrect type in >> argument 1 (different base types) @@ expected void const volatile >> [noderef] * @@ got unsigned long long [addressable] [usertype] >> cert_chain_address @@ drivers/crypto/ccp/sev-dev.c:751:14: sparse: expected void const volatile [noderef] * drivers/crypto/ccp/sev-dev.c:751:14: sparse: got unsigned long long [addressable] [usertype] cert_chain_address drivers/crypto/ccp/sev-dev.c:433:14: sparse: sparse: dereference of noderef expression drivers/crypto/ccp/sev-dev.c:440:54: sparse: sparse: dereference of noderef expression vim +387 drivers/crypto/ccp/sev-dev.c 4d84b726be834d drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 364 e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 365 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp) e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 366 { e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 367 struct sev_user_data_pek_csr input; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 368 struct sev_data_pek_csr *data; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 369 void *blob = NULL; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 370 int ret; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 371 ec310caf13b550 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2019-11-12 372 if (!capable(CAP_SYS_ADMIN)) ec310caf13b550 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2019-11-12 373 return -EPERM; ec310caf13b550 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2019-11-12 374 e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 375 if (copy_from_user(, (void __user *)argp->data, sizeof(input))) e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 376 return -EFAULT; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 377 e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 378 data = kzalloc(sizeof(*data), GFP_KERNEL); e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 379 if (!data) e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 380 return -ENOMEM; e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 381 e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 382 /* userspace wants to query CSR length */ e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 383 if (!input.address || !input.length) e799035609e152 drivers/crypto/ccp/psp-dev.c Brijesh Singh 2017-12-04 384
[rcu:dev.2020.05.26b 51/70] powerpc64-linux-ld: kernel/rcu/refperf.o:(.discard+0x0): multiple definition of `__pcpu_unique_srcu_ctl_perf_srcu_data'; kernel/rcu/rcuperf.o:(.discard+0x0): first defined
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.26b head: 795279db1396bf66621fa3f343fa990fe543b89e commit: 786a25497743696d79592b864cafbfe48787e6e1 [51/70] refperf: Add a test to measure performance of read-side synchronization config: powerpc-allyesconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 786a25497743696d79592b864cafbfe48787e6e1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): >> powerpc64-linux-ld: kernel/rcu/refperf.o:(.discard+0x0): multiple definition >> of `__pcpu_unique_srcu_ctl_perf_srcu_data'; >> kernel/rcu/rcuperf.o:(.discard+0x0): first defined here --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:WIP.sched/core 7/9] smp.c:undefined reference to `irq_work_single'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 68a1740c687d4a75b9e9dea0ab0aae61f167c880 commit: 5033cfdeb4a2a51fa847b1a3f5f6eee65dda6c75 [7/9] irq_work, smp: Allow irq_work on call_single_queue config: s390-allnoconfig (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 5033cfdeb4a2a51fa847b1a3f5f6eee65dda6c75 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): s390-linux-ld: kernel/smp.o: in function `flush_smp_call_function_queue': << kernel/smp.c:799: warning: cannot understand function prototype: 'struct smp_call_on_cpu_struct ' >> smp.c:(.text+0x110): undefined reference to `irq_work_single' --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
Hi Rasmus, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5 soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE date: 6 months ago config: arm64-randconfig-s031-20200527 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5 # save the attached .config to linux build tree make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in >> argument 1 (different address spaces) @@ expected void const volatile >> [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:264:21: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:264:21: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:268:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:268:21: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:268:21: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:286:6: sparse: sparse: symbol 'qe_uart_set_mctrl' was not declared. Should it be static? >> drivers/tty/serial/ucc_uart.c:349:17: sparse: sparse: incorrect type in >> argument 2 (different address spaces) @@ expected void volatile >> [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:349:17: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:349:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:350:17: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:350:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:350:17: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:350:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:352:21: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:352:21: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:371:18: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:371:18: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:384:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:384:17: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:384:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:385:17: sparse: expected void const volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:385:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:385:17: sparse: expected void volatile [noderef] *addr drivers/tty/serial/ucc_uart.c:385:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:388:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] *addr @@ got restricted __be16 * @@ drivers/tty/serial/uc
Re: [PATCH v3 05/10] media: i2c: imx290: Add configurable link frequency and pixel rate
Hi Andrey, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Andrey-Konovalov/Improvements-to-IMX290-CMOS-driver/20200525-032909 base: git://linuxtv.org/media_tree.git master config: microblaze-randconfig-c023-20200527 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): microblaze-linux-ld: drivers/media/i2c/imx290.o: in function `imx290_calc_pixel_rate': >> drivers/media/i2c/imx290.c:465: undefined reference to `__divdi3' vim +465 drivers/media/i2c/imx290.c 458 459 static u64 imx290_calc_pixel_rate(struct imx290 *imx290) 460 { 461 s64 link_freq = imx290_get_link_freq(imx290); 462 u8 nlanes = imx290->nlanes; 463 464 /* pixel rate = link_freq * 2 * nr_of_lanes / bits_per_sample */ > 465 return (link_freq * 2 * nlanes / 10); 466 } 467 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v9 07/14] KVM: Don't allocate dirty bitmap if dirty ring is enabled
Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.7-rc7] [cannot apply to kvm/linux-next tip/auto-latest linux/master next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interface/20200524-070926 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: i386-randconfig-s002-20200527 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) arch/x86/kvm/mmu/mmu.c:693:18: sparse: sparse: cast to non-scalar arch/x86/kvm/mmu/mmu.c:712:18: sparse: sparse: cast to non-scalar arch/x86/kvm/mmu/mmu.c:731:18: sparse: sparse: cast to non-scalar >> arch/x86/kvm/mmu/mmu.c:1280:24: sparse: sparse: Using plain integer as NULL >> pointer arch/x86/kvm/mmu/mmu.c:4687:57: sparse: sparse: cast truncates bits from constant value (ff33 becomes 33) arch/x86/kvm/mmu/mmu.c:4689:56: sparse: sparse: cast truncates bits from constant value (ff0f becomes f) arch/x86/kvm/mmu/mmu.c:4691:57: sparse: sparse: cast truncates bits from constant value (ff55 becomes 55) vim +1280 arch/x86/kvm/mmu/mmu.c 1269 1270 static struct kvm_memory_slot * 1271 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, 1272 bool no_dirty_log) 1273 { 1274 struct kvm_memory_slot *slot; 1275 1276 slot = kvm_vcpu_gfn_to_memslot(vcpu, gfn); 1277 if (!slot || slot->flags & KVM_MEMSLOT_INVALID) 1278 return NULL; 1279 if (no_dirty_log && kvm_slot_dirty_track_enabled(slot)) > 1280 return false; 1281 1282 return slot; 1283 } 1284 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)
Hi Tetsuo, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200519] [cannot apply to linus/master linux/master pmladek/for-next v5.7-rc6 v5.7-rc5 v5.7-rc4 v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tetsuo-Handa/twist-allow-converting-pr_devel-pr_debug-into-printk-KERN_DEBUG/20200524-225318 base:fb57b1fabcb28f358901b2df90abd2b48abc1ca8 config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/device.h:15, from include/linux/dmaengine.h:8, from drivers/i2c/busses/i2c-tegra.c:12: drivers/i2c/busses/i2c-tegra.c: In function 'tegra_i2c_dma_submit': include/linux/dev_printk.h:115:2: error: implicit declaration of function 'dynamic_dev_dbg' [-Werror=implicit-function-declaration] 115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~ >> drivers/i2c/busses/i2c-tegra.c:377:2: note: in expansion of macro 'dev_dbg' 377 | dev_dbg(i2c_dev->dev, "starting DMA for length: %zun", len); | ^~~ cc1: some warnings being treated as errors vim +/dev_dbg +377 drivers/i2c/busses/i2c-tegra.c 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 370 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 371 static int tegra_i2c_dma_submit(struct tegra_i2c_dev *i2c_dev, size_t len) 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 372 { 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 373 struct dma_async_tx_descriptor *dma_desc; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 374 enum dma_transfer_direction dir; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 375 struct dma_chan *chan; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 376 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 @377 dev_dbg(i2c_dev->dev, "starting DMA for length: %zu\n", len); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 378 reinit_completion(_dev->dma_complete); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 379 dir = i2c_dev->msg_read ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 380 chan = i2c_dev->msg_read ? i2c_dev->rx_dma_chan : i2c_dev->tx_dma_chan; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 381 dma_desc = dmaengine_prep_slave_single(chan, i2c_dev->dma_phys, 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 382 len, dir, DMA_PREP_INTERRUPT | 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 383 DMA_CTRL_ACK); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 384 if (!dma_desc) { 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 385 dev_err(i2c_dev->dev, "failed to get DMA descriptor\n"); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 386 return -EINVAL; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 387 } 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 388 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 389 dma_desc->callback = tegra_i2c_dma_complete; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 390 dma_desc->callback_param = i2c_dev; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 391 dmaengine_submit(dma_desc); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 392 dma_async_issue_pending(chan); 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 393 return 0; 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 394 } 86c92b9965ff175 Sowjanya Komatineni 2019-02-12 395 :: The code at line 377 was first introduced by commit :: 86c92b9965ff1758952cd0d6c5f19f291eea i2c: tegra: Add DMA support :: TO: Sowjanya Komatineni :: CC: Wolfram Sang --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1377:21: sparse: sparse: incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 804c5702fc583afbdb6860f79e9d4058570ccc43 qed: Use dmae to write to widebus registers in fw_funcs date: 4 months ago config: ia64-randconfig-s032-20200527 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 804c5702fc583afbdb6860f79e9d4058570ccc43 # save the attached .config to linux build tree make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:545:17: sparse:right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:545:17: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:545:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:545:17: sparse:right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse:right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1343:9: sparse:right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse:right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1344:9: sparse:right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse: right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1347:17: sparse: right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse: right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1348:17: sparse: right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse: right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1349:17: sparse: right side has type unsigned long long drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1350:17: sparse: sparse: invalid assignment: &= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1350:17: sparse:left side has type restricted __le32 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1350:17: sparse: right side has type int drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1350:17: sparse: sparse: invalid assignment: |= drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c:1350:17: sparse:left side has type re
Re: [PATCH] clk/ti/adpll: Add a NULL check for devm_kasprintf()
Hi Xu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Xu-Wang/clk-ti-adpll-Add-a-NULL-check-for-devm_kasprintf/20200518-114748 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: x86_64-randconfig-s021-20200527 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/clk/ti/adpll.c:200:32: sparse: sparse: incorrect type in return >> expression (different base types) @@ expected char const * @@ got >> int @@ drivers/clk/ti/adpll.c:200:32: sparse: expected char const * drivers/clk/ti/adpll.c:200:32: sparse: got int vim +200 drivers/clk/ti/adpll.c 181 182 static const char *ti_adpll_clk_get_name(struct ti_adpll_data *d, 183 int output_index, 184 const char *postfix) 185 { 186 const char *name; 187 int err; 188 189 if (output_index >= 0) { 190 err = of_property_read_string_index(d->np, 191 "clock-output-names", 192 output_index, 193 ); 194 if (err) 195 return NULL; 196 } else { 197 name = devm_kasprintf(d->dev, GFP_KERNEL, "%08lx.adpll.%s", 198d->pa, postfix); 199 if (!name) > 200 return -ENOMEM; 201 } 202 203 return name; 204 } 205 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/net/ethernet/intel/igc/igc_ptp.c:397:17: sparse: sparse: incorrect type in argument 1 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 81b055205e8ba2d400c8fa5845ba540a4a880a3a igc: Add support for RX timestamping date: 5 months ago config: ia64-randconfig-s032-20200527 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 81b055205e8ba2d400c8fa5845ba540a4a880a3a # save the attached .config to linux build tree make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) ./arch/ia64/include/generated/uapi/asm/unistd_64.h:348:39: sparse: sparse: no newline at end of file >> drivers/net/ethernet/intel/igc/igc_ptp.c:397:17: sparse: sparse: incorrect >> type in argument 1 (different base types) @@ expected unsigned int >> [usertype] value @@ got restricted __be16 [usertype] @@ >> drivers/net/ethernet/intel/igc/igc_ptp.c:397:17: sparse: expected >> unsigned int [usertype] value drivers/net/ethernet/intel/igc/igc_ptp.c:397:17: sparse: got restricted __be16 [usertype] drivers/net/ethernet/intel/igc/igc_ptp.c:415:6: sparse: sparse: symbol 'igc_ptp_tx_hang' was not declared. Should it be static? drivers/net/ethernet/intel/igc/igc_ptp.c:445:6: sparse: sparse: symbol 'igc_ptp_tx_work' was not declared. Should it be static? drivers/net/ethernet/intel/igc/igc_ptp.c:549:6: sparse: sparse: symbol 'igc_ptp_suspend' was not declared. Should it be static? include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usert
drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: sparse: incorrect type in argument 1 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: 48ba02b2e2b1a1c80718e93fefe99c8319597c4a usb: gadget: add udc driver for max3420 date: 2 months ago config: sparc64-randconfig-s031-20200527 (attached as .config) compiler: sparc64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 48ba02b2e2b1a1c80718e93fefe99c8319597c4a # save the attached .config to linux build tree make W=1 C=1 ARCH=sparc64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) ./arch/sparc/include/generated/uapi/asm/unistd_64.h:379:40: sparse: sparse: no newline at end of file drivers/usb/gadget/udc/max3420_udc.c:555:41: sparse: sparse: restricted __le16 degrades to integer drivers/usb/gadget/udc/max3420_udc.c:556:31: sparse: sparse: restricted __le16 degrades to integer drivers/usb/gadget/udc/max3420_udc.c:570:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] status @@ got restricted __le16 [usertype] @@ drivers/usb/gadget/udc/max3420_udc.c:570:16: sparse: expected unsigned short [assigned] [usertype] status drivers/usb/gadget/udc/max3420_udc.c:570:16: sparse: got restricted __le16 [usertype] drivers/usb/gadget/udc/max3420_udc.c:588:31: sparse: sparse: restricted __le16 degrades to integer drivers/usb/gadget/udc/max3420_udc.c:602:32: sparse: sparse: restricted __le16 degrades to integer drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: sparse: cast from restricted __le16 >> drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned short >> [usertype] val @@ got restricted __le16 [addressable] [usertype] wValue >> @@ drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: expected unsigned short [usertype] val drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: got restricted __le16 [addressable] [usertype] wValue drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: sparse: cast from restricted __le16 drivers/usb/gadget/udc/max3420_udc.c:631:29: sparse: sparse: cast from restricted __le16 drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: sparse: cast from restricted __le16 >> drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned short >> [usertype] val @@ got restricted __le16 [addressable] [usertype] wIndex >> @@ drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: expected unsigned short [usertype] val drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: got restricted __le16 [addressable] [usertype] wIndex drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: sparse: cast from restricted __le16 drivers/usb/gadget/udc/max3420_udc.c:632:29: sparse: sparse: cast from restricted __le16 drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: sparse: cast from restricted __le16 >> drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned short >> [usertype] val @@ got restricted __le16 [addressable] [usertype] wLength >> @@ drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: expected unsigned short [usertype] val drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: got restricted __le16 [addressable] [usertype] wLength drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: sparse: cast from restricted __le16 drivers/usb/gadget/udc/max3420_udc.c:633:30: sparse: sparse: cast from restricted __le16 vim +631 drivers/usb/gadget/udc/max3420_udc.c 622 623 static void max3420_handle_setup(struct max3420_udc *udc) 624 { 625 struct usb_ctrlrequest setup; 626 u8 addr; 627 628 spi_rd_buf(udc, MAX3420_REG_SUDFIFO, (void *), 8); 629 630 udc->setup = setup; > 631 udc->setup.wValue = cpu_to_le16(setup.wValue); > 632 udc->setup.wIndex = cpu_to_le16(setup.wIndex); > 633 udc->setup.wLength = cpu_to_le16(setup.wLength); 634 635 switch (udc->setup.bRequest) { 636 case USB_REQ_GET_STATUS: 637 /* Data+Status phase form udc */ 638 if ((udc->setup.bRequestType & 639 (USB_DIR_IN | USB_TYPE_MASK)) != 640 (USB_DIR_IN | USB_TYPE_STANDARD)) { 641 break; 642 } 643
drivers/spi/spi-nxp-fspi.c:672:34: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: d166a73503ef74fb761f1a3103ef7919928d7b52 spi: fspi: dynamically alloc AHB memory date: 3 months ago config: openrisc-randconfig-s031-20200527 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout d166a73503ef74fb761f1a3103ef7919928d7b52 # save the attached .config to linux build tree make W=1 C=1 ARCH=openrisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/spi/spi-nxp-fspi.c:472:25: sparse: sparse: cast from restricted __be32 >> drivers/spi/spi-nxp-fspi.c:672:34: sparse: sparse: incorrect type in >> argument 1 (different address spaces) @@ expected void *addr @@ got >> void [noderef] *ahb_addr @@ drivers/spi/spi-nxp-fspi.c:672:34: sparse: expected void *addr drivers/spi/spi-nxp-fspi.c:672:34: sparse: got void [noderef] *ahb_addr drivers/spi/spi-nxp-fspi.c:1102:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] *ahb_addr @@ drivers/spi/spi-nxp-fspi.c:1102:26: sparse: expected void *addr drivers/spi/spi-nxp-fspi.c:1102:26: sparse: got void [noderef] *ahb_addr include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 vim +672 drivers/spi/spi-nxp-fspi.c 662 663 static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) 664 { 665 u32 start = op->addr.val; 666 u32 len = op->data.nbytes; 667 668 /* if necessary, ioremap before AHB read */ 669 if ((!f->ahb_addr) || start < f->memmap_start || 670 start + len > f->memmap_start + f->memmap_len) { 671 if (f->ahb_addr) > 672 iounmap(f->ahb_addr); 673 674 f->memmap_start = start; 675 f->memmap_len = len > NXP_FSPI_MIN_IOMAP ? 676 len : NXP_FSPI_MIN_IOMAP; 677 678 f->ahb_addr = ioremap_wc(f->memmap_phy + f->memmap_start, 679 f->memmap_len); 680 681 if (!f->ahb_addr) { 682 dev_err(f->dev, "failed to alloc memory\n"); 683 return -ENOMEM; 684 } 685 } 686 687 /* Read out the data directly from the AHB buffer. */ 688 memcpy_fromio(op->data.buf.in, 689f->ahb_addr + start - f->memmap_start, len); 690 691 return 0; 692 } 693 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:WIP.sched/core 6/9] kernel//sched/core.c:2299:6: warning: no previous prototype for 'send_call_function_single_ipi'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core head: 68a1740c687d4a75b9e9dea0ab0aae61f167c880 commit: 516bf252eeb5d316895d83a5bcbe9d5668c5d41c [6/9] smp: Optimize send_call_function_single_ipi() config: mips-maltaup_defconfig (attached as .config) compiler: mipsel-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 516bf252eeb5d316895d83a5bcbe9d5668c5d41c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): kernel//sched/core.c:2116:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes] 2116 | void sched_set_stop_task(int cpu, struct task_struct *stop) | ^~~ >> kernel//sched/core.c:2299:6: warning: no previous prototype for >> 'send_call_function_single_ipi' [-Wmissing-prototypes] 2299 | void send_call_function_single_ipi(int cpu) | ^ vim +/send_call_function_single_ipi +2299 kernel//sched/core.c 2298 > 2299 void send_call_function_single_ipi(int cpu) 2300 { 2301 struct rq *rq = cpu_rq(cpu); 2302 2303 if (!set_nr_if_polling(rq->idle)) 2304 arch_send_call_function_single_ipi(cpu); 2305 else 2306 trace_sched_wake_idle_without_ipi(cpu); 2307 } 2308 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)
Hi Tetsuo, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200519] [cannot apply to linus/master linux/master pmladek/for-next v5.7-rc6 v5.7-rc5 v5.7-rc4 v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tetsuo-Handa/twist-allow-converting-pr_devel-pr_debug-into-printk-KERN_DEBUG/20200524-225318 base:fb57b1fabcb28f358901b2df90abd2b48abc1ca8 config: powerpc-allmodconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/linux/device.h:15, from include/linux/acpi.h:15, from include/linux/i2c.h:13, from drivers/iio/adc/ina2xx-adc.c:24: drivers/iio/adc/ina2xx-adc.c: In function 'ina2xx_buffer_enable': include/linux/dev_printk.h:115:2: error: implicit declaration of function 'dynamic_dev_dbg' [-Werror=implicit-function-declaration] 115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~ >> drivers/iio/adc/ina2xx-adc.c:834:2: note: in expansion of macro 'dev_dbg' 834 | dev_dbg(_dev->dev, "Enabling buffer w/ scan_mask %02x, freq = %d, avg =%un", | ^~~ cc1: some warnings being treated as errors vim +/dev_dbg +834 drivers/iio/adc/ina2xx-adc.c c43a102e67db99c Marc Titinger 2015-12-07 827 c43a102e67db99c Marc Titinger 2015-12-07 828 static int ina2xx_buffer_enable(struct iio_dev *indio_dev) c43a102e67db99c Marc Titinger 2015-12-07 829 { c43a102e67db99c Marc Titinger 2015-12-07 830 struct ina2xx_chip_info *chip = iio_priv(indio_dev); c43a102e67db99c Marc Titinger 2015-12-07 831 unsigned int sampling_us = SAMPLING_PERIOD(chip); 7d6cd21d82bacab Akinobu Mita2018-06-25 832 struct task_struct *task; c43a102e67db99c Marc Titinger 2015-12-07 833 1961bce76452938 Andrew F. Davis 2016-02-24 @834 dev_dbg(_dev->dev, "Enabling buffer w/ scan_mask %02x, freq = %d, avg =%u\n", c43a102e67db99c Marc Titinger 2015-12-07 835 (unsigned int)(*indio_dev->active_scan_mask), c43a102e67db99c Marc Titinger 2015-12-07 836 100 / sampling_us, chip->avg); c43a102e67db99c Marc Titinger 2015-12-07 837 1961bce76452938 Andrew F. Davis 2016-02-24 838 dev_dbg(_dev->dev, "Expected work period: %u us\n", sampling_us); 1961bce76452938 Andrew F. Davis 2016-02-24 839 dev_dbg(_dev->dev, "Async readout mode: %d\n", 1961bce76452938 Andrew F. Davis 2016-02-24 840 chip->allow_async_readout); c43a102e67db99c Marc Titinger 2015-12-07 841 7d6cd21d82bacab Akinobu Mita2018-06-25 842 task = kthread_create(ina2xx_capture_thread, (void *)indio_dev, 46294cd948d530d Marc Titinger 2015-12-11 843 "%s:%d-%uus", indio_dev->name, indio_dev->id, 46294cd948d530d Marc Titinger 2015-12-11 844 sampling_us); 7d6cd21d82bacab Akinobu Mita2018-06-25 845 if (IS_ERR(task)) 7d6cd21d82bacab Akinobu Mita2018-06-25 846 return PTR_ERR(task); 7d6cd21d82bacab Akinobu Mita2018-06-25 847 7d6cd21d82bacab Akinobu Mita2018-06-25 848 get_task_struct(task); 7d6cd21d82bacab Akinobu Mita2018-06-25 849 wake_up_process(task); 7d6cd21d82bacab Akinobu Mita2018-06-25 850 chip->task = task; c43a102e67db99c Marc Titinger 2015-12-07 851 7d6cd21d82bacab Akinobu Mita2018-06-25 852 return 0; c43a102e67db99c Marc Titinger 2015-12-07 853 } c43a102e67db99c Marc Titinger 2015-12-07 854 :: The code at line 834 was first introduced by commit :: 1961bce76452938eed8f797b7d96ab5f3c611525 iio: ina2xx: Remove trace_printk debug statments :: TO: Andrew F. Davis :: CC: Jonathan Cameron --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[RFC PATCH] vdpa: vhost_vdpa_poll_stop() can be static
Signed-off-by: kbuild test robot --- vdpa.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index d3a2acafedecd4..5037ce7f48cd42 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -287,12 +287,12 @@ static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) return 0; } -void vhost_vdpa_poll_stop(struct vhost_virtqueue *vq) +static void vhost_vdpa_poll_stop(struct vhost_virtqueue *vq) { vhost_poll_stop(>poll); } -int vhost_vdpa_poll_start(struct vhost_virtqueue *vq) +static int vhost_vdpa_poll_start(struct vhost_virtqueue *vq) { struct vhost_poll *poll = >poll; struct file *file = vq->kick; @@ -747,7 +747,7 @@ static int vhost_vdpa_poll_worker(wait_queue_entry_t *wait, unsigned int mode, return 0; } -void vhost_vdpa_poll_init(struct vhost_dev *dev) +static void vhost_vdpa_poll_init(struct vhost_dev *dev) { struct vhost_virtqueue *vq; struct vhost_poll *poll;
Re: [PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone
Hi Alexandre, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/vmalloc-kernel-mapping-and-relocatable-kernel/20200524-170109 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/riscv/mm/init.c:383:6: warning: no previous prototype for >> 'create_kernel_page_table' [-Wmissing-prototypes] 383 | void create_kernel_page_table(pgd_t *pgdir, uintptr_t map_size) | ^~~~ vim +/create_kernel_page_table +383 arch/riscv/mm/init.c 382 > 383 void create_kernel_page_table(pgd_t *pgdir, uintptr_t map_size) 384 { 385 uintptr_t va, end_va; 386 387 end_va = kernel_virt_addr + load_sz; 388 for (va = kernel_virt_addr; va < end_va; va += map_size) 389 create_pgd_mapping(pgdir, va, 390 load_pa + (va - kernel_virt_addr), 391 map_size, PAGE_KERNEL_EXEC); 392 } 393 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH] usb/phy-generic: Add support for OTG VBUS supply control
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on balbi-usb/testing/next] [also build test WARNING on usb/usb-testing peter.chen-usb/ci-for-usb-next v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Mike-Looijmans/usb-phy-generic-Add-support-for-OTG-VBUS-supply-control/20200526-225304 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/usb/phy/phy-generic.c: In function 'nop_set_vbus': >> drivers/usb/phy/phy-generic.c:234:1: warning: control reaches end of >> non-void function [-Wreturn-type] 234 | } | ^ vim +234 drivers/usb/phy/phy-generic.c 205 206 static int nop_set_vbus(struct usb_otg *otg, bool enabled) 207 { 208 struct usb_phy_generic *nop; 209 int ret; 210 211 if (!otg) 212 return -ENODEV; 213 214 nop = container_of(otg->usb_phy, struct usb_phy_generic, phy); 215 216 if (!nop->vbus_reg) 217 return 0; 218 219 if (enabled) { 220 if (nop->vbus_reg_enabled) 221 return 0; 222 ret = regulator_enable(nop->vbus_reg); 223 if (ret < 0) 224 return ret; 225 nop->vbus_reg_enabled = true; 226 } else { 227 if (!nop->vbus_reg_enabled) 228 return 0; 229 ret = regulator_disable(nop->vbus_reg); 230 if (ret < 0) 231 return ret; 232 nop->vbus_reg_enabled = false; 233 } > 234 } 235 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH 2/2] clk: Remove CONFIG_ARCH_HISI check for subdir hisilicon
Hi Tiezhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tiezhu-Yang/clk-hisilicon-Use-correct-return-value-about-hisi_reset_init/20200525-113342 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: x86_64-randconfig-s021-20200527 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/clk/hisilicon/reset.c:100:28: sparse: sparse: incorrect type in >> return expression (different address spaces) @@ expected struct >> hisi_reset_controller * @@ got void [noderef] *membase @@ >> drivers/clk/hisilicon/reset.c:100:28: sparse: expected struct >> hisi_reset_controller * >> drivers/clk/hisilicon/reset.c:100:28: sparse: got void [noderef] >> *membase vim +100 drivers/clk/hisilicon/reset.c 25824d52caa8e61 Jiancheng Xue 2016-04-23 89 97b7129cd2afb47 Jiancheng Xue 2016-06-15 90 struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) 25824d52caa8e61 Jiancheng Xue 2016-04-23 91 { 25824d52caa8e61 Jiancheng Xue 2016-04-23 92 struct hisi_reset_controller *rstc; 25824d52caa8e61 Jiancheng Xue 2016-04-23 93 97b7129cd2afb47 Jiancheng Xue 2016-06-15 94 rstc = devm_kmalloc(>dev, sizeof(*rstc), GFP_KERNEL); 25824d52caa8e61 Jiancheng Xue 2016-04-23 95 if (!rstc) 78847951203a978 Tiezhu Yang 2020-05-25 96 return ERR_PTR(-ENOMEM); 25824d52caa8e61 Jiancheng Xue 2016-04-23 97 75cc0a123c90c8e YueHaibing 2019-10-14 98 rstc->membase = devm_platform_ioremap_resource(pdev, 0); e9a2310fb689151 Gustavo A. R. Silva 2018-07-25 99 if (IS_ERR(rstc->membase)) 78847951203a978 Tiezhu Yang 2020-05-25 @100 return rstc->membase; 25824d52caa8e61 Jiancheng Xue 2016-04-23 101 25824d52caa8e61 Jiancheng Xue 2016-04-23 102 spin_lock_init(>lock); 25824d52caa8e61 Jiancheng Xue 2016-04-23 103 rstc->rcdev.owner = THIS_MODULE; 25824d52caa8e61 Jiancheng Xue 2016-04-23 104 rstc->rcdev.ops = _reset_ops; 97b7129cd2afb47 Jiancheng Xue 2016-06-15 105 rstc->rcdev.of_node = pdev->dev.of_node; 25824d52caa8e61 Jiancheng Xue 2016-04-23 106 rstc->rcdev.of_reset_n_cells = 2; 25824d52caa8e61 Jiancheng Xue 2016-04-23 107 rstc->rcdev.of_xlate = hisi_reset_of_xlate; 25824d52caa8e61 Jiancheng Xue 2016-04-23 108 reset_controller_register(>rcdev); 25824d52caa8e61 Jiancheng Xue 2016-04-23 109 25824d52caa8e61 Jiancheng Xue 2016-04-23 110 return rstc; 25824d52caa8e61 Jiancheng Xue 2016-04-23 111 } 25824d52caa8e61 Jiancheng Xue 2016-04-23 112 EXPORT_SYMBOL_GPL(hisi_reset_init); 25824d52caa8e61 Jiancheng Xue 2016-04-23 113 :: The code at line 100 was first introduced by commit :: 78847951203a978f4544f9e7dd244a3930b3945b clk: hisilicon: Use correct return value about hisi_reset_init() :: TO: Tiezhu Yang :: CC: 0day robot --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
arch/mips/bmips/setup.c:170:23: warning: array comparison always evaluates to true
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: afe956c577b2d5a3d9834e4424587c1ebcf90c4c kbuild: Enable -Wtautological-compare date: 7 weeks ago config: mips-randconfig-r033-20200527 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu git checkout afe956c577b2d5a3d9834e4424587c1ebcf90c4c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/mips/bmips/setup.c:170:23: warning: array comparison always evaluates >> to true [-Wtautological-compare] else if (__dtb_start != __dtb_end) ^ 1 warning generated. vim +170 arch/mips/bmips/setup.c d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 155 d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 156 void __init plat_mem_setup(void) d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 157 { 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 158 void *dtb; 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 159 const struct bmips_quirk *q; d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 160 d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 161 set_io_port_base(0); d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 162 ioport_resource.start = 0; d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 163 ioport_resource.end = ~0; d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 164 dc7a12bdfccd94c arch/mips/bmips/setup.c Mauro Carvalho Chehab 2019-04-14 165 /* intended to somewhat resemble ARM; see Documentation/arm/booting.rst */ d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 166 if (fw_arg0 == 0 && fw_arg1 == 0x) d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 167 dtb = phys_to_virt(fw_arg2); e524c788bfc1d5e arch/mips/bmips/setup.c Yasha Cherikovsky 2018-09-25 168 else if (fw_passed_dtb) /* UHI interface or appended dtb */ 15f37e1588920e0 arch/mips/bmips/setup.c Jonas Gorski 2016-06-20 169 dtb = (void *)fw_passed_dtb; 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 @170 else if (__dtb_start != __dtb_end) 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 171 dtb = (void *)__dtb_start; 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 172 else 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 173 panic("no dtb found"); d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 174 d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 175 __dt_setup_arch(dtb); 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 176 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 177 for (q = bmips_quirk_list; q->quirk_fn; q++) { 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 178 if (of_flat_dt_is_compatible(of_get_flat_dt_root(), 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 179 q->compatible)) { 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 180 q->quirk_fn(); 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 181 } 4b049a6b275db68 arch/mips/bmips/setup.c Kevin Cernekee2014-12-25 182 } d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 183 } d666cd0246f78bd arch/mips/bcm3384/setup.c Kevin Cernekee2014-10-20 184 :: The code at line 170 was first introduced by commit :: 4b049a6b275db68c2c028937b89abd732dcdf536 MIPS: BMIPS: Add quirks for several Broadcom platforms :: TO: Kevin Cernekee :: CC: Ralf Baechle --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/gpu/drm/r128/ati_pcigart.c:188:52: sparse: sparse: incorrect type in assignment (different base types)
Hi Jani, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: be14312472e93d0c9c8c3ea8ef7d4eb59ed73f8f drm/r128: make ATI PCI GART part of its only user, r128 date: 6 months ago config: ia64-randconfig-s031-20200527 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout be14312472e93d0c9c8c3ea8ef7d4eb59ed73f8f # save the attached .config to linux build tree make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/r128/ati_pcigart.c:188:52: sparse: sparse: incorrect type in >> assignment (different base types) @@ expected unsigned int [usertype] @@ >> got restricted __le32 [usertype] @@ drivers/gpu/drm/r128/ati_pcigart.c:188:52: sparse: expected unsigned int [usertype] drivers/gpu/drm/r128/ati_pcigart.c:188:52: sparse: got restricted __le32 [usertype] drivers/gpu/drm/r128/ati_pcigart.c:200:9: sparse: sparse: undefined identifier 'wbinvd' vim +188 drivers/gpu/drm/r128/ati_pcigart.c ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 99 55910517af381eb drivers/char/drm/ati_pcigart.c Dave Airlie 2007-07-11 100 int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 101 { 5a7aad9a559a548 drivers/gpu/drm/ati_pcigart.c David Miller 2009-02-12 102 struct drm_local_map *map = _info->mapping; 55910517af381eb drivers/char/drm/ati_pcigart.c Dave Airlie 2007-07-11 103 struct drm_sg_mem *entry = dev->sg; f26c473cdf557ea drivers/char/drm/ati_pcigart.c Dave Airlie 2006-01-02 104 void *address = NULL; ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 105 unsigned long pages; 6abf66018f7fe23 drivers/gpu/drm/ati_pcigart.c Dave Airlie 2009-02-26 106 u32 *pci_gart = NULL, page_base, gart_idx; b05c23851ab820b drivers/char/drm/ati_pcigart.c Dave Airlie 2008-03-17 107 dma_addr_t bus_address = 0; c27889ca3bb8bdc drivers/gpu/drm/ati_pcigart.c Dan Carpenter 2018-12-17 108 int i, j, ret = -ENOMEM; d30333bbabb4a2c drivers/gpu/drm/ati_pcigart.c David Miller 2009-02-15 109 int max_ati_pages, max_real_pages; ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 110 ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 111 if (!entry) { ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 112 DRM_ERROR("no scatter/gather memory!\n"); ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 113 goto done; ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 114 } ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-04-16 115 b5e89ed53ed8d24 drivers/char/drm/ati_pcigart.c Dave Airlie 2005-09-25 116 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) { ea98a92ff18c03b drivers/char/drm/ati_pcigart.c Dave Airlie 2005-09-11 117 DRM_DEBUG("PCI: no table in VRAM: using normal RAM\n"); ea98a92ff18c03b drivers/char/drm/ati_pcigart.c Dave Airlie 2005-09-11 118 e6be8d9d17bd440 drivers/gpu/drm/ati_pcigart.c Zhenyu Wang 2010-01-05 119 if (pci_set_dma_mask(dev->pdev, gart_info->table_mask)) { e6be8d9d17bd440 drivers/gpu/drm/ati_pcigart.c Zhenyu Wang 2010-01-05 120 DRM_ERROR("fail to set dma mask to 0x%Lx\n", d7748bacbbee80b drivers/gpu/drm/ati_pcigart.c Randy Dunlap 2010-02-02 121 (unsigned long long)gart_info->table_mask); c27889ca3bb8bdc drivers/gpu/drm/ati_pcigart.c Dan Carpenter 2018-12-17 122 ret = -EFAULT; e6be8d9d17bd440 drivers/gpu/drm/ati_pcigart.c Zhenyu Wang 2010-01-05 123 goto done; e6be8d9d17bd440 drivers/gpu/drm/ati_pcigart.c Zhenyu Wang 2010-01-05 124 } e6be8d9d17bd440 drivers/gpu/drm/ati_pcigart.c Zhenyu Wang 2010-01-05 125 b05c23851ab820b drivers/char/drm/ati_pcigart.c Dave Airlie 2008-03-17 126 ret = drm_ati_alloc_pcigart_table(dev, gart_info); b05c23851ab820b drivers/char/drm/ati_pcigart.c Dave Airlie 2008-03-17 127 if (ret) { ^1da177e4c3f415 drivers/char/drm/ati_pcigart.c Linus Torvalds 2005-
Re: [PATCH 2/2] clk: Remove CONFIG_ARCH_HISI check for subdir hisilicon
Hi Tiezhu, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tiezhu-Yang/clk-hisilicon-Use-correct-return-value-about-hisi_reset_init/20200525-113342 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: m68k-allnoconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_fixed_rate': clk.c:(.text+0xd0): undefined reference to `clk_register_fixed_rate' >> m68k-linux-ld: clk.c:(.text+0x120): undefined reference to >> `clk_unregister_fixed_rate' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_fixed_factor': clk.c:(.text+0x166): undefined reference to `clk_register_fixed_factor' >> m68k-linux-ld: clk.c:(.text+0x1ba): undefined reference to >> `clk_unregister_fixed_factor' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_mux': clk.c:(.text+0x208): undefined reference to `clk_register_mux_table' >> m68k-linux-ld: clk.c:(.text+0x210): undefined reference to >> `clk_register_clkdev' >> m68k-linux-ld: clk.c:(.text+0x2a8): undefined reference to >> `clk_unregister_mux' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_divider': clk.c:(.text+0x360): undefined reference to `clk_register_divider_table' m68k-linux-ld: clk.c:(.text+0x366): undefined reference to `clk_register_clkdev' >> m68k-linux-ld: clk.c:(.text+0x3f0): undefined reference to >> `clk_unregister_divider' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_gate': clk.c:(.text+0x43c): undefined reference to `clk_register_gate' m68k-linux-ld: clk.c:(.text+0x442): undefined reference to `clk_register_clkdev' >> m68k-linux-ld: clk.c:(.text+0x4c0): undefined reference to >> `clk_unregister_gate' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_gate_sep': clk.c:(.text+0x510): undefined reference to `clk_register_clkdev' m68k-linux-ld: drivers/clk/hisilicon/clk.o: in function `hi6220_clk_register_divider': clk.c:(.init.text+0x16): undefined reference to `clk_register_clkdev' m68k-linux-ld: drivers/clk/hisilicon/clkgate-separated.o: in function `hisi_register_clkgate_sep': clkgate-separated.c:(.text+0x128): undefined reference to `clk_register' >> m68k-linux-ld: clkgate-separated.c:(.text+0x176): undefined reference to >> `clk_register' m68k-linux-ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_set_rate': clkdivider-hi6220.c:(.text+0x26): undefined reference to `divider_get_val' m68k-linux-ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_round_rate': clkdivider-hi6220.c:(.text+0xa6): undefined reference to `clk_hw_get_parent' >> m68k-linux-ld: clkdivider-hi6220.c:(.text+0xc0): undefined reference to >> `divider_round_rate_parent' m68k-linux-ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_recalc_rate': clkdivider-hi6220.c:(.text+0x10a): undefined reference to `divider_recalc_rate' m68k-linux-ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_register_clkdiv': clkdivider-hi6220.c:(.text+0x1f8): undefined reference to `clk_register' m68k-linux-ld: drivers/clk/hisilicon/clk-hisi-phase.o: in function `clk_register_hisi_phase': clk-hisi-phase.c:(.text+0x172): undefined reference to `devm_clk_register' >> m68k-linux-ld: clk-hisi-phase.c:(.text+0x1e2): undefined reference to >> `devm_clk_register' --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
arch/x86/kernel/cpu/mce/dev-mcelog.c:346:2: warning: 'strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 444fc5cde64330661bf59944c43844e7d4c2ccd8 commit: d8ecca4043f2d9d89daab7915eca8c2ec6254d0f x86/mce/dev-mcelog: Dynamically allocate space for machine check records date: 3 months ago config: x86_64-lkp (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): git checkout d8ecca4043f2d9d89daab7915eca8c2ec6254d0f # save the attached .config to linux build tree make W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): arch/x86/kernel/cpu/mce/dev-mcelog.c: In function 'dev_mcelog_init_device': >> arch/x86/kernel/cpu/mce/dev-mcelog.c:346:2: warning: 'strncpy' output >> truncated before terminating nul copying 12 bytes from a string of the same >> length [-Wstringop-truncation] 346 | strncpy(mcelog->signature, MCE_LOG_SIGNATURE, sizeof(mcelog->signature)); | ^~~~ vim +/strncpy +346 arch/x86/kernel/cpu/mce/dev-mcelog.c 335 336 static __init int dev_mcelog_init_device(void) 337 { 338 int mce_log_len; 339 int err; 340 341 mce_log_len = max(MCE_LOG_MIN_LEN, num_online_cpus()); 342 mcelog = kzalloc(sizeof(*mcelog) + mce_log_len * sizeof(struct mce), GFP_KERNEL); 343 if (!mcelog) 344 return -ENOMEM; 345 > 346 strncpy(mcelog->signature, MCE_LOG_SIGNATURE, > sizeof(mcelog->signature)); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
/usr/bin/ld: arch/x86/include/asm/atomic64_32.h:209: undefined reference to `atomic64_inc_386'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 40576e5e63ea5eeab814de7af83ad09dd64134ee x86: alternative.h: use asm_inline for all alternative variants config: um-randconfig-r003-20200526 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): git checkout 40576e5e63ea5eeab814de7af83ad09dd64134ee # save the attached .config to linux build tree make W=1 ARCH=um If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: fs/nfs/write.o: in function `arch_atomic64_inc': arch/x86/include/asm/atomic64_32.h:209: undefined reference to `atomic64_inc_386' /usr/bin/ld: fs/nfs/nfstrace.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: fs/ufs/super.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: fs/affs/super.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: fs/nilfs2/super.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: fs/nilfs2/super.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: fs/nilfs2/segment.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: fs/nilfs2/sysfs.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_cmpxchg': arch/x86/include/asm/atomic64_32.h:76: undefined reference to `cmpxchg8b_emu' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_sub': arch/x86/include/asm/atomic64_32.h:195: undefined reference to `atomic64_sub_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_add': arch/x86/include/asm/atomic64_32.h:180: undefined reference to `atomic64_add_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_add': arch/x86/include/asm/atomic64_32.h:180: undefined reference to `atomic64_add_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-cgroup.o: in function `arch_atomic64_add': arch/x86/include/asm/atomic64_32.h:180: undefined reference to `atomic64_add_386' /usr/bin/ld: block/blk-iolatency.o: in function `arch_atomic64_set': arch/x86/include/asm/atomic64_32.h:109: undefined reference to `atomic64_set_386' /usr/bin/ld: block/blk-iolatency.o: in function `arch_atomic64_read': arch/x86/include/asm/atomic64_32.h:123: undefined reference to `atomic64_read_386' /usr/bin/ld: block/blk-iolatency.o:
[tip:x86/cleanups] BUILD SUCCESS 67d631b7c05eff955ccff4139327f0f92a5117e5
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups branch HEAD: 67d631b7c05eff955ccff4139327f0f92a5117e5 x86/mm: Stop printing BRK addresses elapsed time: 5068m configs tested: 105 configs skipped: 1 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig sh landisk_defconfig arc allyesconfig c6xevmc6472_defconfig mips ath25_defconfig arm s3c2410_defconfig h8300 h8s-sim_defconfig arm ebsa110_defconfig arcvdk_hs38_defconfig mips lasat_defconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200526 i386 randconfig-a004-20200526 i386 randconfig-a003-20200526 i386 randconfig-a002-20200526 i386 randconfig-a005-20200526 i386 randconfig-a006-20200526 x86_64 randconfig-a015-20200526 x86_64 randconfig-a013-20200526 x86_64 randconfig-a016-20200526 x86_64 randconfig-a012-20200526 x86_64 randconfig-a014-20200526 x86_64 randconfig-a011-20200526 i386 randconfig-a013-20200526 i386 randconfig-a015-20200526 i386 randconfig-a012-20200526 i386 randconfig-a011-20200526 i386 randconfig-a016-20200526 i386 randconfig-a014-20200526 riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig sparc defconfig sparc64 allnoconfig sparcallyesconfig sparc64 defconfig sparc64 allyesconfig sparc64 allmodconfig umallnoconfig um defconfig um allmodconfig um allyesconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64
[tip:x86/urgent] BUILD SUCCESS 187b96db5ca79423618dfa29a05c438c34f9e1f0
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent branch HEAD: 187b96db5ca79423618dfa29a05c438c34f9e1f0 x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks elapsed time: 5936m configs tested: 106 configs skipped: 74 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig sh landisk_defconfig arc allyesconfig c6xevmc6472_defconfig mips ath25_defconfig arm s3c2410_defconfig sh se7722_defconfig arcvdk_hs38_defconfig arm gemini_defconfig sh sdk7786_defconfig powerpc ppc64e_defconfig h8300 defconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig m68k allyesconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig mips allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200526 i386 randconfig-a004-20200526 i386 randconfig-a003-20200526 i386 randconfig-a006-20200526 i386 randconfig-a002-20200526 i386 randconfig-a005-20200526 x86_64 randconfig-a015-20200526 x86_64 randconfig-a013-20200526 x86_64 randconfig-a016-20200526 x86_64 randconfig-a012-20200526 x86_64 randconfig-a014-20200526 x86_64 randconfig-a011-20200526 i386 randconfig-a013-20200526 i386 randconfig-a015-20200526 i386 randconfig-a012-20200526 i386 randconfig-a011-20200526 i386 randconfig-a016-20200526 i386 randconfig-a014-20200526 riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig sparc defconfig sparc64 allnoconfig sparcallyesconfig sparc64 defconfig sparc64 allyesconfig sparc64 allmodconfig um allmodconfig umallnoconfig um defconfig um allyesconfig x86_64 rhel x86_64
Re: [PATCH] vdpa: bypass waking up vhost_woker for vdpa vq kick
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Zhu-Lingshan/vdpa-bypass-waking-up-vhost_woker-for-vdpa-vq-kick/20200526-133819 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: alpha-allyesconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/vhost/vdpa.c:290:6: warning: no previous prototype for >> 'vhost_vdpa_poll_stop' [-Wmissing-prototypes] 290 | void vhost_vdpa_poll_stop(struct vhost_virtqueue *vq) | ^~~~ >> drivers/vhost/vdpa.c:295:5: warning: no previous prototype for >> 'vhost_vdpa_poll_start' [-Wmissing-prototypes] 295 | int vhost_vdpa_poll_start(struct vhost_virtqueue *vq) | ^ >> drivers/vhost/vdpa.c:750:6: warning: no previous prototype for >> 'vhost_vdpa_poll_init' [-Wmissing-prototypes] 750 | void vhost_vdpa_poll_init(struct vhost_dev *dev) | ^~~~ vim +/vhost_vdpa_poll_stop +290 drivers/vhost/vdpa.c 276 277 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) 278 { 279 struct vdpa_device *vdpa = v->vdpa; 280 const struct vdpa_config_ops *ops = vdpa->config; 281 u16 num; 282 283 num = ops->get_vq_num_max(vdpa); 284 285 if (copy_to_user(argp, , sizeof(num))) 286 return -EFAULT; 287 288 return 0; 289 } > 290 void vhost_vdpa_poll_stop(struct vhost_virtqueue *vq) 291 { 292 vhost_poll_stop(>poll); 293 } 294 > 295 int vhost_vdpa_poll_start(struct vhost_virtqueue *vq) 296 { 297 struct vhost_poll *poll = >poll; 298 struct file *file = vq->kick; 299 __poll_t mask; 300 301 302 if (poll->wqh) 303 return 0; 304 305 mask = vfs_poll(file, >table); 306 if (mask) 307 vq->handle_kick(>poll.work); 308 if (mask & EPOLLERR) { 309 vhost_poll_stop(poll); 310 return -EINVAL; 311 } 312 313 return 0; 314 } 315 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[rcu:dev.2020.05.23a] BUILD SUCCESS 80c56e3bab7761812ee57f8cb0b01a0e42021f17
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.23a branch HEAD: 80c56e3bab7761812ee57f8cb0b01a0e42021f17 rcu: Mark rcu_nmi_enter() call to rcu_cleanup_after_idle() noinstr i386-tinyconfig vmlinux size: TOTAL TEXT -224 -224 8747b07d1944 Merge branch 'kcsan-dev.2020.04.13c' into HEAD 0 0 03e8e094dad9 Merge branch 'lkmm-dev.2020.05.16a' into HEAD 0 0 17e0ee2a3ec9 torture: Remove qemu dependency on EFI firmware 0 0 c58148777978 torture: Add script to smoke-test commits in a branch +38 +38 396a79cc6818 fork: Annotate a data race in vm_area_dup() 0 0 8035e0fc710a x86/mm/pat: Mark an intentional data race 0 0 d7a51c24ee4b rculist: Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init 0 0 e5efa2f1b7b6 locktorture: Use true and false to assign to bool variables 0 0 7514d7f181ab srcu: Fix a typo in comment "amoritized"->"amortized" 0 0 9dbd776542e3 rcu: Simplify the calculation of rcu_state.ncpus 0 0 df12d657bcc0 docs: RCU: Convert checklist.txt to ReST 0 0 fdfeb779e1bd docs: RCU: Convert lockdep-splat.txt to ReST 0 0 68b5951f7eb2 docs: RCU: Convert lockdep.txt to ReST 0 0 ce9edc0c8a82 docs: RCU: Convert rculist_nulls.txt to ReST 0 0 1bee818b03c7 docs: RCU: Convert torture.txt to ReST 0 0 9100131711bc docs: RCU: Convert rcuref.txt to ReST 0 0 080f194cfa87 docs: RCU: Convert stallwarn.txt to ReST 0 0 6999f47d8456 docs: RCU: Don't duplicate chapter names in rculist_nulls.rs 0 0 55ce2e8178f2 rcutorture: Add races with task-exit processing 0 0 1c60a5e52538 torture: Set configfile variable to current scenario 0 0 9969401f1706 rcutorture: Handle non-statistic bang-string error messages 0 0 6f099e1b362b rcutorture: NULL rcu_torture_current earlier in cleanup code 0 0 6816417616c4 kcsan: Add test suite 0 0 848d16e04f52 doc: Timer problems can cause RCU CPU stall warnings 0 0 2364a9f967ec rcu: Add callbacks-invoked counters 0 0 2775724beeef rcu: Add comment documenting rcu_callback_map's purpose 0 0 bfd78bca7bdf Revert b8c17e6664c4 ("rcu: Maintain special bits at bottom o 0 0 8903088434e7 rcu/tree: Add better tracing for dyntick-idle 0 0 c0601bb42994 rcu/tree: Clean up dynticks counter usage 0 0 3f3baaf3ac07 rcu/tree: Remove dynticks_nmi_nesting counter 0 0 725e4ad9e020 trace: events: rcu: Change description of rcu_dyntick trace +1 0 a9b73fda34ec torture: Remove whitespace from identify_qemu_vcpus output 0 0 6267bacdff81 torture: Add --allcpus argument to the kvm.sh script -1 0 5c6aa32472cb rcu: Grace-period-kthread related sleeps to idle priority +1 0 f334f4fee6e2 rcu: Priority-boost-related sleeps to idle priority -1 0 d49cb59f19b6 rcu: No-CBs-related sleeps to idle priority +1 0 4cc4ce9b67ec rcu: Expedited grace-period sleeps to idle priority 0 0 cef0575caddb rcu-tasks: Convert sleeps to idle priority 0 0 988aef3524e2 fs/btrfs: Add cond_resched() for try_release_extent_mapping( 0 0 70ca490c7ab3 locking/osq_lock: Annotate a data race in osq_lock 0 0 80fa4f7b355d doc: Tasks RCU must protect instructions before trampoline -1 0 a9e5aaae95b0 ubsan, kcsan: Don't combine sanitizer with kcov on clang 0 0 39cedc46ebcc doc: Update comment from rsp->rcu_gp_seq to rsp->gp_seq 0 0 e64b95584eb2 tick/nohz: Narrow down noise while setting current task's ti 0 0 72c5501fac76 rcu: fix some kernel-doc warnings 0 0 eead282434f1 rcu: Remove initialized but unused rnp from check_slow_task( 0 0 80c56e3bab77 rcu: Mark rcu_nmi_enter() call to rcu_cleanup_after_idle() n -177 -177 b1fcf9b83c41..80c56e3bab77 (ALL COMMITS) elapsed time: 3564m configs tested: 103 configs skipped: 1
[rcu:dev.2020.05.25a] BUILD SUCCESS 1e9451642683146552713c5ce6d269ae378eacd5
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.25a branch HEAD: 1e9451642683146552713c5ce6d269ae378eacd5 fixup! torture: Add refperf to the rcutorture scripting i386-tinyconfig vmlinux size: TOTAL TEXT -224 -224 8747b07d1944 Merge branch 'kcsan-dev.2020.04.13c' into HEAD 0 0 03e8e094dad9 Merge branch 'lkmm-dev.2020.05.16a' into HEAD 0 0 17e0ee2a3ec9 torture: Remove qemu dependency on EFI firmware 0 0 c58148777978 torture: Add script to smoke-test commits in a branch +38 +38 396a79cc6818 fork: Annotate a data race in vm_area_dup() 0 0 8035e0fc710a x86/mm/pat: Mark an intentional data race 0 0 d7a51c24ee4b rculist: Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init 0 0 e5efa2f1b7b6 locktorture: Use true and false to assign to bool variables 0 0 7514d7f181ab srcu: Fix a typo in comment "amoritized"->"amortized" 0 0 9dbd776542e3 rcu: Simplify the calculation of rcu_state.ncpus 0 0 df12d657bcc0 docs: RCU: Convert checklist.txt to ReST 0 0 fdfeb779e1bd docs: RCU: Convert lockdep-splat.txt to ReST 0 0 68b5951f7eb2 docs: RCU: Convert lockdep.txt to ReST 0 0 ce9edc0c8a82 docs: RCU: Convert rculist_nulls.txt to ReST 0 0 1bee818b03c7 docs: RCU: Convert torture.txt to ReST 0 0 9100131711bc docs: RCU: Convert rcuref.txt to ReST 0 0 080f194cfa87 docs: RCU: Convert stallwarn.txt to ReST 0 0 6999f47d8456 docs: RCU: Don't duplicate chapter names in rculist_nulls.rs 0 0 55ce2e8178f2 rcutorture: Add races with task-exit processing 0 0 1c60a5e52538 torture: Set configfile variable to current scenario 0 0 9969401f1706 rcutorture: Handle non-statistic bang-string error messages 0 0 6f099e1b362b rcutorture: NULL rcu_torture_current earlier in cleanup code 0 0 6816417616c4 kcsan: Add test suite 0 0 848d16e04f52 doc: Timer problems can cause RCU CPU stall warnings 0 0 2364a9f967ec rcu: Add callbacks-invoked counters 0 0 2775724beeef rcu: Add comment documenting rcu_callback_map's purpose 0 0 bfd78bca7bdf Revert b8c17e6664c4 ("rcu: Maintain special bits at bottom o 0 0 8903088434e7 rcu/tree: Add better tracing for dyntick-idle 0 0 c0601bb42994 rcu/tree: Clean up dynticks counter usage 0 0 3f3baaf3ac07 rcu/tree: Remove dynticks_nmi_nesting counter 0 0 725e4ad9e020 trace: events: rcu: Change description of rcu_dyntick trace +1 0 a9b73fda34ec torture: Remove whitespace from identify_qemu_vcpus output 0 0 6267bacdff81 torture: Add --allcpus argument to the kvm.sh script -1 0 5c6aa32472cb rcu: Grace-period-kthread related sleeps to idle priority +1 0 f334f4fee6e2 rcu: Priority-boost-related sleeps to idle priority -1 0 d49cb59f19b6 rcu: No-CBs-related sleeps to idle priority +1 0 4cc4ce9b67ec rcu: Expedited grace-period sleeps to idle priority 0 0 cef0575caddb rcu-tasks: Convert sleeps to idle priority 0 0 988aef3524e2 fs/btrfs: Add cond_resched() for try_release_extent_mapping( 0 0 70ca490c7ab3 locking/osq_lock: Annotate a data race in osq_lock 0 0 80fa4f7b355d doc: Tasks RCU must protect instructions before trampoline 0 0 1b397c884f7a doc: Update comment from rsp->rcu_gp_seq to rsp->gp_seq 0 0 dedad0a2118a tick/nohz: Narrow down noise while setting current task's ti 0 0 3055759634b2 rcu: fix some kernel-doc warnings 0 0 cf10e7d90417 rcu: Remove initialized but unused rnp from check_slow_task( 0 0 af17eef88571 rcu: Mark rcu_nmi_enter() call to rcu_cleanup_after_idle() n 0 0 55f712e9bd7b rcuperf: Remove useless while loops around wait_event 0 0 786a25497743 refperf: Add a test to measure performance of read-side sync 0 0 dc58d3c31f1f rcuperf: Add comments explaining the high reader overhead 0 0 a694aa3fc22c torture: Add refperf to the rcutorture
Re: [PATCH 2/2] clk: Remove CONFIG_ARCH_HISI check for subdir hisilicon
Hi Tiezhu, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tiezhu-Yang/clk-hisilicon-Use-correct-return-value-about-hisi_reset_init/20200525-113342 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: i386-tinyconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_fixed_rate': >> clk.c:(.text+0x9e): undefined reference to `clk_register_fixed_rate' >> ld: clk.c:(.text+0xdf): undefined reference to `clk_unregister_fixed_rate' ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_fixed_factor': >> clk.c:(.text+0x117): undefined reference to `clk_register_fixed_factor' >> ld: clk.c:(.text+0x158): undefined reference to `clk_unregister_fixed_factor' ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_mux': >> clk.c:(.text+0x1cb): undefined reference to `clk_register_mux_table' >> ld: clk.c:(.text+0x1f2): undefined reference to `clk_register_clkdev' >> ld: clk.c:(.text+0x21a): undefined reference to `clk_unregister_mux' ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_divider': >> clk.c:(.text+0x2c9): undefined reference to `clk_register_divider_table' ld: clk.c:(.text+0x2e3): undefined reference to `clk_register_clkdev' >> ld: clk.c:(.text+0x311): undefined reference to `clk_unregister_divider' ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_gate': >> clk.c:(.text+0x36c): undefined reference to `clk_register_gate' ld: clk.c:(.text+0x393): undefined reference to `clk_register_clkdev' >> ld: clk.c:(.text+0x3bb): undefined reference to `clk_unregister_gate' ld: drivers/clk/hisilicon/clk.o: in function `hisi_clk_register_gate_sep': >> clk.c:(.text+0x425): undefined reference to `clk_register_clkdev' ld: drivers/clk/hisilicon/clk.o: in function `hi6220_clk_register_divider': >> clk.c:(.init.text+0x5d): undefined reference to `clk_register_clkdev' ld: drivers/clk/hisilicon/clkgate-separated.o: in function `hisi_register_clkgate_sep': >> clkgate-separated.c:(.text+0xf0): undefined reference to `clk_register' ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_set_rate': >> clkdivider-hi6220.c:(.text+0x16): undefined reference to `divider_get_val' ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_recalc_rate': >> clkdivider-hi6220.c:(.text+0x8a): undefined reference to >> `divider_recalc_rate' ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_clkdiv_round_rate': >> clkdivider-hi6220.c:(.text+0xa9): undefined reference to `clk_hw_get_parent' >> ld: clkdivider-hi6220.c:(.text+0xbd): undefined reference to >> `divider_round_rate_parent' ld: drivers/clk/hisilicon/clkdivider-hi6220.o: in function `hi6220_register_clkdiv': >> clkdivider-hi6220.c:(.text+0x1c5): undefined reference to `clk_register' ld: drivers/clk/hisilicon/clk-hisi-phase.o: in function `clk_register_hisi_phase': >> clk-hisi-phase.c:(.text+0x121): undefined reference to `devm_clk_register' --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:locking/kcsan] BUILD SUCCESS b91caf58f6fb88738f444cf40d247475c367de47
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/kcsan branch HEAD: b91caf58f6fb88738f444cf40d247475c367de47 compiler_types.h, kasan: Use __SANITIZE_ADDRESS__ instead of CONFIG_KASAN to decide inlining elapsed time: 5953m configs tested: 98 configs skipped: 1 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig m68k allyesconfig mips allyesconfig sparcallyesconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig shallnoconfig microblazeallnoconfig arc allyesconfig sh allmodconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig i386 randconfig-a001-20200524 i386 randconfig-a004-20200524 i386 randconfig-a006-20200524 i386 randconfig-a003-20200524 i386 randconfig-a002-20200524 i386 randconfig-a005-20200524 x86_64 randconfig-a013-20200524 x86_64 randconfig-a015-20200524 x86_64 randconfig-a016-20200524 x86_64 randconfig-a012-20200524 x86_64 randconfig-a014-20200524 x86_64 randconfig-a011-20200524 i386 randconfig-a013-20200524 i386 randconfig-a015-20200524 i386 randconfig-a012-20200524 i386 randconfig-a011-20200524 i386 randconfig-a016-20200524 i386 randconfig-a014-20200524 riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig x86_64 defconfig sparc defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig sparc64 defconfig um allmodconfig umallnoconfig um defconfig um allyesconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation
Re: [PATCH v9 07/14] KVM: Don't allocate dirty bitmap if dirty ring is enabled
Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.7-rc7] [cannot apply to kvm/linux-next tip/auto-latest linux/master next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interface/20200524-070926 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/x86/kvm/mmu/mmu.c:1280:10: warning: expression which evaluates to zero >> treated as a null pointer constant of type 'struct kvm_memory_slot *' >> [-Wnon-literal-null-conversion] return false; ^ 1 warning generated. vim +1280 arch/x86/kvm/mmu/mmu.c 1269 1270 static struct kvm_memory_slot * 1271 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, 1272 bool no_dirty_log) 1273 { 1274 struct kvm_memory_slot *slot; 1275 1276 slot = kvm_vcpu_gfn_to_memslot(vcpu, gfn); 1277 if (!slot || slot->flags & KVM_MEMSLOT_INVALID) 1278 return NULL; 1279 if (no_dirty_log && kvm_slot_dirty_track_enabled(slot)) > 1280 return false; 1281 1282 return slot; 1283 } 1284 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v3 5/5] PCI/AER: Replace pcie_aer_get_firmware_first() with pcie_aer_is_native()
Hi, I love your patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on next-20200526] [cannot apply to v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/sathyanarayanan-kuppuswamy-linux-intel-com/Remove-AER-HEST-table-parser/20200525-053721 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next config: arm-gemini_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): In file included from drivers/pci/pci-driver.c:7: include/linux/pci.h:1554:31: error: 'false' redeclared as different kind of symbol 1554 | #define pcie_ports_dpc_native false | ^ drivers/pci/pcie/portdrv.h:28:13: note: in expansion of macro 'pcie_ports_dpc_native' 28 | extern bool pcie_ports_dpc_native; | ^ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/mod_devicetable.h:12, from include/linux/pci.h:27, from drivers/pci/pci-driver.c:7: include/linux/stddef.h:11:2: note: previous definition of 'false' was here 11 | false = 0, | ^ In file included from drivers/pci/pci-driver.c:22: >> drivers/pci/pcie/portdrv.h:35:7: error: expected ';' before 'inline' 35 | statuc inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; } | ^ | ; vim +35 drivers/pci/pcie/portdrv.h 29 30 #ifdef CONFIG_PCIEAER 31 int pcie_aer_init(void); 32 int pcie_aer_is_native(struct pci_dev *dev); 33 #else 34 static inline int pcie_aer_init(void) { return 0; } > 35 statuc inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; } 36 #endif 37 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v3 4/5] ACPI/PCI: Ignore _OSC DPC negotiation result if pcie_ports_dpc_native is set.
Hi, I love your patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/sathyanarayanan-kuppuswamy-linux-intel-com/Remove-AER-HEST-table-parser/20200525-053721 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next config: arm-gemini_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from drivers/pci/pci-driver.c:7: >> include/linux/pci.h:1554:31: error: 'false' redeclared as different kind of >> symbol 1554 | #define pcie_ports_dpc_native false | ^ >> drivers/pci/pcie/portdrv.h:28:13: note: in expansion of macro >> 'pcie_ports_dpc_native' 28 | extern bool pcie_ports_dpc_native; | ^ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/mod_devicetable.h:12, from include/linux/pci.h:27, from drivers/pci/pci-driver.c:7: include/linux/stddef.h:11:2: note: previous definition of 'false' was here 11 | false = 0, | ^ vim +/false +1554 include/linux/pci.h 1546 1547 #ifdef CONFIG_PCIEPORTBUS 1548 extern bool pcie_ports_disabled; 1549 extern bool pcie_ports_native; 1550 extern bool pcie_ports_dpc_native; 1551 #else 1552 #define pcie_ports_disabled true 1553 #define pcie_ports_native false > 1554 #define pcie_ports_dpc_native false 1555 #endif 1556 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[tip:WIP.x86/entry 13/39] include/trace/events/syscalls.h:18:1: note: in expansion of macro 'TRACE_EVENT_FN'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/entry head: e122258fa9a6538fb47d18e6da58f7a02de9b1d3 commit: 7fe6027ef3c397e42702eb8d4fcfa93cf4b2597f [13/39] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY config: x86_64-rhel (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): git checkout 7fe6027ef3c397e42702eb8d4fcfa93cf4b2597f # save the attached .config to linux build tree make W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): arch/x86/entry/common.c:54:24: warning: no previous prototype for 'enter_from_user_mode' [-Wmissing-prototypes] __visible noinstr void enter_from_user_mode(void) ^~~~ arch/x86/entry/common.c:269:24: warning: no previous prototype for 'prepare_exit_to_usermode' [-Wmissing-prototypes] __visible noinstr void prepare_exit_to_usermode(struct pt_regs *regs) ^~~~ arch/x86/entry/common.c:331:24: warning: no previous prototype for 'syscall_return_slowpath' [-Wmissing-prototypes] __visible noinstr void syscall_return_slowpath(struct pt_regs *regs) ^~~ In file included from include/trace/events/xen.h:8:0, from arch/x86/include/asm/xen/hypercall.h:42, from include/xen/events.h:12, from arch/x86/entry/common.c:688: >> include/linux/tracepoint.h:282:20: error: redefinition of >> '__tpstrtab_sys_enter' static const char __tpstrtab_##name[]^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ >> include/trace/events/syscalls.h:18:1: note: in expansion of macro >> 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_enter, ^~ In file included from include/trace/syscall.h:5:0, from include/linux/syscalls.h:85, from arch/x86/entry/common.c:27: include/linux/tracepoint.h:282:20: note: previous definition of '__tpstrtab_sys_enter' was here static const char __tpstrtab_##name[]^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ >> include/trace/events/syscalls.h:18:1: note: in expansion of macro >> 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_enter, ^~ In file included from include/trace/events/xen.h:8:0, from arch/x86/include/asm/xen/hypercall.h:42, from include/xen/events.h:12, from arch/x86/entry/common.c:688: include/linux/tracepoint.h:284:20: error: redefinition of '__tracepoint_sys_enter' struct tracepoint __tracepoint_##name^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ >> include/trace/events/syscalls.h:18:1: note: in expansion of macro >> 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_enter, ^~ In file included from include/trace/syscall.h:5:0, from include/linux/syscalls.h:85, from arch/x86/entry/common.c:27: include/linux/tracepoint.h:284:20: note: previous definition of '__tracepoint_sys_enter' was here struct tracepoint __tracepoint_##name^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ >> include/trace/events/syscalls.h:18:1: note: in expansion of macro >> 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_enter, ^~ In file included from include/trace/events/xen.h:8:0, from arch/x86/include/asm/xen/hypercall.h:42, from include/xen/events.h:12, from arch/x86/entry/common.c:688: >> include/linux/tracepoint.h:282:20: error: redefinition of >> '__tpstrtab_sys_exit' static const char __tpstrtab_##name[]^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ include/trace/events/syscalls.h:44:1: note: in expansion of macro 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_exit, ^~ In file included from include/trace/syscall.h:5:0, from include/linux/syscalls.h:85, from arch/x86/entry/common.c:27: include/linux/tracepoint.h:282:20: note: previous definition of '__tpstrtab_sys_exit' was here static const char __tpstrtab_##name[]^ >> include/trace/define_trace.h:42:2: note: in expansion of macro >> 'DEFINE_TRACE_FN' DEFINE_TRACE_FN(name, reg, unreg) ^~~ include/trace/events/syscalls.h:44:1: note: in expansion of macro 'TRACE_EVENT_FN' TRACE_EVENT_FN(sys_exit, ^~ In file included from include/trace/events/xen.h:8:0, from arch/x86/include/asm/xen/hypercall.h:42, from include/xen/events.h:12
Re: [PATCH v9 07/14] KVM: Don't allocate dirty bitmap if dirty ring is enabled
Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.7-rc7] [cannot apply to kvm/linux-next tip/auto-latest linux/master next-20200522] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interface/20200524-070926 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next :: branch date: 2 days ago :: commit date: 2 days ago compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot cppcheck warnings: (new ones prefixed by >>) >> arch/x86/kvm/mmu/mmu.c:1280:3: warning: Returning an integer in a function >> with pointer return type is not portable. [CastIntegerToAddressAtReturn] return false; ^ arch/x86/kvm/mmu/mmu.c:3725:9: warning: Redundant initialization for 'root'. The initialized value is overwritten before it is read. [redundantInitialization] root = __pa(sp->spt); ^ arch/x86/kvm/mmu/mmu.c:3715:15: note: root is initialized hpa_t root = vcpu->arch.mmu->pae_root[i]; ^ arch/x86/kvm/mmu/mmu.c:3725:9: note: root is overwritten root = __pa(sp->spt); ^ arch/x86/kvm/mmu/mmu.c:3769:8: warning: Redundant initialization for 'root'. The initialized value is overwritten before it is read. [redundantInitialization] root = __pa(sp->spt); ^ arch/x86/kvm/mmu/mmu.c:3758:14: note: root is initialized hpa_t root = vcpu->arch.mmu->root_hpa; ^ arch/x86/kvm/mmu/mmu.c:3769:8: note: root is overwritten root = __pa(sp->spt); ^ arch/x86/kvm/mmu/mmu.c:4670:15: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] const u8 x = BYTE_MASK(ACC_EXEC_MASK); ^ arch/x86/kvm/mmu/mmu.c:4671:15: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] const u8 w = BYTE_MASK(ACC_WRITE_MASK); ^ arch/x86/kvm/mmu/mmu.c:4672:15: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] const u8 u = BYTE_MASK(ACC_USER_MASK); # https://github.com/0day-ci/linux/commit/2c23bd2b96e30ae3814e3e56f01a6234131cb531 git remote add linux-review https://github.com/0day-ci/linux git remote update linux-review git checkout 2c23bd2b96e30ae3814e3e56f01a6234131cb531 vim +1280 arch/x86/kvm/mmu/mmu.c b8e8c8303ff28c arch/x86/kvm/mmu.c Paolo Bonzini 2019-11-04 1269 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1270 static struct kvm_memory_slot * 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1271 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1272 bool no_dirty_log) 05da45583de9b3 arch/x86/kvm/mmu.c Marcelo Tosatti 2008-02-23 1273 { 05da45583de9b3 arch/x86/kvm/mmu.c Marcelo Tosatti 2008-02-23 1274 struct kvm_memory_slot *slot; 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1275 54bf36aac52031 arch/x86/kvm/mmu.c Paolo Bonzini 2015-04-08 1276 slot = kvm_vcpu_gfn_to_memslot(vcpu, gfn); 91b0d268a59dd9 arch/x86/kvm/mmu/mmu.c Paolo Bonzini 2020-01-21 1277 if (!slot || slot->flags & KVM_MEMSLOT_INVALID) 91b0d268a59dd9 arch/x86/kvm/mmu/mmu.c Paolo Bonzini 2020-01-21 1278 return NULL; 2c23bd2b96e30a arch/x86/kvm/mmu/mmu.c Peter Xu2020-05-23 1279 if (no_dirty_log && kvm_slot_dirty_track_enabled(slot)) 2c23bd2b96e30a arch/x86/kvm/mmu/mmu.c Peter Xu2020-05-23 @1280 return false; 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1281 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1282 return slot; 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1283 } 5d163b1c9d6e55 arch/x86/kvm/mmu.c Xiao Guangrong 2011-03-09 1284 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
[rcu:dev.2020.05.25a 51/63] kernel/rcu/refperf.c:298:6: warning: no previous prototype for function 'reset_readers'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.25a head: 1e9451642683146552713c5ce6d269ae378eacd5 commit: 786a25497743696d79592b864cafbfe48787e6e1 [51/63] refperf: Add a test to measure performance of read-side synchronization config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout 786a25497743696d79592b864cafbfe48787e6e1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> kernel/rcu/refperf.c:298:6: warning: no previous prototype for function >> 'reset_readers' [-Wmissing-prototypes] void reset_readers(int n) ^ kernel/rcu/refperf.c:298:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void reset_readers(int n) ^ static >> kernel/rcu/refperf.c:311:5: warning: no previous prototype for function >> 'process_durations' [-Wmissing-prototypes] u64 process_durations(int n) ^ kernel/rcu/refperf.c:311:1: note: declare 'static' if the function is not intended to be used outside of this translation unit u64 process_durations(int n) ^ static 2 warnings generated. vim +/reset_readers +298 kernel/rcu/refperf.c 297 > 298 void reset_readers(int n) 299 { 300 int i; 301 struct reader_task *rt; 302 303 for (i = 0; i < n; i++) { 304 rt = &(reader_tasks[i]); 305 306 rt->last_duration_ns = 0; 307 } 308 } 309 310 // Print the results of each reader and return the sum of all their durations. > 311 u64 process_durations(int n) 312 { 313 int i; 314 struct reader_task *rt; 315 char buf1[64]; 316 char buf[512]; 317 u64 sum = 0; 318 319 buf[0] = 0; 320 sprintf(buf, "Experiment #%d (Format: :)", 321 exp_idx); 322 323 for (i = 0; i <= n && !torture_must_stop(); i++) { 324 rt = &(reader_tasks[i]); 325 sprintf(buf1, "%d: %llu\t", i, rt->last_duration_ns); 326 327 if (i % 5 == 0) 328 strcat(buf, "\n"); 329 strcat(buf, buf1); 330 331 sum += rt->last_duration_ns; 332 } 333 strcat(buf, "\n"); 334 335 PERFOUT("%s\n", buf); 336 337 return sum; 338 } 339 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/mfd/sprd-sc27xx-spi.c:59:23: warning: no previous prototype for 'sprd_pmic_detect_charger_type'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 2a7e7274f3d43d2a072cab25c0035dc994903bb9 mfd: sc27xx: Add USB charger type detection support date: 8 weeks ago config: h8300-randconfig-r006-20200526 (attached as .config) compiler: h8300-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 2a7e7274f3d43d2a072cab25c0035dc994903bb9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/mfd/sprd-sc27xx-spi.c:59:23: warning: no previous prototype for >> 'sprd_pmic_detect_charger_type' [-Wmissing-prototypes] 59 | enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev) | ^ vim +/sprd_pmic_detect_charger_type +59 drivers/mfd/sprd-sc27xx-spi.c 58 > 59 enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev) 60 { 61 struct spi_device *spi = to_spi_device(dev); 62 struct sprd_pmic *ddata = spi_get_drvdata(spi); 63 const struct sprd_pmic_data *pdata = ddata->pdata; 64 enum usb_charger_type type; 65 u32 val; 66 int ret; 67 68 ret = regmap_read_poll_timeout(ddata->regmap, pdata->charger_det, val, 69 (val & SPRD_PMIC_CHG_DET_DONE), 70 SPRD_PMIC_CHG_DET_DELAY_US, 71 SPRD_PMIC_CHG_DET_TIMEOUT); 72 if (ret) { 73 dev_err(>dev, "failed to detect charger type\n"); 74 return UNKNOWN_TYPE; 75 } 76 77 switch (val & SPRD_PMIC_CHG_TYPE_MASK) { 78 case SPRD_PMIC_CDP_TYPE: 79 type = CDP_TYPE; 80 break; 81 case SPRD_PMIC_DCP_TYPE: 82 type = DCP_TYPE; 83 break; 84 case SPRD_PMIC_SDP_TYPE: 85 type = SDP_TYPE; 86 break; 87 default: 88 type = UNKNOWN_TYPE; 89 break; 90 } 91 92 return type; 93 } 94 EXPORT_SYMBOL_GPL(sprd_pmic_detect_charger_type); 95 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/usb/cdns3/drd.c:43:31: sparse: expected void const volatile [noderef] *
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 usb: cdns3: make signed 1 bit bitfields unsigned date: 9 weeks ago config: sh-randconfig-s032-20200526 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 # save the attached .config to linux build tree make W=1 C=1 ARCH=sh CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) ./arch/sh/include/generated/uapi/asm/unistd_32.h:411:37: sparse: sparse: no newline at end of file drivers/usb/cdns3/drd.c:43:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ >> drivers/usb/cdns3/drd.c:43:31: sparse:expected void const volatile >> [noderef] * drivers/usb/cdns3/drd.c:43:31: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:45:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:45:25: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:45:25: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:47:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:47:31: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:47:31: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:49:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:49:25: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:49:25: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:71:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:71:14: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:71:14: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:81:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:81:19: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:81:19: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:114:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:114:9: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:114:9: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:123:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:123:9: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:123:9: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:141:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:141:17: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:141:17: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:144:23: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:144:23: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:144:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:144:23: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:144:23: sparse:got restricted __le32 * drivers/usb/cdns3/drd.c:152:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const volatile [noderef] * @@got [noderef] * @@ drivers/usb/cdns3/drd.c:152:17: sparse:expected void const volatile [noderef] * drivers/usb/cdns3/drd.c:152:17: sparse:got restricted __le32 * drivers/usb/
drivers/spi/spi-meson-spicc.c:363:6: warning: variable 'data' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 0eb707ac7dd7a4329d93d47feada6c9bb5ea8ee9 spi: meson-spicc: adapt burst handling for G12A support date: 2 months ago config: h8300-randconfig-r006-20200526 (attached as .config) compiler: h8300-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 0eb707ac7dd7a4329d93d47feada6c9bb5ea8ee9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/spi/spi-meson-spicc.c: In function 'meson_spicc_reset_fifo': >> drivers/spi/spi-meson-spicc.c:363:6: warning: variable 'data' set but not >> used [-Wunused-but-set-variable] 363 | u32 data; | ^~~~ vim +/data +363 drivers/spi/spi-meson-spicc.c 360 361 static void meson_spicc_reset_fifo(struct meson_spicc_device *spicc) 362 { > 363 u32 data; 364 365 if (spicc->data->has_oen) 366 writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO, 367 SPICC_ENH_MAIN_CLK_AO, 368 spicc->base + SPICC_ENH_CTL0); 369 370 writel_bits_relaxed(SPICC_FIFORST_W1_MASK, SPICC_FIFORST_W1_MASK, 371 spicc->base + SPICC_TESTREG); 372 373 while (meson_spicc_rxready(spicc)) 374 data = readl_relaxed(spicc->base + SPICC_RXDATA); 375 376 if (spicc->data->has_oen) 377 writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO, 0, 378 spicc->base + SPICC_ENH_CTL0); 379 } 380 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/soc/fsl/dpio/qbman-portal.c:661:11: warning: variable 'addr_cena' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 3b2abda7d28c69f564c1157b9b9c21ef40092ee9 soc: fsl: dpio: Replace QMAN array mode with ring mode enqueue date: 3 months ago config: i386-randconfig-r004-20200526 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): git checkout 3b2abda7d28c69f564c1157b9b9c21ef40092ee9 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): drivers/soc/fsl/dpio/qbman-portal.c: In function 'qbman_swp_enqueue_multiple_direct': >> drivers/soc/fsl/dpio/qbman-portal.c:661:11: warning: variable 'addr_cena' >> set but not used [-Wunused-but-set-variable] uint64_t addr_cena; ^ drivers/soc/fsl/dpio/qbman-portal.c: In function 'qbman_swp_enqueue_multiple_desc_direct': drivers/soc/fsl/dpio/qbman-portal.c:869:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] addr_cena = (uint64_t)s->addr_cena; ^ drivers/soc/fsl/dpio/qbman-portal.c:825:11: warning: variable 'addr_cena' set but not used [-Wunused-but-set-variable] uint64_t addr_cena; ^ vim +/addr_cena +661 drivers/soc/fsl/dpio/qbman-portal.c 638 639 /** 640 * qbman_swp_enqueue_multiple_direct() - Issue a multi enqueue command 641 * using one enqueue descriptor 642 * @s: the software portal used for enqueue 643 * @d: the enqueue descriptor 644 * @fd: table pointer of frame descriptor table to be enqueued 645 * @flags: table pointer of QBMAN_ENQUEUE_FLAG_DCA flags, not used if NULL 646 * @num_frames: number of fd to be enqueued 647 * 648 * Return the number of fd enqueued, or a negative error number. 649 */ 650 static 651 int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s, 652const struct qbman_eq_desc *d, 653const struct dpaa2_fd *fd, 654uint32_t *flags, 655int num_frames) 656 { 657 uint32_t *p = NULL; 658 const uint32_t *cl = (uint32_t *)d; 659 uint32_t eqcr_ci, eqcr_pi, half_mask, full_mask; 660 int i, num_enqueued = 0; > 661 uint64_t addr_cena; 662 663 spin_lock(>access_spinlock); 664 half_mask = (s->eqcr.pi_ci_mask>>1); 665 full_mask = s->eqcr.pi_ci_mask; 666 667 if (!s->eqcr.available) { 668 eqcr_ci = s->eqcr.ci; 669 p = s->addr_cena + QBMAN_CENA_SWP_EQCR_CI; 670 s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); 671 672 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, 673 eqcr_ci, s->eqcr.ci); 674 if (!s->eqcr.available) { 675 spin_unlock(>access_spinlock); 676 return 0; 677 } 678 } 679 680 eqcr_pi = s->eqcr.pi; 681 num_enqueued = (s->eqcr.available < num_frames) ? 682 s->eqcr.available : num_frames; 683 s->eqcr.available -= num_enqueued; 684 /* Fill in the EQCR ring */ 685 for (i = 0; i < num_enqueued; i++) { 686 p = (s->addr_cena + QBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask)); 687 /* Skip copying the verb */ 688 memcpy([1], [1], EQ_DESC_SIZE_WITHOUT_FD - 1); 689 memcpy([EQ_DESC_SIZE_FD_START/sizeof(uint32_t)], 690 [i], sizeof(*fd)); 691 eqcr_pi++; 692 } 693 694 dma_wmb(); 695 696 /* Set the verb byte, have to substitute in the valid-bit */ 697 eqcr_pi = s->eqcr.pi; 698 for (i = 0; i < num_enqueued; i++) { 699 p = (s->addr_cena + QBMAN_CENA_SWP_EQCR(eqcr_pi & half_mask)); 700 p[0] = cl[0] | s->eqcr.pi_vb; 701 if (flags && (flags[i] & QBMAN_ENQUEUE_FLAG_DCA)) { 702 struct qbman_eq_desc *d = (struct qbman_eq_desc *)p; 703 704 d->dca = (1 << QB_ENQUEUE_CMD_DCA_EN_SHIFT) | 705 ((flags[i]) & QBMAN_EQCR_DCA_IDXMASK); 706 } 707 eqcr_pi++; 708 if (!(eqcr_pi & half_mask)) 709
arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b85051e755b0e9d6dd8f17ef1da083851b83287d commit: 1cc9a21b0bb36debdf96dbcc4b139d6639373018 powerpc/boot: Add lzma support for uImage config: powerpc-randconfig-r012-20200520 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 1cc9a21b0bb36debdf96dbcc4b139d6639373018 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): powerpc-linux-ld: arch/powerpc/boot/wrapper.a(decompress.o): in function `partial_decompress': >> arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress' # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1cc9a21b0bb36debdf96dbcc4b139d6639373018 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 1cc9a21b0bb36debdf96dbcc4b139d6639373018 vim +137 arch/powerpc/boot/decompress.c 1b7898ee276b39 Oliver O'Halloran 2016-09-22 102 1b7898ee276b39 Oliver O'Halloran 2016-09-22 103 /** 1b7898ee276b39 Oliver O'Halloran 2016-09-22 104 * partial_decompress - decompresses part or all of a compressed buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 105 * @inbuf: input buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 106 * @input_size: length of the input buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 107 * @outbuf: input buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 108 * @output_size: length of the input buffer 1b7898ee276b39 Oliver O'Halloran 2016-09-22 109 * @skip number of output bytes to ignore 1b7898ee276b39 Oliver O'Halloran 2016-09-22 110 * 1b7898ee276b39 Oliver O'Halloran 2016-09-22 111 * This function takes compressed data from inbuf, decompresses and write it to 1b7898ee276b39 Oliver O'Halloran 2016-09-22 112 * outbuf. Once output_size bytes are written to the output buffer, or the 1b7898ee276b39 Oliver O'Halloran 2016-09-22 113 * stream is exhausted the function will return the number of bytes that were 1b7898ee276b39 Oliver O'Halloran 2016-09-22 114 * decompressed. Otherwise it will return whatever error code the decompressor 1b7898ee276b39 Oliver O'Halloran 2016-09-22 115 * reported (NB: This is specific to each decompressor type). 1b7898ee276b39 Oliver O'Halloran 2016-09-22 116 * 1b7898ee276b39 Oliver O'Halloran 2016-09-22 117 * The skip functionality is mainly there so the program and discover 1b7898ee276b39 Oliver O'Halloran 2016-09-22 118 * the size of the compressed image so that it can ask firmware (if present) 1b7898ee276b39 Oliver O'Halloran 2016-09-22 119 * for an appropriately sized buffer. 1b7898ee276b39 Oliver O'Halloran 2016-09-22 120 */ 1b7898ee276b39 Oliver O'Halloran 2016-09-22 121 long partial_decompress(void *inbuf, unsigned long input_size, 1b7898ee276b39 Oliver O'Halloran 2016-09-22 122void *outbuf, unsigned long output_size, unsigned long _skip) 1b7898ee276b39 Oliver O'Halloran 2016-09-22 123 { 1b7898ee276b39 Oliver O'Halloran 2016-09-22 124int ret; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 125 1b7898ee276b39 Oliver O'Halloran 2016-09-22 126/* 1b7898ee276b39 Oliver O'Halloran 2016-09-22 127 * The skipped bytes needs to be included in the size of data we want 1b7898ee276b39 Oliver O'Halloran 2016-09-22 128 * to decompress. 1b7898ee276b39 Oliver O'Halloran 2016-09-22 129 */ 1b7898ee276b39 Oliver O'Halloran 2016-09-22 130output_size += _skip; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 131 1b7898ee276b39 Oliver O'Halloran 2016-09-22 132decompressed_bytes = 0; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 133output_buffer = outbuf; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 134limit = output_size; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 135skip = _skip; 1b7898ee276b39 Oliver O'Halloran 2016-09-22 136 1b7898ee276b39 Oliver O'Halloran 2016-09-22 @137ret = __decompress(inbuf, input_size, NULL, flush, outbuf, :: The code at line 137 was first introduced by commit :: 1b7898ee276b39e54d870dc4ef3374f663d0b426 powerpc/boot: Use the pre-boot decompression API :: TO: Oliver O'Halloran :: CC: Michael Ellerman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
[PATCH] ASoC: fix semicolon.cocci warnings
From: kbuild test robot sound/soc/codecs/zl38060.c:298:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 52e8a94baf90 ("ASoC: Add initial ZL38060 driver") CC: Sven Van Asbroeck Signed-off-by: kbuild test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.8 head: f202272cabf276441174dc05ad8b94d3c1174877 commit: 52e8a94baf9026276fcdc9ff21a50dc2ca0bc94b [26/131] ASoC: Add initial ZL38060 driver zl38060.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/codecs/zl38060.c +++ b/sound/soc/codecs/zl38060.c @@ -295,7 +295,7 @@ static int zl38_hw_params(struct snd_pcm break; default: return -EINVAL; - }; + } err = regmap_update_bits(priv->regmap, REG_TDMA_CFG_CLK, CFG_CLK_FSRATE_MASK, fsrate);
Re: [PATCH v9 05/14] KVM: X86: Implement ring-based dirty memory tracking
Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.7-rc7] [cannot apply to kvm/linux-next tip/auto-latest linux/master next-20200522] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interface/20200524-070926 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-allyesconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): >> arch/x86/kvm/../../../virt/kvm/dirty_ring.c:33:6: warning: no previous >> prototype for 'kvm_dirty_ring_full' [-Wmissing-prototypes] bool kvm_dirty_ring_full(struct kvm_dirty_ring *ring) ^~~ -- arch/x86/kvm/vmx/vmx.c: In function 'init_rmode_identity_map': >> arch/x86/kvm/vmx/vmx.c:3472:12: warning: variable 'identity_map_pfn' set but >> not used [-Wunused-but-set-variable] kvm_pfn_t identity_map_pfn; ^~~~ vim +/kvm_dirty_ring_full +33 arch/x86/kvm/../../../virt/kvm/dirty_ring.c 32 > 33 bool kvm_dirty_ring_full(struct kvm_dirty_ring *ring) 34 { 35 return kvm_dirty_ring_used(ring) >= ring->size; 36 } 37 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
Re: [PATCH v9 05/14] KVM: X86: Implement ring-based dirty memory tracking
Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on vhost/linux-next] [also build test WARNING on linus/master v5.7-rc7] [cannot apply to kvm/linux-next tip/auto-latest linux/master next-20200522] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peter-Xu/KVM-Dirty-ring-interface/20200524-070926 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: s390-randconfig-s002-20200524 (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty # save the attached .config to linux build tree make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_page_in_dirty_ring': >> arch/s390/kvm/../../../virt/kvm/kvm_main.c:2932:16: warning: comparison of >> unsigned expression >= 0 is always true [-Wtype-limits] 2932 | return (pgoff >= KVM_DIRTY_LOG_PAGE_OFFSET) && |^~ vim +2932 arch/s390/kvm/../../../virt/kvm/kvm_main.c 2926 2927 static bool kvm_page_in_dirty_ring(struct kvm *kvm, unsigned long pgoff) 2928 { 2929 if (!KVM_DIRTY_LOG_PAGE_OFFSET) 2930 return false; 2931 > 2932 return (pgoff >= KVM_DIRTY_LOG_PAGE_OFFSET) && 2933 (pgoff < KVM_DIRTY_LOG_PAGE_OFFSET + 2934 kvm->dirty_ring_size / PAGE_SIZE); 2935 } 2936 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
undefined reference to `start_isolate_page_range'
Hi Michal, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9cb1fd0efd195590b828b9b865421ad345a4a145 commit: 2602276d3d3811b1a48c48113042cd75fcbfc27d microblaze: Wire CMA allocator date: 4 months ago config: microblaze-randconfig-r026-20200524 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 2602276d3d3811b1a48c48113042cd75fcbfc27d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): microblaze-linux-ld: mm/page_alloc.o: in function `alloc_contig_range': >> (.text+0xd6d0): undefined reference to `start_isolate_page_range' microblaze-linux-ld: (.text+0xd944): undefined reference to `test_pages_isolated' microblaze-linux-ld: (.text+0xd9fc): undefined reference to `undo_isolate_page_range' --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 98790bbac4db1697212ce9462ec35ca09c4a2810 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 6 months ago config: s390-randconfig-s002-20200524 (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-240-gf0fe1cd9-dirty git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f # save the attached .config to linux build tree make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in >> argument 1 (different address spaces) @@expected void *s @@got char >> [noderef] > drivers/video/fbdev/sstfb.c:337:9: sparse:expected void *s drivers/video/fbdev/sstfb.c:337:9: sparse:got char [noderef] *screen_base include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@expected unsigned int [usertype] val @@got restrunsigned int [usertype] val @@ include/asm-generic/io.h:225:22: sparse:expected unsigned int [usertype] val include/asm-generic/io.h:225:22: sparse:got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@expected unsigned int [usertype] val @@got restrunsigned int [usertype] val @@ include/asm-generic/io.h:225:22: sparse:expected unsigned int [usertype] val include/asm-generic/io.h:225:22: sparse:got restricted __le32 [usertype] include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@expected unsigned int [usertype] val @@got restrunsigned int [usertype] val @@ include/asm-generic/io.h:225:22: sparse:expected unsigned int [usertype] val include/asm-generic/io.h:225:22: sparse:got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@expected unsigned int [usertype] val @@got restrunsigned int [usertype] val @@ include/asm-generic/io.h:225:22: sparse:expected unsigned int [usertype] val include/asm-generic/io.h:225:22: sparse:got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@expected unsigned int [usertype] val @@got restrunsigned int [usertype] val @@ include/asm-generic/io.h:225:22: sparse:expected unsigned int [usertype] val include/asm-generic/io.h:225:22: sparse:got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to r
sound/soc/codecs/tlv320adcx140.c:751:2: note: in expansion of macro 'if'
Hi Dan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 98790bbac4db1697212ce9462ec35ca09c4a2810 commit: 2e4249f58074ec93746df3a902d1835b7edfef49 ASoC: tlv320adcx140: Fix mic_bias and vref device tree verification date: 3 months ago config: openrisc-randconfig-r001-20200524 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 2e4249f58074ec93746df3a902d1835b7edfef49 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): sound/soc/codecs/tlv320adcx140.c: In function 'adcx140_reset': sound/soc/codecs/tlv320adcx140.c:551:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 551 | int ret = 0; | ^~~ In file included from include/linux/kernel.h:11, from include/linux/list.h:9, from include/linux/module.h:12, from sound/soc/codecs/tlv320adcx140.c:5: sound/soc/codecs/tlv320adcx140.c: In function 'adcx140_codec_probe': sound/soc/codecs/tlv320adcx140.c:751:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) |^~~~ >> sound/soc/codecs/tlv320adcx140.c:751:2: note: in expansion of macro 'if' 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^~ sound/soc/codecs/tlv320adcx140.c:751:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ >> sound/soc/codecs/tlv320adcx140.c:751:2: note: in expansion of macro 'if' 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^~ sound/soc/codecs/tlv320adcx140.c:751:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^ include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value' 69 | (cond) ? | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) |^~ >> sound/soc/codecs/tlv320adcx140.c:751:2: note: in expansion of macro 'if' 751 | if (bias_source < ADCX140_MIC_BIAS_VAL_VREF || | ^~ sound/soc/codecs/tlv320adcx140.c:762:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 762 | if (vref_source < ADCX140_MIC_BIAS_VREF_275V || | ^ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) |^~~~ sound/soc/codecs/tlv320adcx140.c:762:2: note: in expansion of macro 'if' 762 | if (vref_source < ADCX140_MIC_BIAS_VREF_275V || | ^~ sound/soc/codecs/tlv320adcx140.c:762:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 762 | if (vref_source < ADCX140_MIC_BIAS_VREF_275V || | ^ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ sound/soc/codecs/tlv320adcx140.c:762:2: note: in expansion of macro 'if' 762 | if (vref_source < ADCX140_MIC_BIAS_VREF_275V || | ^~ sound/soc/codecs/tlv320adcx140.c:762:18: warning: comparison is always false due to limited range of data type [-Wtype-limits] 762 | if (vref_source < ADCX140_MIC_BIAS_VREF_275V || | ^ include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value' 69 | (cond) ? | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) |^~ sound/soc/codecs/tlv320adcx140.c:762:2: note: in expansion of
include/linux/compiler.h:344:38: error: call to '__compiletime_assert_172' declared with attribute error: BUILD_BUG_ON failed: KASAN_SHADOW_START & ~PGDIR_MASK
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 051143e1602d90ea71887d92363edd539d411de5 commit: 305d60012304684bd59ea1f67703e51662e4906a powerpc/kasan: add missing/lost Makefile config: powerpc-randconfig-r024-20200522 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 305d60012304684bd59ea1f67703e51662e4906a # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): arch/powerpc/mm/kasan/kasan_init_32.c:135:7: warning: no previous prototype for 'module_alloc' [-Wmissing-prototypes] 135 | void *module_alloc(unsigned long size) | ^~~~ In file included from include/linux/kernel.h:11, from arch/powerpc/include/asm/page.h:15, from arch/powerpc/include/asm/kasan.h:17, from include/linux/kasan.h:14, from arch/powerpc/mm/kasan/kasan_init_32.c:5: arch/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_early_init': >> include/linux/compiler.h:344:38: error: call to '__compiletime_assert_172' >> declared with attribute error: BUILD_BUG_ON failed: KASAN_SHADOW_START & >> ~PGDIR_MASK 344 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) | ^ include/linux/compiler.h:325:4: note: in definition of macro '__compiletime_assert' 325 |prefix ## suffix(); |^~ include/linux/compiler.h:344:2: note: in expansion of macro '_compiletime_assert' 344 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) | ^~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~ include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~ >> arch/powerpc/mm/kasan/kasan_init_32.c:172:2: note: in expansion of macro >> 'BUILD_BUG_ON' 172 | BUILD_BUG_ON(KASAN_SHADOW_START & ~PGDIR_MASK); | ^~~~ # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=305d60012304684bd59ea1f67703e51662e4906a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 305d60012304684bd59ea1f67703e51662e4906a vim +/__compiletime_assert_172 +344 include/linux/compiler.h 9a8ab1c39970a4 Daniel Santos 2013-02-21 330 9a8ab1c39970a4 Daniel Santos 2013-02-21 331 #define _compiletime_assert(condition, msg, prefix, suffix) \ 9a8ab1c39970a4 Daniel Santos 2013-02-21 332__compiletime_assert(condition, msg, prefix, suffix) 9a8ab1c39970a4 Daniel Santos 2013-02-21 333 9a8ab1c39970a4 Daniel Santos 2013-02-21 334 /** 9a8ab1c39970a4 Daniel Santos 2013-02-21 335 * compiletime_assert - break build and emit msg if condition is false 9a8ab1c39970a4 Daniel Santos 2013-02-21 336 * @condition: a compile-time constant condition to check 9a8ab1c39970a4 Daniel Santos 2013-02-21 337 * @msg: a message to emit if condition is false 9a8ab1c39970a4 Daniel Santos 2013-02-21 338 * 9a8ab1c39970a4 Daniel Santos 2013-02-21 339 * In tradition of POSIX assert, this macro will break the build if the 9a8ab1c39970a4 Daniel Santos 2013-02-21 340 * supplied condition is *false*, emitting the supplied error message if the 9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * compiler has support to do so. 9a8ab1c39970a4 Daniel Santos 2013-02-21 342 */ 9a8ab1c39970a4 Daniel Santos 2013-02-21 343 #define compiletime_assert(condition, msg) \ 9a8ab1c39970a4 Daniel Santos 2013-02-21 @344_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) 9a8ab1c39970a4 Daniel Santos 2013-02-21 345 :: The code at line 344 was first introduced by commit :: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG :: TO: Daniel Santos :: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
fs/proc/task_nommu.c:67:55: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: caffb99b6929f41a69edbb5aef3a359bf45f3315 commit: 913292c97d750fe4188b4f5aa770e5e0ca1e5a91 sched.h: Annotate sighand_struct with __rcu date: 4 months ago config: c6x-randconfig-s002-20200524 (attached as .config) compiler: c6x-elf-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-193-gb8fad4bc-dirty git checkout 913292c97d750fe4188b4f5aa770e5e0ca1e5a91 # save the attached .config to linux build tree make W=1 C=1 ARCH=c6x CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> fs/proc/task_nommu.c:67:55: sparse: sparse: incorrect type in argument 1 >> (different address spaces) @@expected struct refcount_struct const >> [usertype] *r @@got sstruct refcount_struct const [usertype] *r @@ fs/proc/task_nommu.c:67:55: sparse:expected struct refcount_struct const [usertype] *r fs/proc/task_nommu.c:67:55: sparse:got struct refcount_struct [noderef] * >> fs/proc/task_nommu.c:68:43: sparse: sparse: incorrect type in argument 1 >> (different address spaces) @@expected void const *objp @@got struct >> sighand_struct [noderevoid const *objp @@ fs/proc/task_nommu.c:68:43: sparse:expected void const *objp fs/proc/task_nommu.c:68:43: sparse:got struct sighand_struct [noderef] *sighand fs/proc/task_nommu.c:70:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@expected void const *objp @@got struct sighand_struct [noderevoid const *objp @@ fs/proc/task_nommu.c:70:42: sparse:expected void const *objp fs/proc/task_nommu.c:70:42: sparse:got struct sighand_struct [noderef] *sighand vim +67 fs/proc/task_nommu.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 14 ^1da177e4c3f41 Linus Torvalds 2005-04-16 15 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 16 * Logic: we've got two memory sums for each process, "shared", and 025dfdafe77f20 Frederik Schwarzer 2008-10-16 17 * "non-shared". Shared memory may get counted more than once, for ^1da177e4c3f41 Linus Torvalds 2005-04-16 18 * each process that owns it. Non-shared memory is counted ^1da177e4c3f41 Linus Torvalds 2005-04-16 19 * accurately. ^1da177e4c3f41 Linus Torvalds 2005-04-16 20 */ df5f8314ca30d6 Eric W. Biederman 2008-02-08 21 void task_mem(struct seq_file *m, struct mm_struct *mm) ^1da177e4c3f41 Linus Torvalds 2005-04-16 22 { 8feae13110d60c David Howells 2009-01-08 23struct vm_area_struct *vma; 38f714795b7cf4 David Howells 2009-01-08 24struct vm_region *region; 8feae13110d60c David Howells 2009-01-08 25struct rb_node *p; 38f714795b7cf4 David Howells 2009-01-08 26unsigned long bytes = 0, sbytes = 0, slack = 0, size; ^1da177e4c3f41 Linus Torvalds 2005-04-16 27 ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 down_read(>mmap_sem); 8feae13110d60c David Howells 2009-01-08 29for (p = rb_first(>mm_rb); p; p = rb_next(p)) { 8feae13110d60c David Howells 2009-01-08 30vma = rb_entry(p, struct vm_area_struct, vm_rb); ^1da177e4c3f41 Linus Torvalds 2005-04-16 31 8feae13110d60c David Howells 2009-01-08 32bytes += kobjsize(vma); 38f714795b7cf4 David Howells 2009-01-08 33 38f714795b7cf4 David Howells 2009-01-08 34region = vma->vm_region; 38f714795b7cf4 David Howells 2009-01-08 35if (region) { 38f714795b7cf4 David Howells 2009-01-08 36size = kobjsize(region); 38f714795b7cf4 David Howells 2009-01-08 37size += region->vm_end - region->vm_start; 38f714795b7cf4 David Howells 2009-01-08 38} else { 38f714795b7cf4 David Howells 2009-01-08 39size = vma->vm_end - vma->vm_start; 38f714795b7cf4 David Howells 2009-01-08 40} 38f714795b7cf4 David Howells 2009-01-08 41 ^1da177e4c3f41 Linus Torvalds 2005-04-16 42if (atomic_read(>mm_count) > 1 || 8feae13110d60c David Howells 2009-01-08 43 vma->vm_flags & VM_MAYSHARE) { 38f714795b7cf4 David Howells 2009-01-08 44sbytes += size; ^1da177e4c3f41 Linus Torvalds 2005-04-16 45} else { 38f714795b7cf4 David Howells 2009-01-08 46bytes += size; 38f714795b7cf4 David Howells 2009-01-08 47if (region) 38f714795b7cf4 David Howells 2009-01-08 48 slack = region->vm_end - vma->vm_end; ^1da177e4c3f
Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro
Hi Syed, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce] url: https://github.com/0day-ci/linux/commits/Syed-Nayyar-Waris/Introduce-the-for_each_set_clump-macro/20200524-130931 base:b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce config: i386-tinyconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/asm-generic/atomic-instrumented.h:20:0, from arch/x86/include/asm/atomic.h:265, from include/linux/atomic.h:7, from include/linux/crypto.h:15, from arch/x86/kernel/asm-offsets.c:9: include/linux/bitmap.h: In function 'bitmap_get_value': include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ >> include/linux/bitmap.h:590:35: note: in expansion of macro 'GENMASK' return (map[index] >> offset) & GENMASK(nbits - 1, 0); ^~~ include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ >> include/linux/bitmap.h:590:35: note: in expansion of macro 'GENMASK' return (map[index] >> offset) & GENMASK(nbits - 1, 0); ^~~ include/linux/bitmap.h: In function 'bitmap_set_value': include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ include/linux/bitmap.h:630:11: note: in expansion of macro 'GENMASK' value &= GENMASK(nbits - 1, 0); ^~~ include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ include/linux/bitmap.h:630:11: note: in expansion of macro 'GENMASK' value &= GENMASK(nbits - 1, 0); ^~~ -- In file included from include/linux/bits.h:23:0, from include/linux/bitops.h:5, from include/linux/kernel.h:12, from include/asm-generic/bug.h:19, from arch/x86/include/asm/bug.h:83, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from arch/x86/mm/init.c:1: include/linux/bitmap.h: In function 'bitmap_get_value': include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ >> include/linux/bitmap.h:590:35: note: in expansion of macro 'GENMASK' return (map[index] >> offset) & GENMASK(nbits - 1, 0); ^~~ include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] __builtin_constant_p((l) > (h)), (l) > (h), 0))) ^ include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~ >> include/linux/bitmap.h:590:35: note: in expansion of macro 'GENMASK' return (map[index] >> offset) & GENMASK(nbits - 1, 0);
[tip:x86/mm] BUILD SUCCESS 0fcfdf55db9e1ecf85edd6aa8d0bc78a448cb96a
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/mm branch HEAD: 0fcfdf55db9e1ecf85edd6aa8d0bc78a448cb96a Documentation: Add L1D flushing Documentation elapsed time: 2967m configs tested: 92 configs skipped: 1 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig sparcallyesconfig mips allyesconfig m68k allyesconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig xtensa defconfig arc defconfig arc allyesconfig sh allmodconfig shallnoconfig microblazeallnoconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200521 i386 randconfig-a004-20200521 i386 randconfig-a006-20200521 i386 randconfig-a003-20200521 i386 randconfig-a002-20200521 i386 randconfig-a005-20200521 x86_64 randconfig-a013-20200524 x86_64 randconfig-a015-20200524 x86_64 randconfig-a016-20200524 x86_64 randconfig-a012-20200524 x86_64 randconfig-a014-20200524 x86_64 randconfig-a011-20200524 riscvallyesconfig riscv allnoconfig riscv defconfig riscvallmodconfig s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig x86_64 defconfig sparc defconfig sparc64 defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig umallnoconfig um defconfig um allmodconfig um allyesconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
Re: [PATCH v13 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver
Hi Tali, I love your patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v5.7-rc6 next-20200522] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tali-Perry/i2c-npcm7xx-add-NPCM-i2c-controller-driver/20200522-193916 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: x86_64-allmodconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): >> drivers/i2c/busses/i2c-npcm7xx.c:1797:1: error: redefinition of '__inittest' module_init(npcm_i2c_init); ^ include/linux/module.h:131:42: note: expanded from macro 'module_init' static inline initcall_t __maybe_unused __inittest(void) ^ drivers/i2c/busses/i2c-npcm7xx.c:1778:1: note: previous definition is here module_platform_driver(npcm_i2c_bus_driver); ^ include/linux/platform_device.h:247:2: note: expanded from macro 'module_platform_driver' module_driver(__platform_driver, platform_driver_register,^ include/linux/device/driver.h:262:3: note: expanded from macro 'module_driver' } ^ include/linux/module.h:131:42: note: expanded from macro ' module_init' static inline initcall_t __maybe_unused __inittest(void) ^ >> drivers/i2c/busses/i2c-npcm7xx.c:1797:1: error: redefinition of 'init_module' module_init(npcm_i2c_init); ^ include/linux/module.h:133:6: note: expanded from macro 'module_init' int init_module(void) __copy(initfn) __attribute__((alias(#initfn))); ^ drivers/i2c/busses/i2c-npcm7xx.c:1778:1: note: previous definition is here module_platform_driver(npcm_i2c_bus_driver); ^ include/linux/platform_device.h:247:2: note: expanded from macro 'module_platform_driver' module_driver(__platform_driver, platform_driver_register,^ include/linux/device/driver.h:262:3: note: expanded from macro 'module_driver' } ^ include/linux/module.h:133:6: note: expanded from macro ' module_init' int init_module(void) __copy(initfn) __attribute__((alias(#initfn))); ^ >> drivers/i2c/busses/i2c-npcm7xx.c:1798:1: error: redefinition of '__exittest' module_exit(npcm_i2c_exit); ^ include/linux/module.h:137:42: note: expanded from macro 'module_exit' static inline exitcall_t __maybe_unused __exittest(void) ^ drivers/i2c/busses/i2c-npcm7xx.c:1778:1: note: previous definition is here module_platform_driver(npcm_i2c_bus_driver); ^ include/linux/platform_device.h:247:2: note: expanded from macro 'module_platform_driver' module_driver(__platform_driver, platform_driver_register,^ include/linux/device/driver.h:267:3: note: expanded from macro 'module_driver' } ^ include/linux/module.h:137:42: note: expanded from macro ' module_exit' static inline exitcall_t __maybe_unused __exittest(void) ^ >> drivers/i2c/busses/i2c-npcm7xx.c:1798:1: error: redefinition of >> 'cleanup_module' module_exit(npcm_i2c_exit); ^ include/linux/module.h:139:7: note: expanded from macro 'module_exit' void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn))); ^ drivers/i2c/busses/i2c-npcm7xx.c:1778:1: note: previous definition is here module_platform_driver(npcm_i2c_bus_driver); ^ include/linux/platform_device.h:247:2: note: expanded from macro 'module_platform_driver' module_driver(__platform_driver, platform_driver_register,^ include/linux/device/driver.h:267:3: note: expanded from macro 'module_driver' } ^ include/linux/module.h:139:7: note: expanded from macro ' module_exit' void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn))); ^ 4 errors generated. vim +/__inittest +1797 drivers/i2c/busses/i2c-npcm7xx.c 1796 > 1797 module_init(npcm_i2c_init); > 1798 module_exit(npcm_i2c_exit); 1799 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1680: undefined reference to `devm_ioremap_resource'
Hi Brendan, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: caffb99b6929f41a69edbb5aef3a359bf45f3315 commit: 0e31e3573f0cd94d7b821117db854187ffc85765 lkdtm/bugs: fix build error in lkdtm_UNSET_SMEP date: 4 months ago config: um-randconfig-s001-20200524 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-193-gb8fad4bc-dirty git checkout 0e31e3573f0cd94d7b821117db854187ffc85765 # save the attached .config to linux build tree make W=1 C=1 ARCH=um CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>, old ones prefixed by <<): /usr/bin/ld: drivers/net/ethernet/xilinx/xilinx_axienet_main.o: in function `axienet_probe': >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1680: undefined reference >> to `devm_ioremap_resource' collect2: error: ld returned 1 exit status vim +1680 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1633 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1634 /** 2be586205ca2b8 Srikanth Thokala2015-05-05 1635 * axienet_probe - Axi Ethernet probe function. 95219aa538e11d Srikanth Thokala2015-05-05 1636 * @pdev: Pointer to platform device structure. 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1637 * b0d081c524b46c Michal Simek2015-05-05 1638 * Return: 0, on success 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1639 * Non-zero error value on failure. 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1640 * 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1641 * This is the probe routine for Axi Ethernet driver. This is called before 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1642 * any other driver routines are invoked. It allocates and sets up the Ethernet 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1643 * device. Parses through device tree and populates fields of 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1644 * axienet_local. It registers the Ethernet device. 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1645 */ 2be586205ca2b8 Srikanth Thokala2015-05-05 1646 static int axienet_probe(struct platform_device *pdev) 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1647 { 8495659bf93c8e Srikanth Thokala2015-05-05 1648 int ret; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1649 struct device_node *np; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1650 struct axienet_local *lp; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1651 struct net_device *ndev; da90e38003e2f0 Tobias Klauser 2016-12-07 1652 const void *mac_addr; 28ef9ebdb64c6f Robert Hancock 2019-06-06 1653 struct resource *ethres; 8495659bf93c8e Srikanth Thokala2015-05-05 1654 u32 value; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1655 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1656 ndev = alloc_etherdev(sizeof(*lp)); 41de8d4cff21a2 Joe Perches 2012-01-29 1657 if (!ndev) 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1658 return -ENOMEM; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1659 95219aa538e11d Srikanth Thokala2015-05-05 1660 platform_set_drvdata(pdev, ndev); 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1661 95219aa538e11d Srikanth Thokala2015-05-05 1662 SET_NETDEV_DEV(ndev, >dev); 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1663 ndev->flags &= ~IFF_MULTICAST; /* clear multicast */ 28e24c62ab3062 Eric Dumazet2013-12-02 1664 ndev->features = NETIF_F_SG; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1665 ndev->netdev_ops = _netdev_ops; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1666 ndev->ethtool_ops = _ethtool_ops; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1667 d894be57ca92c8 Jarod Wilson2016-10-20 1668 /* MTU range: 64 - 9000 */ d894be57ca92c8 Jarod Wilson2016-10-20 1669 ndev->min_mtu = 64; d894be57ca92c8 Jarod Wilson2016-10-20 1670 ndev->max_mtu = XAE_JUMBO_MTU; d894be57ca92c8 Jarod Wilson2016-10-20 1671 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1672 lp = netdev_priv(ndev); 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1673 lp->ndev = ndev; 95219aa538e11d Srikanth Thokala2015-05-05 1674 lp->dev = >dev; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1675 lp->options = XAE_OPTION_DEFAULTS; 8b09ca823ffb4e Robert Hancock 2019-06-06 1676 lp->rx_bd_num = RX_BD_NUM_DEFAULT; 8b09ca823ffb4e Robert Hancock 2019-06-06 1677 lp->tx_bd_num = TX_BD_NUM_DEFAULT; 8a3b7a252dca9f Daniel Borkmann 2012-01-19 1678 /* Map device registers
[tip:x86/build] BUILD SUCCESS d6ee6529436a15a0541aff6e1697989ee7dc2c44
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/build branch HEAD: d6ee6529436a15a0541aff6e1697989ee7dc2c44 x86/boot: Discard .discard.unreachable for arch/x86/boot/compressed/vmlinux elapsed time: 2655m configs tested: 67 configs skipped: 74 The following configs have been built successfully. More configs may be tested in the coming days. arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig sparcallyesconfig mips allyesconfig m68k allyesconfig i386 allnoconfig i386 allyesconfig i386defconfig i386 debian-10.3 ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig arc defconfig shallnoconfig microblazeallnoconfig mips allnoconfig mips allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200521 i386 randconfig-a004-20200521 i386 randconfig-a006-20200521 i386 randconfig-a003-20200521 i386 randconfig-a002-20200521 i386 randconfig-a005-20200521 x86_64 randconfig-a015-20200522 x86_64 randconfig-a013-20200522 x86_64 randconfig-a016-20200522 x86_64 randconfig-a012-20200522 x86_64 randconfig-a014-20200522 x86_64 randconfig-a011-20200522 s390 allyesconfig s390 allnoconfig s390 allmodconfig s390defconfig x86_64 defconfig sparc defconfig sparc64 defconfig sparc64 allnoconfig sparc64 allyesconfig sparc64 allmodconfig um allmodconfig umallnoconfig um defconfig x86_64 rhel x86_64 rhel-7.6 x86_64rhel-7.6-kselftests x86_64 rhel-7.2-clear x86_64lkp x86_64 fedora-25 x86_64 kexec --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
[tip:x86/timers] BUILD SUCCESS bd35c77e32e4359580207891c0f7a438ad4b42df
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/timers branch HEAD: bd35c77e32e4359580207891c0f7a438ad4b42df x86/tsc: Add tsc_early_khz command line parameter elapsed time: 3628m configs tested: 122 configs skipped: 1 The following configs have been built successfully. More configs may be tested in the coming days. arm defconfig arm allyesconfig arm allmodconfig arm allnoconfig arm64allyesconfig arm64 defconfig arm64allmodconfig arm64 allnoconfig sparcallyesconfig mips allyesconfig m68k allyesconfig i386 allnoconfig i386defconfig i386 debian-10.3 i386 allyesconfig ia64 allmodconfig ia64defconfig ia64 allnoconfig ia64 allyesconfig m68k allmodconfig m68k allnoconfig m68k sun3_defconfig m68kdefconfig nios2 defconfig nios2allyesconfig openriscdefconfig c6x allyesconfig c6x allnoconfig openrisc allyesconfig nds32 defconfig nds32 allnoconfig csky allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa defconfig xtensa allyesconfig h8300allyesconfig h8300allmodconfig arc defconfig sh allmodconfig shallnoconfig microblazeallnoconfig arc allyesconfig mips allnoconfig mips allmodconfig pariscallnoconfig parisc defconfig parisc allyesconfig parisc allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200521 i386 randconfig-a004-20200521 i386 randconfig-a006-20200521 i386 randconfig-a003-20200521 i386 randconfig-a002-20200521 i386 randconfig-a005-20200521 x86_64 randconfig-a002-20200521 x86_64 randconfig-a006-20200521 x86_64 randconfig-a005-20200521 x86_64 randconfig-a004-20200521 x86_64 randconfig-a003-20200521 x86_64 randconfig-a001-20200521 x86_64 randconfig-a015-20200522 x86_64 randconfig-a013-20200522 x86_64 randconfig-a016-20200522 x86_64 randconfig-a012-20200522 x86_64 randconfig-a014-20200522 x86_64 randconfig-a011-20200522 x86_64 randconfig-a013-20200520 x86_64 randconfig-a015-20200520 x86_64 randconfig-a016-20200520 x86_64 randconfig-a012-20200520 x86_64 randconfig-a014-20200520 x86_64 randconfig-a011-20200520 i386 randconfig-a013-20200522 i386 randconfig-a012-20200522 i386 randconfig-a015-20200522 i386 randconfig-a011-20200522 i386 randconfig-a016-20200522 i386 randconfig-a014-20200522 i386 randconfig-a013-20200521 i386 randconfig-a012-20200521 i386 randconfig-a015-20200521 i386 randconfig-a011-20200521 i386 randconfig-a016-20200521 i386 randconfig-a014-20200521 i386 randconfig-a013-20200524 i386 randconfig-a015-20200524 i386 randconfig-a012-20200524 i386 randconfig-a011-20200524 i386 randconfig-a016-20200524 i386 randconfig-a014-20200524 riscvallyesconfig riscv allnoconfig riscv defconfig riscv
drivers/misc/pci_endpoint_test.c:347:6: warning: Local variable 'irq_type' shadows outer variable [shadowVariable]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: caffb99b6929f41a69edbb5aef3a359bf45f3315 commit: b2ba9225e0313b1de631a44b7b48c109032bffec misc: pci_endpoint_test: Avoid using module parameter to determine irqtype date: 7 weeks ago compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): git checkout b2ba9225e0313b1de631a44b7b48c109032bffec # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot cppcheck warnings: (new ones prefixed by >>) >> drivers/misc/pci_endpoint_test.c:347:6: warning: Local variable 'irq_type' >> shadows outer variable [shadowVariable] int irq_type = test->irq_type; ^ drivers/misc/pci_endpoint_test.c:86:12: note: Shadowed declaration static int irq_type = IRQ_TYPE_MSI; ^ drivers/misc/pci_endpoint_test.c:347:6: note: Shadow variable int irq_type = test->irq_type; ^ drivers/misc/pci_endpoint_test.c:481:6: warning: Local variable 'irq_type' shadows outer variable [shadowVariable] int irq_type = test->irq_type; ^ drivers/misc/pci_endpoint_test.c:86:12: note: Shadowed declaration static int irq_type = IRQ_TYPE_MSI; ^ drivers/misc/pci_endpoint_test.c:481:6: note: Shadow variable int irq_type = test->irq_type; ^ drivers/misc/pci_endpoint_test.c:580:6: warning: Local variable 'irq_type' shadows outer variable [shadowVariable] int irq_type = test->irq_type; ^ drivers/misc/pci_endpoint_test.c:86:12: note: Shadowed declaration static int irq_type = IRQ_TYPE_MSI; ^ drivers/misc/pci_endpoint_test.c:580:6: note: Shadow variable int irq_type = test->irq_type; ^ vim +/irq_type +347 drivers/misc/pci_endpoint_test.c 326 327 static bool pci_endpoint_test_copy(struct pci_endpoint_test *test, 328 unsigned long arg) 329 { 330 struct pci_endpoint_test_xfer_param param; 331 bool ret = false; 332 void *src_addr; 333 void *dst_addr; 334 u32 flags = 0; 335 bool use_dma; 336 size_t size; 337 dma_addr_t src_phys_addr; 338 dma_addr_t dst_phys_addr; 339 struct pci_dev *pdev = test->pdev; 340 struct device *dev = >dev; 341 void *orig_src_addr; 342 dma_addr_t orig_src_phys_addr; 343 void *orig_dst_addr; 344 dma_addr_t orig_dst_phys_addr; 345 size_t offset; 346 size_t alignment = test->alignment; > 347 int irq_type = test->irq_type; 348 u32 src_crc32; 349 u32 dst_crc32; 350 int err; 351 352 err = copy_from_user(, (void __user *)arg, sizeof(param)); 353 if (err) { 354 dev_err(dev, "Failed to get transfer param\n"); 355 return false; 356 } 357 358 size = param.size; 359 if (size > SIZE_MAX - alignment) 360 goto err; 361 362 use_dma = !!(param.flags & PCITEST_FLAGS_USE_DMA); 363 if (use_dma) 364 flags |= FLAG_USE_DMA; 365 366 if (irq_type < IRQ_TYPE_LEGACY || irq_type > IRQ_TYPE_MSIX) { 367 dev_err(dev, "Invalid IRQ type option\n"); 368 goto err; 369 } 370 371 orig_src_addr = kzalloc(size + alignment, GFP_KERNEL); 372 if (!orig_src_addr) { 373 dev_err(dev, "Failed to allocate source buffer\n"); 374 ret = false; 375 goto err; 376 } 377 378 get_random_bytes(orig_src_addr, size + alignment); 379 orig_src_phys_addr = dma_map_single(dev, orig_src_addr, 380 size + alignment, DMA_TO_DEVICE); 381 if (dma_mapping_error(dev, orig_src_phys_addr)) { 382 dev_err(dev, "failed to map source buffer address\n"); 383 ret = false; 384 goto err_src_phys_addr; 385 } 386 387 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { 388 src_phys_addr = PTR_ALIGN(orig_src_phys_addr, alignment); 389 offset = src_phys_addr - orig_src_phys_addr; 390 src_addr = orig_src_addr + offset; 391 } else { 392 src_phys_addr = orig_src_phys_addr; 393 src_addr = orig_src_addr; 394 } 395 396 pci_endpoint_test_writel(test, PCI_ENDPO
drivers/gpu/drm/i915/display/intel_color.c:1840 ilk_read_lut_8() error: potential null dereference 'blob'. (drm_property_create_blob returns null)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: caffb99b6929f41a69edbb5aef3a359bf45f3315 commit: 100882673ab83b55ea0e9ed3ad301125d36039a3 drm/i915: Split i9xx_read_lut_8() to gmch vs. ilk variants date: 3 months ago config: i386-allyesconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): git checkout 100882673ab83b55ea0e9ed3ad301125d36039a3 # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot New smatch warnings: drivers/gpu/drm/i915/display/intel_color.c:1840 ilk_read_lut_8() error: potential null dereference 'blob'. (drm_property_create_blob returns null) Old smatch warnings: drivers/gpu/drm/i915/display/intel_color.c:1706 i9xx_read_lut_8() error: potential null dereference 'blob'. (drm_property_create_blob returns null) drivers/gpu/drm/i915/display/intel_color.c:1747 i965_read_lut_10p6() error: potential null dereference 'blob'. (drm_property_create_blob returns null) drivers/gpu/drm/i915/display/intel_color.c:1799 chv_read_cgm_lut() error: potential null dereference 'blob'. (drm_property_create_blob returns null) drivers/gpu/drm/i915/display/intel_color.c:1873 ilk_read_lut_10() error: potential null dereference 'blob'. (drm_property_create_blob returns null) drivers/gpu/drm/i915/display/intel_color.c:1920 glk_read_lut_10() error: potential null dereference 'blob'. (drm_property_create_blob returns null) vim +/blob +1840 drivers/gpu/drm/i915/display/intel_color.c 1823 1824 static struct drm_property_blob * 1825 ilk_read_lut_8(const struct intel_crtc_state *crtc_state) 1826 { 1827 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); 1828 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); 1829 enum pipe pipe = crtc->pipe; 1830 struct drm_property_blob *blob; 1831 struct drm_color_lut *blob_data; 1832 u32 i, val; 1833 1834 blob = drm_property_create_blob(_priv->drm, 1835 sizeof(struct drm_color_lut) * LEGACY_LUT_LENGTH, 1836 NULL); 1837 if (IS_ERR(blob)) 1838 return NULL; 1839 > 1840 blob_data = blob->data; 1841 1842 for (i = 0; i < LEGACY_LUT_LENGTH; i++) { 1843 val = intel_de_read(dev_priv, LGC_PALETTE(pipe, i)); 1844 1845 blob_data[i].red = intel_color_lut_pack(REG_FIELD_GET( 1846 LGC_PALETTE_RED_MASK, val), 8); 1847 blob_data[i].green = intel_color_lut_pack(REG_FIELD_GET( 1848 LGC_PALETTE_GREEN_MASK, val), 8); 1849 blob_data[i].blue = intel_color_lut_pack(REG_FIELD_GET( 1850 LGC_PALETTE_BLUE_MASK, val), 8); 1851 } 1852 1853 return blob; 1854 } 1855 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
kernel/livepatch/../sched/sched.h:1619:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0cfc8a8d70dcd51db783e8e87917e02149c71458 commit: 4104a562e0ca62e971089db9d3c47794a0d7d4eb sched/core: Annotate curr pointer in rq with __rcu date: 3 months ago config: x86_64-randconfig-s002-20200524 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-193-gb8fad4bc-dirty git checkout 4104a562e0ca62e971089db9d3c47794a0d7d4eb # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> kernel/livepatch/../sched/sched.h:1619:25: sparse: sparse: incompatible >> types in comparison expression (different address spaces): >> kernel/livepatch/../sched/sched.h:1619:25: sparse:struct task_struct >> [noderef] * >> kernel/livepatch/../sched/sched.h:1619:25: sparse:struct task_struct * vim +1619 kernel/livepatch/../sched/sched.h 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1616 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1617 static inline int task_current(struct rq *rq, struct task_struct *p) 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1618 { 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 @1619 return rq->curr == p; 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1620 } 029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1621 :: The code at line 1619 was first introduced by commit :: 029632fbb7b7c9d85063cc9eb470de6c54873df3 sched: Make separate sched*.c translation units :: TO: Peter Zijlstra :: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
arch/powerpc/kexec/ima.c:156:21: sparse: sparse: incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 423b8baf18a8c03f2d6fa99aa447ed0da189bb95 commit: 793b08e2efff3ec020c5c5861d00ed394fcdd488 powerpc/kexec: Move kexec files into a dedicated subdir. date: 6 months ago config: powerpc-randconfig-s001-20200524 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-193-gb8fad4bc-dirty git checkout 793b08e2efff3ec020c5c5861d00ed394fcdd488 # save the attached .config to linux build tree make W=1 C=1 ARCH=powerpc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> arch/powerpc/kexec/ima.c:156:21: sparse: sparse: incorrect type in >> assignment (different base types) @@expected unsigned int [usertype] tmp >> @@got restrunsigned int [usertype] tmp @@ >> arch/powerpc/kexec/ima.c:156:21: sparse:expected unsigned int [usertype] >> tmp >> arch/powerpc/kexec/ima.c:156:21: sparse:got restricted __be32 [usertype] >> arch/powerpc/kexec/ima.c:161:21: sparse: sparse: incorrect type in >> assignment (different base types) @@expected unsigned long long >> [usertype] tmp @@got nsigned long long [usertype] tmp @@ >> arch/powerpc/kexec/ima.c:161:21: sparse:expected unsigned long long >> [usertype] tmp >> arch/powerpc/kexec/ima.c:161:21: sparse:got restricted __be64 [usertype] vim +156 arch/powerpc/kexec/ima.c ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 147 ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 148 static int write_number(void *p, u64 value, int cells) ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 149 { ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 150if (cells == 1) { ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 151u32 tmp; ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 152 ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 153if (value > U32_MAX) ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 154return -EINVAL; ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 155 ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 @156tmp = cpu_to_be32(value); ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 157memcpy(p, , sizeof(tmp)); ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 158} else if (cells == 2) { ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 159u64 tmp; ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 160 ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 @161tmp = cpu_to_be64(value); ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 162memcpy(p, , sizeof(tmp)); ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 163} else ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 164return -EINVAL; ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 165 ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 166return 0; ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 167 } ab6b1d1fc4aae6 arch/powerpc/kernel/ima_kexec.c Thiago Jung Bauermann 2016-12-19 168 :: The code at line 156 was first introduced by commit :: ab6b1d1fc4aae6b8bd6fb1422405568094c9b40f powerpc: ima: send the kexec buffer to the next kernel :: TO: Thiago Jung Bauermann :: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip
net/core/skbuff.c:3673 skb_segment_list() warn: inconsistent indenting
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e644645abf4788e919beeb97925fb6bf43e890a2 commit: 3a1296a38d0cf62bffb9a03c585cbd5dbf15d596 net: Support GRO/GSO fraglist chaining. date: 4 months ago config: h8300-randconfig-m001-20200521 (attached as .config) compiler: h8300-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 3a1296a38d0cf62bffb9a03c585cbd5dbf15d596 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot New smatch warnings: net/core/skbuff.c:3673 skb_segment_list() warn: inconsistent indenting Old smatch warnings: net/core/skbuff.c:105 skb_panic() warn: argument 8 to %#lx specifier is cast from pointer net/core/skbuff.c:105 skb_panic() warn: argument 9 to %#lx specifier is cast from pointer net/core/skbuff.c:3845 skb_segment() error: we previously assumed 'list_skb' could be null (see line 3765) vim +3673 net/core/skbuff.c 3641 3642 struct sk_buff *skb_segment_list(struct sk_buff *skb, 3643 netdev_features_t features, 3644 unsigned int offset) 3645 { 3646 struct sk_buff *list_skb = skb_shinfo(skb)->frag_list; 3647 unsigned int tnl_hlen = skb_tnl_header_len(skb); 3648 unsigned int delta_truesize = 0; 3649 unsigned int delta_len = 0; 3650 struct sk_buff *tail = NULL; 3651 struct sk_buff *nskb; 3652 3653 skb_push(skb, -skb_network_offset(skb) + offset); 3654 3655 skb_shinfo(skb)->frag_list = NULL; 3656 3657 do { 3658 nskb = list_skb; 3659 list_skb = list_skb->next; 3660 3661 if (!tail) 3662 skb->next = nskb; 3663 else 3664 tail->next = nskb; 3665 3666 tail = nskb; 3667 3668 delta_len += nskb->len; 3669 delta_truesize += nskb->truesize; 3670 3671 skb_push(nskb, -skb_network_offset(nskb) + offset); 3672 > 3673 __copy_skb_header(nskb, skb); 3674 3675 skb_headers_offset_update(nskb, skb_headroom(nskb) - skb_headroom(skb)); 3676 skb_copy_from_linear_data_offset(skb, -tnl_hlen, 3677 nskb->data - tnl_hlen, 3678 offset + tnl_hlen); 3679 3680 if (skb_needs_linearize(nskb, features) && 3681 __skb_linearize(nskb)) 3682 goto err_linearize; 3683 3684 } while (list_skb); 3685 3686 skb->truesize = skb->truesize - delta_truesize; 3687 skb->data_len = skb->data_len - delta_len; 3688 skb->len = skb->len - delta_len; 3689 3690 skb_gso_reset(skb); 3691 3692 skb->prev = tail; 3693 3694 if (skb_needs_linearize(skb, features) && 3695 __skb_linearize(skb)) 3696 goto err_linearize; 3697 3698 skb_get(skb); 3699 3700 return skb; 3701 3702 err_linearize: 3703 kfree_skb_list(skb->next); 3704 skb->next = NULL; 3705 return ERR_PTR(-ENOMEM); 3706 } 3707 EXPORT_SYMBOL_GPL(skb_segment_list); 3708 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip