[kbuild] [chrome-os:chromeos-5.10 9748/9999] drivers/net/wireless/ath/ath11k/core.c:1364:3: warning: Value stored to 'fail_cont_count' is never read [clang-analyzer-deadcode.DeadStores]
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com TO: Guenter Roeck tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10 head: e9d25e91a257da70c77f1f4b8397a82fe5ba2298 commit: da4be8dec6ed58e488189c2d7e13da7509552bb1 [9748/] BACKPORT: FROMLIST: ath11k: add support for device recovery for QCA6390/WCN6855 :: branch date: 8 hours ago :: commit date: 11 days ago config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220223/202202231504.k56ll89h-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel git fetch --no-tags chrome-os chromeos-5.10 git checkout da4be8dec6ed58e488189c2d7e13da7509552bb1 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^~~ sound/soc/img/img-spdif-in.c:743:6: note: Returning from 'IS_ERR' if (IS_ERR(spdif->clk_sys)) { ^~ sound/soc/img/img-spdif-in.c:743:2: note: Taking false branch if (IS_ERR(spdif->clk_sys)) { ^ sound/soc/img/img-spdif-in.c:750:7: note: Calling 'pm_runtime_enabled' if (!pm_runtime_enabled(>dev)) { ^~ include/linux/pm_runtime.h:173:9: note: Assuming field 'disable_depth' is 0, which participates in a condition later return !dev->power.disable_depth; ^ include/linux/pm_runtime.h:173:2: note: Returning without writing to 'dev->power.disable_depth', which participates in a condition later return !dev->power.disable_depth; ^ include/linux/pm_runtime.h:173:2: note: Returning the value 1, which participates in a condition later return !dev->power.disable_depth; ^~~~ sound/soc/img/img-spdif-in.c:750:7: note: Returning from 'pm_runtime_enabled' if (!pm_runtime_enabled(>dev)) { ^~ sound/soc/img/img-spdif-in.c:750:2: note: Taking false branch if (!pm_runtime_enabled(>dev)) { ^ sound/soc/img/img-spdif-in.c:756:6: note: Assuming 'ret' is >= 0 if (ret < 0) { ^~~ sound/soc/img/img-spdif-in.c:756:2: note: Taking false branch if (ret < 0) { ^ sound/soc/img/img-spdif-in.c:762:6: note: Calling 'IS_ERR' if (IS_ERR(rst)) { ^~~ include/linux/err.h:36:2: note: Returning the value 1, which participates in a condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~ sound/soc/img/img-spdif-in.c:762:6: note: Returning from 'IS_ERR' if (IS_ERR(rst)) { ^~~ sound/soc/img/img-spdif-in.c:762:2: note: Taking true branch if (IS_ERR(rst)) { ^ sound/soc/img/img-spdif-in.c:763:3: note: Taking false branch if (PTR_ERR(rst) == -EPROBE_DEFER) { ^ sound/soc/img/img-spdif-in.c:767:3: note: Taking false branch dev_dbg(dev, "No top level reset found\n"); ^ include/linux/dev_printk.h:130:2: note: expanded from macro 'dev_dbg' if (0) \ ^ sound/soc/img/img-spdif-in.c:768:3: note: Calling 'img_spdif_in_writel' img_spdif_in_writel(spdif, IMG_SPDIF_IN_SOFT_RESET_MASK, ^~~~ sound/soc/img/img-spdif-in.c:117:1: note: Returning without writing to 'spdif->lock_release' } ^ sound/soc/img/img-spdif-in.c:768:3: note: Returning from 'img_spdif_in_writel' img_spdif_in_writel(spdif, IMG_SPDIF_IN_SOFT_RESET_MASK, ^~~~ sound/soc/img/img-spdif-in.c:770:3: note: Calling 'img_spdif_in_writel' img_spdif_in_writel(spdif, 0, IMG_SPDIF_IN_SOFT_RESET); ^~ sound/soc/img/img-spdif-in.c:117:1: note: Returning without writing to 'spdif->lock_release' } ^ sound/soc/img/img-spdif-in.c:770:3: note: Returning from 'img_spdif_in_writel' img_spdif_in_writel(spdif, 0,
[kbuild] drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c:390 iwl_send_phy_db_data() error: call of '__iwl_err' with no format argument
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Johannes Berg CC: Luca Coelho tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5c1ee569660d4a205dced9cb4d0306b907fb7599 commit: e5f1cc98cc1bd07bc6d4f75e34d89db06a2f8bdb iwlwifi: allow rate-limited error messages date: 4 months ago :: branch date: 7 hours ago :: commit date: 4 months ago config: ia64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202231545.vhd9scty-...@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/wireless/intel/iwlwifi/iwl-phy-db.c:390 iwl_send_phy_db_data() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:95 iwl_eeprom_verify_signature() warn: excess argument passed to '__iwl_err' drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:95 iwl_eeprom_verify_signature() warn: excess argument passed to '__iwl_err' drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:123 iwl_nvm_is_otp() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:188 iwl_read_otp_word() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:214 iwl_is_otp_empty() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c:326 iwl_read_eeprom() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1230 get_crf_id() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-io.c:315 iwl_dump_rfh() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-io.c:392 iwl_dump_fh() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c:432 iwl_trans_pcie_gen2_start_fw() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c:71 iwl_pcie_ctxt_info_dbg_enable() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1034 iwl_set_hw_address_family_8000() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1076 iwl_set_hw_address() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1171 iwl_parse_nvm_data() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1526 iwl_read_external_nvm() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1688 iwl_get_nvm() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c:121 iwl_pcie_gen2_enqueue_hcmd() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/rx.c:1869 iwl_pcie_irq_handler() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/rx.c:2286 iwl_pcie_irq_msix_handler() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c:874 iwl_dbg_tlv_set_periodic_trigs() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-drv.c:183 iwl_request_firmware() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-drv.c:469 iwl_parse_v1_v2_firmware() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-drv.c:696 iwl_parse_tlv_firmware() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1391 iwl_req_fw_callback() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/iwl-drv.c:1692 iwl_drv_start() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:65 iwl_trans_pcie_dump_regs() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:620 iwl_pcie_prepare_card_hw() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:675 iwl_pcie_load_firmware_chunk() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1331 iwl_trans_pcie_start_fw() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1540 iwl_trans_pcie_d3_resume() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1732 iwl_trans_pcie_clear_persistence_bit() error: call of '__iwl_err' with no format argument drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2077 __iwl_trans_pcie_grab_nic_access() error: call of '__iwl_err' with no format
[kbuild] drivers/net/ethernet/intel/ice/ice_main.c:5677 ice_update_vsi_tx_ring_stats() error: we previously assumed 'ring' could be null (see line 5673)
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Maciej Fijalkowski CC: Tony Nguyen tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5c1ee569660d4a205dced9cb4d0306b907fb7599 commit: e72bba21355dbb67512a0d666fec9f4b56dbfc2f ice: split ice_ring onto Tx/Rx separate structs date: 4 months ago :: branch date: 4 hours ago :: commit date: 4 months ago config: ia64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202231218.gebe64ar-...@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/intel/ice/ice_main.c:5677 ice_update_vsi_tx_ring_stats() error: we previously assumed 'ring' could be null (see line 5673) vim +/ring +5677 drivers/net/ethernet/intel/ice/ice_main.c fcea6f3da546b93 Anirudh Venkataramanan 2018-03-20 5654 49d358e0e746dc2 Marta Plantykow2020-05-15 5655 /** 49d358e0e746dc2 Marta Plantykow2020-05-15 5656 * ice_update_vsi_tx_ring_stats - Update VSI Tx ring stats counters 49d358e0e746dc2 Marta Plantykow2020-05-15 5657 * @vsi: the VSI to be updated 49d358e0e746dc2 Marta Plantykow2020-05-15 5658 * @rings: rings to work on 49d358e0e746dc2 Marta Plantykow2020-05-15 5659 * @count: number of rings 49d358e0e746dc2 Marta Plantykow2020-05-15 5660 */ 49d358e0e746dc2 Marta Plantykow2020-05-15 5661 static void e72bba21355dbb6 Maciej Fijalkowski 2021-08-19 5662 ice_update_vsi_tx_ring_stats(struct ice_vsi *vsi, struct ice_tx_ring **rings, 49d358e0e746dc2 Marta Plantykow2020-05-15 5663 u16 count) 49d358e0e746dc2 Marta Plantykow2020-05-15 5664 { 49d358e0e746dc2 Marta Plantykow2020-05-15 5665 struct rtnl_link_stats64 *vsi_stats = >net_stats; 49d358e0e746dc2 Marta Plantykow2020-05-15 5666 u16 i; 49d358e0e746dc2 Marta Plantykow2020-05-15 5667 49d358e0e746dc2 Marta Plantykow2020-05-15 5668 for (i = 0; i < count; i++) { e72bba21355dbb6 Maciej Fijalkowski 2021-08-19 5669 struct ice_tx_ring *ring; e72bba21355dbb6 Maciej Fijalkowski 2021-08-19 5670 u64 pkts = 0, bytes = 0; 49d358e0e746dc2 Marta Plantykow2020-05-15 5671 49d358e0e746dc2 Marta Plantykow2020-05-15 5672 ring = READ_ONCE(rings[i]); e72bba21355dbb6 Maciej Fijalkowski 2021-08-19 @5673 if (ring) e72bba21355dbb6 Maciej Fijalkowski 2021-08-19 5674 ice_fetch_u64_stats_per_ring(>syncp, ring->stats, , ); 49d358e0e746dc2 Marta Plantykow2020-05-15 5675 vsi_stats->tx_packets += pkts; 49d358e0e746dc2 Marta Plantykow2020-05-15 5676 vsi_stats->tx_bytes += bytes; 49d358e0e746dc2 Marta Plantykow2020-05-15 @5677 vsi->tx_restart += ring->tx_stats.restart_q; 49d358e0e746dc2 Marta Plantykow2020-05-15 5678 vsi->tx_busy += ring->tx_stats.tx_busy; 49d358e0e746dc2 Marta Plantykow2020-05-15 5679 vsi->tx_linearize += ring->tx_stats.tx_linearize; 49d358e0e746dc2 Marta Plantykow2020-05-15 5680 } 49d358e0e746dc2 Marta Plantykow2020-05-15 5681 } 49d358e0e746dc2 Marta Plantykow2020-05-15 5682 :: The code at line 5677 was first introduced by commit :: 49d358e0e746dc24bfb1b1cf98c17064e5177424 ice: Add XDP Tx to VSI ring stats :: TO: Marta Plantykow :: CC: Jeff Kirsher --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] drivers/net/ethernet/intel/iavf/iavf_main.c:2309 iavf_reset_task() warn: inconsistent returns '>crit_lock'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Stefan Assmann CC: Tony Nguyen tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: 5ac49f3c2702f269d31cc37eb9308bc557953c4d iavf: use mutexes for locking of critical sections date: 6 months ago :: branch date: 7 hours ago :: commit date: 6 months ago config: ia64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202230942.xmteg0na-...@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/intel/iavf/iavf_main.c:2309 iavf_reset_task() warn: inconsistent returns '>crit_lock'. vim +2309 drivers/net/ethernet/intel/iavf/iavf_main.c dedecb6d429bd33 drivers/net/ethernet/intel/i40evf/i40evf_main.c Joe Perches 2016-11-01 2088 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2089 /** 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2090 * iavf_reset_task - Call-back task to handle hardware reset 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2091 * @work: pointer to work_struct 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2092 * 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2093 * During reset we need to shut down and reinitialize the admin queue 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2094 * before we can use it to communicate with the PF again. We also clear 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2095 * and reinit the rings because that context is lost as well. 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2096 **/ 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2097 static void iavf_reset_task(struct work_struct *work) 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2098 { 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2099 struct iavf_adapter *adapter = container_of(work, 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2100 struct iavf_adapter, ef8693eb90ae387 drivers/net/ethernet/intel/i40evf/i40evf_main.c Mitch Williams 2014-02-13 2101 reset_task); 0075fa0fadd0ac6 drivers/net/ethernet/intel/i40evf/i40evf_main.c Harshitha Ramamurthy 2018-01-23 2102 struct virtchnl_vf_resource *vfres = adapter->vf_res; ac833bbf7958bbd drivers/net/ethernet/intel/i40evf/i40evf_main.c Mitch Williams 2015-01-29 2103 struct net_device *netdev = adapter->netdev; f349daa58809ae3 drivers/net/ethernet/intel/iavf/iavf_main.c Jesse Brandeburg 2018-09-14 2104 struct iavf_hw *hw = >hw; 9e05229190380f6 drivers/net/ethernet/intel/iavf/iavf_main.c Stefan Assmann 2019-12-17 2105 struct iavf_mac_filter *f, *ftmp; 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2106 struct iavf_vlan_filter *vlf; 129cf89e585676e drivers/net/ethernet/intel/iavf/i40evf_main.c Jesse Brandeburg 2018-09-14 2107 struct iavf_cloud_filter *cf; ee5c1e92dd01d37 drivers/net/ethernet/intel/i40evf/i40evf_main.c Mitch Williams 2015-08-28 2108 u32 reg_val; ac833bbf7958bbd drivers/net/ethernet/intel/i40evf/i40evf_main.c Mitch Williams 2015-01-29 2109 int i = 0, err; 44b034b406211fc drivers/net/ethernet/intel/i40evf/i40evf_main.c Jacob Keller 2017-10-27 2110 bool running; 5eae00c57f5e42b drivers/net/ethernet/intel/i40evf/i40evf_main.c Greg Rose 2013-12-21 2111 06aa040f039404a drivers/net/ethernet/intel/i40evf/i40evf_main.c Avinash Dayanand 2017-12-18 2112 /* When device is being removed it doesn't make sense to run the reset 06aa040f039404a drivers/net/ethernet/intel/i40evf/i40evf_main.c Avinash Dayanand 2017-12-18 2113 * task, just return in such a case. 06aa040f039404a drivers/net/ethernet/intel/i40evf/i40evf_main.c Avinash Dayanand 2017-12-18 2114 */ 5ac49f3c2702f26 drivers/net/ethernet/intel/iavf/iavf_main.c Stefan Assmann 2021-08-04 2115 if (mutex_is_locked(>remove_lock)) 06aa040f039404a drivers/net/ethernet/intel/i40evf/i40evf_main.c Avinash
[kbuild] [intel-tdx:kvm-upstream-workaround 155/160] arch/x86/kvm/mmu/mmu.c:3227:34: warning: Dereference of undefined pointer value (loaded from field 'sptep') [clang-analyzer-core.NullDereference]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Isaku Yamahata tree: https://github.com/intel/tdx.git kvm-upstream-workaround head: a549602d4d30c1eaf6d8ca0b7793197392e69bda commit: bc215305405aab0c7eb765a4764d27b5007935ed [155/160] KVM: x86/legacy mmu: prohibit mapping private or shared page for legacy MMU :: branch date: 4 days ago :: commit date: 4 days ago config: x86_64-randconfig-c007-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230735.q0kkzjfu-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://github.com/intel/tdx/commit/bc215305405aab0c7eb765a4764d27b5007935ed git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx kvm-upstream-workaround git checkout bc215305405aab0c7eb765a4764d27b5007935ed # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) arch/x86/kvm/mmu/mmu.c:4316:6: note: Assuming 'sp' is non-null if (sp && is_obsolete_sp(vcpu->kvm, sp)) ^~ arch/x86/kvm/mmu/mmu.c:4316:6: note: Left side of '&&' is true arch/x86/kvm/mmu/mmu.c:4316:2: note: Taking false branch if (sp && is_obsolete_sp(vcpu->kvm, sp)) ^ arch/x86/kvm/mmu/mmu.c:4327:7: note: 'sp' is non-null if (!sp && kvm_test_request(KVM_REQ_MMU_RELOAD, vcpu)) ^~ arch/x86/kvm/mmu/mmu.c:4327:10: note: Left side of '&&' is false if (!sp && kvm_test_request(KVM_REQ_MMU_RELOAD, vcpu)) ^ arch/x86/kvm/mmu/mmu.c:4330:16: note: Field 'slot' is non-null return fault->slot && ^ arch/x86/kvm/mmu/mmu.c:4330:9: note: Left side of '&&' is true return fault->slot && ^ arch/x86/kvm/mmu/mmu.c:4330:2: note: Returning without writing to 'fault->gfn', which participates in a condition later return fault->slot && ^ arch/x86/kvm/mmu/mmu.c:4371:6: note: Returning from 'is_page_fault_stale' if (is_page_fault_stale(vcpu, fault, mmu_seq)) ^ arch/x86/kvm/mmu/mmu.c:4371:2: note: Taking false branch if (is_page_fault_stale(vcpu, fault, mmu_seq)) ^ arch/x86/kvm/mmu/mmu.c:4375:6: note: 'r' is 0 if (r) ^ arch/x86/kvm/mmu/mmu.c:4375:2: note: Taking false branch if (r) ^ arch/x86/kvm/mmu/mmu.c:4378:6: note: 'is_tdp_mmu_fault' is false if (is_tdp_mmu_fault) ^~~~ arch/x86/kvm/mmu/mmu.c:4378:2: note: Taking false branch if (is_tdp_mmu_fault) ^ arch/x86/kvm/mmu/mmu.c:4381:7: note: Calling '__direct_map' r = __direct_map(vcpu, fault); ^ arch/x86/kvm/mmu/mmu.c:3234:20: note: Calling 'kvm_is_private_gfn' bool is_private = kvm_is_private_gfn(vcpu->kvm, fault->addr >> PAGE_SHIFT); ^~~~ arch/x86/kvm/mmu.h:411:9: note: 'mask' is 0 return mask && !(gfn & mask); ^~~~ arch/x86/kvm/mmu.h:411:14: note: Left side of '&&' is false return mask && !(gfn & mask); ^ arch/x86/kvm/mmu.h:411:2: note: Returning zero, which participates in a condition later return mask && !(gfn & mask); ^~~~ arch/x86/kvm/mmu/mmu.c:3234:20: note: Returning from 'kvm_is_private_gfn' bool is_private = kvm_is_private_gfn(vcpu->kvm, fault->addr >> PAGE_SHIFT); ^~~~ arch/x86/kvm/mmu/mmu.c:3239:6: note: Calling 'is_error_noslot_pfn' if (is_error_noslot_pfn(fault->pfn) || kvm_is_reserved_pfn(fault->pfn)) { ^~~ include/linux/kvm_host.h:116:10: note: Assuming the condition is false return !!(pfn & KVM_PFN_ERR_NOSLOT_MASK); ^~~~ include/linux/kvm_host.h:116:2: note: Returning the value 1, which participates in a condition later return !!(pfn & KVM_PFN_ERR_NOSLOT_MASK); ^~~~ arch/x86/kvm/mmu/mmu.c:3239:6: note: Returning from 'is_error_noslot_pfn' if (is_error_noslot_pfn(fault->pfn) ||
[kbuild] drivers/net/wireless/marvell/mwifiex/cfg80211.c:1307 mwifiex_cfg80211_change_virtual_intf() warn: ignoring unreachable code.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: "Jonas Dreßler" CC: Kalle Valo tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: abe3a2c9ead8fd95db141ea1df8d96c48cad3893 mwifiex: Use function to check whether interface type change is allowed date: 5 months ago :: branch date: 5 hours ago :: commit date: 5 months ago config: powerpc64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202230743.f8rucqjw-...@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 11.2.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/wireless/marvell/mwifiex/cfg80211.c:1307 mwifiex_cfg80211_change_virtual_intf() warn: ignoring unreachable code. vim +1307 drivers/net/wireless/marvell/mwifiex/cfg80211.c 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1126 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1127 static int 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1128 mwifiex_change_vif_to_ap(struct net_device *dev, 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1129enum nl80211_iftype curr_iftype, 818a986e4ebacea drivers/net/wireless/marvell/mwifiex/cfg80211.c Johannes Berg 2017-04-12 1130enum nl80211_iftype type, 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1131struct vif_params *params) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1132 { 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1133 struct mwifiex_private *priv; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1134 struct mwifiex_adapter *adapter; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1135 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1136 priv = mwifiex_netdev_get_priv(dev); 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1137 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1138 if (!priv) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1139 return -1; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1140 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1141 adapter = priv->adapter; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1142 acebe8c10a6eabd drivers/net/wireless/mwifiex/cfg80211.c Zhaoyang Liu 2015-05-12 1143 mwifiex_dbg(adapter, INFO, acebe8c10a6eabd drivers/net/wireless/mwifiex/cfg80211.c Zhaoyang Liu 2015-05-12 1144 "%s: changing role to AP\n", dev->name); 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1145 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1146 if (mwifiex_deinit_priv_params(priv)) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1147 return -1; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1148 if (mwifiex_init_new_priv_params(priv, dev, type)) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1149 return -1; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1150 if (mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE, 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1151HostCmd_ACT_GEN_SET, 0, NULL, true)) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1152 return -1; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1153 if (mwifiex_sta_init_cmd(priv, false, false)) 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1154 return -1; 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1155 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c Avinash Patil 2015-01-28 1156 switch (curr_iftype) { 047eaaf64503c29 drivers/net/wireless/mwifiex/cfg80211.c
[kbuild] [kvalo-ath:pending 33/42] drivers/net/wireless/ath/ath11k/hal_rx.c:1246:3: warning: Value stored to 'he_stbc' is never read [clang-analyzer-deadcode.DeadStores]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: Kalle Valo CC: ath...@lists.infradead.org CC: linux-ker...@vger.kernel.org TO: Pradeep Kumar Chitrapu CC: Kalle Valo CC: Miles Hu CC: Anilkumar Kolli tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending head: 4136ddcfda28450e2d01173e37300b95c8687d9b commit: 20168f00578862c259f02f179971f71c51a2a7a4 [33/42] ath11k: translate HE status to radiotap format :: branch date: 9 hours ago :: commit date: 2 days ago config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220223/202202230731.bspdcarb-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=20168f00578862c259f02f179971f71c51a2a7a4 git remote add kvalo-ath https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git git fetch --no-tags kvalo-ath pending git checkout 20168f00578862c259f02f179971f71c51a2a7a4 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^~~ net/sunrpc/cache.c:1081:4: note: Taking false branch if (test_bit(CACHE_PENDING, >flags)) ^ net/sunrpc/cache.c:1084:8: note: Assuming field 'readers' is equal to 0 if (cr->readers != 0) ^~~~ net/sunrpc/cache.c:1084:4: note: Taking false branch if (cr->readers != 0) ^ net/sunrpc/cache.c:1076:2: note: Loop condition is false. Execution continues on line 1088 list_for_each_entry_safe(cq, tmp, >queue, list) ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_entry_safe' for (pos = list_first_entry(head, typeof(*pos), member),\ ^ net/sunrpc/cache.c:1089:2: note: Loop condition is true. Entering loop body while (!list_empty()) { ^ net/sunrpc/cache.c:1094:3: note: Memory is released kfree(cr); ^ net/sunrpc/cache.c:1089:2: note: Loop condition is true. Entering loop body while (!list_empty()) { ^ net/sunrpc/cache.c:1091:3: note: Calling 'list_del' list_del(>q.list); ^ include/linux/list.h:149:14: note: Use of memory after it is freed entry->next = LIST_POISON1; ~~~ ^ Suppressed 11 warnings (11 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 9 warnings generated. Suppressed 9 warnings (9 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 6 warnings generated. Suppressed 6 warnings (5 in non-user code, 1 with check filters). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5
[kbuild] drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Luca Coelho tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: 9dad325f9d57508b154f0bebbc341a8528e5729c iwlwifi: support loading the reduced power table from UEFI date: 8 months ago :: branch date: 4 hours ago :: commit date: 8 months ago config: ia64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202230642.ysscraam-...@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'. vim +/len +332 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c cdda18fbbefafc6 Luca Coelho 2021-02-10 255 cdda18fbbefafc6 Luca Coelho 2021-02-10 256 int iwl_pnvm_load(struct iwl_trans *trans, cdda18fbbefafc6 Luca Coelho 2021-02-10 257 struct iwl_notif_wait_data *notif_wait) cdda18fbbefafc6 Luca Coelho 2021-02-10 258 { cdda18fbbefafc6 Luca Coelho 2021-02-10 259 u8 *data; cdda18fbbefafc6 Luca Coelho 2021-02-10 260 size_t len; 84c3c9952afbf7d Luca Coelho 2021-06-21 261 struct pnvm_sku_package *package; cdda18fbbefafc6 Luca Coelho 2021-02-10 262 struct iwl_notification_wait pnvm_wait; cdda18fbbefafc6 Luca Coelho 2021-02-10 263 static const u16 ntf_cmds[] = { WIDE_ID(REGULATORY_AND_NVM_GROUP, cdda18fbbefafc6 Luca Coelho 2021-02-10 264 PNVM_INIT_COMPLETE_NTFY) }; cdda18fbbefafc6 Luca Coelho 2021-02-10 265 int ret; cdda18fbbefafc6 Luca Coelho 2021-02-10 266 cdda18fbbefafc6 Luca Coelho 2021-02-10 267 /* if the SKU_ID is empty, there's nothing to do */ cdda18fbbefafc6 Luca Coelho 2021-02-10 268 if (!trans->sku_id[0] && !trans->sku_id[1] && !trans->sku_id[2]) cdda18fbbefafc6 Luca Coelho 2021-02-10 269 return 0; cdda18fbbefafc6 Luca Coelho 2021-02-10 270 cdda18fbbefafc6 Luca Coelho 2021-02-10 271 /* cdda18fbbefafc6 Luca Coelho 2021-02-10 272* If we already loaded (or tried to load) it before, we just cdda18fbbefafc6 Luca Coelho 2021-02-10 273* need to set it again. cdda18fbbefafc6 Luca Coelho 2021-02-10 274*/ cdda18fbbefafc6 Luca Coelho 2021-02-10 275 if (trans->pnvm_loaded) { cdda18fbbefafc6 Luca Coelho 2021-02-10 276 ret = iwl_trans_set_pnvm(trans, NULL, 0); cdda18fbbefafc6 Luca Coelho 2021-02-10 277 if (ret) cdda18fbbefafc6 Luca Coelho 2021-02-10 278 return ret; cdda18fbbefafc6 Luca Coelho 2021-02-10 279 goto skip_parse; cdda18fbbefafc6 Luca Coelho 2021-02-10 280 } cdda18fbbefafc6 Luca Coelho 2021-02-10 281 a1a6a4cf49eceb3 Luca Coelho 2021-02-11 282 /* First attempt to get the PNVM from BIOS */ 84c3c9952afbf7d Luca Coelho 2021-06-21 283 package = iwl_uefi_get_pnvm(trans, ); 84c3c9952afbf7d Luca Coelho 2021-06-21 284 if (!IS_ERR_OR_NULL(package)) { 84c3c9952afbf7d Luca Coelho 2021-06-21 285 data = kmemdup(package->data, len, GFP_KERNEL); 84c3c9952afbf7d Luca Coelho 2021-06-21 286 84c3c9952afbf7d Luca Coelho 2021-06-21 287 /* free package regardless of whether kmemdup succeeded */ 84c3c9952afbf7d Luca Coelho 2021-06-21 288 kfree(package); 84c3c9952afbf7d Luca Coelho 2021-06-21 289 84c3c9952afbf7d Luca Coelho 2021-06-21 290 if (data) { 84c3c9952afbf7d Luca Coelho 2021-06-21 291 /* we need only the data size */ 84c3c9952afbf7d Luca Coelho 2021-06-21 292 len -= sizeof(*package); a1a6a4cf49eceb3 Luca Coelho 2021-02-11 293 goto parse; 84c3c9952afbf7d Luca Coelho 2021-06-21 294 } 84c3c9952afbf7d Luca Coelho 2021-06-21 295 } a1a6a4cf49eceb3 Luca Coelho 2021-02-11 296 a1a6a4cf49eceb3 Luca Coelho 2021-02-11 297 /* If it's not available, try from the filesystem */ cdda18fbbefafc6 Luca Coelho 2021-02-10 298 ret = iwl_pnvm_get_from_fs(trans, , ); cdda18fbbefafc6 Luca Coelho 2021-02-10 299 if (ret) { 82a08d0cd7b503b Johannes Berg 2021-01-15 300 /* 82a08d0cd7b503b Johannes Berg 2021-01-15 301* Pretend we've loaded it - at least we've tried and 82a08d0cd7b503b Johannes Berg 2021-01-15 302* couldn't load it at all, so there's no point in 82a08d0cd7b503b Johannes Berg 2021-01-15 303* trying again over and over. 82a08d0cd7b503b Johannes Berg 2021-01-15 304*/ 82a08d0cd7b503b Johannes Berg 2021-01-15 305 trans->pnvm_loaded = true; 6972592850c00e5 Luca Coelho 2020-10-08 306 cdda18fbbefafc6 Luca Coelho 2021-02-10 307 goto skip_parse; 1c58bed4b7f7551 Johannes Berg 2021-01-15 308 } b3e4c0f34c1752c Luca Coelho
[kbuild] net/wireless/sme.c:782 __cfg80211_connect_result() error: we previously assumed 'cr->bss' could be null (see line 733)
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Christophe Leroy CC: Michael Ellerman tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 commit: 1e688dd2a3d6759d416616ff07afc4bb836c4213 powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto date: 6 months ago :: branch date: 27 hours ago :: commit date: 6 months ago config: powerpc64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202230424.wscorj8c-...@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: net/wireless/sme.c:782 __cfg80211_connect_result() error: we previously assumed 'cr->bss' could be null (see line 733) vim +782 net/wireless/sme.c e45cd82ace91b71 Johannes Berg 2009-07-02 726 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 727 if (!cr->bss && (cr->status == WLAN_STATUS_SUCCESS)) { f26cbf401be935e Zhao, Gang2014-04-21 728 WARN_ON_ONCE(!wiphy_to_rdev(wdev->wiphy)->ops->connect); 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 729 cr->bss = cfg80211_get_bss(wdev->wiphy, NULL, cr->bssid, 4c4d684a55fc01d Ujjal Roy 2013-12-04 730 wdev->ssid, wdev->ssid_len, 34d505193bd1066 Lior David2016-01-28 731 wdev->conn_bss_type, 6eb18137643fee5 Dedy Lansky 2015-02-08 732 IEEE80211_PRIVACY_ANY); 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 @733 if (cr->bss) 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 734 cfg80211_hold_bss(bss_from_pub(cr->bss)); 4c4d684a55fc01d Ujjal Roy 2013-12-04 735 } 4c4d684a55fc01d Ujjal Roy 2013-12-04 736 df7fc0f9735085b Johannes Berg 2009-07-29 737 if (wdev->current_bss) { df7fc0f9735085b Johannes Berg 2009-07-29 738 cfg80211_unhold_bss(wdev->current_bss); 5b112d3d098c97b Johannes Berg 2013-02-01 739 cfg80211_put_bss(wdev->wiphy, >current_bss->pub); df7fc0f9735085b Johannes Berg 2009-07-29 740 wdev->current_bss = NULL; df7fc0f9735085b Johannes Berg 2009-07-29 741 } df7fc0f9735085b Johannes Berg 2009-07-29 742 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 743 if (cr->status != WLAN_STATUS_SUCCESS) { 453431a54934d91 Waiman Long 2020-08-06 744 kfree_sensitive(wdev->connect_keys); fffd0934b9390f3 Johannes Berg 2009-07-08 745 wdev->connect_keys = NULL; 8dadadb7e977a91 Johannes Berg 2009-08-04 746 wdev->ssid_len = 0; bd2522b16884710 Andrzej Zaborowski2017-01-06 747 wdev->conn_owner_nlportid = 0; 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 748 if (cr->bss) { 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 749 cfg80211_unhold_bss(bss_from_pub(cr->bss)); 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 750 cfg80211_put_bss(wdev->wiphy, cr->bss); f1940c5730f0f05 Johannes Berg 2013-06-19 751 } c1fbb258846dfc4 Eliad Peller 2014-04-30 752 cfg80211_sme_free(wdev); fffd0934b9390f3 Johannes Berg 2009-07-08 753 return; fffd0934b9390f3 Johannes Berg 2009-07-08 754 } fffd0934b9390f3 Johannes Berg 2009-07-08 755 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 756 if (WARN_ON(!cr->bss)) b23aa676ab9d544 Samuel Ortiz 2009-07-01 757 return; f1940c5730f0f05 Johannes Berg 2013-06-19 758 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 759 wdev->current_bss = bss_from_pub(cr->bss); b23aa676ab9d544 Samuel Ortiz 2009-07-01 760 b8676221f00dd5b David Spinadel2016-09-22 761 if (!(wdev->wiphy->flags & WIPHY_FLAG_HAS_STATIC_WEP)) fffd0934b9390f3 Johannes Berg 2009-07-08 762 cfg80211_upload_connect_keys(wdev); 8b19e6ca3bac7e0 Luis R. Rodriguez 2009-07-30 763 9caf03640279e64 Johannes Berg 2012-11-29 764 rcu_read_lock(); 5349a0f7bfbdd7d Vidyullatha Kanchanapally 2017-03-31 765 country_ie = ieee80211_bss_get_ie(cr->bss, WLAN_EID_COUNTRY); 9caf03640279e64 Johannes Berg 2012-11-29 766 if (!country_ie) { 9caf03640279e64 Johannes Berg 2012-11-29 767 rcu_read_unlock(); 9caf03640279e64 Johannes Berg 2012-11-29 768
[kbuild] drivers/gpu/drm/drm_bufs.c:740:33-34: WARNING opportunity for max()
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Denis Efremov CC: Julia Lawall tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: 5f66f73b9ff4dcabd4e2405ba9c32e80e02f9408 coccinelle: misc: add minmax script date: 10 months ago :: branch date: 80 minutes ago :: commit date: 10 months ago config: x86_64-randconfig-c004-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230332.keb4lbr9-...@intel.com/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 >>) >> drivers/gpu/drm/drm_bufs.c:740:33-34: WARNING opportunity for max() drivers/gpu/drm/drm_bufs.c:917:33-34: WARNING opportunity for max() drivers/gpu/drm/drm_bufs.c:1115:33-34: WARNING opportunity for max() -- >> drivers/hid/hid-sony.c:1011:24-26: WARNING opportunity for min() -- >> drivers/gpu/drm/r128/r128_state.c:53:19-20: WARNING opportunity for min() -- >> drivers/gpu/drm/savage/savage_state.c:267:26-27: WARNING opportunity for >> min() Please review and possibly fold the followup patch. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [PATCH] coccinelle: misc: fix minmax.cocci warnings
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Denis Efremov CC: Julia Lawall CC: David Airlie CC: Daniel Vetter CC: dri-de...@lists.freedesktop.org CC: linux-ker...@vger.kernel.org From: kernel test robot drivers/gpu/drm/savage/savage_state.c:267:26-27: WARNING opportunity for min() Check for opencoded min(), max() implementations. Generated patches sometimes require adding a cast to fix compile warning. Warnings/patches scope intentionally limited to a function body. Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: 5f66f73b9ff4dcabd4e2405ba9c32e80e02f9408 coccinelle: misc: add minmax script :: branch date: 80 minutes ago :: commit date: 10 months ago Please take the patch only if it's a positive warning. Thanks! drivers/gpu/drm/savage/savage_state.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/savage/savage_state.c +++ b/drivers/gpu/drm/savage/savage_state.c @@ -264,7 +264,7 @@ static int savage_dispatch_state(drm_sav do { while (count > 0) { - unsigned int n = count < 255 ? count : 255; + unsigned int n = min(count, 255); DMA_SET_REGISTERS(start, n); DMA_COPY(regs, n); count -= n; ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [PATCH] coccinelle: misc: fix minmax.cocci warnings
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Denis Efremov CC: Julia Lawall CC: David Airlie CC: Daniel Vetter CC: dri-de...@lists.freedesktop.org CC: linux-ker...@vger.kernel.org From: kernel test robot drivers/gpu/drm/r128/r128_state.c:53:19-20: WARNING opportunity for min() Check for opencoded min(), max() implementations. Generated patches sometimes require adding a cast to fix compile warning. Warnings/patches scope intentionally limited to a function body. Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 917bbdb107f8767cb78f24e7d6725a2f93b9effe commit: 5f66f73b9ff4dcabd4e2405ba9c32e80e02f9408 coccinelle: misc: add minmax script :: branch date: 80 minutes ago :: commit date: 10 months ago Please take the patch only if it's a positive warning. Thanks! drivers/gpu/drm/r128/r128_state.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/r128/r128_state.c +++ b/drivers/gpu/drm/r128/r128_state.c @@ -50,7 +50,7 @@ static void r128_emit_clip_rects(drm_r12 RING_LOCALS; DRM_DEBUG("\n"); - BEGIN_RING((count < 3 ? count : 3) * 5 + 2); + BEGIN_RING(min(count, 3) * 5 + 2); if (count >= 1) { OUT_RING(CCE_PACKET0(R128_AUX1_SC_LEFT, 3)); ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] drivers/net/ethernet/intel/ice/ice_flow.c:663 ice_flow_xtract_fld() error: testing array offset 'sib' after use.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Qi Zhang CC: Tony Nguyen CC: Dan Nowlin tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 commit: b199dddbd399536d5470e10e6bfd7d0e1b5fb71a ice: Support non word aligned input set field date: 11 months ago :: branch date: 26 hours ago :: commit date: 11 months ago config: ia64-randconfig-m031-20220220 (https://download.01.org/0day-ci/archive/20220223/202202230223.zedcp365-...@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/intel/ice/ice_flow.c:663 ice_flow_xtract_fld() error: testing array offset 'sib' after use. Old smatch warnings: drivers/net/ethernet/intel/ice/ice_flow.c:1698 ice_add_rss_cfg_sync() error: we previously assumed 'prof' could be null (see line 1680) vim +/sib +663 drivers/net/ethernet/intel/ice/ice_flow.c 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 511 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 512 /** 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 513 * ice_flow_xtract_fld - Create an extraction sequence entry for the given field 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 514 * @hw: pointer to the HW struct 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 515 * @params: information about the flow to be processed 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 516 * @seg: packet segment index of the field to be extracted 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 517 * @fld: ID of field to be extracted b199dddbd39953 Qi Zhang 2021-03-09 518 * @match: bit field of all fields 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 519 * 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 520 * This function determines the protocol ID, offset, and size of the given 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 521 * field. It then allocates one or more extraction sequence entries for the 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 522 * given field, and fill the entries with protocol ID and offset information. 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 523 */ 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 524 static enum ice_status 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 525 ice_flow_xtract_fld(struct ice_hw *hw, struct ice_flow_prof_params *params, b199dddbd39953 Qi Zhang 2021-03-09 526u8 seg, enum ice_flow_field fld, u64 match) 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 527 { b199dddbd39953 Qi Zhang 2021-03-09 528enum ice_flow_field sib = ICE_FLOW_FIELD_IDX_MAX; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 529enum ice_prot_id prot_id = ICE_PROT_ID_INVAL; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 530u8 fv_words = hw->blk[params->blk].es.fvw; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 531struct ice_flow_fld_info *flds; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 532u16 cnt, ese_bits, i; b199dddbd39953 Qi Zhang 2021-03-09 533u16 sib_mask = 0; b199dddbd39953 Qi Zhang 2021-03-09 534u16 mask; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 535u16 off; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 536 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 537flds = params->prof->segs[seg].fields; 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 538 31ad4e4ee1e4e2 Tony Nguyen 2020-01-17 539switch (fld) { 390bd141808d50 Qi Zhang 2021-03-09 540case ICE_FLOW_FIELD_IDX_ETH_DA: 390bd141808d50 Qi Zhang 2021-03-09 541case ICE_FLOW_FIELD_IDX_ETH_SA: 390bd141808d50 Qi Zhang 2021-03-09 542case ICE_FLOW_FIELD_IDX_S_VLAN: 390bd141808d50 Qi Zhang 2021-03-09 543case ICE_FLOW_FIELD_IDX_C_VLAN: 390bd141808d50 Qi Zhang 2021-03-09 544prot_id = seg == 0 ? ICE_PROT_MAC_OF_OR_S : ICE_PROT_MAC_IL; 390bd141808d50 Qi Zhang 2021-03-09 545break; 390bd141808d50 Qi Zhang 2021-03-09 546case ICE_FLOW_FIELD_IDX_ETH_TYPE: 390bd141808d50 Qi Zhang 2021-03-09 547prot_id = seg == 0 ? ICE_PROT_ETYPE_OL : ICE_PROT_ETYPE_IL; 390bd141808d50 Qi Zhang 2021-03-09 548break; b199dddbd39953 Qi Zhang 2021-03-09 549case ICE_FLOW_FIELD_IDX_IPV4_DSCP: b199dddbd39953 Qi Zhang 2021-03-09 550prot_id = seg == 0 ? ICE_PROT_IPV4_OF_OR_S : ICE_PROT_IPV4_IL; b199dddbd39953 Qi Zhang 2021-03-09 551break; b199dddbd39953 Qi Zhang 2021-03-09 552case ICE_FLOW_FIELD_IDX_IPV6_DSCP: b199dddbd39953 Qi Zhang 2021-03-09 553prot_id = seg == 0 ? ICE_PROT_IPV6_OF_OR_S :
[kbuild] [atishp04:sbi_pmu_v6 14/17] drivers/perf/riscv_pmu_sbi.c:464 pmu_sbi_get_ctrinfo() warn: potentially one past the end of array 'pmu_ctr_list[i]'
CC: kbuild-...@lists.01.org CC: Atish Patra CC: linux-ker...@vger.kernel.org TO: Atish Patra tree: https://github.com/atishp04/linux sbi_pmu_v6 head: 876094386d4f915d81ec2ee5b8b412987a10d808 commit: 626af3184b715c86adace38af397cf4223f2cb75 [14/17] RISC-V: Add perf platform driver based on SBI PMU extension :: branch date: 4 days ago :: commit date: 4 days ago config: riscv-randconfig-m031-20220222 (https://download.01.org/0day-ci/archive/20220223/202202230110.onie1tgt-...@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/perf/riscv_pmu_sbi.c:464 pmu_sbi_get_ctrinfo() warn: potentially one past the end of array 'pmu_ctr_list[i]' drivers/perf/riscv_pmu_sbi.c:464 pmu_sbi_get_ctrinfo() warn: potentially one past the end of array 'pmu_ctr_list[i]' vim +464 drivers/perf/riscv_pmu_sbi.c 626af3184b715c Atish Patra 2021-03-17 443 626af3184b715c Atish Patra 2021-03-17 444 static int pmu_sbi_get_ctrinfo(int nctr) 626af3184b715c Atish Patra 2021-03-17 445 { 626af3184b715c Atish Patra 2021-03-17 446 struct sbiret ret; 626af3184b715c Atish Patra 2021-03-17 447 int i, num_hw_ctr = 0, num_fw_ctr = 0; 626af3184b715c Atish Patra 2021-03-17 448 union sbi_pmu_ctr_info cinfo; 626af3184b715c Atish Patra 2021-03-17 449 626af3184b715c Atish Patra 2021-03-17 450 pmu_ctr_list = kcalloc(nctr, sizeof(*pmu_ctr_list), GFP_KERNEL); 626af3184b715c Atish Patra 2021-03-17 451 if (!pmu_ctr_list) 626af3184b715c Atish Patra 2021-03-17 452 return -ENOMEM; 626af3184b715c Atish Patra 2021-03-17 453 626af3184b715c Atish Patra 2021-03-17 454 for (i = 0; i <= nctr; i++) { 626af3184b715c Atish Patra 2021-03-17 455 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_GET_INFO, i, 0, 0, 0, 0, 0); 626af3184b715c Atish Patra 2021-03-17 456 if (ret.error) 626af3184b715c Atish Patra 2021-03-17 457 /* The logical counter ids are not expected to be contiguous */ 626af3184b715c Atish Patra 2021-03-17 458 continue; 626af3184b715c Atish Patra 2021-03-17 459 cinfo.value = ret.value; 626af3184b715c Atish Patra 2021-03-17 460 if (cinfo.type == SBI_PMU_CTR_TYPE_FW) 626af3184b715c Atish Patra 2021-03-17 461 num_fw_ctr++; 626af3184b715c Atish Patra 2021-03-17 462 else 626af3184b715c Atish Patra 2021-03-17 463 num_hw_ctr++; 626af3184b715c Atish Patra 2021-03-17 @464 pmu_ctr_list[i].value = cinfo.value; 626af3184b715c Atish Patra 2021-03-17 465 } 626af3184b715c Atish Patra 2021-03-17 466 626af3184b715c Atish Patra 2021-03-17 467 pr_info("%d firmware and %d hardware counters\n", num_fw_ctr, num_hw_ctr); 626af3184b715c Atish Patra 2021-03-17 468 626af3184b715c Atish Patra 2021-03-17 469 return 0; 626af3184b715c Atish Patra 2021-03-17 470 } 626af3184b715c Atish Patra 2021-03-17 471 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [ceph-client:wip-fscrypt 58/63] fs/ceph/file.c:1793:9: warning: Branch condition evaluates to a garbage value [clang-analyzer-core.uninitialized.Branch]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: ceph-de...@vger.kernel.org TO: Jeff Layton tree: https://github.com/ceph/ceph-client.git wip-fscrypt head: 4ec0d0e0cc68c6525ace02e7a8a5bb57a4242997 commit: fcb8f573d113365f8f0d226a6744b3c40494dcfe [58/63] ceph: add read/modify/write to ceph_sync_write :: branch date: 3 days ago :: commit date: 3 days ago config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220223/202202230006.5e56x7es-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://github.com/ceph/ceph-client/commit/fcb8f573d113365f8f0d226a6744b3c40494dcfe git remote add ceph-client https://github.com/ceph/ceph-client.git git fetch --no-tags ceph-client wip-fscrypt git checkout fcb8f573d113365f8f0d226a6744b3c40494dcfe # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) fs/nfs/nfs4namespace.c:300:14: note: 's' is < field 'nservers' for (s = 0; s < location->nservers; s++) { ^ fs/nfs/nfs4namespace.c:300:2: note: Loop condition is true. Entering loop body for (s = 0; s < location->nservers; s++) { ^ fs/nfs/nfs4namespace.c:302:7: note: Assuming 'len' is >= field 'len' if (buf->len > len) ^~ fs/nfs/nfs4namespace.c:302:3: note: Taking false branch if (buf->len > len) ^ fs/nfs/nfs4namespace.c:300:14: note: Assuming 's' is >= field 'nservers' for (s = 0; s < location->nservers; s++) { ^~ fs/nfs/nfs4namespace.c:300:2: note: Loop condition is false. Execution continues on line 306 for (s = 0; s < location->nservers; s++) { ^ fs/nfs/nfs4namespace.c:308:6: note: Assuming field 'hostname' is non-null if (!ctx->nfs_server.hostname) ^ fs/nfs/nfs4namespace.c:308:2: note: Taking false branch if (!ctx->nfs_server.hostname) ^ fs/nfs/nfs4namespace.c:311:16: note: Calling 'nfs4_pathname_string' export_path = nfs4_pathname_string(>rootpath, ^ fs/nfs/nfs4namespace.c:65:6: note: Assuming 'len' is >= 0 if (len < 0) ^~~ fs/nfs/nfs4namespace.c:65:2: note: Taking false branch if (len < 0) ^ fs/nfs/nfs4namespace.c:69:12: note: Memory is allocated p = buf = kmalloc(len + 1, GFP_KERNEL); ^~~~ fs/nfs/nfs4namespace.c:70:6: note: Assuming 'buf' is non-null if (!buf) ^~~~ fs/nfs/nfs4namespace.c:70:2: note: Taking false branch if (!buf) ^ fs/nfs/nfs4namespace.c:73:14: note: 'i' is < field 'ncomponents' for (i = 0; i < pathname->ncomponents; i++) { ^ fs/nfs/nfs4namespace.c:73:2: note: Loop condition is true. Entering loop body for (i = 0; i < pathname->ncomponents; i++) { ^ fs/nfs/nfs4namespace.c:73:14: note: Assuming 'i' is >= field 'ncomponents' for (i = 0; i < pathname->ncomponents; i++) { ^ fs/nfs/nfs4namespace.c:73:2: note: Loop condition is false. Execution continues on line 81 for (i = 0; i < pathname->ncomponents; i++) { ^ fs/nfs/nfs4namespace.c:311:16: note: Returned allocated memory export_path = nfs4_pathname_string(>rootpath, ^ fs/nfs/nfs4namespace.c:313:2: note: Taking true branch if (IS_ERR(export_path)) ^ fs/nfs/nfs4namespace.c:391:11: note: Returned allocated memory error = try_location(fc, location); ^~ fs/nfs/nfs4namespace.c:392:7: note: Assuming 'error' is equal to 0 if (error == 0) ^~ fs/nfs/nfs4namespace.c:392:3: note: Taking true branch if (error == 0) ^ fs/nfs/nfs4namespace.c:393:11: note: Potential memory leak return 0; ^ Suppressed 9 warnings (9 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as
[kbuild] drivers/cxl/pmem.c:143:7: warning: Value stored to 'rc' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Dan Williams CC: Jonathan Cameron tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 commit: 21083f51521fb0f60dbac591f175c3ed48435af4 cxl/pmem: Register 'pmem' / cxl_nvdimm devices date: 8 months ago :: branch date: 24 hours ago :: commit date: 8 months ago config: riscv-randconfig-c006-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230052.lcyf8iag-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=21083f51521fb0f60dbac591f175c3ed48435af4 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 21083f51521fb0f60dbac591f175c3ed48435af4 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^ fs/jfs/jfs_dtree.c:787:2: note: Assuming the condition is true DT_PUTPAGE(mp); ^ fs/jfs/jfs_dtree.c:131:24: note: expanded from macro 'DT_PUTPAGE' #define DT_PUTPAGE(MP) BT_PUTPAGE(MP) ^~ fs/jfs/jfs_btree.h:87:8: note: expanded from macro 'BT_PUTPAGE' if (! BT_IS_ROOT(MP)) \ ^~ fs/jfs/jfs_btree.h:47:25: note: expanded from macro 'BT_IS_ROOT' #define BT_IS_ROOT(MP) (((MP)->xflag & COMMIT_PAGE) == 0) ^~~~ fs/jfs/jfs_dtree.c:787:2: note: Taking false branch DT_PUTPAGE(mp); ^ fs/jfs/jfs_dtree.c:131:24: note: expanded from macro 'DT_PUTPAGE' #define DT_PUTPAGE(MP) BT_PUTPAGE(MP) ^ fs/jfs/jfs_btree.h:87:2: note: expanded from macro 'BT_PUTPAGE' if (! BT_IS_ROOT(MP)) \ ^ fs/jfs/jfs_dtree.c:4528:12: note: Returning from 'dtSearch' if ((rc = dtSearch(ip, key, orig_ino, , flag))) ^~~ fs/jfs/jfs_dtree.c:4528:7: note: Assuming 'rc' is 0 if ((rc = dtSearch(ip, key, orig_ino, , flag))) ^~ fs/jfs/jfs_dtree.c:4528:2: note: Taking false branch if ((rc = dtSearch(ip, key, orig_ino, , flag))) ^ fs/jfs/jfs_dtree.c:4532:2: note: Assigned value is garbage or undefined DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); ^ fs/jfs/jfs_dtree.c:134:2: note: expanded from macro 'DT_GETSEARCH' BT_GETSEARCH(IP, LEAF, BN, MP, dtpage_t, P, INDEX, i_dtroot) ^~~~ fs/jfs/jfs_btree.h:144:5: note: expanded from macro 'BT_GETSEARCH' BN = (LEAF)->bn;\ ^ ~~ fs/jfs/jfs_types.h:67:33: warning: The left operand of '&' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] pxd->len_addr = (pxd->len_addr & cpu_to_le32(0xff)) | ^ fs/jfs/jfs_dtree.c:946:7: note: Assuming the condition is false sp = DT_PAGE(ip, smp); ^ fs/jfs/jfs_dtree.c:111:25: note: expanded from macro 'DT_PAGE' #define DT_PAGE(IP, MP) BT_PAGE(IP, MP, dtpage_t, i_dtroot) ^~~ fs/jfs/jfs_btree.h:51:3: note: expanded from macro 'BT_PAGE' (BT_IS_ROOT(MP) ? (TYPE *)_IP(IP)->ROOT : (TYPE *)(MP)->data) ^~ fs/jfs/jfs_btree.h:47:25: note: expanded from macro 'BT_IS_ROOT' #define BT_IS_ROOT(MP) (((MP)->xflag & COMMIT_PAGE) == 0) ^~~~ fs/jfs/jfs_dtree.c:946:7: note: '?' condition is false sp = DT_PAGE(ip, smp); ^ fs/jfs/jfs_dtree.c:111:25: note: expanded from macro 'DT_PAGE' #define DT_PAGE(IP, MP) BT_PAGE(IP, MP, dtpage_t, i_dtroot) ^ fs/jfs/jfs_btree.h:51:3: note: expanded from macro 'BT_PAGE' (BT_IS_ROOT(MP) ? (TYPE *)_IP(IP)->ROOT : (TYPE *)(MP)->data) ^ fs/jfs/jfs_btree.h:47:24: note: expanded from macro 'BT_IS_ROOT' #define BT_IS_ROOT(MP) (((MP)->xflag & COMMIT_PAGE) == 0)
[kbuild] sound/soc/soc-ops.c:461:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Mark Brown tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 commit: 7f3d90a3519680dfa23e750f80bfdefc0f5eda4a ASoC: ops: Fix stereo change notifications in snd_soc_put_volsw_sx() date: 3 weeks ago :: branch date: 22 hours ago :: commit date: 3 weeks ago config: x86_64-randconfig-c007-20220221 (https://download.01.org/0day-ci/archive/20220222/20220354.zleau0lx-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f3d90a3519680dfa23e750f80bfdefc0f5eda4a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 7f3d90a3519680dfa23e750f80bfdefc0f5eda4a # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^~ Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 6 warnings generated. fs/btrfs/extent_map.c:615:3: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] ret = 0; ^ ~ fs/btrfs/extent_map.c:615:3: note: Value stored to 'ret' is never read ret = 0; ^ ~ Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 6 warnings generated. drivers/media/tuners/fc0011.c:252:3: warning: Value stored to 'bandwidth' is never read [clang-analyzer-deadcode.DeadStores] bandwidth = 6000; ^ drivers/media/tuners/fc0011.c:252:3: note: Value stored to 'bandwidth' is never read bandwidth = 6000; ^ Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. Suppressed 5 warnings (5 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -
[kbuild] [hch-block:freeze-5.18 5/12] drivers/scsi/sr.c:486:23: warning: Although the value stored to 'cd' is used in the enclosing expression, the value is never actually read from 'cd' [clang-analyz
CC: kbuild-...@lists.01.org TO: Christoph Hellwig tree: git://git.infradead.org/users/hch/block.git freeze-5.18 head: 160aadf96a0cc9afd4b49f9a097e23494f7f33b6 commit: 511f348c57ee61fe305de34c2860a6663175c3cc [5/12] sr: implement ->free_disk :: branch date: 4 days ago :: commit date: 4 days ago config: i386-randconfig-c001 (https://download.01.org/0day-ci/archive/20220222/20220219.uax3fshz-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 remote add hch-block git://git.infradead.org/users/hch/block.git git fetch --no-tags hch-block freeze-5.18 git checkout 511f348c57ee61fe305de34c2860a6663175c3cc # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) drivers/base/cacheinfo.c:241:3: note: Taking false branch if (!cpumask_empty(_leaf->shared_cpu_map)) ^ include/linux/compiler.h:56:23: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^ drivers/base/cacheinfo.c:245:3: note: Loop condition is true. Entering loop body for_each_online_cpu(i) { ^ include/linux/cpumask.h:815:36: note: expanded from macro 'for_each_online_cpu' #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^ include/linux/cpumask.h:190:2: note: expanded from macro 'for_each_cpu' for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) ^ drivers/base/cacheinfo.c:248:8: note: 'i' is not equal to 'cpu' if (i == cpu || !sib_cpu_ci->info_list) ^ include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ drivers/base/cacheinfo.c:248:8: note: Left side of '||' is false if (i == cpu || !sib_cpu_ci->info_list) ^ drivers/base/cacheinfo.c:248:20: note: Assuming field 'info_list' is null if (i == cpu || !sib_cpu_ci->info_list) ^ include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ drivers/base/cacheinfo.c:248:4: note: '?' condition is false if (i == cpu || !sib_cpu_ci->info_list) ^ include/linux/compiler.h:56:28: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^ include/linux/compiler.h:58:31: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^ drivers/base/cacheinfo.c:248:8: note: 'i' is not equal to 'cpu' if (i == cpu || !sib_cpu_ci->info_list) ^ include/linux/compiler.h:56:47: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~ include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value' (cond) ?\ ^~~~ drivers/base/cacheinfo.c:248:8: note: Left side of '||' is false if (i == cpu || !sib_cpu_ci->info_list) ^ drivers/base/cacheinfo.c:248:4: note: '?' condition is true
[kbuild] drivers/crypto/atmel-tdes.c:683:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Tudor Ambarus CC: Herbert Xu tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 038101e6b2cd5c55f888f85db42ea2ad3aecb4b6 commit: 817b804ca36747f0c9db667d7d8aa9fdd55335c7 crypto: atmel-tdes - Handle error messages date: 7 months ago :: branch date: 18 hours ago :: commit date: 7 months ago config: riscv-randconfig-c006-20220216 (https://download.01.org/0day-ci/archive/20220222/202202221939.g3oddxda-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=817b804ca36747f0c9db667d7d8aa9fdd55335c7 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 817b804ca36747f0c9db667d7d8aa9fdd55335c7 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. drivers/media/usb/uvc/uvc_ctrl.c:836:37: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult] *data = (*data & ~mask) | ((value << offset) & mask); ~ ^ drivers/media/usb/uvc/uvc_ctrl.c:828:6: note: Assuming field 'v4l2_type' is equal to V4L2_CTRL_TYPE_BUTTON if (mapping->v4l2_type == V4L2_CTRL_TYPE_BUTTON) ^~~ drivers/media/usb/uvc/uvc_ctrl.c:828:2: note: Taking true branch if (mapping->v4l2_type == V4L2_CTRL_TYPE_BUTTON) ^ drivers/media/usb/uvc/uvc_ctrl.c:834:9: note: Assuming 'bits' is > 0 for (; bits > 0; data++) { ^~~~ drivers/media/usb/uvc/uvc_ctrl.c:834:2: note: Loop condition is true. Entering loop body for (; bits > 0; data++) { ^ drivers/media/usb/uvc/uvc_ctrl.c:837:13: note: Assuming 'offset' is 0 value >>= offset ? offset : 8; ^~ drivers/media/usb/uvc/uvc_ctrl.c:837:13: note: '?' condition is false drivers/media/usb/uvc/uvc_ctrl.c:837:3: note: The value -1 is assigned to 'value' value >>= offset ? offset : 8; ^ drivers/media/usb/uvc/uvc_ctrl.c:834:9: note: Assuming 'bits' is > 0 for (; bits > 0; data++) { ^~~~ drivers/media/usb/uvc/uvc_ctrl.c:834:2: note: Loop condition is true. Entering loop body for (; bits > 0; data++) { ^ drivers/media/usb/uvc/uvc_ctrl.c:836:37: note: The result of the left shift is undefined because the left operand is negative *data = (*data & ~mask) | ((value << offset) & mask); ~ ^ Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -syste