[kbuild] drivers/android/binder.c:3540 binder_thread_write() warn: overwrite may leak 'death'
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Jakub Jelinek CC: "Peter Zijlstra (Intel)" CC: Andrew Morton CC: Linux Memory Management List tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 16fc44d6387e260f4932e9248b985837324705d8 commit: 2f78788b55baa3410b1ec91a576286abe1ad4d6a ilog2: improve ilog2 for constant arguments date: 4 months ago :: branch date: 11 hours ago :: commit date: 4 months ago config: riscv-randconfig-m031-20210421 (attached as .config) compiler: riscv32-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/android/binder.c:3540 binder_thread_write() warn: overwrite may leak 'death' vim +/death +3540 drivers/android/binder.c 44d8047f1d87ad drivers/android/binder.c Todd Kjos 2018-08-28 3188 fb07ebc3e82a98 drivers/staging/android/binder.c Bojan Prtvar 2013-09-02 3189 static int binder_thread_write(struct binder_proc *proc, fb07ebc3e82a98 drivers/staging/android/binder.c Bojan Prtvar 2013-09-02 3190 struct binder_thread *thread, da49889deb34d3 drivers/staging/android/binder.c Arve Hjønnevåg 2014-02-21 3191 binder_uintptr_t binder_buffer, size_t size, da49889deb34d3 drivers/staging/android/binder.c Arve Hjønnevåg 2014-02-21 3192 binder_size_t *consumed) 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3193 { 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3194 uint32_t cmd; 342e5c90b60134 drivers/android/binder.c Martijn Coenen 2017-02-03 3195 struct binder_context *context = proc->context; da49889deb34d3 drivers/staging/android/binder.c Arve Hjønnevåg 2014-02-21 3196 void __user *buffer = (void __user *)(uintptr_t)binder_buffer; 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3197 void __user *ptr = buffer + *consumed; 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3198 void __user *end = buffer + size; 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3199 26549d17741035 drivers/android/binder.c Todd Kjos 2017-06-29 3200 while (ptr < end && thread->return_error.cmd == BR_OK) { 372e3147df7016 drivers/android/binder.c Todd Kjos 2017-06-29 3201 int ret; 372e3147df7016 drivers/android/binder.c Todd Kjos 2017-06-29 3202 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3203 if (get_user(cmd, (uint32_t __user *)ptr)) 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3204 return -EFAULT; 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3205 ptr += sizeof(uint32_t); 975a1ac9a9fe65 drivers/staging/android/binder.c Arve Hjønnevåg 2012-10-16 3206 trace_binder_command(cmd); 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3207 if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.bc)) { 0953c7976c36ce drivers/android/binder.c Badhri Jagan Sridharan 2017-06-29 3208 atomic_inc(_stats.bc[_IOC_NR(cmd)]); 0953c7976c36ce drivers/android/binder.c Badhri Jagan Sridharan 2017-06-29 3209 atomic_inc(>stats.bc[_IOC_NR(cmd)]); 0953c7976c36ce drivers/android/binder.c Badhri Jagan Sridharan 2017-06-29 3210 atomic_inc(>stats.bc[_IOC_NR(cmd)]); 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3211 } 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3212 switch (cmd) { 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3213 case BC_INCREFS: 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3214 case BC_ACQUIRE: 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3215 case BC_RELEASE: 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3216 case BC_DECREFS: { 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3217 uint32_t target; 355b0502f6efea drivers/staging/android/binder.c Greg Kroah-Hartman 2011-11-30 3218 const char *debug_string; 372e3147df7016 drivers/android/binder.c Todd
[kbuild] arch/x86/kvm/mmu/tdp_mmu.c:291:9: sparse: sparse: context imbalance in 'tdp_mmu_link_page' - different lock contexts for basic block
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Ben Gardon CC: Paolo Bonzini CC: Peter Feiner tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 16fc44d6387e260f4932e9248b985837324705d8 commit: 9a77daacc87dee9fd63e31243f21894132ed8407 KVM: x86/mmu: Use atomic ops to set SPTEs in TDP MMU map date: 3 months ago :: branch date: 9 hours ago :: commit date: 3 months ago config: x86_64-randconfig-s021-20210422 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9a77daacc87dee9fd63e31243f21894132ed8407 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9a77daacc87dee9fd63e31243f21894132ed8407 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) arch/x86/kvm/mmu/tdp_mmu.c:455:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned long long [usertype] *pt @@ got unsigned long long [noderef] [usertype] __rcu * @@ arch/x86/kvm/mmu/tdp_mmu.c:455:49: sparse: expected unsigned long long [usertype] *pt arch/x86/kvm/mmu/tdp_mmu.c:455:49: sparse: got unsigned long long [noderef] [usertype] __rcu * >> arch/x86/kvm/mmu/tdp_mmu.c:291:9: sparse: sparse: context imbalance in >> 'tdp_mmu_link_page' - different lock contexts for basic block >> arch/x86/kvm/mmu/tdp_mmu.c:316:9: sparse: sparse: context imbalance in >> 'tdp_mmu_unlink_page' - different lock contexts for basic block arch/x86/kvm/mmu/tdp_mmu.c:606:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected unsigned long long [usertype] *root_pt @@ got unsigned long long [noderef] [usertype] __rcu * @@ arch/x86/kvm/mmu/tdp_mmu.c:606:51: sparse: expected unsigned long long [usertype] *root_pt arch/x86/kvm/mmu/tdp_mmu.c:606:51: sparse: got unsigned long long [noderef] [usertype] __rcu * arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned long long [usertype] *sptep @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] root_pt @@ arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: expected unsigned long long [usertype] *sptep arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] root_pt >> arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: sparse: incorrect type in >> initializer (different address spaces) @@ expected unsigned long long >> [usertype] *root_pt @@ got unsigned long long [noderef] [usertype] __rcu >> * @@ arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: expected unsigned long long [usertype] *root_pt arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: got unsigned long long [noderef] [usertype] __rcu * >> arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: sparse: incorrect type in >> initializer (different address spaces) @@ expected unsigned long long >> [usertype] *root_pt @@ got unsigned long long [noderef] [usertype] __rcu >> * @@ arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: expected unsigned long long [usertype] *root_pt arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: got unsigned long long [noderef] [usertype] __rcu * >> arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: sparse: incorrect type in >> initializer (different address spaces) @@ expected unsigned long long >> [usertype] *root_pt @@ got unsigned long long [noderef] [usertype] __rcu >> * @@ arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: expected unsigned long long [usertype] *root_pt arch/x86/kvm/mmu/tdp_mmu.c:483:40: sparse: got unsigned long long [noderef] [usertype] __rcu * arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned long long [usertype] *sptep @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] root_pt @@ arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: expected unsigned long long [usertype] *sptep arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] root_pt arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned long long [usertype] *sptep @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] root_pt @@ arch/x86/kvm/mmu/tdp_mmu.c:521:49: sparse: expected unsigned long long [usertype] *sptep
[kbuild] Re: [PATCH] [net-next] net: stmmac: fix gcc-10 -Wrestrict warning
CC: kbuild-...@lists.01.org In-Reply-To: <20210421134743.3260921-1-a...@kernel.org> References: <20210421134743.3260921-1-a...@kernel.org> TO: Arnd Bergmann TO: Giuseppe Cavallaro TO: Alexandre Torgue TO: Jose Abreu TO: "David S. Miller" CC: net...@vger.kernel.org TO: Jakub Kicinski CC: Arnd Bergmann CC: Maxime Coquelin CC: Ong Boon Leong CC: Voon Weifeng Hi Arnd, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20210421] [cannot apply to linus/master v5.12-rc8 v5.12-rc7 v5.12-rc6 v5.12-rc8] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/net-stmmac-fix-gcc-10-Wrestrict-warning/20210421-215015 base:b74523885a715463203d4ccc3cf8c85952d3701a :: branch date: 12 hours ago :: commit date: 12 hours ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3503 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->rx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3506 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->int_name_rx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3528 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->tx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3531 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->int_name_tx_irq' 8 <= 8 Old smatch warnings: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1708 init_dma_rx_desc_rings() warn: always true condition '(queue >= 0) => (0-u32max >= 0)' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1708 init_dma_rx_desc_rings() warn: always true condition '(queue >= 0) => (0-u32max >= 0)' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3508 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->rx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3514 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->rx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3521 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->rx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3533 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->tx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3539 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->tx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3546 stmmac_request_irq_multi_msi() error: buffer overflow 'priv->tx_irq' 8 <= 8 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:4707 stmmac_xdp_run_prog() error: (-2147483647) too low for ERR_PTR vim +3503 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 8532f613bc78b6 Ong Boon Leong 2021-03-26 3403 8532f613bc78b6 Ong Boon Leong 2021-03-26 3404 static int stmmac_request_irq_multi_msi(struct net_device *dev) 8532f613bc78b6 Ong Boon Leong 2021-03-26 3405 { 8532f613bc78b6 Ong Boon Leong 2021-03-26 3406 enum request_irq_err irq_err = REQ_IRQ_ERR_NO; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3407 struct stmmac_priv *priv = netdev_priv(dev); 8deec94c6040bb Ong Boon Leong 2021-04-01 3408 cpumask_t cpu_mask; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3409 int irq_idx = 0; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3410 char *int_name; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3411 int ret; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3412 int i; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3413 8532f613bc78b6 Ong Boon Leong 2021-03-26 3414 /* For common interrupt */ 8532f613bc78b6 Ong Boon Leong 2021-03-26 3415 int_name = priv->int_name_mac; 8532f613bc78b6 Ong Boon Leong 2021-03-26 3416 sprintf(int_name, "%s:%s", dev->name, "mac"); 8532f613bc78b6 Ong Boon Leong 2021-03-26 3417 ret = request_irq(dev->irq, stmmac_mac_interrupt, 8532f613bc78b6 Ong Boon Leong 2021-03-26 34180, int_name, dev); 8532f613bc78b6 Ong Boon Leong 2021-03-26 3419 if (unlikely(ret < 0)) { 8532f613bc78b6 Ong Boon Leong 2021-03-26 3420 netdev_err(priv->dev, 8532f613bc78b6 Ong Boon Leong 2021-03-26 3421 "%s: alloc mac MSI %d (error: %d)\n", 8532f613bc78b6 Ong Boon Leong 2021-03-26 3422 __func__, dev->irq, ret); 8532f613bc78b6 Ong Boon Leong 2021-03-26 3423 irq_err = REQ_IRQ_ERR_MAC; 8532f613bc78b6 Ong Boon Leong 2021-0
[kbuild] Re: [PATCH RESEND-2 RFC net-next 12/18] devlink: Introduce rate nodes
CC: kbuild-...@lists.01.org In-Reply-To: <1619020385-20220-13-git-send-email-dlin...@nvidia.com> References: <1619020385-20220-13-git-send-email-dlin...@nvidia.com> TO: dlin...@nvidia.com Hi, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/dlinkin-nvidia-com/devlink-rate-objects-API/20210421-235552 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git a926c025d56bb1acd8a192fca0e307331ee91b30 :: branch date: 7 hours ago :: commit date: 7 hours ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: net/core/devlink.c:1591 devlink_nl_rate_set() error: uninitialized symbol 'err'. Old smatch warnings: net/core/devlink.c:1604 devlink_nl_rate_set() error: uninitialized symbol 'err'. net/core/devlink.c:6364 devlink_fmsg_prepare_skb() error: uninitialized symbol 'err'. vim +/err +1591 net/core/devlink.c cd76dcd68d96aa Parav Pandit 2020-12-11 1574 709d06045321cd Dmytro Linkin 2021-04-21 1575 static int devlink_nl_rate_set(struct devlink_rate *devlink_rate, 709d06045321cd Dmytro Linkin 2021-04-21 1576 const struct devlink_ops *ops, 709d06045321cd Dmytro Linkin 2021-04-21 1577 struct genl_info *info) 709d06045321cd Dmytro Linkin 2021-04-21 1578 { 709d06045321cd Dmytro Linkin 2021-04-21 1579 struct nlattr **attrs = info->attrs; 709d06045321cd Dmytro Linkin 2021-04-21 1580 u64 rate; 709d06045321cd Dmytro Linkin 2021-04-21 1581 int err; 709d06045321cd Dmytro Linkin 2021-04-21 1582 709d06045321cd Dmytro Linkin 2021-04-21 1583 if (attrs[DEVLINK_ATTR_RATE_TX_SHARE]) { 709d06045321cd Dmytro Linkin 2021-04-21 1584 rate = nla_get_u64(attrs[DEVLINK_ATTR_RATE_TX_SHARE]); ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1585 if (devlink_rate_is_leaf(devlink_rate)) 709d06045321cd Dmytro Linkin 2021-04-21 1586 err = ops->rate_leaf_tx_share_set(devlink_rate, devlink_rate->priv, 709d06045321cd Dmytro Linkin 2021-04-21 1587 rate, info->extack); ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1588 else if (devlink_rate_is_node(devlink_rate)) ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1589 err = ops->rate_node_tx_share_set(devlink_rate, devlink_rate->priv, ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1590 rate, info->extack); 709d06045321cd Dmytro Linkin 2021-04-21 @1591 if (err) 709d06045321cd Dmytro Linkin 2021-04-21 1592 return err; 709d06045321cd Dmytro Linkin 2021-04-21 1593 devlink_rate->tx_share = rate; 709d06045321cd Dmytro Linkin 2021-04-21 1594 } 709d06045321cd Dmytro Linkin 2021-04-21 1595 709d06045321cd Dmytro Linkin 2021-04-21 1596 if (attrs[DEVLINK_ATTR_RATE_TX_MAX]) { 709d06045321cd Dmytro Linkin 2021-04-21 1597 rate = nla_get_u64(attrs[DEVLINK_ATTR_RATE_TX_MAX]); ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1598 if (devlink_rate_is_leaf(devlink_rate)) 709d06045321cd Dmytro Linkin 2021-04-21 1599 err = ops->rate_leaf_tx_max_set(devlink_rate, devlink_rate->priv, 709d06045321cd Dmytro Linkin 2021-04-21 1600 rate, info->extack); ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1601 else if (devlink_rate_is_node(devlink_rate)) ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1602 err = ops->rate_node_tx_max_set(devlink_rate, devlink_rate->priv, ddc9bb1d01c107 Dmytro Linkin 2021-04-21 1603 rate, info->extack); 709d06045321cd Dmytro Linkin 2021-04-21 1604 if (err) 709d06045321cd Dmytro Linkin 2021-04-21 1605 return err; 709d06045321cd Dmytro Linkin 2021-04-21 1606 devlink_rate->tx_max = rate; 709d06045321cd Dmytro Linkin 2021-04-21 1607 } 709d06045321cd Dmytro Linkin 2021-04-21 1608 709d06045321cd Dmytro Linkin 2021-04-21 1609 return 0; 709d06045321cd Dmytro Linkin 2021-04-21 1610 } 709d06045321cd Dmytro Linkin 2021-04-21 1611 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [peterz-queue:sched/core-sched 14/27] include/asm-generic/numa.h:24:36: sparse: sparse: context imbalance in 'io_wq_worker_affinity' - wrong count at exit
CC: kbuild-...@lists.01.org TO: Peter Zijlstra tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core-sched head: 0ddb3c135bb7b36f9aa6c6efdf2405a384e9936e commit: b144a91e3fef514df9f8ebcce90701cd3c535b62 [14/27] sched: Use raw_spin_rq_*lock*() helpers :: branch date: 9 hours ago :: commit date: 9 hours ago config: arm64-randconfig-s031-20210421 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=b144a91e3fef514df9f8ebcce90701cd3c535b62 git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git git fetch --no-tags peterz-queue sched/core-sched git checkout b144a91e3fef514df9f8ebcce90701cd3c535b62 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) fs/io-wq.c: note: in included file (through arch/arm64/include/asm/numa.h, arch/arm64/include/asm/mmzone.h, include/linux/mmzone.h, ...): >> include/asm-generic/numa.h:24:36: sparse: sparse: context imbalance in >> 'io_wq_worker_affinity' - wrong count at exit vim +/io_wq_worker_affinity +24 include/asm-generic/numa.h ae3c107cd8bea8 Atish Patra 2020-11-18 19 ae3c107cd8bea8 Atish Patra 2020-11-18 20 #ifdef CONFIG_DEBUG_PER_CPU_MAPS ae3c107cd8bea8 Atish Patra 2020-11-18 21 const struct cpumask *cpumask_of_node(int node); ae3c107cd8bea8 Atish Patra 2020-11-18 22 #else ae3c107cd8bea8 Atish Patra 2020-11-18 23 /* Returns a pointer to the cpumask of CPUs on Node 'node'. */ ae3c107cd8bea8 Atish Patra 2020-11-18 @24 static inline const struct cpumask *cpumask_of_node(int node) ae3c107cd8bea8 Atish Patra 2020-11-18 25 { ae3c107cd8bea8 Atish Patra 2020-11-18 26 if (node == NUMA_NO_NODE) ae3c107cd8bea8 Atish Patra 2020-11-18 27 return cpu_all_mask; ae3c107cd8bea8 Atish Patra 2020-11-18 28 ae3c107cd8bea8 Atish Patra 2020-11-18 29 return node_to_cpumask_map[node]; ae3c107cd8bea8 Atish Patra 2020-11-18 30 } ae3c107cd8bea8 Atish Patra 2020-11-18 31 #endif ae3c107cd8bea8 Atish Patra 2020-11-18 32 :: The code at line 24 was first introduced by commit :: ae3c107cd8bea82cb7cb427d9c5d305b8ce72216 numa: Move numa implementation to common code :: TO: Atish Patra :: CC: Palmer Dabbelt --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [linux-next:master 5218/14231] drivers/infiniband/hw/mlx5/odp.c:1541 mlx5r_odp_create_eq() warn: missing error code 'err'
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Shay Drory CC: Jason Gunthorpe CC: Maor Gottlieb CC: Leon Romanovsky tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b74523885a715463203d4ccc3cf8c85952d3701a commit: ad50294d4d6b573654cddf09a689592414b28b45 [5218/14231] RDMA/mlx5: Create ODP EQ only when ODP MR is created :: branch date: 6 hours ago :: commit date: 4 weeks ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/infiniband/hw/mlx5/odp.c:1541 mlx5r_odp_create_eq() warn: missing error code 'err' vim +/err +1541 drivers/infiniband/hw/mlx5/odp.c d5d284b829a6eb Saeed Mahameed 2018-11-19 1533 ad50294d4d6b57 Shay Drory 2021-03-14 1534 int mlx5r_odp_create_eq(struct mlx5_ib_dev *dev, struct mlx5_ib_pf_eq *eq) d5d284b829a6eb Saeed Mahameed 2018-11-19 1535 { d5d284b829a6eb Saeed Mahameed 2018-11-19 1536 struct mlx5_eq_param param = {}; ad50294d4d6b57 Shay Drory 2021-03-14 1537 int err = 0; d5d284b829a6eb Saeed Mahameed 2018-11-19 1538 ad50294d4d6b57 Shay Drory 2021-03-14 1539 mutex_lock(>odp_eq_mutex); ad50294d4d6b57 Shay Drory 2021-03-14 1540 if (eq->core) ad50294d4d6b57 Shay Drory 2021-03-14 @1541 goto unlock; d5d284b829a6eb Saeed Mahameed 2018-11-19 1542 INIT_WORK(>work, mlx5_ib_eq_pf_action); d5d284b829a6eb Saeed Mahameed 2018-11-19 1543 spin_lock_init(>lock); d5d284b829a6eb Saeed Mahameed 2018-11-19 1544 eq->dev = dev; d5d284b829a6eb Saeed Mahameed 2018-11-19 1545 d5d284b829a6eb Saeed Mahameed 2018-11-19 1546 eq->pool = mempool_create_kmalloc_pool(MLX5_IB_NUM_PF_DRAIN, d5d284b829a6eb Saeed Mahameed 2018-11-19 1547 sizeof(struct mlx5_pagefault)); ad50294d4d6b57 Shay Drory 2021-03-14 1548 if (!eq->pool) { ad50294d4d6b57 Shay Drory 2021-03-14 1549 err = -ENOMEM; ad50294d4d6b57 Shay Drory 2021-03-14 1550 goto unlock; ad50294d4d6b57 Shay Drory 2021-03-14 1551 } d5d284b829a6eb Saeed Mahameed 2018-11-19 1552 d5d284b829a6eb Saeed Mahameed 2018-11-19 1553 eq->wq = alloc_workqueue("mlx5_ib_page_fault", d5d284b829a6eb Saeed Mahameed 2018-11-19 1554 WQ_HIGHPRI | WQ_UNBOUND | WQ_MEM_RECLAIM, d5d284b829a6eb Saeed Mahameed 2018-11-19 1555 MLX5_NUM_CMD_EQE); d5d284b829a6eb Saeed Mahameed 2018-11-19 1556 if (!eq->wq) { d5d284b829a6eb Saeed Mahameed 2018-11-19 1557 err = -ENOMEM; d5d284b829a6eb Saeed Mahameed 2018-11-19 1558 goto err_mempool; d5d284b829a6eb Saeed Mahameed 2018-11-19 1559 } d5d284b829a6eb Saeed Mahameed 2018-11-19 1560 ca390799c2aa03 Yuval Avnery2019-06-10 1561 eq->irq_nb.notifier_call = mlx5_ib_eq_pf_int; d5d284b829a6eb Saeed Mahameed 2018-11-19 1562 param = (struct mlx5_eq_param){ 81bfa206032a67 Ariel Levkovich 2019-06-10 1563 .irq_index = 0, d5d284b829a6eb Saeed Mahameed 2018-11-19 1564 .nent = MLX5_IB_NUM_PF_EQE, d5d284b829a6eb Saeed Mahameed 2018-11-19 1565 }; b9a7ba55620748 Yishai Hadas2019-06-30 1566 param.mask[0] = 1ull << MLX5_EVENT_TYPE_PAGE_FAULT; 24163189da487b Yuval Avnery2019-06-10 1567 eq->core = mlx5_eq_create_generic(dev->mdev, ); d5d284b829a6eb Saeed Mahameed 2018-11-19 1568 if (IS_ERR(eq->core)) { d5d284b829a6eb Saeed Mahameed 2018-11-19 1569 err = PTR_ERR(eq->core); d5d284b829a6eb Saeed Mahameed 2018-11-19 1570 goto err_wq; d5d284b829a6eb Saeed Mahameed 2018-11-19 1571 } 1f8a7bee27e63d Yuval Avnery2019-06-10 1572 err = mlx5_eq_enable(dev->mdev, eq->core, >irq_nb); 1f8a7bee27e63d Yuval Avnery2019-06-10 1573 if (err) { 1f8a7bee27e63d Yuval Avnery2019-06-10 1574 mlx5_ib_err(dev, "failed to enable odp EQ %d\n", err); 1f8a7bee27e63d Yuval Avnery2019-06-10 1575 goto err_eq; 1f8a7bee27e63d Yuval Avnery2019-06-10 1576 } d5d284b829a6eb Saeed Mahameed 2018-11-19 1577 ad50294d4d6b57 Shay Drory 2021-03-14 1578 mutex_unlock(>odp_eq_mutex); d5d284b829a6eb Saeed Mahameed 2018-11-19 1579 return 0; 1f8a7bee27e63d Yuval Avnery2019-06-10 1580 err_eq: 1f8a7bee27e63d Yuval Avnery2019-06-10 1581 mlx5_eq_destroy_generic(dev->mdev, eq->core); d5d284b829a6eb Saeed Mahameed 2018-11-19 1582 err_wq: ad50294d4d6b57 Shay Drory 2021-03-14 1583 eq-&g
[kbuild] [linux-next:master 12249/14231] sound/soc/intel/boards/kbl_da7219_max98927.c:291 kabylake_ssp_fixup() warn: ignoring unreachable code.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Lukasz Majczak CC: Mark Brown tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b74523885a715463203d4ccc3cf8c85952d3701a commit: a523ef731ac6674dc07574f31bf44cc5bfa14e4d [12249/14231] ASoC: Intel: kbl_da7219_max98927: Fix kabylake_ssp_fixup function :: branch date: 6 hours ago :: commit date: 6 days ago config: i386-randconfig-m031-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: sound/soc/intel/boards/kbl_da7219_max98927.c:291 kabylake_ssp_fixup() warn: ignoring unreachable code. Old smatch warnings: sound/soc/intel/boards/kbl_da7219_max98927.c:300 kabylake_ssp_fixup() warn: ignoring unreachable code. vim +291 sound/soc/intel/boards/kbl_da7219_max98927.c bca0ac1d96739c Mac Chiang 2018-10-09 276 bca0ac1d96739c Mac Chiang 2018-10-09 277 static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, bca0ac1d96739c Mac Chiang 2018-10-09 278 struct snd_pcm_hw_params *params) bca0ac1d96739c Mac Chiang 2018-10-09 279 { bca0ac1d96739c Mac Chiang 2018-10-09 280 struct snd_interval *rate = hw_param_interval(params, bca0ac1d96739c Mac Chiang 2018-10-09 281 SNDRV_PCM_HW_PARAM_RATE); 1a29c760663624 Pierre-Louis Bossart 2020-01-13 282 struct snd_interval *chan = hw_param_interval(params, bca0ac1d96739c Mac Chiang 2018-10-09 283 SNDRV_PCM_HW_PARAM_CHANNELS); bca0ac1d96739c Mac Chiang 2018-10-09 284 struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); a523ef731ac667 Lukasz Majczak 2021-04-15 285 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; bca0ac1d96739c Mac Chiang 2018-10-09 286 a523ef731ac667 Lukasz Majczak 2021-04-15 287 /* a523ef731ac667 Lukasz Majczak 2021-04-15 288 * The following loop will be called only for playback stream a523ef731ac667 Lukasz Majczak 2021-04-15 289 * In this platform, there is only one playback device on every SSP a523ef731ac667 Lukasz Majczak 2021-04-15 290 */ a523ef731ac667 Lukasz Majczak 2021-04-15 @291 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { a523ef731ac667 Lukasz Majczak 2021-04-15 292 rtd_dpcm = dpcm; a523ef731ac667 Lukasz Majczak 2021-04-15 293 break; a523ef731ac667 Lukasz Majczak 2021-04-15 294 } a523ef731ac667 Lukasz Majczak 2021-04-15 295 a523ef731ac667 Lukasz Majczak 2021-04-15 296 /* a523ef731ac667 Lukasz Majczak 2021-04-15 297 * This following loop will be called only for capture stream a523ef731ac667 Lukasz Majczak 2021-04-15 298 * In this platform, there is only one capture device on every SSP a523ef731ac667 Lukasz Majczak 2021-04-15 299 */ a523ef731ac667 Lukasz Majczak 2021-04-15 300 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { a523ef731ac667 Lukasz Majczak 2021-04-15 301 rtd_dpcm = dpcm; a523ef731ac667 Lukasz Majczak 2021-04-15 302 break; a523ef731ac667 Lukasz Majczak 2021-04-15 303 } a523ef731ac667 Lukasz Majczak 2021-04-15 304 a523ef731ac667 Lukasz Majczak 2021-04-15 305 if (!rtd_dpcm) a523ef731ac667 Lukasz Majczak 2021-04-15 306 return -EINVAL; a523ef731ac667 Lukasz Majczak 2021-04-15 307 a523ef731ac667 Lukasz Majczak 2021-04-15 308 /* a523ef731ac667 Lukasz Majczak 2021-04-15 309 * The above 2 loops are mutually exclusive based on the stream direction, a523ef731ac667 Lukasz Majczak 2021-04-15 310 * thus rtd_dpcm variable will never be overwritten a523ef731ac667 Lukasz Majczak 2021-04-15 311 */ 716d53cc7837ae Jenny TC 2019-02-25 312 /* 716d53cc7837ae Jenny TC 2019-02-25 313 * Topology for kblda7219m98373 & kblmax98373 supports only S24_LE, 716d53cc7837ae Jenny TC 2019-02-25 314 * where as kblda7219m98927 & kblmax98927 supports S16_LE by default. 716d53cc7837ae Jenny TC 2019-02-25 315 * Skipping the port wise FE and BE configuration for kblda7219m98373 & 716d53cc7837ae Jenny TC 2019-02-25 316 * kblmax98373 as the topology (FE & BE) supports S24_LE only. 716d53cc7837ae Jenny TC 2019-02-25 317 */ 716d53cc7837ae Jenny TC 2019-02-25 318 716d53cc7837ae Jenny TC 2019-02-25 319 if (!strcmp(rtd->card->name, "kblda7219m98373") || 716d53cc7837ae Jenny TC 2019-02-25 320 !strcmp(rtd->card->name, "kblmax98373")) { 716
[kbuild] Re: [PATCH v3 23/26] xprtrdma: Move cqe to struct rpcrdma_mr
CC: kbuild-...@lists.01.org In-Reply-To: <161885544311.38598.17973108446796585522.st...@manet.1015granger.net> References: <161885544311.38598.17973108446796585522.st...@manet.1015granger.net> TO: Chuck Lever TO: tron...@hammerspace.com CC: linux-...@vger.kernel.org CC: linux-r...@vger.kernel.org Hi Chuck, I love your patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on v5.12-rc8] [cannot apply to nfs/linux-next next-20210421] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Chuck-Lever/NFS-RDMA-client-patches-for-next/20210420-020504 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 5deac80d4571dffb51f452f0027979d72259a1b9 :: branch date: 2 days ago :: commit date: 2 days ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: net/sunrpc/xprtrdma/frwr_ops.c:546 frwr_unmap_sync() error: potentially dereferencing uninitialized 'last'. net/sunrpc/xprtrdma/frwr_ops.c:647 frwr_unmap_async() error: potentially dereferencing uninitialized 'last'. vim +/last +546 net/sunrpc/xprtrdma/frwr_ops.c 847568942f93e0 Chuck Lever 2019-06-19 493 847568942f93e0 Chuck Lever 2019-06-19 494 /** 847568942f93e0 Chuck Lever 2019-06-19 495 * frwr_unmap_sync - invalidate memory regions that were registered for @req 847568942f93e0 Chuck Lever 2019-06-19 496 * @r_xprt: controlling transport instance 847568942f93e0 Chuck Lever 2019-06-19 497 * @req: rpcrdma_req with a non-empty list of MRs to process 9d6b0409788287 Chuck Lever 2016-06-29 498 * 847568942f93e0 Chuck Lever 2019-06-19 499 * Sleeps until it is safe for the host CPU to access the previously mapped d8099feda4833b Chuck Lever 2019-06-19 500 * memory regions. This guarantees that registered MRs are properly fenced d8099feda4833b Chuck Lever 2019-06-19 501 * from the server before the RPC consumer accesses the data in them. It d8099feda4833b Chuck Lever 2019-06-19 502 * also ensures proper Send flow control: waking the next RPC waits until d8099feda4833b Chuck Lever 2019-06-19 503 * this RPC has relinquished all its Send Queue entries. c9918ff56dfb17 Chuck Lever 2015-12-16 504 */ 847568942f93e0 Chuck Lever 2019-06-19 505 void frwr_unmap_sync(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req) c9918ff56dfb17 Chuck Lever 2015-12-16 506 { d34ac5cd3a73aa Bart Van Assche 2018-07-18 507 struct ib_send_wr *first, **prev, *last; 5ecef9c8436695 Chuck Lever 2020-11-09 508 struct rpcrdma_ep *ep = r_xprt->rx_ep; d34ac5cd3a73aa Bart Van Assche 2018-07-18 509 const struct ib_send_wr *bad_wr; ce5b3717828356 Chuck Lever 2017-12-14 510 struct rpcrdma_frwr *frwr; 96ceddea3710f6 Chuck Lever 2017-12-14 511 struct rpcrdma_mr *mr; 847568942f93e0 Chuck Lever 2019-06-19 512 int rc; c9918ff56dfb17 Chuck Lever 2015-12-16 513 451d26e151f079 Chuck Lever 2017-06-08 514 /* ORDER: Invalidate all of the MRs first c9918ff56dfb17 Chuck Lever 2015-12-16 515 * c9918ff56dfb17 Chuck Lever 2015-12-16 516 * Chain the LOCAL_INV Work Requests and post them with c9918ff56dfb17 Chuck Lever 2015-12-16 517 * a single ib_post_send() call. c9918ff56dfb17 Chuck Lever 2015-12-16 518 */ ce5b3717828356 Chuck Lever 2017-12-14 519 frwr = NULL; a100fda1a2e1fa Chuck Lever 2016-11-29 520 prev = 265a38d4611360 Chuck Lever 2019-08-19 521 while ((mr = rpcrdma_mr_pop(>rl_registered))) { 96ceddea3710f6 Chuck Lever 2017-12-14 522 d379eaa838f181 Chuck Lever 2018-10-01 523 trace_xprtrdma_mr_localinv(mr); 847568942f93e0 Chuck Lever 2019-06-19 524 r_xprt->rx_stats.local_inv_needed++; a100fda1a2e1fa Chuck Lever 2016-11-29 525 847568942f93e0 Chuck Lever 2019-06-19 526 frwr = >frwr; ce5b3717828356 Chuck Lever 2017-12-14 527 last = >fr_invwr; 847568942f93e0 Chuck Lever 2019-06-19 528 last->next = NULL; c974afbfa9803a Chuck Lever 2021-04-19 529 last->wr_cqe = >mr_cqe; 847568942f93e0 Chuck Lever 2019-06-19 530 last->sg_list = NULL; 847568942f93e0 Chuck Lever 2019-06-19 531 last->num_sge = 0; a100fda1a2e1fa Chuck Lever 2016-11-29 532 last->opcode = IB_WR_LOCAL_INV; 847568942f93e0 Chuck Lever 2019-06-19 533
[kbuild] Re: [PATCH v2] virtio_blk: Add support for lifetime feature
CC: kbuild-...@lists.01.org In-Reply-To: <20210416194709.155497-1-egran...@google.com> References: <20210416194709.155497-1-egran...@google.com> TO: Enrico Granata Hi Enrico, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on block/for-next] [also build test WARNING on linus/master v5.12-rc8] [cannot apply to vhost/linux-next next-20210421] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Enrico-Granata/virtio_blk-Add-support-for-lifetime-feature/20210417-034754 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next :: branch date: 5 days ago :: commit date: 5 days ago config: i386-randconfig-m021-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: drivers/block/virtio_blk.c:256 virtio_queue_rq() error: uninitialized symbol 'type'. Old smatch warnings: drivers/block/virtio_blk.c:258 virtio_queue_rq() error: uninitialized symbol 'type'. vim +/type +256 drivers/block/virtio_blk.c 944e7c87967c82 Jens Axboe 2018-11-26 216 fc17b6534eb839 Christoph Hellwig 2017-06-03 217 static blk_status_t virtio_queue_rq(struct blk_mq_hw_ctx *hctx, 74c450521dd8d2 Jens Axboe 2014-10-29 218 const struct blk_mq_queue_data *bd) e467cde238184d Rusty Russell 2007-10-22 219 { 1cf7e9c68fe842 Jens Axboe 2013-11-01 220 struct virtio_blk *vblk = hctx->queue->queuedata; 74c450521dd8d2 Jens Axboe 2014-10-29 221 struct request *req = bd->rq; 9d74e25737d73e Christoph Hellwig 2014-04-14 222 struct virtblk_req *vbr = blk_mq_rq_to_pdu(req); 1cf7e9c68fe842 Jens Axboe 2013-11-01 223 unsigned long flags; 20af3cfd20145f Paolo Bonzini 2013-03-20 224 unsigned int num; 6a27b656fc0210 Ming Lei 2014-06-26 225 int qid = hctx->queue_num; 5261b85e586afe Rusty Russell 2014-03-13 226 int err; e8edca6f7f9223 Ming Lei 2014-05-30 227 bool notify = false; 1f23816b8eb8fd Changpeng Liu 2018-11-01 228 bool unmap = false; aebf526b53aea1 Christoph Hellwig 2017-01-31 229 u32 type; e467cde238184d Rusty Russell 2007-10-22 230 1cf7e9c68fe842 Jens Axboe 2013-11-01 231 BUG_ON(req->nr_phys_segments + 2 > vblk->sg_elems); e467cde238184d Rusty Russell 2007-10-22 232 aebf526b53aea1 Christoph Hellwig 2017-01-31 233 switch (req_op(req)) { aebf526b53aea1 Christoph Hellwig 2017-01-31 234 case REQ_OP_READ: aebf526b53aea1 Christoph Hellwig 2017-01-31 235 case REQ_OP_WRITE: aebf526b53aea1 Christoph Hellwig 2017-01-31 236 type = 0; f1b0ef06260271 Christoph Hellwig 2009-09-17 237 break; aebf526b53aea1 Christoph Hellwig 2017-01-31 238 case REQ_OP_FLUSH: aebf526b53aea1 Christoph Hellwig 2017-01-31 239 type = VIRTIO_BLK_T_FLUSH; f1b0ef06260271 Christoph Hellwig 2009-09-17 240 break; 1f23816b8eb8fd Changpeng Liu 2018-11-01 241 case REQ_OP_DISCARD: 1f23816b8eb8fd Changpeng Liu 2018-11-01 242 type = VIRTIO_BLK_T_DISCARD; 1f23816b8eb8fd Changpeng Liu 2018-11-01 243 break; 1f23816b8eb8fd Changpeng Liu 2018-11-01 244 case REQ_OP_WRITE_ZEROES: 1f23816b8eb8fd Changpeng Liu 2018-11-01 245 type = VIRTIO_BLK_T_WRITE_ZEROES; 1f23816b8eb8fd Changpeng Liu 2018-11-01 246 unmap = !(req->cmd_flags & REQ_NOUNMAP); 1f23816b8eb8fd Changpeng Liu 2018-11-01 247 break; aebf526b53aea1 Christoph Hellwig 2017-01-31 248 case REQ_OP_DRV_IN: fc90f60f9bc3b5 Enrico Granata 2021-04-16 249 break; /* type already set for custom requests */ f1b0ef06260271 Christoph Hellwig 2009-09-17 250 default: aebf526b53aea1 Christoph Hellwig 2017-01-31 251 WARN_ON_ONCE(1); fc17b6534eb839 Christoph Hellwig 2017-06-03 252 return BLK_STS_IOERR; dd40e456a40ebb FUJITA Tomonori2010-07-03 253 } e467cde238184d Rusty Russell 2007-10-22 254 fc90f60f9bc3b5 Enrico Granata 2021-04-16 255 if (req_op(req) != REQ_OP_DRV_IN) aebf526b53aea1 Christoph Hellwig 2017-01-31 @256 vbr->out_hdr.type = cpu_to_virtio32(vblk->vdev, type); fc90f60f9bc3b5 Enrico Granata 2021-04-16 257 aebf526b53aea1 Christoph Hellwig 2017-01-31 258 vbr->out_hdr.sector = type ? aebf526b53aea1 Christoph Hellwig 2017-01-31 259 0 : cpu_to_virtio64(vblk->vdev, blk_rq_pos(req)); aebf526b53aea1 Christoph Hellwig 2017-01-
[kbuild] [linux-next:master 12103/14231] drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:369 intel_crosststamp() warn: inconsistent returns '>aux_ts_lock'.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Tan Tee Min CC: Wong Vee Khee tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b74523885a715463203d4ccc3cf8c85952d3701a commit: f4da56529da602010979e8497d1f02eaf5df8883 [12103/14231] net: stmmac: Add support for external trigger timestamping :: branch date: 4 hours ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:369 intel_crosststamp() warn: inconsistent returns '>aux_ts_lock'. vim +369 drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c 341f67e424e572 Tan Tee Min 2021-03-23 274 341f67e424e572 Tan Tee Min 2021-03-23 275 static int intel_crosststamp(ktime_t *device, 341f67e424e572 Tan Tee Min 2021-03-23 276 struct system_counterval_t *system, 341f67e424e572 Tan Tee Min 2021-03-23 277 void *ctx) 341f67e424e572 Tan Tee Min 2021-03-23 278 { 341f67e424e572 Tan Tee Min 2021-03-23 279struct intel_priv_data *intel_priv; 341f67e424e572 Tan Tee Min 2021-03-23 280 341f67e424e572 Tan Tee Min 2021-03-23 281struct stmmac_priv *priv = (struct stmmac_priv *)ctx; 341f67e424e572 Tan Tee Min 2021-03-23 282void __iomem *ptpaddr = priv->ptpaddr; 341f67e424e572 Tan Tee Min 2021-03-23 283void __iomem *ioaddr = priv->hw->pcsr; 341f67e424e572 Tan Tee Min 2021-03-23 284unsigned long flags; 341f67e424e572 Tan Tee Min 2021-03-23 285u64 art_time = 0; 341f67e424e572 Tan Tee Min 2021-03-23 286u64 ptp_time = 0; 341f67e424e572 Tan Tee Min 2021-03-23 287u32 num_snapshot; 341f67e424e572 Tan Tee Min 2021-03-23 288u32 gpio_value; 341f67e424e572 Tan Tee Min 2021-03-23 289u32 acr_value; 341f67e424e572 Tan Tee Min 2021-03-23 290int ret; 341f67e424e572 Tan Tee Min 2021-03-23 291u32 v; 341f67e424e572 Tan Tee Min 2021-03-23 292int i; 341f67e424e572 Tan Tee Min 2021-03-23 293 341f67e424e572 Tan Tee Min 2021-03-23 294if (!boot_cpu_has(X86_FEATURE_ART)) 341f67e424e572 Tan Tee Min 2021-03-23 295return -EOPNOTSUPP; 341f67e424e572 Tan Tee Min 2021-03-23 296 341f67e424e572 Tan Tee Min 2021-03-23 297intel_priv = priv->plat->bsp_priv; 341f67e424e572 Tan Tee Min 2021-03-23 298 f4da56529da602 Tan Tee Min 2021-04-14 299/* Both internal crosstimestamping and external triggered event f4da56529da602 Tan Tee Min 2021-04-14 300 * timestamping cannot be run concurrently. f4da56529da602 Tan Tee Min 2021-04-14 301 */ f4da56529da602 Tan Tee Min 2021-04-14 302if (priv->plat->ext_snapshot_en) f4da56529da602 Tan Tee Min 2021-04-14 303return -EBUSY; f4da56529da602 Tan Tee Min 2021-04-14 304 f4da56529da602 Tan Tee Min 2021-04-14 305mutex_lock(>aux_ts_lock); 341f67e424e572 Tan Tee Min 2021-03-23 306/* Enable Internal snapshot trigger */ 341f67e424e572 Tan Tee Min 2021-03-23 307acr_value = readl(ptpaddr + PTP_ACR); 341f67e424e572 Tan Tee Min 2021-03-23 308acr_value &= ~PTP_ACR_MASK; 341f67e424e572 Tan Tee Min 2021-03-23 309switch (priv->plat->int_snapshot_num) { 341f67e424e572 Tan Tee Min 2021-03-23 310case AUX_SNAPSHOT0: 341f67e424e572 Tan Tee Min 2021-03-23 311acr_value |= PTP_ACR_ATSEN0; 341f67e424e572 Tan Tee Min 2021-03-23 312break; 341f67e424e572 Tan Tee Min 2021-03-23 313case AUX_SNAPSHOT1: 341f67e424e572 Tan Tee Min 2021-03-23 314acr_value |= PTP_ACR_ATSEN1; 341f67e424e572 Tan Tee Min 2021-03-23 315break; 341f67e424e572 Tan Tee Min 2021-03-23 316case AUX_SNAPSHOT2: 341f67e424e572 Tan Tee Min 2021-03-23 317acr_value |= PTP_ACR_ATSEN2; 341f67e424e572 Tan Tee Min 2021-03-23 318break; 341f67e424e572 Tan Tee Min 2021-03-23 319case AUX_SNAPSHOT3: 341f67e424e572 Tan Tee Min 2021-03-23 320acr_value |= PTP_ACR_ATSEN3; 341f67e424e572 Tan Tee Min 2021-03-23 321break; 341f67e424e572 Tan Tee Min 2021-03-23 322default: 341f67e424e572 Tan Tee Min 2021-03-23 323return -EINVAL; 341f67e424e572 Tan Tee Min 2021-03-23 324} 341f67e424e572 Tan Tee Min 2021-03-23 325writel(acr_value, ptpaddr + PTP_ACR); 341f67e424e572 Tan Tee Min 2021-03-23 326 341f67e424e572 Tan Tee Min 2021-03-23 327/* Clear FIFO */ 341f67e424e572 Tan Tee Min 2021-03-23 328acr_value = readl(ptpaddr + PTP_ACR); 341f67e424e572 Tan Tee Min 2021-03-23 329acr_value |= PTP_ACR_ATSFC; 341f67e424e572 Tan Tee Min 2021-03-23 330writel(acr_value, ptpaddr + PTP_ACR); f4da56529da602 Tan Te
[kbuild] [linux-next:master 2524/14231] drivers/net/ethernet/mellanox/mlx5/core/main.c:1245 mlx5_init_one() warn: missing error code 'err'
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Leon Romanovsky CC: Saeed Mahameed CC: Moshe Shemesh tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b74523885a715463203d4ccc3cf8c85952d3701a commit: 6dea2f7eff9659049f90922283756830364e6278 [2524/14231] net/mlx5: Separate probe vs. reload flows :: branch date: :: commit date: 6 weeks ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: drivers/net/ethernet/mellanox/mlx5/core/main.c:1245 mlx5_init_one() warn: missing error code 'err' Old smatch warnings: drivers/net/ethernet/mellanox/mlx5/core/main.c:1322 mlx5_load_one() warn: missing error code 'err' vim +/err +1245 drivers/net/ethernet/mellanox/mlx5/core/main.c 59211bd3b6329c Mohamad Haj Yahia 2016-09-09 1237 6dea2f7eff9659 Leon Romanovsky 2020-11-02 1238 int mlx5_init_one(struct mlx5_core_dev *dev) a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1239 { a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1240 int err = 0; a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1241 a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1242 mutex_lock(>intf_state_mutex); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1243 if (test_bit(MLX5_INTERFACE_STATE_UP, >intf_state)) { a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1244 mlx5_core_warn(dev, "interface is up, NOP\n"); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 @1245 goto out; 1bde6e301cf621 Eli Cohen 2014-01-14 1246 } a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1247 /* remove any previous indication of internal error */ a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1248 dev->state = MLX5_DEVICE_STATE_UP; e126ba97dba9ed Eli Cohen 2013-07-07 1249 6dea2f7eff9659 Leon Romanovsky 2020-11-02 1250 err = mlx5_function_setup(dev, true); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1251 if (err) 4f7400d5cbaef6 Shay Drory2020-05-06 1252 goto err_function; e126ba97dba9ed Eli Cohen 2013-07-07 1253 a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1254 err = mlx5_init_once(dev); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1255 if (err) { 98a8e6fc482d96 Huy Nguyen2019-03-29 1256 mlx5_core_err(dev, "sw objs init failed\n"); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1257 goto function_teardown; a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1258 } cd23b14b654769 Eli Cohen 2013-07-18 1259 a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1260 err = mlx5_load(dev); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1261 if (err) a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1262 goto err_load; a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1263 98f91c45769302 Parav Pandit 2020-05-15 1264 set_bit(MLX5_INTERFACE_STATE_UP, >intf_state); 98f91c45769302 Parav Pandit 2020-05-15 1265 a6f3b62386a02c Michael Guralnik 2019-11-20 1266 err = mlx5_devlink_register(priv_to_devlink(dev), dev->device); a6f3b62386a02c Michael Guralnik 2019-11-20 1267 if (err) a6f3b62386a02c Michael Guralnik 2019-11-20 1268 goto err_devlink_reg; a925b5e309c9b9 Leon Romanovsky 2020-10-08 1269 a925b5e309c9b9 Leon Romanovsky 2020-10-08 1270 err = mlx5_register_device(dev); a925b5e309c9b9 Leon Romanovsky 2020-10-08 1271 if (err) a925b5e309c9b9 Leon Romanovsky 2020-10-08 1272 goto err_register; a925b5e309c9b9 Leon Romanovsky 2020-10-08 1273 4162f58b476b24 Parav Pandit 2020-05-01 1274 mutex_unlock(>intf_state_mutex); 4162f58b476b24 Parav Pandit 2020-05-01 1275 return 0; a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1276 a925b5e309c9b9 Leon Romanovsky 2020-10-08 1277 err_register: a925b5e309c9b9 Leon Romanovsky 2020-10-08 1278 mlx5_devlink_unregister(priv_to_devlink(dev)); a6f3b62386a02c Michael Guralnik 2019-11-20 1279 err_devlink_reg: 98f91c45769302 Parav Pandit 2020-05-15 1280 clear_bit(MLX5_INTERFACE_STATE_UP, >intf_state); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1281 mlx5_unload(dev); a80d1b68c8b7a0 Saeed Mahameed2019-03-29 1282 err_load: 59211bd3b6329c Mohamad Haj Yahia 2016-09-09 1283 mlx5_cleanup_once(dev); e161105e58da81 Saeed Mahameed2019-03-29 1284 function_teardown: 6dea2f7eff9659 Leon Romanovsky 2020-11-02 1285 mlx5_function_teardown(dev, true); 4f7400d5cbaef6 Shay Drory2020-05-06 1286 err_function: 89d44f0a6c732d Majd Dibbiny 2015-10-14 1287 dev->state = MLX5_DEVICE_STATE_INTERNAL_ERROR; 4162f58b476b24 Parav Pandit 2020-05-01 1288 out: 89d44f0a6c732d Majd Dibbi
[kbuild] [ti:ti-rt-linux-5.10.y 3637/3763] drivers/pci/endpoint/pci-epf-core.c:169 pci_epf_add_vepf() warn: inconsistent returns '_pf->lock'.
CC: kbuild-...@lists.01.org TO: Kishon Vijay Abraham I CC: Vignesh Raghavendra tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y head: 995afcca2f9a28d16436145821b35c19fc180021 commit: 0cf43e35b1743dc43574089fcf3ff71d8cd2ae39 [3637/3763] PCI: endpoint: Add support to add virtual function in endpoint core :: branch date: 5 hours ago :: commit date: 3 weeks ago config: x86_64-randconfig-m001-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/pci/endpoint/pci-epf-core.c:169 pci_epf_add_vepf() warn: inconsistent returns '_pf->lock'. vim +169 drivers/pci/endpoint/pci-epf-core.c 5e8cb4033807e3 Kishon Vijay Abraham I 2017-04-10 130 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 131 /** 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 132 * pci_epf_add_vepf() - associate virtual EP function to physical EP function 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 133 * @epf_pf: the physical EP function to which the virtual EP function should be 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 134 * associated 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 135 * @epf_vf: the virtual EP function to be added 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 136 * 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 137 * A physical endpoint function can be associated with multiple virtual 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 138 * endpoint functions. Invoke pci_epf_add_epf() to add a virtual PCI endpoint 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 139 * function to a physical PCI endpoint function. 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 140 */ 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 141 int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf) 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 142 { 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 143 u32 vfunc_no; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 144 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 145 if (IS_ERR_OR_NULL(epf_pf) || IS_ERR_OR_NULL(epf_vf)) 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 146 return -EINVAL; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 147 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 148 if (epf_pf->epc || epf_vf->epc || epf_vf->epf_pf) 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 149 return -EBUSY; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 150 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 151 if (epf_pf->sec_epc || epf_vf->sec_epc) 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 152 return -EBUSY; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 153 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 154 mutex_lock(_pf->lock); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 155 vfunc_no = find_first_zero_bit(_pf->vfunction_num_map, 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 156 BITS_PER_LONG); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 157 if (vfunc_no >= BITS_PER_LONG) 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 158 return -EINVAL; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 159 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 160 set_bit(vfunc_no, _pf->vfunction_num_map); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 161 epf_vf->vfunc_no = vfunc_no; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 162 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 163 epf_vf->epf_pf = epf_pf; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 164 epf_vf->is_vf = true; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 165 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 166 list_add_tail(_vf->list, _pf->pci_vepf); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 167 mutex_unlock(_pf->lock); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 168 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 @169 return 0; 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 170 } 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 171 EXPORT_SYMBOL_GPL(pci_epf_add_vepf); 0cf43e35b1743d Kishon Vijay Abraham I 2021-03-30 172 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [gfs2:extents 5/5] fs/gfs2/extents.c:109:23-27: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
CC: kbuild-...@lists.01.org CC: cluster-de...@redhat.com TO: Andreas Gruenbacher tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git extents head: 114e06345e5b8ed56456caaeeedde7b93bb99af7 commit: 114e06345e5b8ed56456caaeeedde7b93bb99af7 [5/5] gfs2: Add some initial extents-based inode code :: branch date: 6 hours ago :: commit date: 6 hours ago config: i386-allmodconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Julia Lawall cocci warnings: (new ones prefixed by >>) >> fs/gfs2/extents.c:109:23-27: WARNING use flexible-array member instead >> (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) vim +109 fs/gfs2/extents.c 114e06345e5b8e Andreas Gruenbacher 2021-03-25 101 114e06345e5b8e Andreas Gruenbacher 2021-03-25 102 /* 114e06345e5b8e Andreas Gruenbacher 2021-03-25 103 * The path components in struct gfs2_extent_path are stored in "reverse" 114e06345e5b8e Andreas Gruenbacher 2021-03-25 104 * order: the leaf is stored first, and when the tree grows at the root, 114e06345e5b8e Andreas Gruenbacher 2021-03-25 105 * this happens at the end of the array. 114e06345e5b8e Andreas Gruenbacher 2021-03-25 106 */ 114e06345e5b8e Andreas Gruenbacher 2021-03-25 107 struct gfs2_extent_path { 114e06345e5b8e Andreas Gruenbacher 2021-03-25 108 unsigned int p_height; 114e06345e5b8e Andreas Gruenbacher 2021-03-25 @109 struct gfs2_extent_pc p_pc[1]; 114e06345e5b8e Andreas Gruenbacher 2021-03-25 110 }; 114e06345e5b8e Andreas Gruenbacher 2021-03-25 111 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] drivers/mtd/nand/raw/nandsim.c:1792 ns_switch_state() error: we previously assumed 'ns->op' could be null (see line 1714)
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Miquel Raynal tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1fe5501ba1abf2b7e78295df73675423bd6899a0 commit: 88f9f3e89a8ad1594c4d9c599bdf9c904e3976fe mtd: rawnand: nandsim: Use a consistent ns_ prefix for all functions date: 11 months ago :: branch date: 14 hours ago :: commit date: 11 months ago config: i386-randconfig-m031-20210421 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/mtd/nand/raw/nandsim.c:1792 ns_switch_state() error: we previously assumed 'ns->op' could be null (see line 1714) vim +1792 drivers/mtd/nand/raw/nandsim.c ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1708 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1709 /* ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1710 * Switch simulator's state. ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1711 */ 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1712 static void ns_switch_state(struct nandsim *ns) ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1713 { ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 @1714 if (ns->op) { ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1715 /* ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1716 * The current operation have already been identified. ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1717 * Just follow the states chain. ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1718 */ ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1719 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1720 ns->stateidx += 1; ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1721 ns->state = ns->nxstate; ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1722 ns->nxstate = ns->op[ns->stateidx + 1]; ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1723 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1724 NS_DBG("switch_state: operation is known, switch to the next state, " ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1725 "state: %s, nxstate: %s\n", 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1726 ns_get_state_name(ns->state), 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1727 ns_get_state_name(ns->nxstate)); ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1728 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1729 /* See, whether we need to do some action */ 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1730 if ((ns->state & ACTION_MASK) && 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1731 ns_do_state_action(ns, ns->state) < 0) { 88f9f3e89a8ad1 drivers/mtd/nand/raw/nandsim.c Miquel Raynal2020-05-25 1732 ns_switch_to_ready_state(ns, NS_STATUS_FAILED(ns)); ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1733 return; ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1734 } ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1735 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1736 } else { ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1737 /* ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1738 * We don't yet know which operation we perform. ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1739 * Try to identify it. ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1740 */ ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1741 ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1742 /* ^1da177e4c3f41 drivers/mtd/nand/nandsim.c Linus Torvalds 2005-04-16 1743 * The only event causing
[kbuild] drivers/rtc/rtc-mxc_v2.c:115:12: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Alexandre Belloni CC: Fabio Estevam Hi Alexandre, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1fe5501ba1abf2b7e78295df73675423bd6899a0 commit: 0020868f2a7037e87d6b3b196526de2fb885830d rtc: mxc{,_v2}: enable COMPILE_TEST date: 5 months ago :: branch date: 14 hours ago :: commit date: 5 months ago config: openrisc-randconfig-s032-20210421 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0020868f2a7037e87d6b3b196526de2fb885830d git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 0020868f2a7037e87d6b3b196526de2fb885830d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=openrisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/rtc/rtc-mxc_v2.c:115:12: sparse: sparse: context imbalance in >> 'mxc_rtc_lock' - wrong count at exit drivers/rtc/rtc-mxc_v2.c:128:12: sparse: sparse: context imbalance in 'mxc_rtc_unlock' - unexpected unlock vim +/mxc_rtc_lock +115 drivers/rtc/rtc-mxc_v2.c 83c880f79e88cc6 Patrick Bruenn 2017-12-18 110 83c880f79e88cc6 Patrick Bruenn 2017-12-18 111 /* 83c880f79e88cc6 Patrick Bruenn 2017-12-18 112 * Enable clk and aquire spinlock 83c880f79e88cc6 Patrick Bruenn 2017-12-18 113 * @return 0 if successful; non-zero otherwise. 83c880f79e88cc6 Patrick Bruenn 2017-12-18 114 */ 83c880f79e88cc6 Patrick Bruenn 2017-12-18 @115 static int mxc_rtc_lock(struct mxc_rtc_data *const pdata) 83c880f79e88cc6 Patrick Bruenn 2017-12-18 116 { 83c880f79e88cc6 Patrick Bruenn 2017-12-18 117 int ret; 83c880f79e88cc6 Patrick Bruenn 2017-12-18 118 83c880f79e88cc6 Patrick Bruenn 2017-12-18 119 spin_lock_irq(>lock); 83c880f79e88cc6 Patrick Bruenn 2017-12-18 120 ret = clk_enable(pdata->clk); 83c880f79e88cc6 Patrick Bruenn 2017-12-18 121 if (ret) { 83c880f79e88cc6 Patrick Bruenn 2017-12-18 122 spin_unlock_irq(>lock); 83c880f79e88cc6 Patrick Bruenn 2017-12-18 123 return ret; 83c880f79e88cc6 Patrick Bruenn 2017-12-18 124 } 83c880f79e88cc6 Patrick Bruenn 2017-12-18 125 return 0; 83c880f79e88cc6 Patrick Bruenn 2017-12-18 126 } 83c880f79e88cc6 Patrick Bruenn 2017-12-18 127 :: The code at line 115 was first introduced by commit :: 83c880f79e88cc60593f627e612326f5d43db81e rtc: add mxc driver for i.MX53 SRTC :: TO: Patrick Bruenn :: CC: Alexandre Belloni --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org