net/ipv4/tcp_cong.c:238:22: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 881007522c8fcc3785c75432dbb149ca1b78e106
commit: e188f3330a13df904d77003846eafd3edf99009d ARC: cmpxchg/xchg: rewrite as macros to make type safe
date: 3 months ago
config: arc-randconfig-s032-20211103 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e188f3330a13df904d77003846eafd3edf99009d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/ipv4/tcp_cong.c:238:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] __rcu *_val_ @@ got struct tcp_congestion_ops *[assigned] ca @@
net/ipv4/tcp_cong.c:238:24: sparse: expected struct tcp_congestion_ops const [noderef] __rcu *_val_
net/ipv4/tcp_cong.c:238:24: sparse: got struct tcp_congestion_ops *[assigned] ca
>> net/ipv4/tcp_cong.c:238:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const *prev @@ got struct tcp_congestion_ops const [noderef] __rcu *[assigned] _val_ @@
net/ipv4/tcp_cong.c:238:22: sparse: expected struct tcp_congestion_ops const *prev
net/ipv4/tcp_cong.c:238:22: sparse: got struct tcp_congestion_ops const [noderef] __rcu *[assigned] _val_
vim +238 net/ipv4/tcp_cong.c
317a76f9a44b43 Stephen Hemminger 2005-06-23 219
317a76f9a44b43 Stephen Hemminger 2005-06-23 220 /* Used by sysctl to change default congestion control */
6670e152447732 Stephen Hemminger 2017-11-14 221 int tcp_set_default_congestion_control(struct net *net, const char *name)
317a76f9a44b43 Stephen Hemminger 2005-06-23 222 {
317a76f9a44b43 Stephen Hemminger 2005-06-23 223 struct tcp_congestion_ops *ca;
6670e152447732 Stephen Hemminger 2017-11-14 224 const struct tcp_congestion_ops *prev;
6670e152447732 Stephen Hemminger 2017-11-14 225 int ret;
317a76f9a44b43 Stephen Hemminger 2005-06-23 226
6670e152447732 Stephen Hemminger 2017-11-14 227 rcu_read_lock();
6670e152447732 Stephen Hemminger 2017-11-14 228 ca = tcp_ca_find_autoload(net, name);
6670e152447732 Stephen Hemminger 2017-11-14 229 if (!ca) {
6670e152447732 Stephen Hemminger 2017-11-14 230 ret = -ENOENT;
0baf26b0fcd74b Martin KaFai Lau 2020-01-08 231 } else if (!bpf_try_module_get(ca, ca->owner)) {
6670e152447732 Stephen Hemminger 2017-11-14 232 ret = -EBUSY;
8d432592f30fcc Jonathon Reinhart 2021-05-01 233 } else if (!net_eq(net, &init_net) &&
8d432592f30fcc Jonathon Reinhart 2021-05-01 234 !(ca->flags & TCP_CONG_NON_RESTRICTED)) {
8d432592f30fcc Jonathon Reinhart 2021-05-01 235 /* Only init netns can set default to a restricted algorithm */
8d432592f30fcc Jonathon Reinhart 2021-05-01 236 ret = -EPERM;
6670e152447732 Stephen Hemminger 2017-11-14 237 } else {
6670e152447732 Stephen Hemminger 2017-11-14 @238 prev = xchg(&net->ipv4.tcp_congestion_control, ca);
6670e152447732 Stephen Hemminger 2017-11-14 239 if (prev)
0baf26b0fcd74b Martin KaFai Lau 2020-01-08 240 bpf_module_put(prev, prev->owner);
317a76f9a44b43 Stephen Hemminger 2005-06-23 241
6670e152447732 Stephen Hemminger 2017-11-14 242 ca->flags |= TCP_CONG_NON_RESTRICTED;
317a76f9a44b43 Stephen Hemminger 2005-06-23 243 ret = 0;
317a76f9a44b43 Stephen Hemminger 2005-06-23 244 }
6670e152447732 Stephen Hemminger 2017-11-14 245 rcu_read_unlock();
317a76f9a44b43 Stephen Hemminger 2005-06-23 246
317a76f9a44b43 Stephen Hemminger 2005-06-23 247 return ret;
317a76f9a44b43 Stephen Hemminger 2005-06-23 248 }
317a76f9a44b43 Stephen Hemminger 2005-06-23 249
:::::: The code at line 238 was first introduced by commit
:::::: 6670e152447732ba90626f36dfc015a13fbf150e tcp: Namespace-ify sysctl_tcp_default_congestion_control
:::::: TO: Stephen Hemminger <stephen(a)networkplumber.org>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/bluetooth/btqca.c:493:24: sparse: sparse: restricted __le32 degrades to integer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d714ab6043bca7356b5c823f5335f5dce1f930
commit: 059924fdf6c1c31a7c1aa1915884e23f4313dde2 Bluetooth: btqca: Use NVM files based on SoC ID for WCN3991
date: 11 months ago
config: riscv-randconfig-s031-20211109 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 059924fdf6c1c31a7c1aa1915884e23f4313dde2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash block/ drivers/bluetooth/ drivers/hid/ drivers/hwmon/ drivers/i2c/busses/ drivers/message/fusion/ drivers/net/ethernet/ drivers/net/wireless/intel/iwlwifi/ drivers/pci/ drivers/remoteproc/ drivers/rtc/ drivers/staging/rts5208/ drivers/staging/vc04_services/ drivers/tty/serial/ drivers/vdpa/ drivers/video/fbdev/ net/qrtr/ net/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/bluetooth/btqca.c:493:24: sparse: sparse: restricted __le32 degrades to integer
vim +493 drivers/bluetooth/btqca.c
440
441 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
442 enum qca_btsoc_type soc_type, struct qca_btsoc_version ver,
443 const char *firmware_name)
444 {
445 struct qca_fw_config config;
446 int err;
447 u8 rom_ver = 0;
448 u32 soc_ver;
449
450 bt_dev_dbg(hdev, "QCA setup on UART");
451
452 soc_ver = get_soc_ver(ver.soc_id, ver.rom_ver);
453
454 bt_dev_info(hdev, "QCA controller version 0x%08x", soc_ver);
455
456 config.user_baud_rate = baudrate;
457
458 /* Download rampatch file */
459 config.type = TLV_TYPE_PATCH;
460 if (qca_is_wcn399x(soc_type)) {
461 /* Firmware files to download are based on ROM version.
462 * ROM version is derived from last two bytes of soc_ver.
463 */
464 rom_ver = ((soc_ver & 0x00000f00) >> 0x04) |
465 (soc_ver & 0x0000000f);
466 snprintf(config.fwname, sizeof(config.fwname),
467 "qca/crbtfw%02x.tlv", rom_ver);
468 } else if (soc_type == QCA_QCA6390) {
469 rom_ver = ((soc_ver & 0x00000f00) >> 0x04) |
470 (soc_ver & 0x0000000f);
471 snprintf(config.fwname, sizeof(config.fwname),
472 "qca/htbtfw%02x.tlv", rom_ver);
473 } else {
474 snprintf(config.fwname, sizeof(config.fwname),
475 "qca/rampatch_%08x.bin", soc_ver);
476 }
477
478 err = qca_download_firmware(hdev, &config, soc_type);
479 if (err < 0) {
480 bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
481 return err;
482 }
483
484 /* Give the controller some time to get ready to receive the NVM */
485 msleep(10);
486
487 /* Download NVM configuration */
488 config.type = TLV_TYPE_NVM;
489 if (firmware_name)
490 snprintf(config.fwname, sizeof(config.fwname),
491 "qca/%s", firmware_name);
492 else if (qca_is_wcn399x(soc_type)) {
> 493 if (ver.soc_id == QCA_WCN3991_SOC_ID) {
494 snprintf(config.fwname, sizeof(config.fwname),
495 "qca/crnv%02xu.bin", rom_ver);
496 } else {
497 snprintf(config.fwname, sizeof(config.fwname),
498 "qca/crnv%02x.bin", rom_ver);
499 }
500 }
501 else if (soc_type == QCA_QCA6390)
502 snprintf(config.fwname, sizeof(config.fwname),
503 "qca/htnv%02x.bin", rom_ver);
504 else
505 snprintf(config.fwname, sizeof(config.fwname),
506 "qca/nvm_%08x.bin", soc_ver);
507
508 err = qca_download_firmware(hdev, &config, soc_type);
509 if (err < 0) {
510 bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
511 return err;
512 }
513
514 if (soc_type >= QCA_WCN3991) {
515 err = qca_disable_soc_logging(hdev);
516 if (err < 0)
517 return err;
518 }
519
520 /* Perform HCI reset */
521 err = qca_send_reset(hdev);
522 if (err < 0) {
523 bt_dev_err(hdev, "QCA Failed to run HCI_RESET (%d)", err);
524 return err;
525 }
526
527 bt_dev_info(hdev, "QCA setup on UART is completed");
528
529 return 0;
530 }
531 EXPORT_SYMBOL_GPL(qca_uart_setup);
532
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/scsi/ufs/ufshpb.c:335:27: sparse: sparse: cast from restricted __be64
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 881007522c8fcc3785c75432dbb149ca1b78e106
commit: 63522bf3aced0a782b59f0314dbad5cdc8b14c59 scsi: ufs: core: Add L2P entry swap quirk for Micron UFS
date: 3 months ago
config: i386-randconfig-s001-20211109 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 63522bf3aced0a782b59f0314dbad5cdc8b14c59
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/scsi/ufs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/scsi/ufs/ufshpb.c:335:27: sparse: sparse: cast from restricted __be64
>> drivers/scsi/ufs/ufshpb.c:335:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ppn_tmp @@ got unsigned long long [usertype] @@
drivers/scsi/ufs/ufshpb.c:335:25: sparse: expected restricted __be64 [usertype] ppn_tmp
drivers/scsi/ufs/ufshpb.c:335:25: sparse: got unsigned long long [usertype]
vim +335 drivers/scsi/ufs/ufshpb.c
324
325 static void
326 ufshpb_set_hpb_read_to_upiu(struct ufs_hba *hba, struct ufshpb_lu *hpb,
327 struct ufshcd_lrb *lrbp, u32 lpn, __be64 ppn,
328 u8 transfer_len, int read_id)
329 {
330 unsigned char *cdb = lrbp->cmd->cmnd;
331 __be64 ppn_tmp = ppn;
332 cdb[0] = UFSHPB_READ;
333
334 if (hba->dev_quirks & UFS_DEVICE_QUIRK_SWAP_L2P_ENTRY_FOR_HPB_READ)
> 335 ppn_tmp = swab64(ppn);
336
337 /* ppn value is stored as big-endian in the host memory */
338 memcpy(&cdb[6], &ppn_tmp, sizeof(__be64));
339 cdb[14] = transfer_len;
340 cdb[15] = read_id;
341
342 lrbp->cmd->cmd_len = UFS_CDB_SIZE;
343 }
344
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d714ab6043bca7356b5c823f5335f5dce1f930
commit: 1e3944578b749449bd7fa6bf0bae4c3d3f5f1733 Merge tag 'amd-drm-next-5.16-2021-09-27' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
date: 6 weeks ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1e3944578b749449bd7fa6bf0bae4c3d3f5f1733
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:64:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2656:12: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
2656 | uint64_t temp;
| ^~~~
cc1: all warnings being treated as errors
--
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status' [-Werror=missing-prototypes]
858 | void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/amdgpu_ras_mca_query_error_status +858 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
c030f2e4166c3f xinhui pan 2018-10-31 856
640ae42efb828b John Clements 2021-09-22 857
640ae42efb828b John Clements 2021-09-22 @858 void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
640ae42efb828b John Clements 2021-09-22 859 struct ras_common_if *ras_block,
640ae42efb828b John Clements 2021-09-22 860 struct ras_err_data *err_data)
640ae42efb828b John Clements 2021-09-22 861 {
640ae42efb828b John Clements 2021-09-22 862 switch (ras_block->sub_block_index) {
640ae42efb828b John Clements 2021-09-22 863 case AMDGPU_RAS_MCA_BLOCK__MP0:
640ae42efb828b John Clements 2021-09-22 864 if (adev->mca.mp0.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 865 adev->mca.mp0.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 866 adev->mca.mp0.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 867 break;
640ae42efb828b John Clements 2021-09-22 868 case AMDGPU_RAS_MCA_BLOCK__MP1:
640ae42efb828b John Clements 2021-09-22 869 if (adev->mca.mp1.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 870 adev->mca.mp1.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 871 adev->mca.mp1.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 872 break;
640ae42efb828b John Clements 2021-09-22 873 case AMDGPU_RAS_MCA_BLOCK__MPIO:
640ae42efb828b John Clements 2021-09-22 874 if (adev->mca.mpio.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 875 adev->mca.mpio.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 876 adev->mca.mpio.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 877 break;
640ae42efb828b John Clements 2021-09-22 878 default:
640ae42efb828b John Clements 2021-09-22 879 break;
640ae42efb828b John Clements 2021-09-22 880 }
640ae42efb828b John Clements 2021-09-22 881 }
640ae42efb828b John Clements 2021-09-22 882
:::::: The code at line 858 was first introduced by commit
:::::: 640ae42efb828be69a9ee6ac88fb3d5a3e678ddf drm/amdgpu: Updated RAS infrastructure
:::::: TO: John Clements <john.clements(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/gpu/drm/kmb/kmb_plane.c:21:11: sparse: sparse: symbol 'layer_irqs' was not declared. Should it be static?
by kernel test robot
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date: 1 year ago
config: riscv-randconfig-s032-20211109 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ drivers/clk/qcom/ drivers/clocksource/ drivers/firmware/arm_scmi/ drivers/firmware/efi/test/ drivers/gpu/drm/kmb/ drivers/mmc/host/ drivers/mtd/nand/onenand/ drivers/mtd/nand/raw/ drivers/pci/endpoint/functions/ drivers/phy/marvell/ drivers/pwm/ drivers/soc/bcm/bcm63xx/ drivers/staging/vc04_services/ drivers/uio/ drivers/usb/gadget/function/ drivers/video/fbdev/ fs/ kernel/ lib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/kmb/kmb_plane.c:21:11: sparse: sparse: symbol 'layer_irqs' was not declared. Should it be static?
--
>> drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: expected void [noderef] __iomem *
drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: got void *
vim +/layer_irqs +21 drivers/gpu/drm/kmb/kmb_plane.c
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 20
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 @21 const u32 layer_irqs[] = {
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 22 LCD_INT_VL0,
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 23 LCD_INT_VL1,
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 24 LCD_INT_GL0,
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 25 LCD_INT_GL1
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 26 };
7f7b96a8a0a185 Anitha Chrisanthus 2020-11-04 27
:::::: The code at line 21 was first introduced by commit
:::::: 7f7b96a8a0a185ad8b15ee1cf042f75aa1430c30 drm/kmb: Add support for KeemBay Display
:::::: TO: Anitha Chrisanthus <anitha.chrisanthus(a)intel.com>
:::::: CC: Sam Ravnborg <sam(a)ravnborg.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:506:5: warning: no previous prototype for 'LZ4_decompress_safe_forceExtDict'
by kernel test robot
Hi Randy,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d714ab6043bca7356b5c823f5335f5dce1f930
commit: 5ba3747dbc9ade2d22a8f5bff3c928cb41d35030 regulator: bd71815: add select to fix build
date: 6 months ago
config: mips-randconfig-r015-20211012 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 5ba3747dbc9ade2d22a8f5bff3c928cb41d35030
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/mips/boot/compressed/decompress.c:40:6: warning: no previous prototype for 'error' [-Wmissing-prototypes]
40 | void error(char *x)
| ^~~~~
In file included from arch/mips/boot/compressed/../../../../lib/decompress_unlz4.c:10,
from arch/mips/boot/compressed/decompress.c:62:
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:484:5: warning: no previous prototype for 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
484 | int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:506:5: warning: no previous prototype for 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
506 | int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/boot/compressed/decompress.c:83:6: warning: no previous prototype for '__stack_chk_fail' [-Wmissing-prototypes]
83 | void __stack_chk_fail(void)
| ^~~~~~~~~~~~~~~~
arch/mips/boot/compressed/decompress.c:88:6: warning: no previous prototype for 'decompress_kernel' [-Wmissing-prototypes]
88 | void decompress_kernel(unsigned long boot_heap_start)
| ^~~~~~~~~~~~~~~~~
vim +/LZ4_decompress_safe_forceExtDict +506 arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c
cffb78b0e0b3a30 Kyungsik Lee 2013-07-08 505
2209fda323e2fd2 Gao Xiang 2018-10-30 @506 int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
2209fda323e2fd2 Gao Xiang 2018-10-30 507 int compressedSize, int maxOutputSize,
2209fda323e2fd2 Gao Xiang 2018-10-30 508 const void *dictStart, size_t dictSize)
2209fda323e2fd2 Gao Xiang 2018-10-30 509 {
2209fda323e2fd2 Gao Xiang 2018-10-30 510 return LZ4_decompress_generic(source, dest,
2209fda323e2fd2 Gao Xiang 2018-10-30 511 compressedSize, maxOutputSize,
2209fda323e2fd2 Gao Xiang 2018-10-30 512 endOnInputSize, decode_full_block,
2209fda323e2fd2 Gao Xiang 2018-10-30 513 usingExtDict, (BYTE *)dest,
2209fda323e2fd2 Gao Xiang 2018-10-30 514 (const BYTE *)dictStart, dictSize);
2209fda323e2fd2 Gao Xiang 2018-10-30 515 }
2209fda323e2fd2 Gao Xiang 2018-10-30 516
:::::: The code at line 506 was first introduced by commit
:::::: 2209fda323e2fd2a2d0885595fd5097717f8d2aa lib/lz4: update LZ4 decompressor module
:::::: TO: Gao Xiang <gaoxiang25(a)huawei.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
fs/io_uring.c:2330:40: error: variable 'prev' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d714ab6043bca7356b5c823f5335f5dce1f930
commit: 6f33b0bc4ea43f5c5ce7b7c9ab66051f80837862 io_uring: use slist for completion batching
date: 3 weeks ago
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6f33b0bc4ea43f5c5ce7b7c9ab66051f80837862
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/io_uring.c: In function 'io_queue_async_work':
fs/io_uring.c:1455:61: error: parameter 'locked' set but not used [-Werror=unused-but-set-parameter]
1455 | static void io_queue_async_work(struct io_kiocb *req, bool *locked)
| ~~~~~~^~~~~~
fs/io_uring.c: In function '__io_submit_flush_completions':
>> fs/io_uring.c:2330:40: error: variable 'prev' set but not used [-Werror=unused-but-set-variable]
2330 | struct io_wq_work_node *node, *prev;
| ^~~~
cc1: all warnings being treated as errors
vim +/prev +2330 fs/io_uring.c
2326
2327 static void __io_submit_flush_completions(struct io_ring_ctx *ctx)
2328 __must_hold(&ctx->uring_lock)
2329 {
> 2330 struct io_wq_work_node *node, *prev;
2331 struct io_submit_state *state = &ctx->submit_state;
2332 struct req_batch rb;
2333
2334 spin_lock(&ctx->completion_lock);
2335 wq_list_for_each(node, prev, &state->compl_reqs) {
2336 struct io_kiocb *req = container_of(node, struct io_kiocb,
2337 comp_list);
2338
2339 __io_cqring_fill_event(ctx, req->user_data, req->result,
2340 req->compl.cflags);
2341 }
2342 io_commit_cqring(ctx);
2343 spin_unlock(&ctx->completion_lock);
2344 io_cqring_ev_posted(ctx);
2345
2346 io_init_req_batch(&rb);
2347 node = state->compl_reqs.first;
2348 do {
2349 struct io_kiocb *req = container_of(node, struct io_kiocb,
2350 comp_list);
2351
2352 node = req->comp_list.next;
2353 if (req_ref_put_and_test(req))
2354 io_req_free_batch(&rb, req, &ctx->submit_state);
2355 } while (node);
2356
2357 io_req_free_batch_finish(ctx, &rb);
2358 INIT_WQ_LIST(&state->compl_reqs);
2359 }
2360
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/net/ethernet/xilinx/xilinx_emaclite.c:417:24: sparse: sparse: cast to restricted __be32
by kernel test robot
Hi Andrew,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: 03dfd157670bd715306dce1507b8998cabd38539 drivers: net: xilinx_emaclite: Add COMPILE_TEST support
date: 12 months ago
config: sparc-randconfig-s032-20211109 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 03dfd157670bd715306dce1507b8998cabd38539
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash arch/sparc/vdso/ drivers/gpu/drm/ drivers/net/ethernet/xilinx/ drivers/net/wireguard/ fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/xilinx/xilinx_emaclite.c:417:24: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/xilinx/xilinx_emaclite.c:427:36: sparse: sparse: cast to restricted __be32
vim +417 drivers/net/ethernet/xilinx/xilinx_emaclite.c
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 368
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 369 /**
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 370 * xemaclite_recv_data - Receive a frame
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 371 * @drvdata: Pointer to the Emaclite device private data
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 372 * @data: Address where the data is to be received
f713d50f33c1fbd drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 373 * @maxlen: Maximum supported ethernet packet length
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 374 *
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 375 * This function is intended to be called from the interrupt context or
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 376 * with a wrapper which waits for the receive frame to be available.
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 377 *
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 378 * Return: Total number of bytes received
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 379 */
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 380 static u16 xemaclite_recv_data(struct net_local *drvdata, u8 *data, int maxlen)
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 381 {
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 382 void __iomem *addr;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 383 u16 length, proto_type;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 384 u32 reg_data;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 385
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 386 /* Determine the expected buffer address */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 387 addr = (drvdata->base_addr + drvdata->next_rx_buf_to_use);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 388
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 389 /* Verify which buffer has valid data */
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 390 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 391
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 392 if ((reg_data & XEL_RSR_RECV_DONE_MASK) == XEL_RSR_RECV_DONE_MASK) {
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 393 if (drvdata->rx_ping_pong != 0)
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 394 drvdata->next_rx_buf_to_use ^= XEL_BUFFER_OFFSET;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 395 } else {
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 396 /* The instance is out of sync, try other buffer if other
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 397 * buffer is configured, return 0 otherwise. If the instance is
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 398 * out of sync, do not update the 'next_rx_buf_to_use' since it
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 399 * will correct on subsequent calls
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 400 */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 401 if (drvdata->rx_ping_pong != 0)
eccd5403814b4e7 drivers/net/ethernet/xilinx/xilinx_emaclite.c Andrew Lunn 2020-11-10 402 addr = (void __iomem __force *)
eccd5403814b4e7 drivers/net/ethernet/xilinx/xilinx_emaclite.c Andrew Lunn 2020-11-10 403 ((uintptr_t __force)addr ^
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 404 XEL_BUFFER_OFFSET);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 405 else
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 406 return 0; /* No data was available */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 407
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 408 /* Verify that buffer has valid data */
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 409 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 410 if ((reg_data & XEL_RSR_RECV_DONE_MASK) !=
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 411 XEL_RSR_RECV_DONE_MASK)
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 412 return 0; /* No data was available */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 413 }
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 414
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 415 /* Get the protocol type of the ethernet frame that arrived
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 416 */
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 @417 proto_type = ((ntohl(xemaclite_readl(addr + XEL_HEADER_OFFSET +
44180a573ec936c drivers/net/xilinx_emaclite.c Michal Simek 2010-09-10 418 XEL_RXBUFF_OFFSET)) >> XEL_HEADER_SHIFT) &
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 419 XEL_RPLR_LENGTH_MASK);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 420
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 421 /* Check if received ethernet frame is a raw ethernet frame
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 422 * or an IP packet or an ARP packet
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 423 */
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 424 if (proto_type > ETH_DATA_LEN) {
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 425
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 426 if (proto_type == ETH_P_IP) {
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 427 length = ((ntohl(xemaclite_readl(addr +
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 428 XEL_HEADER_IP_LENGTH_OFFSET +
44180a573ec936c drivers/net/xilinx_emaclite.c Michal Simek 2010-09-10 429 XEL_RXBUFF_OFFSET)) >>
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 430 XEL_HEADER_SHIFT) &
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 431 XEL_RPLR_LENGTH_MASK);
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 432 length = min_t(u16, length, ETH_DATA_LEN);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 433 length += ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 434
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 435 } else if (proto_type == ETH_P_ARP)
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 436 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 437 else
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 438 /* Field contains type other than IP or ARP, use max
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 439 * frame size and let user parse it
49a83f002731dbf drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 440 */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 441 length = ETH_FRAME_LEN + ETH_FCS_LEN;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 442 } else
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 443 /* Use the length in the frame, plus the header and trailer */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 444 length = proto_type + ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 445
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 446 if (WARN_ON(length > maxlen))
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 447 length = maxlen;
cd224553641848d drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 448
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 449 /* Read from the EmacLite device */
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 450 xemaclite_aligned_read((u32 __force *)(addr + XEL_RXBUFF_OFFSET),
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 451 data, length);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 452
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 453 /* Acknowledge the frame */
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 454 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 455 reg_data &= ~XEL_RSR_RECV_DONE_MASK;
acf138f1b00bdd1 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 456 xemaclite_writel(reg_data, addr + XEL_RSR_OFFSET);
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 457
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 458 return length;
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 459 }
bb81b2ddfa194b6 drivers/net/xilinx_emaclite.c John Linn 2009-08-20 460
:::::: The code at line 417 was first introduced by commit
:::::: acf138f1b00bdd1b7cd9894562ed0c2a1670888e net: xilinx_emaclite: fix freezes due to unordered I/O
:::::: TO: Anssi Hannula <anssi.hannula(a)bitwise.fi>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week