[kbuild] [mkl-can-next:testing 45/46] drivers/net/can/flexcan.c:666:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
CC: kbuild-...@lists.01.org CC: linux-...@vger.kernel.org TO: Angelo Dureghello CC: "Marc Kleine-Budde" tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing head: 8dad5561c13ade87238d9de6dd410b43f7562447 commit: d9cead75b1c66b4660b4f87ff339234042d7c6a5 [45/46] can: flexcan: add mcf5441x support :: branch date: 2 days ago :: commit date: 2 days ago config: x86_64-randconfig-c001-20210726 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?id=d9cead75b1c66b4660b4f87ff339234042d7c6a5 git remote add mkl-can-next https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git git fetch --no-tags mkl-can-next testing git checkout d9cead75b1c66b4660b4f87ff339234042d7c6a5 # save the attached .config 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 >>) 8 warnings generated. drivers/staging/ks7010/ks_hostif.c:895:2: warning: Value stored to 'pbuf' is never read [clang-analyzer-deadcode.DeadStores] pbuf += sprintf(pbuf, ")"); ^ ~~ drivers/staging/ks7010/ks_hostif.c:895:2: note: Value stored to 'pbuf' is never read pbuf += sprintf(pbuf, ")"); ^ ~~ drivers/staging/ks7010/ks_hostif.c:1178:5: warning: Value stored to 'length' is never read [clang-analyzer-deadcode.DeadStores] length += sizeof(mic); ^ ~~~ drivers/staging/ks7010/ks_hostif.c:1178:5: note: Value stored to 'length' is never read length += sizeof(mic); ^ ~~~ drivers/staging/ks7010/ks_hostif.c:1180:5: warning: Value stored to 'p' is never read [clang-analyzer-deadcode.DeadStores] p += sizeof(mic); ^~~~ drivers/staging/ks7010/ks_hostif.c:1180:5: note: Value stored to 'p' is never read p += sizeof(mic); ^~~~ 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/staging/ks7010/ks_wlan_net.c:1811:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(extra, priv->firmware_version); ^~ drivers/staging/ks7010/ks_wlan_net.c:1811:2: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy(extra, priv->firmware_version); ^~ 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. 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. 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. 5 warnings generated. fs/splice.c:725:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn] return ret; ^ ~~~ fs/splice.c:630:2: note: 'ret' declared without an initial value ssize_t ret; ^~~ fs/splice.c:632:15: note: Assuming 'array' is non-null if (unlikely(!array))
[kbuild] kernel/bpf/bpf_iter.c:409:14: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Yonghong Song CC: Alexei Starovoitov tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: 5e7b30205cef80f6bb922e61834437ca7bff5837 bpf: Change uapi for bpf iterator map elements date: 12 months ago :: branch date: 30 hours ago :: commit date: 12 months ago compiler: powerpc-linux-gcc (GCC) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> kernel/bpf/bpf_iter.c:409:14: warning: Boolean result is used in bitwise >> operation. Clarify expression with parentheses. [clarifyCondition] if (!ulinfo ^ !linfo_len) ^ vim +409 kernel/bpf/bpf_iter.c 367ec3e4834cbd Yonghong Song 2020-05-09 390 de4e05cac46d20 Yonghong Song 2020-05-09 391 int bpf_iter_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) de4e05cac46d20 Yonghong Song 2020-05-09 392 { 5e7b30205cef80 Yonghong Song 2020-08-04 393union bpf_iter_link_info __user *ulinfo; de4e05cac46d20 Yonghong Song 2020-05-09 394struct bpf_link_primer link_primer; de4e05cac46d20 Yonghong Song 2020-05-09 395struct bpf_iter_target_info *tinfo; 5e7b30205cef80 Yonghong Song 2020-08-04 396union bpf_iter_link_info linfo; de4e05cac46d20 Yonghong Song 2020-05-09 397struct bpf_iter_link *link; 5e7b30205cef80 Yonghong Song 2020-08-04 398u32 prog_btf_id, linfo_len; de4e05cac46d20 Yonghong Song 2020-05-09 399bool existed = false; de4e05cac46d20 Yonghong Song 2020-05-09 400int err; de4e05cac46d20 Yonghong Song 2020-05-09 401 5e7b30205cef80 Yonghong Song 2020-08-04 402if (attr->link_create.target_fd || attr->link_create.flags) 5e7b30205cef80 Yonghong Song 2020-08-04 403return -EINVAL; 5e7b30205cef80 Yonghong Song 2020-08-04 404 5e7b30205cef80 Yonghong Song 2020-08-04 405memset(, 0, sizeof(union bpf_iter_link_info)); 5e7b30205cef80 Yonghong Song 2020-08-04 406 5e7b30205cef80 Yonghong Song 2020-08-04 407ulinfo = u64_to_user_ptr(attr->link_create.iter_info); 5e7b30205cef80 Yonghong Song 2020-08-04 408linfo_len = attr->link_create.iter_info_len; 5e7b30205cef80 Yonghong Song 2020-08-04 @409if (!ulinfo ^ !linfo_len) 5e7b30205cef80 Yonghong Song 2020-08-04 410return -EINVAL; 5e7b30205cef80 Yonghong Song 2020-08-04 411 5e7b30205cef80 Yonghong Song 2020-08-04 412if (ulinfo) { 5e7b30205cef80 Yonghong Song 2020-08-04 413err = bpf_check_uarg_tail_zero(ulinfo, sizeof(linfo), 5e7b30205cef80 Yonghong Song 2020-08-04 414 linfo_len); 5e7b30205cef80 Yonghong Song 2020-08-04 415if (err) 5e7b30205cef80 Yonghong Song 2020-08-04 416return err; 5e7b30205cef80 Yonghong Song 2020-08-04 417linfo_len = min_t(u32, linfo_len, sizeof(linfo)); 5e7b30205cef80 Yonghong Song 2020-08-04 418if (copy_from_user(, ulinfo, linfo_len)) 5e7b30205cef80 Yonghong Song 2020-08-04 419return -EFAULT; 5e7b30205cef80 Yonghong Song 2020-08-04 420} 5e7b30205cef80 Yonghong Song 2020-08-04 421 de4e05cac46d20 Yonghong Song 2020-05-09 422prog_btf_id = prog->aux->attach_btf_id; de4e05cac46d20 Yonghong Song 2020-05-09 423mutex_lock(_mutex); de4e05cac46d20 Yonghong Song 2020-05-09 424list_for_each_entry(tinfo, , list) { de4e05cac46d20 Yonghong Song 2020-05-09 425if (tinfo->btf_id == prog_btf_id) { de4e05cac46d20 Yonghong Song 2020-05-09 426existed = true; de4e05cac46d20 Yonghong Song 2020-05-09 427break; de4e05cac46d20 Yonghong Song 2020-05-09 428} de4e05cac46d20 Yonghong Song 2020-05-09 429} de4e05cac46d20 Yonghong Song 2020-05-09 430mutex_unlock(_mutex); de4e05cac46d20 Yonghong Song 2020-05-09 431if (!existed) de4e05cac46d20 Yonghong Song 2020-05-09 432return -ENOENT; de4e05cac46d20 Yonghong Song 2020-05-09 433 de4e05cac46d20 Yonghong Song 2020-05-09 434link = kzalloc(sizeof(*link), GFP_USER | __GFP_NOWARN); de4e05cac46d20 Yonghong Song 2020-05-09 435if (!link) de4e05cac46d20 Yonghong Song 2020-05-09 436return -ENOMEM; de4e05cac46d20 Yonghong Song 2020-05-09 437 de4e05cac46d20 Yonghong Song 2020-05-09 438bpf_link_init(>link, BPF_LINK_TYPE_ITER, _iter_link_lops, prog); de4e05cac46d20 Yonghong Song 2020-05-09 439link->tinfo = tinfo; de4e05cac46d20 Yonghong Song 2020-05-09 440 de4e05cac46d20 Yonghong Song 2020-05-09 441err = bpf_link_prime(>link, _primer); de4e05cac46d20 Yonghong Song 2020-05-09 442if (err) { de4e05cac46d20 Yonghong Song 2020-05-09 443kfree(link); de4e05cac46d20 Yonghong Song 2020-05-09 444return err; de4e05cac46d20 Yonghong Song 2020-05-09 445
[kbuild] Re: [RFC PATCH v3 2/9] Bluetooth: btintel: Add combined setup and shutdown functions
CC: kbuild-...@lists.01.org In-Reply-To: <20210724073005.714003-3-hj.tedd...@gmail.com> References: <20210724073005.714003-3-hj.tedd...@gmail.com> TO: "Tedd Ho-Jeong An" Hi Tedd, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on bluetooth/master] [also build test WARNING on v5.14-rc3 next-20210726] [cannot apply to bluetooth-next/master] [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/Tedd-Ho-Jeong-An/Bluetooth-btintel-Refactoring-setup-routines/20210724-153223 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master :: branch date: 3 days ago :: commit date: 3 days ago config: x86_64-randconfig-c001-20210723 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3f2c1e99e44d028d5e9dd685f3c568f2661f2f68) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/eca1c570017a1accc1a7f6be7fe1fa0a390066f9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tedd-Ho-Jeong-An/Bluetooth-btintel-Refactoring-setup-routines/20210724-153223 git checkout eca1c570017a1accc1a7f6be7fe1fa0a390066f9 # save the attached .config 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 >>) 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. 8 warnings generated. Suppressed 8 warnings (6 in non-user code, 2 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. 8 warnings generated. Suppressed 8 warnings (6 in non-user code, 2 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. 9 warnings generated. drivers/gpu/drm/radeon/rv6xx_dpm.c:173:25: warning: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] if (step->post_divider == 1) ^ drivers/gpu/drm/radeon/rv6xx_dpm.c:1671:6: note: Assuming field 'thermal_protection' is false if (pi->thermal_protection) ^~ drivers/gpu/drm/radeon/rv6xx_dpm.c:1671:2: note: Taking false branch if (pi->thermal_protection) ^ drivers/gpu/drm/radeon/rv6xx_dpm.c:1678:2: note: Calling 'rv6xx_generate_transition_stepping' rv6xx_generate_transition_stepping(rdev, new_ps, old_ps); ^~~~ drivers/gpu/drm/radeon/rv6xx_dpm.c:1425:2: note: Calling 'rv6xx_generate_steps' rv6xx_generate_steps(rdev, ^~ drivers/gpu/drm/radeon/rv6xx_dpm.c:248:2: note: Calling 'rv6xx_convert_clock_to_stepping' rv6xx_convert_clock_to_stepping(rdev, low, ); ^~~~ drivers/gpu/drm/radeon/rv6xx_dpm.c:146:6: note: Assuming 'ret' is not equal to 0 if (ret) ^~~ drivers/gpu/drm/radeon/rv6xx_dpm.c:146:2: note: Taking true branch if (ret) ^ drivers/gpu/drm/radeon/rv6xx_dpm.c:147:3: note: Returning without writing to 'step->post_divider' return ret; ^ drivers/gpu/drm/radeon/rv6xx_dpm.c:248:2: note: Returning from 'rv6xx_convert_clock_to_stepping' rv6xx_convert_clock_to_stepping(rdev, low, ); ^~~~ drivers/gpu/drm/radeon/rv6xx_dpm.c:251:2: note: Calling 'rv6xx_output_stepping' rv6xx_output_stepping(rdev, step_index++, ); ^~~ drivers/gpu/drm/radeon/rv6xx_dpm.c:173:25: note: The left operand of '==' is a garbage value if (step->post_divider == 1) ~~~
[kbuild] [drm-intel:drm-intel-gt-next 8/8] drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:189 i915_gem_dmabuf_attach() error: uninitialized symbol 'err'.
CC: kbuild-...@lists.01.org CC: intel-...@lists.freedesktop.org CC: dri-de...@lists.freedesktop.org TO: "Thomas Hellström" CC: Matthew Auld CC: "Michael J. Ruhl" CC: Jason Ekstrand tree: git://anongit.freedesktop.org/drm-intel drm-intel-gt-next head: cdb35d1ed6d216978521b75927acb3b8c50a6cac commit: cdb35d1ed6d216978521b75927acb3b8c50a6cac [8/8] drm/i915/gem: Migrate to system at dma-buf attach time (v7) :: branch date: 13 hours ago :: commit date: 13 hours ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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/gpu/drm/i915/gem/i915_gem_dmabuf.c:189 i915_gem_dmabuf_attach() error: uninitialized symbol 'err'. Old smatch warnings: drivers/gpu/drm/i915/gem/i915_gem_object.h:189 __i915_gem_object_lock() error: we previously assumed 'ww' could be null (see line 178) vim +/err +189 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c 346400c8010791 drivers/gpu/drm/i915/i915_gem_dmabuf.c Tiago Vignatti 2015-12-22 162 d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 163 static int i915_gem_dmabuf_attach(struct dma_buf *dmabuf, d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 164struct dma_buf_attachment *attach) d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 165 { d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 166 struct drm_i915_gem_object *obj = dma_buf_to_obj(dmabuf); cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 167 struct i915_gem_ww_ctx ww; cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 168 int err; cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 169 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 170 if (!i915_gem_object_can_migrate(obj, INTEL_REGION_SMEM)) cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 171 return -EOPNOTSUPP; cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 172 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 173 for_i915_gem_ww(, err, true) { cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 174 err = i915_gem_object_lock(obj, ); cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 175 if (err) cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 176 continue; cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 177 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 178 err = i915_gem_object_migrate(obj, , INTEL_REGION_SMEM); cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 179 if (err) cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 180 continue; d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 181 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 182 err = i915_gem_object_wait_migration(obj, 0); cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 183 if (err) cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 184 continue; cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 185 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 186 err = i915_gem_object_pin_pages(obj); cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 187 } cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 188 cdb35d1ed6d216 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 @189 return err; d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 190 } d7b2cb380b3a67 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c Thomas Hellström 2021-07-23 191 --- 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] [net-next:master 64/75] drivers/nfc/s3fwrn5/firmware.c:424:3: warning: 3rd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
CC: kbuild-...@lists.01.org CC: net...@vger.kernel.org TO: wengjianfeng CC: Krzysztof Kozlowski tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 268ca4129d8da764fdf72916f762a1145c6ea743 commit: a0302ff5906ac021d1d79cecd7b710970e40e588 [64/75] nfc: s3fwrn5: remove unnecessary label :: branch date: 6 hours ago :: commit date: 17 hours ago config: x86_64-randconfig-c001-20210726 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=a0302ff5906ac021d1d79cecd7b710970e40e588 git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git git fetch --no-tags net-next master git checkout a0302ff5906ac021d1d79cecd7b710970e40e588 # save the attached .config 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 >>) drivers/power/supply/bq256xx_charger.c:275:8: warning: Excessive padding in 'struct bq256xx_chip_info' (11 padding bytes, where 3 is optimal). Optimal fields order: bq256xx_regmap_config, bq256xx_get_ichg, bq256xx_get_iindpm, bq256xx_get_vbatreg, bq256xx_get_iterm, bq256xx_get_iprechg, bq256xx_get_vindpm, bq256xx_set_ichg, bq256xx_set_iindpm, bq256xx_set_vbatreg, bq256xx_set_iterm, bq256xx_set_iprechg, bq256xx_set_vindpm, model_id, bq256xx_def_ichg, bq256xx_def_iindpm, bq256xx_def_vbatreg, bq256xx_def_iterm, bq256xx_def_iprechg, bq256xx_def_vindpm, bq256xx_max_ichg, bq256xx_max_vbatreg, has_usb_detect, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct bq256xx_chip_info { ~~~^~~ drivers/power/supply/bq256xx_charger.c:275:8: note: Excessive padding in 'struct bq256xx_chip_info' (11 padding bytes, where 3 is optimal). Optimal fields order: bq256xx_regmap_config, bq256xx_get_ichg, bq256xx_get_iindpm, bq256xx_get_vbatreg, bq256xx_get_iterm, bq256xx_get_iprechg, bq256xx_get_vindpm, bq256xx_set_ichg, bq256xx_set_iindpm, bq256xx_set_vbatreg, bq256xx_set_iterm, bq256xx_set_iprechg, bq256xx_set_vindpm, model_id, bq256xx_def_ichg, bq256xx_def_iindpm, bq256xx_def_vbatreg, bq256xx_def_iterm, bq256xx_def_iprechg, bq256xx_def_vindpm, bq256xx_max_ichg, bq256xx_max_vbatreg, has_usb_detect, consider reordering the fields or adding explicit padding members struct bq256xx_chip_info { ~~~^~~ drivers/power/supply/bq256xx_charger.c:1521:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] ret = regmap_update_bits(bq->regmap, BQ256XX_CHARGER_CONTROL_1, ^ ~ drivers/power/supply/bq256xx_charger.c:1521:2: note: Value stored to 'ret' is never read ret = regmap_update_bits(bq->regmap, BQ256XX_CHARGER_CONTROL_1, ^ ~ 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. 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. 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. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -h
[kbuild] arch/x86/xen/smp_hvm.c:2:1: iwyu: warning: superfluous #include
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Peter Zijlstra CC: Ingo Molnar tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: 0cd39f4600ed4de859383018eb10f0f724900e1b locking/seqlock, headers: Untangle the spaghetti monster date: 12 months ago :: branch date: 30 hours ago :: commit date: 12 months ago config: x86_64-randconfig-b001-20210719 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # apt-get install iwyu # include-what-you-use # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0cd39f4600ed4de859383018eb10f0f724900e1b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 0cd39f4600ed4de859383018eb10f0f724900e1b # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/hyperv/ arch/x86/kernel/ arch/x86/xen/ drivers/hid/ drivers/hv/ drivers/iommu/ drivers/misc/ drivers/platform/ drivers/power/supply/ kernel/kcsan/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot iwyu warnings: (new ones prefixed by >>) >> arch/x86/xen/smp_hvm.c:2:1: iwyu: warning: superfluous #include >> arch/x86/xen/smp_hvm.c:5:1: iwyu: warning: superfluous #include vim +2 arch/x86/xen/smp_hvm.c 0cd39f4600ed4d Peter Zijlstra 2020-08-06 @2 #include a52482d9355e25 Vitaly Kuznetsov 2017-03-14 3 #include a52482d9355e25 Vitaly Kuznetsov 2017-03-14 4 --- 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] Re: [PATCH nf] netfilter: conntrack: collect all entries in one cycle
CC: kbuild-...@lists.01.org In-Reply-To: <20210726222919.5659-1...@strlen.de> References: <20210726222919.5659-1...@strlen.de> TO: Florian Westphal TO: netfilter-de...@vger.kernel.org CC: Florian Westphal CC: Michal Kubecek Hi Florian, I love your patch! Perhaps something to improve: [auto build test WARNING on nf/master] url: https://github.com/0day-ci/linux/commits/Florian-Westphal/netfilter-conntrack-collect-all-entries-in-one-cycle/20210727-063110 base: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master :: branch date: 4 hours ago :: commit date: 4 hours ago config: mips-randconfig-s031-20210726 (attached as .config) compiler: mips-linux-gcc (GCC) 10.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://github.com/0day-ci/linux/commit/874bdb31d990217da8f9db6350f4bec782ea2146 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Florian-Westphal/netfilter-conntrack-collect-all-entries-in-one-cycle/20210727-063110 git checkout 874bdb31d990217da8f9db6350f4bec782ea2146 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash net/netfilter/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition net/netfilter/nf_conntrack_core.c:2384:9: sparse: sparse: incompatible types in comparison expression (different address spaces): net/netfilter/nf_conntrack_core.c:2384:9: sparse:void ( [noderef] __rcu * )( ... ) net/netfilter/nf_conntrack_core.c:2384:9: sparse:void ( * )( ... ) net/netfilter/nf_conntrack_core.c:2703:9: sparse: sparse: incompatible types in comparison expression (different address spaces): net/netfilter/nf_conntrack_core.c:2703:9: sparse:void ( [noderef] __rcu * )( ... ) net/netfilter/nf_conntrack_core.c:2703:9: sparse:void ( * )( ... ) net/netfilter/nf_conntrack_core.c:108:13: sparse: sparse: context imbalance in 'nf_conntrack_double_unlock' - unexpected unlock net/netfilter/nf_conntrack_core.c:118:13: sparse: sparse: context imbalance in 'nf_conntrack_double_lock' - wrong count at exit >> net/netfilter/nf_conntrack_core.c:1359:13: sparse: sparse: context imbalance >> in 'gc_worker' - wrong count at exit net/netfilter/nf_conntrack_core.c:2216:28: sparse: sparse: context imbalance in 'get_next_corpse' - unexpected unlock vim +/gc_worker +1359 net/netfilter/nf_conntrack_core.c c6dd940b1f747b Florian Westphal 2017-04-16 1358 b87a2f9199ea82 Florian Westphal 2016-08-25 @1359 static void gc_worker(struct work_struct *work) b87a2f9199ea82 Florian Westphal 2016-08-25 1360 { 874bdb31d99021 Florian Westphal 2021-07-27 1361 unsigned long end_time = jiffies + GC_SCAN_MAX_DURATION; 874bdb31d99021 Florian Westphal 2021-07-27 1362 unsigned int i, hashsz, nf_conntrack_max95 = 0; 874bdb31d99021 Florian Westphal 2021-07-27 1363 unsigned long next_run = GC_SCAN_INTERVAL; b87a2f9199ea82 Florian Westphal 2016-08-25 1364 struct conntrack_gc_work *gc_work; b87a2f9199ea82 Florian Westphal 2016-08-25 1365 gc_work = container_of(work, struct conntrack_gc_work, dwork.work); b87a2f9199ea82 Florian Westphal 2016-08-25 1366 874bdb31d99021 Florian Westphal 2021-07-27 1367 i = gc_work->next_bucket; c6dd940b1f747b Florian Westphal 2017-04-16 1368 if (gc_work->early_drop) c6dd940b1f747b Florian Westphal 2017-04-16 1369 nf_conntrack_max95 = nf_conntrack_max / 100u * 95u; b87a2f9199ea82 Florian Westphal 2016-08-25 1370 b87a2f9199ea82 Florian Westphal 2016-08-25 1371 do { b87a2f9199ea82 Florian Westphal 2016-08-25 1372 struct nf_conntrack_tuple_hash *h; b87a2f9199ea82 Florian Westphal 2016-08-25 1373 struct hlist_nulls_head *ct_hash; b87a2f9199ea82 Florian Westphal 2016-08-25 1374 struct hlist_nulls_node *n; b87a2f9199ea82 Florian Westphal 2016-08-25 1375 struct n
[kbuild] [android-common:android-4.19 78/106] Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from latest version at 'include/linux/bits.h': 4>
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: a1728ecf5aed447128ca7143f29d8b0f5f6263c5 commit: a75454a7af71b491674d0432edb3644bd62b9f37 [78/106] BACKPORT: linux/bits.h: Extract common header for vDSO :: branch date: 1 year, 3 months ago :: commit date: 1 year, 3 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) >> Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from >> latest version at 'include/linux/bits.h':4> >> Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from >> latest version at 'include/linux/bits.h':5> #include Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from latest version at 'include/linux/bits.h':6> #include >> Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from >> latest version at 'include/linux/bits.h':6< #define BIT(nr) >> (1UL << (nr)) --- 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] [android-common:android-4.19 23/36] Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 5< #include
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: f503db11786d937ce9cabd31b08e7280ed0f4b5a commit: 71cb265a2bdc7767db5ab37b80d8910cc1fca772 [23/36] UPSTREAM: tools headers UAPI: Sync sched.h with the kernel :: branch date: 1 year, 6 months ago :: commit date: 1 year, 6 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h':5< #include >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h':6< Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 13> #define CLONE_PIDFD 0x1000 /* set if a pidfd should be placed in parent */ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 34< Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 35< /* >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 36< * Arguments for >> the clone3 syscall Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 37< */ >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 38< struct clone_args >> { >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 39< __aligned_u64 >> flags; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 40< __aligned_u64 >> pidfd; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 41< __aligned_u64 >> child_tid; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 42< __aligned_u64 >> parent_tid; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 43< __aligned_u64 >> exit_signal; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 44< __aligned_u64 >> stack; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 45< __aligned_u64 >> stack_size; >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 46< __aligned_u64 >> tls; Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 47< }; --- 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] [android-common:android-4.19 7/36] Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 58>
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: f503db11786d937ce9cabd31b08e7280ed0f4b5a commit: e6056b2a5b47a7cc7950ffcef7962beea1da179d [7/36] UPSTREAM: sched/uclamp: Extend sched_setattr() to support utilization clamping :: branch date: 1 year, 6 months ago :: commit date: 1 year, 6 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 13> #define CLONE_PIDFD 0x1000 /* set if a pidfd should be placed in parent */ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 54> #define SCHED_FLAG_KEEP_POLICY 0x08 Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 55> #define SCHED_FLAG_KEEP_PARAMS 0x10 Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 56> #define SCHED_FLAG_UTIL_CLAMP_MIN0x20 Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 57> #define SCHED_FLAG_UTIL_CLAMP_MAX0x40 >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 58> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 59> #define SCHED_FLAG_KEEP_ALL (SCHED_FLAG_KEEP_POLICY | \ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 60> SCHED_FLAG_KEEP_PARAMS) Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 61> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 62> #define SCHED_FLAG_UTIL_CLAMP(SCHED_FLAG_UTIL_CLAMP_MIN | \ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 63> SCHED_FLAG_UTIL_CLAMP_MAX) Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 56< SCHED_FLAG_DL_OVERRUN) Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 67> SCHED_FLAG_DL_OVERRUN | \ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 68> SCHED_FLAG_KEEP_ALL| \ Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 69> SCHED_FLAG_UTIL_CLAMP) --- 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] [android-common:android-4.19 3/24] Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h': 226> /* Tagged user address c
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: 13daec4d7036419a94790ecd8ca478efdb7f14f1 commit: f077ee260964eb925a593dcf30553432b3243ac8 [3/24] BACKPORT: arm64: Introduce prctl() options to control the tagged user addresses ABI :: branch date: 1 year, 10 months ago :: commit date: 1 year, 10 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h': 223> #define PR_SET_VMA 0x53564d41 Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h': 224> # define PR_SET_VMA_ANON_NAME0 Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h': 225> >> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs >> from latest version at 'include/uapi/linux/prctl.h': 226> /* Tagged user >> address controls for arm64 */ >> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs >> from latest version at 'include/uapi/linux/prctl.h': 227> #define >> PR_SET_TAGGED_ADDR_CTRL 55 >> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs >> from latest version at 'include/uapi/linux/prctl.h': 228> #define >> PR_GET_TAGGED_ADDR_CTRL 56 >> Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs >> from latest version at 'include/uapi/linux/prctl.h': 229> # define >> PR_TAGGED_ADDR_ENABLE (1UL << 0) Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h': 230> --- 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] [android-common:android-4.19 11/12] Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 741> #define _
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: 0c4addb71853e2be2d0895b8d9f1fc3f20811ac8 commit: 6c0620339fa75a3df127fd63c3f145c7dab9d523 [11/12] BACKPORT: arch: wire-up pidfd_open() :: branch date: 1 year, 11 months ago :: commit date: 1 year, 11 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 739> #define __NR_pidfd_send_signal 424 Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 740> __SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) >> Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' >> differs from latest version at 'include/uapi/asm-generic/unistd.h': 741> >> #define __NR_pidfd_open 434 >> Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' >> differs from latest version at 'include/uapi/asm-generic/unistd.h': 742> >> __SYSCALL(__NR_pidfd_open, sys_pidfd_open) Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 741< #define __NR_syscalls 294 Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 745> #define __NR_syscalls 435 -- Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl': 346> 424 common pidfd_send_signal __x64_sys_pidfd_send_signal >> Warning: Kernel ABI header at >> 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest >> version at 'arch/x86/entry/syscalls/syscall_64.tbl': 347> 434 common >> pidfd_open __x64_sys_pidfd_open --- 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] [linux-next:master 1184/3379] drivers/of/fdt.c:196:4: warning: Value stored to 'pprev' is never read [clang-analyzer-deadcode.DeadStores]
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: "권오훈" CC: Rob Herring tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 2265c5286967c58db9a99ed1b74105977507e690 commit: eb7173988caf6fc68ef00065b9defb5ac3467f21 [1184/3379] of: fdt: remove unnecessary codes :: branch date: 3 hours ago :: commit date: 11 days ago config: x86_64-randconfig-c001-20210726 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=eb7173988caf6fc68ef00065b9defb5ac3467f21 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout eb7173988caf6fc68ef00065b9defb5ac3467f21 # save the attached .config 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 >>) drivers/leds/leds-pwm.c:143:2: note: Taking false branch if (!count) ^ drivers/leds/leds-pwm.c:148:6: note: Assuming 'priv' is non-null if (!priv) ^ drivers/leds/leds-pwm.c:148:2: note: Taking false branch if (!priv) ^ drivers/leds/leds-pwm.c:151:8: note: Calling 'led_pwm_create_fwnode' ret = led_pwm_create_fwnode(>dev, priv); ^~~ drivers/leds/leds-pwm.c:108:2: note: Loop condition is true. Entering loop body device_for_each_child_node(dev, fwnode) { ^ include/linux/property.h:111:2: note: expanded from macro 'device_for_each_child_node' for (child = device_get_next_child_node(dev, NULL); child; \ ^ drivers/leds/leds-pwm.c:110:7: note: Assuming 'ret' is not equal to 0 if (ret && is_of_node(fwnode)) ^~~ drivers/leds/leds-pwm.c:110:7: note: Left side of '&&' is true drivers/leds/leds-pwm.c:110:14: note: Assuming the condition is true if (ret && is_of_node(fwnode)) ^~ drivers/leds/leds-pwm.c:110:3: note: Taking true branch if (ret && is_of_node(fwnode)) ^ drivers/leds/leds-pwm.c:111:15: note: Assuming the condition is false led.name = to_of_node(fwnode)->name; ^ include/linux/of.h:164:3: note: expanded from macro 'to_of_node' is_of_node(__to_of_node_fwnode) ? \ ^~~ drivers/leds/leds-pwm.c:111:15: note: '?' condition is false led.name = to_of_node(fwnode)->name; ^ include/linux/of.h:164:3: note: expanded from macro 'to_of_node' is_of_node(__to_of_node_fwnode) ? \ ^ drivers/leds/leds-pwm.c:111:15: note: Access to field 'name' results in a dereference of a null pointer led.name = to_of_node(fwnode)->name; ^ include/linux/of.h:161:2: note: expanded from macro 'to_of_node' ({ \ ^ 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. 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. 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. 4 warnings generated. drivers/of/property.c:920:19: warning: Access to field 'full_name' results in a dereference of a null pointer [clang-analyzer-core.NullDereference] return kbasename(to_of_node(fwnode)->full_name); ^ include/linux/of.h:161:2: note: expanded from macro 'to_of_node' ({ \
[kbuild] [android-common:android-4.19 5/12] Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h': 13> #define CLONE_PIDFD 0x00
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: 0c4addb71853e2be2d0895b8d9f1fc3f20811ac8 commit: 66faab946ab578e5fdac93ceb45207ee96e634b9 [5/12] UPSTREAM: clone: add CLONE_PIDFD :: branch date: 1 year, 11 months ago :: commit date: 1 year, 11 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) >> Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs >> from latest version at 'include/uapi/linux/sched.h': 13> #define >> CLONE_PIDFD 0x1000 /* set if a pidfd should be placed in >> parent */ --- 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] [android-common:android-4.19 1/12] Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 739> #define __
CC: kbuild-...@lists.01.org TO: cros-kernel-buildrepo...@googlegroups.com tree: https://android.googlesource.com/kernel/common android-4.19 head: 0c4addb71853e2be2d0895b8d9f1fc3f20811ac8 commit: 1f27ef8d9ba35de13165823031fec2a365749ca1 [1/12] BACKPORT: signal: add pidfd_send_signal() syscall :: branch date: 1 year, 11 months ago :: commit date: 1 year, 11 months ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) >> Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' >> differs from latest version at 'include/uapi/asm-generic/unistd.h': 739> >> #define __NR_pidfd_send_signal 424 >> Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' >> differs from latest version at 'include/uapi/asm-generic/unistd.h': 740> >> __SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 741< #define __NR_syscalls 294 Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h': 743> #define __NR_syscalls 425 -- >> Warning: Kernel ABI header at >> 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest >> version at 'arch/x86/entry/syscalls/syscall_64.tbl': 346> 424 common >> pidfd_send_signal __x64_sys_pidfd_send_signal --- 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] rsync: link_stat "kselftest/sgx/test_sgx" failed: No such file or directory (2)
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Jarkko Sakkinen CC: Borislav Petkov tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: 2adcba79e69d4a4c0ac3bb86f466d8b5df301608 selftests/x86: Add a selftest for SGX date: 8 months ago :: branch date: 25 hours ago :: commit date: 8 months ago config: openrisc-randconfig-s031-20210726 (attached as .config) compiler: or1k-linux-gcc (GCC) 10.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=2adcba79e69d4a4c0ac3bb86f466d8b5df301608 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 2adcba79e69d4a4c0ac3bb86f466d8b5df301608 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> rsync: link_stat "kselftest/sgx/test_sgx" failed: No such file or directory >> (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3] --- 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:for-next.mmap-fault 6/9] fs/iomap/direct-io.c:134 iomap_dio_complete() error: dereferencing freed memory 'dio'
CC: kbuild-...@lists.01.org CC: cluster-de...@redhat.com CC: linux-ker...@vger.kernel.org TO: Andreas Gruenbacher tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.mmap-fault head: 1e32783802dce0f79d3b25e800ac86bd24512e10 commit: cbbd26b20cafc8f40d495be172ba807dc260845c [6/9] iomap: Add done_before argument to iomap_dio_rw :: branch date: 2 days ago :: commit date: 2 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: fs/iomap/direct-io.c:134 iomap_dio_complete() error: dereferencing freed memory 'dio' vim +/dio +134 fs/iomap/direct-io.c db074436f42196 Darrick J. Wong 2019-07-15 79 c3d4ed1abecfcf Christoph Hellwig 2020-09-28 80 ssize_t iomap_dio_complete(struct iomap_dio *dio) db074436f42196 Darrick J. Wong 2019-07-15 81 { 838c4f3d7515ef Christoph Hellwig 2019-09-19 82 const struct iomap_dio_ops *dops = dio->dops; db074436f42196 Darrick J. Wong 2019-07-15 83 struct kiocb *iocb = dio->iocb; db074436f42196 Darrick J. Wong 2019-07-15 84 struct inode *inode = file_inode(iocb->ki_filp); db074436f42196 Darrick J. Wong 2019-07-15 85 loff_t offset = iocb->ki_pos; 838c4f3d7515ef Christoph Hellwig 2019-09-19 86 ssize_t ret = dio->error; db074436f42196 Darrick J. Wong 2019-07-15 87 838c4f3d7515ef Christoph Hellwig 2019-09-19 88 if (dops && dops->end_io) 838c4f3d7515ef Christoph Hellwig 2019-09-19 89 ret = dops->end_io(iocb, dio->size, ret, dio->flags); db074436f42196 Darrick J. Wong 2019-07-15 90 db074436f42196 Darrick J. Wong 2019-07-15 91 if (likely(!ret)) { db074436f42196 Darrick J. Wong 2019-07-15 92 ret = dio->size; db074436f42196 Darrick J. Wong 2019-07-15 93 /* check for short read */ db074436f42196 Darrick J. Wong 2019-07-15 94 if (offset + ret > dio->i_size && db074436f42196 Darrick J. Wong 2019-07-15 95 !(dio->flags & IOMAP_DIO_WRITE)) db074436f42196 Darrick J. Wong 2019-07-15 96 ret = dio->i_size - offset; db074436f42196 Darrick J. Wong 2019-07-15 97 iocb->ki_pos += ret; db074436f42196 Darrick J. Wong 2019-07-15 98 } db074436f42196 Darrick J. Wong 2019-07-15 99 db074436f42196 Darrick J. Wong 2019-07-15 100 /* db074436f42196 Darrick J. Wong 2019-07-15 101 * Try again to invalidate clean pages which might have been cached by db074436f42196 Darrick J. Wong 2019-07-15 102 * non-direct readahead, or faulted in by get_user_pages() if the source db074436f42196 Darrick J. Wong 2019-07-15 103 * of the write was an mmap'ed region of the file we're writing. Either db074436f42196 Darrick J. Wong 2019-07-15 104 * one is a pretty crazy thing to do, so we don't support it 100%. If db074436f42196 Darrick J. Wong 2019-07-15 105 * this invalidation fails, tough, the write still worked... db074436f42196 Darrick J. Wong 2019-07-15 106 * 838c4f3d7515ef Christoph Hellwig 2019-09-19 107 * And this page cache invalidation has to be after ->end_io(), as some 838c4f3d7515ef Christoph Hellwig 2019-09-19 108 * filesystems convert unwritten extents to real allocations in 838c4f3d7515ef Christoph Hellwig 2019-09-19 109 * ->end_io() when necessary, otherwise a racing buffer read would cache db074436f42196 Darrick J. Wong 2019-07-15 110 * zeros from unwritten extents. db074436f42196 Darrick J. Wong 2019-07-15 111 */ c114bbc6c423a4 Andreas Gruenbacher 2020-09-10 112 if (!dio->error && dio->size && db074436f42196 Darrick J. Wong 2019-07-15 113 (dio->flags & IOMAP_DIO_WRITE) && inode->i_mapping->nrpages) { db074436f42196 Darrick J. Wong 2019-07-15 114 int err; db074436f42196 Darrick J. Wong 2019-07-15 115 err = invalidate_inode_pages2_range(inode->i_mapping, db074436f42196 Darrick J. Wong 2019-07-15 116 offset >> PAGE_SHIFT, db074436f42196 Darrick J. Wong 2019-07-15 117 (offset + dio->size - 1) >> PAGE_SHIFT); db074436f42196 Darrick J. Wong 2019-07-15 118 if (err) db074436f42196 Darrick J. Wong 2019-07-15 119 dio_warn_stale_pagecache(iocb->ki_filp); db074436f42196 Darrick J. Wong 2019-07-15 120 } db074436f42196 Darrick J. Wong 2019-07-15 121 1a31182edd0083 Goldwyn Rodrigues 2020-09-28 122 inode_dio_end(file_inode(iocb->ki_filp)); db074
[kbuild] [hch-xfs:iomap-iter 20/29] fs/iomap/seek.c:102 iomap_seek_data() error: uninitialized symbol 'hole_pos'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Christoph Hellwig tree: git://git.infradead.org/users/hch/xfs iomap-iter head: 2fac31bc73d764be3146889ddb8a33151486cea0 commit: e53ee58c12fe0d1de5294e01a190e3eb2f626de4 [20/29] iomap: switch iomap_seek_data to use iomap_iter :: branch date: 13 hours ago :: commit date: 13 hours ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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: fs/iomap/seek.c:102 iomap_seek_data() error: uninitialized symbol 'hole_pos'. Old smatch warnings: fs/iomap/seek.c:55 iomap_seek_hole() error: uninitialized symbol 'hole_pos'. vim +/hole_pos +102 fs/iomap/seek.c 56a178981d4707 Darrick J. Wong 2019-07-15 79 56a178981d4707 Darrick J. Wong 2019-07-15 80 loff_t 56a178981d4707 Darrick J. Wong 2019-07-15 81 iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops) 56a178981d4707 Darrick J. Wong 2019-07-15 82 { 56a178981d4707 Darrick J. Wong 2019-07-15 83loff_t size = i_size_read(inode); e53ee58c12fe0d Christoph Hellwig 2021-07-18 84struct iomap_iter iter = { e53ee58c12fe0d Christoph Hellwig 2021-07-18 85.inode = inode, e53ee58c12fe0d Christoph Hellwig 2021-07-18 86.pos= offset, e53ee58c12fe0d Christoph Hellwig 2021-07-18 87.flags = IOMAP_REPORT, e53ee58c12fe0d Christoph Hellwig 2021-07-18 88}; e53ee58c12fe0d Christoph Hellwig 2021-07-18 89loff_t hole_pos; e53ee58c12fe0d Christoph Hellwig 2021-07-18 90int ret; 56a178981d4707 Darrick J. Wong 2019-07-15 91 56a178981d4707 Darrick J. Wong 2019-07-15 92/* Nothing to be found before or beyond the end of the file. */ 56a178981d4707 Darrick J. Wong 2019-07-15 93if (offset < 0 || offset >= size) 56a178981d4707 Darrick J. Wong 2019-07-15 94return -ENXIO; 56a178981d4707 Darrick J. Wong 2019-07-15 95 e53ee58c12fe0d Christoph Hellwig 2021-07-18 96iter.len = size - offset; e53ee58c12fe0d Christoph Hellwig 2021-07-18 97while ((ret = iomap_iter(, ops)) > 0) e53ee58c12fe0d Christoph Hellwig 2021-07-18 98iter.processed = iomap_seek_data_iter(, _pos); 56a178981d4707 Darrick J. Wong 2019-07-15 99if (ret < 0) 56a178981d4707 Darrick J. Wong 2019-07-15 100return ret; e53ee58c12fe0d Christoph Hellwig 2021-07-18 101if (iter.len) e53ee58c12fe0d Christoph Hellwig 2021-07-18 @102return hole_pos; --- 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] Re: [PATCH V3 4/5] ext4: get discard out of jbd2 commit kthread contex
CC: kbuild-...@lists.01.org In-Reply-To: <20210724074124.25731-5-jianchao.w...@gmail.com> References: <20210724074124.25731-5-jianchao.w...@gmail.com> TO: Wang Jianchao TO: linux-e...@vger.kernel.org TO: linux-ker...@vger.kernel.org CC: ty...@mit.edu CC: adilger.ker...@dilger.ca Hi Wang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ext4/dev] [also build test WARNING on linux/master linus/master v5.14-rc3 next-20210723] [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/Wang-Jianchao/ext4-get-discard-out-of-jbd2-commit-context/20210724-154426 base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev :: branch date: 3 days ago :: commit date: 3 days ago config: mips-randconfig-s031-20210726 (attached as .config) compiler: mips-linux-gcc (GCC) 10.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://github.com/0day-ci/linux/commit/c1714c046fe748ad2324623d650c2dfe5b3b7a55 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wang-Jianchao/ext4-get-discard-out-of-jbd2-commit-context/20210724-154426 git checkout c1714c046fe748ad2324623d650c2dfe5b3b7a55 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash fs/ext4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition fs/ext4/mballoc.c:994:9: sparse: sparse: context imbalance in 'ext4_mb_choose_next_group_cr1' - wrong count at exit fs/ext4/mballoc.c:1264:9: sparse: sparse: context imbalance in 'ext4_mb_init_cache' - different lock contexts for basic block fs/ext4/mballoc.c:2168:5: sparse: sparse: context imbalance in 'ext4_mb_try_best_found' - different lock contexts for basic block fs/ext4/mballoc.c:2196:5: sparse: sparse: context imbalance in 'ext4_mb_find_by_goal' - different lock contexts for basic block fs/ext4/mballoc.c:2483:12: sparse: sparse: context imbalance in 'ext4_mb_good_group_nolock' - wrong count at exit fs/ext4/mballoc.c:2698:87: sparse: sparse: context imbalance in 'ext4_mb_regular_allocator' - different lock contexts for basic block fs/ext4/mballoc.c:2972:13: sparse: sparse: context imbalance in 'ext4_mb_seq_structs_summary_start' - wrong count at exit fs/ext4/mballoc.c:3044:13: sparse: sparse: context imbalance in 'ext4_mb_seq_structs_summary_stop' - unexpected unlock >> fs/ext4/mballoc.c::9: sparse: sparse: context imbalance in >> 'ext4_discard_work' - different lock contexts for basic block fs/ext4/mballoc.c:3542:17: sparse: sparse: context imbalance in 'ext4_mb_release' - different lock contexts for basic block fs/ext4/mballoc.c:3662:26: sparse: sparse: context imbalance in 'ext4_free_data_in_buddy' - wrong count at exit fs/ext4/mballoc.c:3873:15: sparse: sparse: context imbalance in 'ext4_mb_mark_diskspace_used' - different lock contexts for basic block fs/ext4/mballoc.c:3881:6: sparse: sparse: context imbalance in 'ext4_mb_mark_bb' - different lock contexts for basic block fs/ext4/mballoc.c:4203:13: sparse: sparse: context imbalance in 'ext4_discard_allocated_blocks' - different lock contexts for basic block fs/ext4/mballoc.c:4505:13: sparse: sparse: context imbalance in 'ext4_mb_put_pa' - different lock contexts for basic block fs/ext4/mballoc.c:4842:9: sparse: sparse: context imbalance in 'ext4_mb_discard_group_preallocations' - different lock contexts for basic block fs/ext4/mballoc.c:4995:9: sparse: sparse: context imbalance in 'ext4_discard_preallocations' - different lock contexts for basic block fs/ext4/mballoc.c:5062:9: sparse: sparse: context imbalance in 'ext4_mb_show_ac' - different lock contexts for basic block fs/ext4/mballoc.c:5290:9: sparse: sparse: context imbalance in 'ext4_mb_discard_
[kbuild] [bcache:nvdimm-meta 10/12] drivers/md/bcache/journal.c:860:13: sparse: sparse: context imbalance in 'journal_write' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Coly Li CC: Hannes Reinecke tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta head: e9d63ebcb289612237d5a62fa9876114798555eb commit: 83cf31104f672925fccbdfabf3d5f14a78a9e568 [10/12] bcache: support storing bcache journal into NVDIMM meta device :: branch date: 13 hours ago :: commit date: 13 hours ago config: powerpc-randconfig-s032-20210726 (attached as .config) compiler: powerpc-linux-gcc (GCC) 10.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/colyli/linux-bcache.git/commit/?id=83cf31104f672925fccbdfabf3d5f14a78a9e568 git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git git fetch --no-tags bcache nvdimm-meta git checkout 83cf31104f672925fccbdfabf3d5f14a78a9e568 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/md/bcache/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/md/bcache/journal.c: note: in included file (through drivers/md/bcache/bcache.h): include/uapi/linux/bcache.h:362:38: sparse: sparse: array of flexible structures drivers/md/bcache/journal.c: note: in included file (through drivers/md/bcache/bcache.h): drivers/md/bcache/bset.h:231:36: sparse: sparse: array of flexible structures drivers/md/bcache/journal.c:829:17: sparse: sparse: context imbalance in 'journal_write_unlocked' - unexpected unlock >> drivers/md/bcache/journal.c:860:13: sparse: sparse: context imbalance in >> 'journal_write' - wrong count at exit drivers/md/bcache/journal.c:876:9: sparse: sparse: context imbalance in 'journal_try_write' - different lock contexts for basic block vim +/journal_write +860 drivers/md/bcache/journal.c 83cf31104f6729 Coly Li 2021-07-24 818 83cf31104f6729 Coly Li 2021-07-24 819 static void journal_write_unlocked(struct closure *cl) 83cf31104f6729 Coly Li 2021-07-24 820 { 83cf31104f6729 Coly Li 2021-07-24 821 struct cache_set *c = container_of(cl, struct cache_set, journal.io); 83cf31104f6729 Coly Li 2021-07-24 822 struct cache *ca = c->cache; 83cf31104f6729 Coly Li 2021-07-24 823 struct journal_write *w = c->journal.cur; 83cf31104f6729 Coly Li 2021-07-24 824 83cf31104f6729 Coly Li 2021-07-24 825 if (!w->need_write) { 83cf31104f6729 Coly Li 2021-07-24 826 closure_return_with_destructor(cl, journal_write_unlock); 83cf31104f6729 Coly Li 2021-07-24 827 return; 83cf31104f6729 Coly Li 2021-07-24 828 } else if (journal_full(>journal)) { 83cf31104f6729 Coly Li 2021-07-24 @829 journal_reclaim(c); 83cf31104f6729 Coly Li 2021-07-24 830 spin_unlock(>journal.lock); 83cf31104f6729 Coly Li 2021-07-24 831 83cf31104f6729 Coly Li 2021-07-24 832 btree_flush_write(c); 83cf31104f6729 Coly Li 2021-07-24 833 continue_at(cl, journal_write, bch_journal_wq); 83cf31104f6729 Coly Li 2021-07-24 834 return; 83cf31104f6729 Coly Li 2021-07-24 835 } 83cf31104f6729 Coly Li 2021-07-24 836 83cf31104f6729 Coly Li 2021-07-24 837 c->journal.blocks_free -= set_blocks(w->data, block_bytes(ca)); 83cf31104f6729 Coly Li 2021-07-24 838 83cf31104f6729 Coly Li 2021-07-24 839 w->data->btree_level = c->root->level; 83cf31104f6729 Coly Li 2021-07-24 840 83cf31104f6729 Coly Li 2021-07-24 841 bkey_copy(>data->btree_root, >root->key); 83cf31104f6729 Coly Li 2021-07-24 842 bkey_copy(>data->uuid_bucket, >uuid_bucket); 83cf31104f6729 Coly Li 2021-07-24 843 83cf31104f6729 Coly Li 2021-07-24 844 w->data->prio_bucket[ca->sb.nr_this_dev] = ca->prio_buckets[0]; 83cf31104f6729 Coly Li 2021-07-24 845 w->data->magic = jset_magic(>sb); 83cf31104f6729 Coly Li 2021-07-24 846 w->data->version = BCACHE_JSET_VERSION; 83cf31104f6729 Coly Li 2021-07-24 847 w->data->last_seq = last_seq(>journal); 83cf31104f6729 Coly Li 2021-07-24 848 w->data->csum
[kbuild] [PATCH] staging: hikey9xx: fix platform_get_irq.cocci warnings
CC: kbuild-...@lists.01.org CC: de...@driverdev.osuosl.org CC: linux-ker...@vger.kernel.org TO: Mauro Carvalho Chehab CC: linux-me...@vger.kernel.org CC: "Greg Kroah-Hartman" CC: Arnd Bergmann CC: linux-ker...@vger.kernel.org From: kernel test robot drivers/misc/hi6421v600-irq.c:249:2-9: line 249 is redundant because platform_get_irq() already prints an error Remove dev_err() messages after platform_get_irq*() failures Generated by: scripts/coccinelle/api/platform_get_irq.cocci CC: Mauro Carvalho Chehab Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next head: f133717efc6f28052667daf682e99ffd4b3d7588 commit: bb3b6552a5b0679b55c43d49621597e54668f089 [38/56] staging: hikey9xx: split hi6421v600 irq into a separate driver :: branch date: 3 days ago :: commit date: 5 days ago Please take the patch only if it's a positive warning. Thanks! hi6421v600-irq.c |1 - 1 file changed, 1 deletion(-) --- a/drivers/misc/hi6421v600-irq.c +++ b/drivers/misc/hi6421v600-irq.c @@ -246,7 +246,6 @@ static int hi6421v600_irq_probe(struct p priv->irq = platform_get_irq(pmic_pdev, 0); if (priv->irq < 0) { - dev_err(dev, "Error %d when getting IRQs\n", priv->irq); return priv->irq; } ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [staging:staging-next 38/56] drivers/misc/hi6421v600-irq.c:249:2-9: line 249 is redundant because platform_get_irq() already prints an error
CC: kbuild-...@lists.01.org CC: de...@driverdev.osuosl.org CC: linux-ker...@vger.kernel.org TO: Mauro Carvalho Chehab CC: linux-me...@vger.kernel.org CC: "Greg Kroah-Hartman" tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next head: f133717efc6f28052667daf682e99ffd4b3d7588 commit: bb3b6552a5b0679b55c43d49621597e54668f089 [38/56] staging: hikey9xx: split hi6421v600 irq into a separate driver :: branch date: 3 days ago :: commit date: 5 days ago config: arm-randconfig-c024-20210726 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 10.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/misc/hi6421v600-irq.c:249:2-9: line 249 is redundant because >> platform_get_irq() already prints an error 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 .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [hch-xfs:iomap-iter 19/29] fs/iomap/seek.c:55 iomap_seek_hole() error: uninitialized symbol 'hole_pos'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Christoph Hellwig tree: git://git.infradead.org/users/hch/xfs iomap-iter head: 2fac31bc73d764be3146889ddb8a33151486cea0 commit: 9d25d143d0ce8c8ad4208f7217b1f3131abc3127 [19/29] iomap: switch iomap_seek_hole to use iomap_iter :: branch date: 11 hours ago :: commit date: 11 hours ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: fs/iomap/seek.c:55 iomap_seek_hole() error: uninitialized symbol 'hole_pos'. vim +/hole_pos +55 fs/iomap/seek.c 56a178981d4707 Darrick J. Wong 2019-07-15 32 56a178981d4707 Darrick J. Wong 2019-07-15 33 loff_t 56a178981d4707 Darrick J. Wong 2019-07-15 34 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) 56a178981d4707 Darrick J. Wong 2019-07-15 35 { 56a178981d4707 Darrick J. Wong 2019-07-15 36 loff_t size = i_size_read(inode); 9d25d143d0ce8c Christoph Hellwig 2021-07-14 37 struct iomap_iter iter = { 9d25d143d0ce8c Christoph Hellwig 2021-07-14 38 .inode = inode, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 39 .pos= offset, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 40 .flags = IOMAP_REPORT, 9d25d143d0ce8c Christoph Hellwig 2021-07-14 41 }; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 42 loff_t hole_pos; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 43 int ret; 56a178981d4707 Darrick J. Wong 2019-07-15 44 56a178981d4707 Darrick J. Wong 2019-07-15 45 /* Nothing to be found before or beyond the end of the file. */ 56a178981d4707 Darrick J. Wong 2019-07-15 46 if (offset < 0 || offset >= size) 56a178981d4707 Darrick J. Wong 2019-07-15 47 return -ENXIO; 56a178981d4707 Darrick J. Wong 2019-07-15 48 9d25d143d0ce8c Christoph Hellwig 2021-07-14 49 iter.len = size - offset; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 50 while ((ret = iomap_iter(, ops)) > 0) 9d25d143d0ce8c Christoph Hellwig 2021-07-14 51 iter.processed = iomap_seek_hole_iter(, _pos); 56a178981d4707 Darrick J. Wong 2019-07-15 52 if (ret < 0) 56a178981d4707 Darrick J. Wong 2019-07-15 53 return ret; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 54 if (iter.len) 9d25d143d0ce8c Christoph Hellwig 2021-07-14 @55 return hole_pos; 9d25d143d0ce8c Christoph Hellwig 2021-07-14 56 return size; 56a178981d4707 Darrick J. Wong 2019-07-15 57 } 56a178981d4707 Darrick J. Wong 2019-07-15 58 EXPORT_SYMBOL_GPL(iomap_seek_hole); 56a178981d4707 Darrick J. Wong 2019-07-15 59 --- 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] Re: [PATCH V3 2/5] ext4: add new helper interface ext4_try_to_trim_range()
CC: kbuild-...@lists.01.org In-Reply-To: <20210724074124.25731-3-jianchao.w...@gmail.com> References: <20210724074124.25731-3-jianchao.w...@gmail.com> TO: Wang Jianchao TO: linux-e...@vger.kernel.org TO: linux-ker...@vger.kernel.org CC: ty...@mit.edu CC: adilger.ker...@dilger.ca Hi Wang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ext4/dev] [also build test WARNING on linux/master linus/master v5.14-rc3 next-20210723] [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/Wang-Jianchao/ext4-get-discard-out-of-jbd2-commit-context/20210724-154426 base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev :: branch date: 2 days ago :: commit date: 2 days ago config: mips-randconfig-s031-20210726 (attached as .config) compiler: mips-linux-gcc (GCC) 10.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://github.com/0day-ci/linux/commit/55a3430685e83709742c1fe2e0d4b347781bcc80 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Wang-Jianchao/ext4-get-discard-out-of-jbd2-commit-context/20210724-154426 git checkout 55a3430685e83709742c1fe2e0d4b347781bcc80 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash fs/ext4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition fs/ext4/mballoc.c:989:9: sparse: sparse: context imbalance in 'ext4_mb_choose_next_group_cr1' - wrong count at exit fs/ext4/mballoc.c:1259:9: sparse: sparse: context imbalance in 'ext4_mb_init_cache' - different lock contexts for basic block fs/ext4/mballoc.c:2163:5: sparse: sparse: context imbalance in 'ext4_mb_try_best_found' - different lock contexts for basic block fs/ext4/mballoc.c:2191:5: sparse: sparse: context imbalance in 'ext4_mb_find_by_goal' - different lock contexts for basic block fs/ext4/mballoc.c:2478:12: sparse: sparse: context imbalance in 'ext4_mb_good_group_nolock' - wrong count at exit fs/ext4/mballoc.c:2693:87: sparse: sparse: context imbalance in 'ext4_mb_regular_allocator' - different lock contexts for basic block fs/ext4/mballoc.c:2967:13: sparse: sparse: context imbalance in 'ext4_mb_seq_structs_summary_start' - wrong count at exit fs/ext4/mballoc.c:3039:13: sparse: sparse: context imbalance in 'ext4_mb_seq_structs_summary_stop' - unexpected unlock fs/ext4/mballoc.c:3478:17: sparse: sparse: context imbalance in 'ext4_mb_release' - different lock contexts for basic block fs/ext4/mballoc.c:3598:26: sparse: sparse: context imbalance in 'ext4_free_data_in_buddy' - wrong count at exit fs/ext4/mballoc.c:3814:15: sparse: sparse: context imbalance in 'ext4_mb_mark_diskspace_used' - different lock contexts for basic block fs/ext4/mballoc.c:3822:6: sparse: sparse: context imbalance in 'ext4_mb_mark_bb' - different lock contexts for basic block fs/ext4/mballoc.c:4144:13: sparse: sparse: context imbalance in 'ext4_discard_allocated_blocks' - different lock contexts for basic block fs/ext4/mballoc.c:4446:13: sparse: sparse: context imbalance in 'ext4_mb_put_pa' - different lock contexts for basic block fs/ext4/mballoc.c:4783:9: sparse: sparse: context imbalance in 'ext4_mb_discard_group_preallocations' - different lock contexts for basic block fs/ext4/mballoc.c:4936:9: sparse: sparse: context imbalance in 'ext4_discard_preallocations' - different lock contexts for basic block fs/ext4/mballoc.c:5003:9: sparse: sparse: context imbalance in 'ext4_mb_show_ac' - different lock contexts for basic block fs/ext4/mballoc.c:5231:9: sparse: sparse: context imbalance in 'ext4_mb_discard_lg_preallocations' - different lock contexts for basic block fs/ext4/mballoc.c:5003:9: sparse: sparse: context imbalance in 'ext4_mb_new_b
[kbuild] [gfs2:for-next.mmap-fault 6/9] fs/iomap/direct-io.c:134:8-11: ERROR: reference preceded by free on line 130
CC: kbuild-...@lists.01.org CC: cluster-de...@redhat.com CC: linux-ker...@vger.kernel.org TO: Andreas Gruenbacher tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.mmap-fault head: 1e32783802dce0f79d3b25e800ac86bd24512e10 commit: cbbd26b20cafc8f40d495be172ba807dc260845c [6/9] iomap: Add done_before argument to iomap_dio_rw :: branch date: 2 days ago :: commit date: 2 days ago config: arm-randconfig-c024-20210726 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 10.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/iomap/direct-io.c:134:8-11: ERROR: reference preceded by free on line 130 vim +134 fs/iomap/direct-io.c db074436f42196 Darrick J. Wong 2019-07-15 79 c3d4ed1abecfcf Christoph Hellwig 2020-09-28 80 ssize_t iomap_dio_complete(struct iomap_dio *dio) db074436f42196 Darrick J. Wong 2019-07-15 81 { 838c4f3d7515ef Christoph Hellwig 2019-09-19 82 const struct iomap_dio_ops *dops = dio->dops; db074436f42196 Darrick J. Wong 2019-07-15 83 struct kiocb *iocb = dio->iocb; db074436f42196 Darrick J. Wong 2019-07-15 84 struct inode *inode = file_inode(iocb->ki_filp); db074436f42196 Darrick J. Wong 2019-07-15 85 loff_t offset = iocb->ki_pos; 838c4f3d7515ef Christoph Hellwig 2019-09-19 86 ssize_t ret = dio->error; db074436f42196 Darrick J. Wong 2019-07-15 87 838c4f3d7515ef Christoph Hellwig 2019-09-19 88 if (dops && dops->end_io) 838c4f3d7515ef Christoph Hellwig 2019-09-19 89 ret = dops->end_io(iocb, dio->size, ret, dio->flags); db074436f42196 Darrick J. Wong 2019-07-15 90 db074436f42196 Darrick J. Wong 2019-07-15 91 if (likely(!ret)) { db074436f42196 Darrick J. Wong 2019-07-15 92 ret = dio->size; db074436f42196 Darrick J. Wong 2019-07-15 93 /* check for short read */ db074436f42196 Darrick J. Wong 2019-07-15 94 if (offset + ret > dio->i_size && db074436f42196 Darrick J. Wong 2019-07-15 95 !(dio->flags & IOMAP_DIO_WRITE)) db074436f42196 Darrick J. Wong 2019-07-15 96 ret = dio->i_size - offset; db074436f42196 Darrick J. Wong 2019-07-15 97 iocb->ki_pos += ret; db074436f42196 Darrick J. Wong 2019-07-15 98 } db074436f42196 Darrick J. Wong 2019-07-15 99 db074436f42196 Darrick J. Wong 2019-07-15 100 /* db074436f42196 Darrick J. Wong 2019-07-15 101 * Try again to invalidate clean pages which might have been cached by db074436f42196 Darrick J. Wong 2019-07-15 102 * non-direct readahead, or faulted in by get_user_pages() if the source db074436f42196 Darrick J. Wong 2019-07-15 103 * of the write was an mmap'ed region of the file we're writing. Either db074436f42196 Darrick J. Wong 2019-07-15 104 * one is a pretty crazy thing to do, so we don't support it 100%. If db074436f42196 Darrick J. Wong 2019-07-15 105 * this invalidation fails, tough, the write still worked... db074436f42196 Darrick J. Wong 2019-07-15 106 * 838c4f3d7515ef Christoph Hellwig 2019-09-19 107 * And this page cache invalidation has to be after ->end_io(), as some 838c4f3d7515ef Christoph Hellwig 2019-09-19 108 * filesystems convert unwritten extents to real allocations in 838c4f3d7515ef Christoph Hellwig 2019-09-19 109 * ->end_io() when necessary, otherwise a racing buffer read would cache db074436f42196 Darrick J. Wong 2019-07-15 110 * zeros from unwritten extents. db074436f42196 Darrick J. Wong 2019-07-15 111 */ c114bbc6c423a4 Andreas Gruenbacher 2020-09-10 112 if (!dio->error && dio->size && db074436f42196 Darrick J. Wong 2019-07-15 113 (dio->flags & IOMAP_DIO_WRITE) && inode->i_mapping->nrpages) { db074436f42196 Darrick J. Wong 2019-07-15 114 int err; db074436f42196 Darrick J. Wong 2019-07-15 115 err = invalidate_inode_pages2_range(inode->i_mapping, db074436f42196 Darrick J. Wong 2019-07-15 116 offset >> PAGE_SHIFT, db074436f42196 Darrick J. Wong 2019-07-15 117 (offset + dio->size - 1) >> PAGE_SHIFT); db074436f42196 Darrick J. Wong 2019-07-15 118 if (err) db074436f42196 Darrick J. Wong 2019-07-15 119 dio_warn_stale_pagecache(iocb->ki_filp); db074436f42196 Darrick J. Wong 2019-07-15 120 } db074436f42196 Darrick J. Wong 2019-07-15 121 1a31182edd0083 Goldwyn Rodrigues 2020-09-28 122 inode_dio_end(file_inode(iocb->ki_f
[kbuild] [linux-next:master 1797/3296] sound/pci/trident/trident_main.c:3599 snd_trident_create() warn: 'pci' not released on lines: 3544.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Takashi Iwai tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 5adfd8c26607cdc666aa86ecc10104924d54082a [1797/3296] ALSA: trident: Allocate resources with device-managed APIs :: branch date: 3 days ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: sound/pci/trident/trident_main.c:3599 snd_trident_create() warn: 'pci' not released on lines: 3544. vim +/pci +3599 sound/pci/trident/trident_main.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 3477 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3478 /*--- ^1da177e4c3f41 Linus Torvalds 2005-04-16 3479 snd_trident_create ^1da177e4c3f41 Linus Torvalds 2005-04-16 3480 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3481 Description: This routine will create the device specific class for ^1da177e4c3f41 Linus Torvalds 2005-04-16 3482 the 4DWave card. It will also perform basic initialization. ^1da177e4c3f41 Linus Torvalds 2005-04-16 3483 561de31a23a8a5 Joe Perches2007-12-18 3484 Parameters: card - which card to create ^1da177e4c3f41 Linus Torvalds 2005-04-16 3485 pci - interface to PCI bus resource info ^1da177e4c3f41 Linus Torvalds 2005-04-16 3486 dma1ptr - playback dma buffer ^1da177e4c3f41 Linus Torvalds 2005-04-16 3487 dma2ptr - capture dma buffer ^1da177e4c3f41 Linus Torvalds 2005-04-16 3488 irqptr - interrupt resource info ^1da177e4c3f41 Linus Torvalds 2005-04-16 3489 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3490 Returns: 4DWave device class private data ^1da177e4c3f41 Linus Torvalds 2005-04-16 3491 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3492 ---*/ ^1da177e4c3f41 Linus Torvalds 2005-04-16 3493 e23e7a14362072 Bill Pemberton 2012-12-06 3494 int snd_trident_create(struct snd_card *card, ^1da177e4c3f41 Linus Torvalds 2005-04-16 3495 struct pci_dev *pci, ^1da177e4c3f41 Linus Torvalds 2005-04-16 3496 int pcm_streams, ^1da177e4c3f41 Linus Torvalds 2005-04-16 3497 int pcm_spdif_device, 5adfd8c26607cd Takashi Iwai 2021-07-15 3498 int max_wavetable_size) ^1da177e4c3f41 Linus Torvalds 2005-04-16 3499 { 5adfd8c26607cd Takashi Iwai 2021-07-15 3500 struct snd_trident *trident = card->private_data; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3501 int i, err; bee1a5be8b6210 Takashi Iwai 2005-11-17 3502 struct snd_trident_voice *voice; bee1a5be8b6210 Takashi Iwai 2005-11-17 3503 struct snd_trident_pcm_mixer *tmix; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3504 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3505 /* enable PCI device */ 5adfd8c26607cd Takashi Iwai 2021-07-15 3506 err = pcim_enable_device(pci); 34b946ee28699b Takashi Iwai 2021-06-08 3507 if (err < 0) ^1da177e4c3f41 Linus Torvalds 2005-04-16 3508 return err; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3509 /* check, if we can restrict PCI DMA transfers to 30 bits */ 669f65eaeb969e Takashi Iwai 2021-01-14 3510 if (dma_set_mask_and_coherent(>dev, DMA_BIT_MASK(30))) { 80c19b7513029a Takashi Iwai 2014-02-26 3511 dev_err(card->dev, 80c19b7513029a Takashi Iwai 2014-02-26 3512 "architecture does not support 30bit PCI busmaster DMA\n"); ^1da177e4c3f41 Linus Torvalds 2005-04-16 3513 return -ENXIO; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3514 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 3515 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3516 trident->device = (pci->vendor << 16) | pci->device; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3517 trident->card = card; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3518 trident->pci = pci; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3519 spin_lock_init(>reg_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 3520 spin_lock_init(>event_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 3521 spin_lock_init(>voice_alloc); ^1da177e4c3f41 Linus Torvalds 2005-04-16 3522 if (pcm_streams < 1) ^1da177e4c3f41 Linus Torvalds 2005-04-16 3523 pcm_streams = 1; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3524 if (pcm_streams > 32) ^1da177e4c3f41 Li
[kbuild] [linux-next:master 1793/3296] sound/pci/riptide/riptide.c:1860 snd_riptide_create() warn: 'pci' not released on lines: 1850.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Takashi Iwai tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 546c201a891e8439d11a13f5dd3e636ebd94b7d6 [1793/3296] ALSA: riptide: Allocate resources with device-managed APIs :: branch date: 3 days ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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/pci/riptide/riptide.c:1860 snd_riptide_create() warn: 'pci' not released on lines: 1850. Old smatch warnings: sound/pci/riptide/riptide.c:1231 try_to_load_firmware() error: we previously assumed 'chip->fw_entry' could be null (see line 1222) vim +/pci +1860 sound/pci/riptide/riptide.c 109a9638f0fe38 Peter Gruber 2006-03-27 1815 e23e7a14362072 Bill Pemberton 2012-12-06 1816 static int 546c201a891e84 Takashi Iwai 2021-07-15 1817 snd_riptide_create(struct snd_card *card, struct pci_dev *pci) 109a9638f0fe38 Peter Gruber 2006-03-27 1818 { 546c201a891e84 Takashi Iwai 2021-07-15 1819 struct snd_riptide *chip = card->private_data; 109a9638f0fe38 Peter Gruber 2006-03-27 1820 struct riptideport *hwport; 109a9638f0fe38 Peter Gruber 2006-03-27 1821 int err; 109a9638f0fe38 Peter Gruber 2006-03-27 1822 546c201a891e84 Takashi Iwai 2021-07-15 1823 err = pcim_enable_device(pci); 28c0709921fe13 Takashi Iwai 2021-06-08 1824 if (err < 0) 109a9638f0fe38 Peter Gruber 2006-03-27 1825 return err; 109a9638f0fe38 Peter Gruber 2006-03-27 1826 109a9638f0fe38 Peter Gruber 2006-03-27 1827 spin_lock_init(>lock); 109a9638f0fe38 Peter Gruber 2006-03-27 1828 chip->card = card; 109a9638f0fe38 Peter Gruber 2006-03-27 1829 chip->pci = pci; 109a9638f0fe38 Peter Gruber 2006-03-27 1830 chip->irq = -1; 109a9638f0fe38 Peter Gruber 2006-03-27 1831 chip->openstreams = 0; 109a9638f0fe38 Peter Gruber 2006-03-27 1832 chip->port = pci_resource_start(pci, 0); 109a9638f0fe38 Peter Gruber 2006-03-27 1833 chip->received_irqs = 0; 109a9638f0fe38 Peter Gruber 2006-03-27 1834 chip->handled_irqs = 0; 109a9638f0fe38 Peter Gruber 2006-03-27 1835 chip->cif = NULL; 546c201a891e84 Takashi Iwai 2021-07-15 1836 card->private_free = snd_riptide_free; 109a9638f0fe38 Peter Gruber 2006-03-27 1837 546c201a891e84 Takashi Iwai 2021-07-15 1838 err = pci_request_regions(pci, "RIPTIDE"); 546c201a891e84 Takashi Iwai 2021-07-15 1839 if (err < 0) 546c201a891e84 Takashi Iwai 2021-07-15 1840 return err; 109a9638f0fe38 Peter Gruber 2006-03-27 1841 hwport = (struct riptideport *)chip->port; 109a9638f0fe38 Peter Gruber 2006-03-27 1842 UNSET_AIE(hwport); 109a9638f0fe38 Peter Gruber 2006-03-27 1843 546c201a891e84 Takashi Iwai 2021-07-15 1844 if (devm_request_threaded_irq(>dev, pci->irq, 546c201a891e84 Takashi Iwai 2021-07-15 1845 snd_riptide_interrupt, 2ac55daffee5af Takashi Iwai 2020-09-03 1846 riptide_handleirq, IRQF_SHARED, 934c2b6d0cb50f Takashi Iwai 2011-06-10 1847 KBUILD_MODNAME, chip)) { 109a9638f0fe38 Peter Gruber 2006-03-27 1848 snd_printk(KERN_ERR "Riptide: unable to grab IRQ %d\n", 109a9638f0fe38 Peter Gruber 2006-03-27 1849 pci->irq); 109a9638f0fe38 Peter Gruber 2006-03-27 1850 return -EBUSY; 109a9638f0fe38 Peter Gruber 2006-03-27 1851 } 109a9638f0fe38 Peter Gruber 2006-03-27 1852 chip->irq = pci->irq; 3992f78f349f7f Takashi Iwai 2019-12-10 1853 card->sync_irq = chip->irq; 109a9638f0fe38 Peter Gruber 2006-03-27 1854 chip->device_id = pci->device; 109a9638f0fe38 Peter Gruber 2006-03-27 1855 pci_set_master(pci); 28c0709921fe13 Takashi Iwai 2021-06-08 1856 err = snd_riptide_initialize(chip); 546c201a891e84 Takashi Iwai 2021-07-15 1857 if (err < 0) 109a9638f0fe38 Peter Gruber 2006-03-27 1858 return err; 109a9638f0fe38 Peter Gruber 2006-03-27 1859 109a9638f0fe38 Peter Gruber 2006-03-27 @1860 return 0; 109a9638f0fe38 Peter Gruber 2006-03-27 1861 } 109a9638f0fe38 Peter Gruber 2006-03-27 1862 :: The code at line 1860 was first introduced by commit :: 109a9638f0fe38915838b7b9acd98e7cfa91797f [ALSA] Add snd-riptide driver for Conexant Riptide chip :: TO: Peter Gruber ::
[kbuild] arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Alex Shi CC: "Kirill A. Shutemov" CC: Andrew Morton CC: Linux Memory Management List tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: b6769834aac1d467fa1c71277d15688efcbb4d76 mm/thp: narrow lru locking date: 7 months ago :: branch date: 17 hours ago :: commit date: 7 months ago config: mips-randconfig-s031-20210726 (attached as .config) compiler: mips-linux-gcc (GCC) 10.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=b6769834aac1d467fa1c71277d15688efcbb4d76 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b6769834aac1d467fa1c71277d15688efcbb4d76 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition mm/huge_memory.c:1640:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock mm/huge_memory.c:1677:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock mm/huge_memory.c:1787:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock mm/huge_memory.c:1891:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock mm/huge_memory.c:1901:12: sparse: sparse: context imbalance in '__pmd_trans_huge_lock' - wrong count at exit mm/huge_memory.c: note: in included file (through include/linux/irqflags.h, arch/mips/include/asm/atomic.h, include/linux/atomic.h, ...): >> arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in >> '__split_huge_page' - different lock contexts for basic block arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block vim +/__split_huge_page +101 arch/mips/include/asm/irqflags.h 02b849f7613003 Ralf Baechle 2013-02-08 98 02b849f7613003 Ralf Baechle 2013-02-08 99 static inline void arch_local_irq_enable(void) 02b849f7613003 Ralf Baechle 2013-02-08 100 { 02b849f7613003 Ralf Baechle 2013-02-08 @101 __asm__ __volatile__( e97c5b609880d9 Jim Quinlan 2012-09-06 102 " .setpush \n" e97c5b609880d9 Jim Quinlan 2012-09-06 103 " .setreorder \n" e97c5b609880d9 Jim Quinlan 2012-09-06 104 " .setnoat \n" ba9196d2e005a0 Jiaxun Yang 2020-01-13 105 #if defined(CONFIG_CPU_HAS_DIEI) e97c5b609880d9 Jim Quinlan 2012-09-06 106 " ei \n" e97c5b609880d9 Jim Quinlan 2012-09-06 107 #else e97c5b609880d9 Jim Quinlan 2012-09-06 108 " mfc0$1,$12 \n" e97c5b609880d9 Jim Quinlan 2012-09-06 109 " ori $1,0x1f \n" e97c5b609880d9 Jim Quinlan 2012-09-06 110 " xori$1,0x1e \n" e97c5b609880d9 Jim Quinlan 2012-09-06 111 " mtc0$1,$12 \n" e97c5b609880d9 Jim Quinlan 2012-09-06 112 #endif 02b849f7613003 Ralf Baechle 2013-02-08 113 " " __stringify(__irq_enable_hazard) "\n" e97c5b609880d9 Jim Quinlan 2012-09-06 114 " .setpop \n" e97c5b609880d9 Jim Quinlan 2012-09-06 115 : /* no outputs */ e97c5b609880d9 Jim Quinlan 2012-09-06 116 : /* no inputs */ e97c5b609880d
[kbuild] [linux-next:master 1783/3296] sound/pci/emu10k1/emu10k1x.c:960 snd_emu10k1x_create() warn: 'pci' not released on lines: 895,904.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Takashi Iwai tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 2b377c6b6012b6ae71ae74d0b14677050a5aaf6c [1783/3296] ALSA: emu10k1x: Allocate resources with device-managed APIs :: branch date: 3 days ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: sound/pci/emu10k1/emu10k1x.c:960 snd_emu10k1x_create() warn: 'pci' not released on lines: 895,904. vim +/pci +960 sound/pci/emu10k1/emu10k1x.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 863 e23e7a14362072 Bill Pemberton 2012-12-06 864 static int snd_emu10k1x_create(struct snd_card *card, 2b377c6b6012b6 Takashi Iwai 2021-07-15 865 struct pci_dev *pci) ^1da177e4c3f41 Linus Torvalds 2005-04-16 866 { 2b377c6b6012b6 Takashi Iwai 2021-07-15 867 struct emu10k1x *chip = card->private_data; ^1da177e4c3f41 Linus Torvalds 2005-04-16 868 int err; ^1da177e4c3f41 Linus Torvalds 2005-04-16 869 int ch; ^1da177e4c3f41 Linus Torvalds 2005-04-16 870 2b377c6b6012b6 Takashi Iwai 2021-07-15 871 err = pcim_enable_device(pci); 9031f93851bc47 Takashi Iwai 2021-06-08 872 if (err < 0) ^1da177e4c3f41 Linus Torvalds 2005-04-16 873 return err; 9ac05523d38d4c Christophe JAILLET 2020-11-21 874 9ac05523d38d4c Christophe JAILLET 2020-11-21 875 if (dma_set_mask_and_coherent(>dev, DMA_BIT_MASK(28)) < 0) { 26bc6964f97b3a Takashi Iwai 2014-02-25 876 dev_err(card->dev, "error to set 28bit mask DMA\n"); ^1da177e4c3f41 Linus Torvalds 2005-04-16 877 return -ENXIO; ^1da177e4c3f41 Linus Torvalds 2005-04-16 878 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 879 ^1da177e4c3f41 Linus Torvalds 2005-04-16 880 chip->card = card; ^1da177e4c3f41 Linus Torvalds 2005-04-16 881 chip->pci = pci; ^1da177e4c3f41 Linus Torvalds 2005-04-16 882 chip->irq = -1; ^1da177e4c3f41 Linus Torvalds 2005-04-16 883 ^1da177e4c3f41 Linus Torvalds 2005-04-16 884 spin_lock_init(>emu_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 885 spin_lock_init(>voice_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 886 2b377c6b6012b6 Takashi Iwai 2021-07-15 887 err = pci_request_regions(pci, "EMU10K1X"); 2b377c6b6012b6 Takashi Iwai 2021-07-15 888 if (err < 0) 2b377c6b6012b6 Takashi Iwai 2021-07-15 889 return err; ^1da177e4c3f41 Linus Torvalds 2005-04-16 890 chip->port = pci_resource_start(pci, 0); ^1da177e4c3f41 Linus Torvalds 2005-04-16 891 2b377c6b6012b6 Takashi Iwai 2021-07-15 892 if (devm_request_irq(>dev, pci->irq, snd_emu10k1x_interrupt, 934c2b6d0cb50f Takashi Iwai 2011-06-10 893 IRQF_SHARED, KBUILD_MODNAME, chip)) { 26bc6964f97b3a Takashi Iwai 2014-02-25 894 dev_err(card->dev, "cannot grab irq %d\n", pci->irq); ^1da177e4c3f41 Linus Torvalds 2005-04-16 895 return -EBUSY; ^1da177e4c3f41 Linus Torvalds 2005-04-16 896 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 897 chip->irq = pci->irq; 66471aa715f0d4 Takashi Iwai 2019-12-10 898 card->sync_irq = chip->irq; 2b377c6b6012b6 Takashi Iwai 2021-07-15 899 card->private_free = snd_emu10k1x_free; ^1da177e4c3f41 Linus Torvalds 2005-04-16 900 2b377c6b6012b6 Takashi Iwai 2021-07-15 901 chip->dma_buffer = snd_devm_alloc_pages(>dev, SNDRV_DMA_TYPE_DEV, 2b377c6b6012b6 Takashi Iwai 2021-07-15 902 4 * 1024); 2b377c6b6012b6 Takashi Iwai 2021-07-15 903 if (!chip->dma_buffer) ^1da177e4c3f41 Linus Torvalds 2005-04-16 904 return -ENOMEM; ^1da177e4c3f41 Linus Torvalds 2005-04-16 905 ^1da177e4c3f41 Linus Torvalds 2005-04-16 906 pci_set_master(pci); ^1da177e4c3f41 Linus Torvalds 2005-04-16 907 /* read revision & serial */ 44c10138fd4bbc Auke Kok 2007-06-08 908 chip->revision = pci->revision; ^1da177e4c3f41 Linus Torvalds 2005-04-16 909 pci_read_config_dword(pci, PCI_SUBSYSTEM_VENDOR_ID, >serial); ^1da177e4c3f41 Linus Torvalds 2005-04-16 910 pci_read_config_word(pci, PCI_SUBSYSTEM_ID, >model); 26bc6964f97b3a Takashi Iwai 2014-02-25 911 dev_info(card->dev, "Model %04x Rev %08x Serial %08x\n", chip->model, ^1da177e4
[kbuild] drivers/hv/channel_mgmt.c:785 init_vp_index() error: uninitialized symbol 'target_cpu'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Haiyang Zhang CC: Wei Liu CC: Michael Kelley tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: 7c9ff3d61b253715dcf968a6307af148c9b2 Drivers: hv: vmbus: Fix duplicate CPU assignments within a device date: 7 days ago :: branch date: 16 hours ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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/hv/channel_mgmt.c:785 init_vp_index() error: uninitialized symbol 'target_cpu'. vim +/target_cpu +785 drivers/hv/channel_mgmt.c a119845f6e98c8 K. Y. Srinivasan 2012-12-01 714 a119845f6e98c8 K. Y. Srinivasan 2012-12-01 715 /* a119845f6e98c8 K. Y. Srinivasan 2012-12-01 716 * Starting with Win8, we can statically distribute the incoming 1f656ff3fdddc2 K. Y. Srinivasan 2015-05-30 717 * channel interrupt load by binding a channel to VCPU. 1f656ff3fdddc2 K. Y. Srinivasan 2015-05-30 718 * 1f656ff3fdddc2 K. Y. Srinivasan 2015-05-30 719 * For pre-win8 hosts or non-performance critical channels we assign the d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 720) * VMBUS_CONNECT_CPU. 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 721) * 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 722) * Starting with win8, performance critical channels will be distributed 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 723) * evenly among all the available NUMA nodes. Once the node is assigned, 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 724) * we will assign the CPU based on a simple round robin scheme. a119845f6e98c8 K. Y. Srinivasan 2012-12-01 725 */ afaa33da08abd1 Andrea Parri (Microsoft 2020-05-22 726) static void init_vp_index(struct vmbus_channel *channel) a119845f6e98c8 K. Y. Srinivasan 2012-12-01 727 { afaa33da08abd1 Andrea Parri (Microsoft 2020-05-22 728)bool perf_chn = hv_is_perf_channel(channel); 7c9ff3d61b Haiyang Zhang2021-07-16 729 u32 i, ncpu = num_online_cpus(); 25355252607ca2 Dexuan Cui 2018-09-23 730 cpumask_var_t available_mask; 9f01ec53458d9e K. Y. Srinivasan 2015-08-05 731 struct cpumask *alloced_mask; 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 732)u32 target_cpu; 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 733)int numa_node; a119845f6e98c8 K. Y. Srinivasan 2012-12-01 734 a119845f6e98c8 K. Y. Srinivasan 2012-12-01 735 if ((vmbus_proto_version == VERSION_WS2008) || 25355252607ca2 Dexuan Cui 2018-09-23 736 (vmbus_proto_version == VERSION_WIN7) || (!perf_chn) || 25355252607ca2 Dexuan Cui 2018-09-23 737 !alloc_cpumask_var(_mask, GFP_KERNEL)) { a119845f6e98c8 K. Y. Srinivasan 2012-12-01 738 /* a119845f6e98c8 K. Y. Srinivasan 2012-12-01 739 * Prior to win8, all channel interrupts are d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 740) * delivered on VMBUS_CONNECT_CPU. a119845f6e98c8 K. Y. Srinivasan 2012-12-01 741 * Also if the channel is not a performance critical d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 742) * channel, bind it to VMBUS_CONNECT_CPU. d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 743) * In case alloc_cpumask_var() fails, bind it to d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 744) * VMBUS_CONNECT_CPU. a119845f6e98c8 K. Y. Srinivasan 2012-12-01 745 */ d570aec0f2154e Andrea Parri (Microsoft 2020-04-06 746) channel->target_cpu = VMBUS_CONNECT_CPU; afaa33da08abd1 Andrea Parri (Microsoft 2020-05-22 747)if (perf_chn) afaa33da08abd1 Andrea Parri (Microsoft 2020-05-22 748) hv_set_alloced_cpu(VMBUS_CONNECT_CPU); d3ba720dd58cdf K. Y. Srinivasan 2014-04-08 749 return; a119845f6e98c8 K. Y. Srinivasan 2012-12-01 750 } ce59fec836a9b4 Vitaly Kuznetsov 2015-05-06 751 7c9ff3d61b Haiyang Zhang2021-07-16 752 for (i = 1; i <= ncpu + 1; i++) { 1f656ff3fdddc2 K. Y. Srinivasan 2015-05-30 753 while (true) { 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 754) numa_node = next_numa_node_id++; 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 755) if (numa_node == nr_node_ids) { 8ef4c4abbbcdcd Andrea Parri (Microsoft 2020-04-06 756) next_numa_node_
[kbuild] [linux-next:master 1762/3296] sound/pci/cmipci.c:3208 snd_cmipci_create() warn: 'pci' not released on lines: 3012.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Takashi Iwai tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 87e082ad84a7e1f022be168396ff1cb93a80c557 [1762/3296] ALSA: cmipci: Allocate resources with device-managed APIs :: branch date: 3 days ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: sound/pci/cmipci.c:3208 snd_cmipci_create() warn: 'pci' not released on lines: 3012. vim +/pci +3208 sound/pci/cmipci.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 3204 ^1da177e4c3f41 Linus Torvalds 2005-04-16 3205 if (snd_cmipci_create_gameport(cm, dev) < 0) ^1da177e4c3f41 Linus Torvalds 2005-04-16 3206 snd_cmipci_clear_bit(cm, CM_REG_FUNCTRL1, CM_JYSTK_EN); ^1da177e4c3f41 Linus Torvalds 2005-04-16 3207 ^1da177e4c3f41 Linus Torvalds 2005-04-16 @3208 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 3209 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 3210 :: The code at line 3208 was first introduced by commit :: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :: TO: Linus Torvalds :: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] Re: [linux-next:master 1517/2389] sound/pci/als4000.c:930 snd_card_als4000_probe() warn: 'pci' not released on lines: 852,872.
On Thu, Jul 22, 2021 at 06:19:19PM +0200, Takashi Iwai wrote: > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 827 > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 828 /* enable PCI device */ > > 0e175f665960c7 Takashi Iwai2021-07-15 829 err = > > pcim_enable_device(pci); > > 61ea06e8a88163 Takashi Iwai2021-06-08 830 if (err < 0) > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 831 return err; > > 61ea06e8a88163 Takashi Iwai2021-06-08 832 > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 833 /* check, if we can > > restrict PCI DMA transfers to 24 bits */ > > 669f65eaeb969e Takashi Iwai2021-01-14 834 if > > (dma_set_mask_and_coherent(>dev, DMA_BIT_MASK(24))) { > > d85d878efb3047 Takashi Iwai2014-02-25 835 > > dev_err(>dev, "architecture does not support 24bit PCI busmaster > > DMA\n"); > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 836 return -ENXIO; > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 837 } > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 838 > > 61ea06e8a88163 Takashi Iwai2021-06-08 839 err = > > pci_request_regions(pci, "ALS4000"); > > > > ^ > > 0e175f665960c7 Takashi Iwai2021-07-15 840 if (err < 0) > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 841 return err; > > c0874449849175 Andreas Mohr2008-08-20 842 iobase = > > pci_resource_start(pci, 0); > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 843 > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 844 > > pci_read_config_word(pci, PCI_COMMAND, ); > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 845 > > pci_write_config_word(pci, PCI_COMMAND, word | PCI_COMMAND_IO); > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 846 pci_set_master(pci); > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 847 > > 0e175f665960c7 Takashi Iwai2021-07-15 848 err = > > snd_devm_card_new(>dev, index[dev], id[dev], THIS_MODULE, > > e58de7baf7de11 Takashi Iwai2008-12-28 849 > > sizeof(*acard) /* private_data: acard */, > > e58de7baf7de11 Takashi Iwai2008-12-28 850 > > ); > > 0e175f665960c7 Takashi Iwai2021-07-15 851 if (err < 0) > > e58de7baf7de11 Takashi Iwai2008-12-28 852 return err; > > ^^ > > Smatch complains because there is no error handling. Maybe the other > > error paths use devm_ magic? Or more likely Smatch just isn't smart > > enough... > > I believe those are false-positive. > > When the PCI device is already managed via pcim_enable_device(), all > resources (even the ones without pcim_ or devm_) are freed > automagically. Thanks! I've marked everything after pcim_enable_device or pci_enable_device() as managed (will push later). regards, dan carpenter ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [linux-next:master 1760/3296] sound/pci/azt3328.c:2426 snd_azf3328_create() warn: 'pci' not released on lines: 2392.
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Takashi Iwai tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 90d856e71443a2fcacca8e7539bac44d9cb3f7ab commit: 8c5823ef31e1cb3bd1144bc6cefc9a234cfac7ba [1760/3296] ALSA: azt3328: Allocate resources with device-managed APIs :: branch date: 3 days ago :: commit date: 7 days ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: sound/pci/azt3328.c:2426 snd_azf3328_create() warn: 'pci' not released on lines: 2392. vim +/pci +2426 sound/pci/azt3328.c d91c64c8279501 Andreas Mohr 2005-10-25 2332 e23e7a14362072 Bill Pemberton 2012-12-06 2333 static int 95de77660bb54e Takashi Iwai 2005-11-17 2334 snd_azf3328_create(struct snd_card *card, ^1da177e4c3f41 Linus Torvalds 2005-04-16 2335 struct pci_dev *pci, 8c5823ef31e1cb Takashi Iwai 2021-07-15 2336 unsigned long device_type) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2337 { 8c5823ef31e1cb Takashi Iwai 2021-07-15 2338 struct snd_azf3328 *chip = card->private_data; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2339 int err; dfbf9511155d35 Andreas Mohr 2009-07-05 2340 u8 dma_init; dfbf9511155d35 Andreas Mohr 2009-07-05 2341 enum snd_azf3328_codec_type codec_type; da237f35a8a503 Andreas Mohr 2010-12-27 2342 struct snd_azf3328_codec_data *codec_setup; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2343 8c5823ef31e1cb Takashi Iwai 2021-07-15 2344 err = pcim_enable_device(pci); 02330fbaaded5b Andreas Mohr 2008-05-16 2345 if (err < 0) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2346 return err; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2347 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2348 spin_lock_init(>reg_lock); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2349 chip->card = card; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2350 chip->pci = pci; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2351 chip->irq = -1; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2352 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2353 /* check if we can restrict PCI DMA transfers to 24 bits */ 669f65eaeb969e Takashi Iwai 2021-01-14 2354 if (dma_set_mask_and_coherent(>dev, DMA_BIT_MASK(24))) { 4a8d9d717f9498 Takashi Iwai 2014-02-25 2355 dev_err(card->dev, 4a8d9d717f9498 Takashi Iwai 2014-02-25 2356 "architecture does not support 24bit PCI busmaster DMA\n" 02330fbaaded5b Andreas Mohr 2008-05-16 2357 ); 8c5823ef31e1cb Takashi Iwai 2021-07-15 2358 return -ENXIO; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2359 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2360 02330fbaaded5b Andreas Mohr 2008-05-16 2361 err = pci_request_regions(pci, "Aztech AZF3328"); 02330fbaaded5b Andreas Mohr 2008-05-16 2362 if (err < 0) 8c5823ef31e1cb Takashi Iwai 2021-07-15 2363 return err; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2364 dfbf9511155d35 Andreas Mohr 2009-07-05 2365 chip->ctrl_io = pci_resource_start(pci, 0); 02330fbaaded5b Andreas Mohr 2008-05-16 2366 chip->game_io = pci_resource_start(pci, 1); 02330fbaaded5b Andreas Mohr 2008-05-16 2367 chip->mpu_io = pci_resource_start(pci, 2); 02330fbaaded5b Andreas Mohr 2008-05-16 2368 chip->opl3_io = pci_resource_start(pci, 3); 02330fbaaded5b Andreas Mohr 2008-05-16 2369 chip->mixer_io = pci_resource_start(pci, 4); 02330fbaaded5b Andreas Mohr 2008-05-16 2370 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2371 codec_setup = >codecs[AZF_CODEC_PLAYBACK]; 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2372 codec_setup->io_base = chip->ctrl_io + AZF_IO_OFFS_CODEC_PLAYBACK; da237f35a8a503 Andreas Mohr 2010-12-27 2373 codec_setup->lock = >reg_lock; da237f35a8a503 Andreas Mohr 2010-12-27 2374 codec_setup->type = AZF_CODEC_PLAYBACK; 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2375 codec_setup->name = "PLAYBACK"; 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2376 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2377 codec_setup = >codecs[AZF_CODEC_CAPTURE]; 9fd8d36caabaf3 Andreas Mohr 2010-12-27 2378 codec_setup->io_base = chip->ctrl_io + AZF_IO_OFFS_CODEC_CAPTURE; da237f35a8a503 Andreas Mohr 2010-12-27 2379 codec_setup->lock = >reg_lock; da237f35a8a503 Andreas Mohr 2010-12-27 2380 codec_setup->type = AZF_CODEC_CAPTURE; 9fd8d36caabaf3 Andreas Mohr 2010-12-27
[kbuild] arch/x86/kvm/svm/svm_onhyperv.h:73 svm_hv_vmcb_dirty_nested_enlightenments() warn: variable dereferenced before check 'vmcb' (see line 65)
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Vineeth Pillai CC: Paolo Bonzini tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: c4327f15dfc7294b2abde0ea49b3e43eec3cca38 KVM: SVM: hyper-v: Enlightened MSR-Bitmap support date: 6 weeks ago :: branch date: 14 hours ago :: commit date: 6 weeks ago config: x86_64-randconfig-m001-20210726 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: arch/x86/kvm/svm/svm_onhyperv.h:73 svm_hv_vmcb_dirty_nested_enlightenments() warn: variable dereferenced before check 'vmcb' (see line 65) vim +/vmcb +73 arch/x86/kvm/svm/svm_onhyperv.h 1e0c7d40758bcd Vineeth Pillai 2021-06-03 59 c4327f15dfc729 Vineeth Pillai 2021-06-03 60 static inline void svm_hv_vmcb_dirty_nested_enlightenments( c4327f15dfc729 Vineeth Pillai 2021-06-03 61struct kvm_vcpu *vcpu) c4327f15dfc729 Vineeth Pillai 2021-06-03 62 { c4327f15dfc729 Vineeth Pillai 2021-06-03 63struct vmcb *vmcb = to_svm(vcpu)->vmcb; c4327f15dfc729 Vineeth Pillai 2021-06-03 64struct hv_enlightenments *hve = c4327f15dfc729 Vineeth Pillai 2021-06-03 @65(struct hv_enlightenments *)vmcb->control.reserved_sw; c4327f15dfc729 Vineeth Pillai 2021-06-03 66 c4327f15dfc729 Vineeth Pillai 2021-06-03 67/* c4327f15dfc729 Vineeth Pillai 2021-06-03 68 * vmcb can be NULL if called during early vcpu init. c4327f15dfc729 Vineeth Pillai 2021-06-03 69 * And its okay not to mark vmcb dirty during vcpu init c4327f15dfc729 Vineeth Pillai 2021-06-03 70 * as we mark it dirty unconditionally towards end of vcpu c4327f15dfc729 Vineeth Pillai 2021-06-03 71 * init phase. c4327f15dfc729 Vineeth Pillai 2021-06-03 72 */ c4327f15dfc729 Vineeth Pillai 2021-06-03 @73if (vmcb && vmcb_is_clean(vmcb, VMCB_HV_NESTED_ENLIGHTENMENTS) && c4327f15dfc729 Vineeth Pillai 2021-06-03 74 hve->hv_enlightenments_control.msr_bitmap) c4327f15dfc729 Vineeth Pillai 2021-06-03 75vmcb_mark_dirty(vmcb, VMCB_HV_NESTED_ENLIGHTENMENTS); c4327f15dfc729 Vineeth Pillai 2021-06-03 76 } 1e0c7d40758bcd Vineeth Pillai 2021-06-03 77 #else 1e0c7d40758bcd Vineeth Pillai 2021-06-03 78 --- 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] [xlnx:master 10/28] drivers/media/i2c/adv7511-v4l2.c:352:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
CC: kbuild-...@lists.01.org CC: linux-arm-ker...@lists.infradead.org TO: Quanyang Wang CC: Michal Simek Hi Quanyang, First bad commit (maybe != root cause): tree: https://github.com/Xilinx/linux-xlnx master head: 42359bc57bbfee6dfb31a9bad31374c3927f280d commit: bd76b5963aee700d5e6ff0cd29834bfdaf05532e [10/28] media: adv7511-v4l2: fix compile error :: branch date: 6 days ago :: commit date: 13 days ago compiler: or1k-linux-gcc (GCC) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/media/i2c/adv7511-v4l2.c:352:2: warning: Non-boolean value returned >> from function returning bool [returnNonBoolInBooleanFunction] return adv7511_rd(sd, 0x42) & MASK_ADV7511_HPD_DETECT; ^ drivers/media/i2c/adv7511-v4l2.c:357:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] return adv7511_rd(sd, 0x42) & MASK_ADV7511_MSEN_DETECT; ^ vim +352 drivers/media/i2c/adv7511-v4l2.c b4dbad8fe3b604 drivers/media/i2c/adv7511.c Hans Verkuil 2015-06-07 349 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 350 static inline bool adv7511_have_hotplug(struct v4l2_subdev *sd) 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 351 { 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 @352 return adv7511_rd(sd, 0x42) & MASK_ADV7511_HPD_DETECT; 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 353 } 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 354 :: The code at line 352 was first introduced by commit :: 5a544cce2177fe361ba539db9ddaf1eff4e73f81 [media] adv7511: add new video encoder :: TO: Hans Verkuil :: CC: Mauro Carvalho Chehab --- 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] Re: [PATCH] drm: document DRM_IOCTL_MODE_RMFB
CC: kbuild-...@lists.01.org In-Reply-To: References: TO: Simon Ser TO: dri-de...@lists.freedesktop.org CC: Daniel Vetter CC: Pekka Paalanen CC: Leandro Ribeiro Hi Simon, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.14-rc3 next-20210723] [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/Simon-Ser/drm-document-DRM_IOCTL_MODE_RMFB/20210726-155324 base: git://anongit.freedesktop.org/drm-intel for-linux-next :: branch date: 74 minutes ago :: commit date: 74 minutes ago compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: cd tools/perf && ./check-headers.sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot perfheadercheck warnings: (new ones prefixed by >>) Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h': 1053> /** >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1054> * DRM_IOCTL_MODE_RMFB - >> Remove a framebuffer. Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h': 1055> * >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1056> * This removes a >> framebuffer previously added via ADDFB/ADDFB2. The IOCTL >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1057> * argument is a >> framebuffer object ID. Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h': 1058> * >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1059> * Warning: removing a >> framebuffer currently in-use on an enabled plane will >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1060> * disable that plane. If >> the plane is primary, the CRTC may also be disabled >> Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from >> latest version at 'include/uapi/drm/drm.h': 1061> * (depending on driver >> capabilities). Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h': 1062> */ --- 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/firmware/efi/capsule.c:172 efi_capsule_update_locked() warn: should '() << (12)' be a 64 bit type?
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Kefeng Wang CC: Palmer Dabbelt tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff1176468d368232b684f75e82563369208bc371 commit: a5406a7ff56e63376c210b06072aa0ef23473366 riscv: Correct SPARSEMEM configuration date: 4 months ago :: branch date: 10 hours ago :: commit date: 4 months ago config: riscv-randconfig-m031-20210726 (attached as .config) compiler: riscv32-linux-gcc (GCC) 10.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/firmware/efi/capsule.c:172 efi_capsule_update_locked() warn: should '() << (12)' be a 64 bit type? drivers/firmware/efi/capsule.c:267 efi_capsule_update() warn: should '() << (12)' be a 64 bit type? vim +172 drivers/firmware/efi/capsule.c f0133f3c5b8bb34 Matt Fleming 2016-04-25 126 f0133f3c5b8bb34 Matt Fleming 2016-04-25 127 /** f0133f3c5b8bb34 Matt Fleming 2016-04-25 128 * efi_capsule_update_locked - pass a single capsule to the firmware f0133f3c5b8bb34 Matt Fleming 2016-04-25 129 * @capsule: capsule to send to the firmware f0133f3c5b8bb34 Matt Fleming 2016-04-25 130 * @sg_pages: array of scatter gather (block descriptor) pages f0133f3c5b8bb34 Matt Fleming 2016-04-25 131 * @reset: the reset type required for @capsule f0133f3c5b8bb34 Matt Fleming 2016-04-25 132 * f0133f3c5b8bb34 Matt Fleming 2016-04-25 133 * Since this function must be called under capsule_mutex check f0133f3c5b8bb34 Matt Fleming 2016-04-25 134 * whether efi_reset_type will conflict with @reset, and atomically f0133f3c5b8bb34 Matt Fleming 2016-04-25 135 * set it and capsule_pending if a capsule was successfully sent to f0133f3c5b8bb34 Matt Fleming 2016-04-25 136 * the firmware. f0133f3c5b8bb34 Matt Fleming 2016-04-25 137 * f0133f3c5b8bb34 Matt Fleming 2016-04-25 138 * We also check to see if the system is about to restart, and if so, f0133f3c5b8bb34 Matt Fleming 2016-04-25 139 * abort. This avoids races between efi_capsule_update() and f0133f3c5b8bb34 Matt Fleming 2016-04-25 140 * efi_capsule_pending(). f0133f3c5b8bb34 Matt Fleming 2016-04-25 141 */ f0133f3c5b8bb34 Matt Fleming 2016-04-25 142 static int f0133f3c5b8bb34 Matt Fleming 2016-04-25 143 efi_capsule_update_locked(efi_capsule_header_t *capsule, f0133f3c5b8bb34 Matt Fleming 2016-04-25 144 struct page **sg_pages, int reset) f0133f3c5b8bb34 Matt Fleming 2016-04-25 145 { f0133f3c5b8bb34 Matt Fleming 2016-04-25 146 efi_physical_addr_t sglist_phys; f0133f3c5b8bb34 Matt Fleming 2016-04-25 147 efi_status_t status; f0133f3c5b8bb34 Matt Fleming 2016-04-25 148 f0133f3c5b8bb34 Matt Fleming 2016-04-25 149 lockdep_assert_held(_mutex); f0133f3c5b8bb34 Matt Fleming 2016-04-25 150 f0133f3c5b8bb34 Matt Fleming 2016-04-25 151 /* f0133f3c5b8bb34 Matt Fleming 2016-04-25 152 * If someone has already registered a capsule that requires a f0133f3c5b8bb34 Matt Fleming 2016-04-25 153 * different reset type, we're out of luck and must abort. f0133f3c5b8bb34 Matt Fleming 2016-04-25 154 */ f0133f3c5b8bb34 Matt Fleming 2016-04-25 155 if (efi_reset_type >= 0 && efi_reset_type != reset) { f0133f3c5b8bb34 Matt Fleming 2016-04-25 156 pr_err("Conflicting capsule reset type %d (%d).\n", f0133f3c5b8bb34 Matt Fleming 2016-04-25 157 reset, efi_reset_type); f0133f3c5b8bb34 Matt Fleming 2016-04-25 158 return -EINVAL; f0133f3c5b8bb34 Matt Fleming 2016-04-25 159 } f0133f3c5b8bb34 Matt Fleming 2016-04-25 160 f0133f3c5b8bb34 Matt Fleming 2016-04-25 161 /* f0133f3c5b8bb34 Matt Fleming 2016-04-25 162 * If the system is getting ready to restart it may have f0133f3c5b8bb34 Matt Fleming 2016-04-25 163 * called efi_capsule_pending() to make decisions (such as f0133f3c5b8bb34 Matt Fleming 2016-04-25 164 * whether to force an EFI reboot), and we're racing against f0133f3c5b8bb34 Matt Fleming 2016-04-25 165 * that call. Abort in that case. f0133f3c5b8bb34 Matt Fleming 2016-04-25 166 */ 62075e581802ea1 Matt Fleming 2016-05-06 167 if (unlikely(stop_capsules)) { f0133f3c5b8bb34 Matt Fleming 2016-04-25 168 pr_warn("Capsule update raced with reboot, aborting.\n"); f0133f3c5b8bb34 Matt Fleming 2016-04-25 169 return -EINVAL; f0133f3c5b8bb34 Matt Fleming 2016-04-25 170 } f0133f3c5b8bb34 Matt Fleming 2016-04-25 171 f0133f3c5b8bb34 Matt Fleming 2016-04-25 @172 sglist_phys = page_to_phys(sg_pages[0]); f0133f3c5b8bb34 Matt Fleming 2016-04-25 173 f01