Re: [PATCH 3/3] drm/tegra: Add NVDEC driver
by kernel test robot
Hi Mikko,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tegra/for-next]
[also build test ERROR on robh/for-next tegra-drm/drm/tegra/for-next v5.11-rc7 next-20210212]
[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/Mikko-Perttunen/NVIDIA-Tegra-NVD...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/5951327b2039bedd20ca3e7837d4cb602...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mikko-Perttunen/NVIDIA-Tegra-NVDEC-support/20210213-181808
git checkout 5951327b2039bedd20ca3e7837d4cb6021dc9777
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/tegra/nvdec.c: In function 'nvdec_init':
>> drivers/gpu/drm/tegra/nvdec.c:131:2: error: implicit declaration of function 'host1x_syncpt_put'; did you mean 'host1x_syncpt_get'? [-Werror=implicit-function-declaration]
131 | host1x_syncpt_put(client->syncpts[0]);
| ^~~~~~~~~~~~~~~~~
| host1x_syncpt_get
cc1: some warnings being treated as errors
vim +131 drivers/gpu/drm/tegra/nvdec.c
91
92 static int nvdec_init(struct host1x_client *client)
93 {
94 struct tegra_drm_client *drm = host1x_to_drm_client(client);
95 struct drm_device *dev = dev_get_drvdata(client->host);
96 struct tegra_drm *tegra = dev->dev_private;
97 struct nvdec *nvdec = to_vic(drm);
98 int err;
99
100 err = host1x_client_iommu_attach(client);
101 if (err < 0 && err != -ENODEV) {
102 dev_err(nvdec->dev, "failed to attach to domain: %d\n", err);
103 return err;
104 }
105
106 nvdec->channel = host1x_channel_request(client);
107 if (!nvdec->channel) {
108 err = -ENOMEM;
109 goto detach;
110 }
111
112 client->syncpts[0] = host1x_syncpt_request(client, 0);
113 if (!client->syncpts[0]) {
114 err = -ENOMEM;
115 goto free_channel;
116 }
117
118 err = tegra_drm_register_client(tegra, drm);
119 if (err < 0)
120 goto free_syncpt;
121
122 /*
123 * Inherit the DMA parameters (such as maximum segment size) from the
124 * parent host1x device.
125 */
126 client->dev->dma_parms = client->host->dma_parms;
127
128 return 0;
129
130 free_syncpt:
> 131 host1x_syncpt_put(client->syncpts[0]);
132 free_channel:
133 host1x_channel_put(nvdec->channel);
134 detach:
135 host1x_client_iommu_detach(client);
136
137 return err;
138 }
139
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210213-035801/Jian-Cai/...
head: e6802f1d893ae59fe42647ce5734fdd1d380b0e1
commit: e6802f1d893ae59fe42647ce5734fdd1d380b0e1 ARM: Implement Clang's SLS mitigation
date: 15 hours ago
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/e6802f1d893ae59fe42647ce5734fdd1d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210213-035801/Jian-Cai/ARM-Implement-Clang-s-SLS-mitigation/20210212-131952
git checkout e6802f1d893ae59fe42647ce5734fdd1d380b0e1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
--
>> arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
>> arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1205: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
>> arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
>> arm-linux-gnueabi-gcc: error: unrecognized command line option '-mharden-sls=all'
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1205: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-common:android-3.18 12862/17780] drivers/char/mem.c:457:8: error: implicit declaration of function 'should_stop_iteration'
by kernel test robot
Hi Tetsuo,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android-3.18
head: e57956d9b06ef68154e596d853a08dbb24654a07
commit: d8d7791979c3d6045b0904ddf8e17970401a5a80 [12862/17780] /dev/mem: Bail out upon SIGKILL.
config: i386-randconfig-a005-20210213 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-3.18
git checkout d8d7791979c3d6045b0904ddf8e17970401a5a80
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/ptrace.h:5:0,
from drivers/char/mem.c:21:
include/linux/sched.h:1067:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
drivers/char/mem.c: In function 'read_kmem':
>> drivers/char/mem.c:457:8: error: implicit declaration of function 'should_stop_iteration' [-Werror=implicit-function-declaration]
if (should_stop_iteration()) {
^
cc1: some warnings being treated as errors
vim +/should_stop_iteration +457 drivers/char/mem.c
408
409 #ifdef CONFIG_DEVKMEM
410 /*
411 * This function reads the *virtual* memory as seen by the kernel.
412 */
413 static ssize_t read_kmem(struct file *file, char __user *buf,
414 size_t count, loff_t *ppos)
415 {
416 unsigned long p = *ppos;
417 ssize_t low_count, read, sz;
418 char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */
419 int err = 0;
420
421 read = 0;
422 if (p < (unsigned long) high_memory) {
423 low_count = count;
424 if (count > (unsigned long)high_memory - p)
425 low_count = (unsigned long)high_memory - p;
426
427 #ifdef __ARCH_HAS_NO_PAGE_ZERO_MAPPED
428 /* we don't have page 0 mapped on sparc and m68k.. */
429 if (p < PAGE_SIZE && low_count > 0) {
430 sz = size_inside_page(p, low_count);
431 if (clear_user(buf, sz))
432 return -EFAULT;
433 buf += sz;
434 p += sz;
435 read += sz;
436 low_count -= sz;
437 count -= sz;
438 }
439 #endif
440 while (low_count > 0) {
441 sz = size_inside_page(p, low_count);
442
443 /*
444 * On ia64 if a page has been mapped somewhere as
445 * uncached, then it must also be accessed uncached
446 * by the kernel or data corruption may occur
447 */
448 kbuf = xlate_dev_kmem_ptr((char *)p);
449
450 if (copy_to_user(buf, kbuf, sz))
451 return -EFAULT;
452 buf += sz;
453 p += sz;
454 read += sz;
455 low_count -= sz;
456 count -= sz;
> 457 if (should_stop_iteration()) {
458 count = 0;
459 break;
460 }
461 }
462 }
463
464 if (count > 0) {
465 kbuf = (char *)__get_free_page(GFP_KERNEL);
466 if (!kbuf)
467 return -ENOMEM;
468 while (count > 0) {
469 sz = size_inside_page(p, count);
470 if (!is_vmalloc_or_module_addr((void *)p)) {
471 err = -ENXIO;
472 break;
473 }
474 sz = vread(kbuf, (char *)p, sz);
475 if (!sz)
476 break;
477 if (copy_to_user(buf, kbuf, sz)) {
478 err = -EFAULT;
479 break;
480 }
481 count -= sz;
482 buf += sz;
483 read += sz;
484 p += sz;
485 if (should_stop_iteration())
486 break;
487 }
488 free_page((unsigned long)kbuf);
489 }
490 *ppos = p;
491 return read ? read : err;
492 }
493
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[mac80211-next:master 8/13] net/mac80211/rc80211_minstrel_ht.c:829:34: warning: variable 'mg' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
head: 735a48481cca453525d9199772f9c3733a47cff4
commit: 80d55154b2f8f5298f14fb83a0fb99cacb043c07 [8/13] mac80211: minstrel_ht: significantly redesign the rate probing strategy
config: alpha-randconfig-r001-20210213 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git/c...
git remote add mac80211-next https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
git fetch --no-tags mac80211-next master
git checkout 80d55154b2f8f5298f14fb83a0fb99cacb043c07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
net/mac80211/rc80211_minstrel_ht.c: In function 'minstrel_ht_next_inc_rate':
>> net/mac80211/rc80211_minstrel_ht.c:829:34: warning: variable 'mg' set but not used [-Wunused-but-set-variable]
829 | struct minstrel_mcs_group_data *mg;
| ^~
net/mac80211/rc80211_minstrel_ht.c: In function 'minstrel_ht_next_jump_rate':
net/mac80211/rc80211_minstrel_ht.c:894:34: warning: variable 'mg' set but not used [-Wunused-but-set-variable]
894 | struct minstrel_mcs_group_data *mg;
| ^~
vim +/mg +829 net/mac80211/rc80211_minstrel_ht.c
820
821 /*
822 * Incremental update rates:
823 * Flip through groups and pick the first group rate that is faster than the
824 * highest currently selected rate
825 */
826 static u16
827 minstrel_ht_next_inc_rate(struct minstrel_ht_sta *mi, u32 fast_rate_dur)
828 {
> 829 struct minstrel_mcs_group_data *mg;
830 u8 type = MINSTREL_SAMPLE_TYPE_INC;
831 int i, index = 0;
832 u8 group;
833
834 group = mi->sample[type].sample_group;
835 for (i = 0; i < ARRAY_SIZE(minstrel_mcs_groups); i++) {
836 group = (group + 1) % ARRAY_SIZE(minstrel_mcs_groups);
837 mg = &mi->groups[group];
838
839 index = minstrel_ht_group_min_rate_offset(mi, group,
840 fast_rate_dur);
841 if (index < 0)
842 continue;
843
844 index = MI_RATE(group, index & 0xf);
845 if (!minstrel_ht_find_sample_rate(mi, type, index))
846 goto out;
847 }
848 index = 0;
849
850 out:
851 mi->sample[type].sample_group = group;
852
853 return index;
854 }
855
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-goldfish:android-3.18 220/423] drivers/media/i2c/adv7604.c:2741:29: error: 'ADV76XX_DR_STR_MEDIUM_HIGH' undeclared
by kernel test robot
Hi Lars-Peter,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: 57d6a2ad5af7193a282c02b8d225b376ccb48d49
commit: e4bd5cd531164c7ae9d63be855309ed0886c3f0e [220/423] adv7604: Initialize drive strength to default when using DT
config: x86_64-randconfig-a016-20210213 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout e4bd5cd531164c7ae9d63be855309ed0886c3f0e
# 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 >>):
drivers/media/i2c/adv7604.c: In function 'adv7604_parse_dt':
>> drivers/media/i2c/adv7604.c:2741:29: error: 'ADV76XX_DR_STR_MEDIUM_HIGH' undeclared (first use in this function)
state->pdata.dr_str_data = ADV76XX_DR_STR_MEDIUM_HIGH;
^
drivers/media/i2c/adv7604.c:2741:29: note: each undeclared identifier is reported only once for each function it appears in
vim +/ADV76XX_DR_STR_MEDIUM_HIGH +2741 drivers/media/i2c/adv7604.c
2682
2683 static int adv7604_parse_dt(struct adv7604_state *state)
2684 {
2685 struct v4l2_of_endpoint bus_cfg;
2686 struct device_node *endpoint;
2687 struct device_node *np;
2688 unsigned int flags;
2689
2690 np = state->i2c_clients[ADV7604_PAGE_IO]->dev.of_node;
2691
2692 /* Parse the endpoint. */
2693 endpoint = of_graph_get_next_endpoint(np, NULL);
2694 if (!endpoint)
2695 return -EINVAL;
2696
2697 v4l2_of_parse_endpoint(endpoint, &bus_cfg);
2698 of_node_put(endpoint);
2699
2700 flags = bus_cfg.bus.parallel.flags;
2701
2702 if (flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH)
2703 state->pdata.inv_hs_pol = 1;
2704
2705 if (flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH)
2706 state->pdata.inv_vs_pol = 1;
2707
2708 if (flags & V4L2_MBUS_PCLK_SAMPLE_RISING)
2709 state->pdata.inv_llc_pol = 1;
2710
2711 if (bus_cfg.bus_type == V4L2_MBUS_BT656) {
2712 state->pdata.insert_av_codes = 1;
2713 state->pdata.op_656_range = 1;
2714 }
2715
2716 /* Disable the interrupt for now as no DT-based board uses it. */
2717 state->pdata.int1_config = ADV7604_INT1_CONFIG_DISABLED;
2718
2719 /* Use the default I2C addresses. */
2720 state->pdata.i2c_addresses[ADV7604_PAGE_AVLINK] = 0x42;
2721 state->pdata.i2c_addresses[ADV7604_PAGE_CEC] = 0x40;
2722 state->pdata.i2c_addresses[ADV7604_PAGE_INFOFRAME] = 0x3e;
2723 state->pdata.i2c_addresses[ADV7604_PAGE_ESDP] = 0x38;
2724 state->pdata.i2c_addresses[ADV7604_PAGE_DPP] = 0x3c;
2725 state->pdata.i2c_addresses[ADV7604_PAGE_AFE] = 0x26;
2726 state->pdata.i2c_addresses[ADV7604_PAGE_REP] = 0x32;
2727 state->pdata.i2c_addresses[ADV7604_PAGE_EDID] = 0x36;
2728 state->pdata.i2c_addresses[ADV7604_PAGE_HDMI] = 0x34;
2729 state->pdata.i2c_addresses[ADV7604_PAGE_TEST] = 0x30;
2730 state->pdata.i2c_addresses[ADV7604_PAGE_CP] = 0x22;
2731 state->pdata.i2c_addresses[ADV7604_PAGE_VDP] = 0x24;
2732
2733 /* Hardcode the remaining platform data fields. */
2734 state->pdata.disable_pwrdnb = 0;
2735 state->pdata.disable_cable_det_rst = 0;
2736 state->pdata.default_input = -1;
2737 state->pdata.blank_data = 1;
2738 state->pdata.alt_data_sat = 1;
2739 state->pdata.op_format_mode_sel = ADV7604_OP_FORMAT_MODE0;
2740 state->pdata.bus_order = ADV7604_BUS_ORDER_RGB;
> 2741 state->pdata.dr_str_data = ADV76XX_DR_STR_MEDIUM_HIGH;
2742 state->pdata.dr_str_clk = ADV76XX_DR_STR_MEDIUM_HIGH;
2743 state->pdata.dr_str_sync = ADV76XX_DR_STR_MEDIUM_HIGH;
2744
2745 return 0;
2746 }
2747
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 8070/11103] ERROR: modpost: ".strscpy" undefined!
by kernel test robot
Hi Kumar,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07f7e57c63aaa2afb4ea31edef05e08699a63a00
commit: 7ea3f3a6bf48075ad1b8f6b58f054ac84baf1d7e [8070/11103] staging: rtl8188eu: Switch from strlcpy to strscpy
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
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 7ea3f3a6bf48075ad1b8f6b58f054ac84baf1d7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 07f7e57c63aaa2afb4ea31edef05e08699a63a00 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>, old ones prefixed by <<):
ERROR: modpost: ".__ubsan_handle_load_invalid_value" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".skb_put" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_beacon_get_tim" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_unregister_hw" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_switch" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp2" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_pc" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".dma_unmap_page_attrs" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__raw_spin_lock_init" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__dynamic_pr_debug" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp1" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp2" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__netdev_alloc_skb" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_rx_irqsafe" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: "._raw_spin_lock_irqsave" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".is_vmalloc_addr" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".skb_pull" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".udelay" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".memcpy" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".queue_work_on" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_wake_queues" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".memset" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ioread32" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_get_tkip_p2k" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".dma_map_page_attrs" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: "._dev_err" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".iowrite8" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ioremap" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".dma_free_attrs" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".pci_set_master" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__dynamic_dev_dbg" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__stack_chk_fail" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp4" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: "._memcpy_toio" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".pci_release_regions" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_register_hw" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".device_wakeup_disable" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".pci_enable_device" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: "._dev_notice" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ieee80211_stop_queues" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".dma_set_mask" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".iowrite16" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".ioread8" [drivers/staging/vt6655/vt6655_stage.ko] undefined!
ERROR: modpost: ".skb_queue_purge" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_clone" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_unlock_irqrestore" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__warn_printk" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".del_timer_sync" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__ubsan_handle_out_of_bounds" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__init_swait_queue_head" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_free_urb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp4" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kmem_cache_alloc_trace" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".net_ratelimit" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".consume_skb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".complete_and_exit" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".alloc_netdev_mqs" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mod_timer" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__tasklet_schedule" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".snprintf" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kmalloc_order_trace" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__mutex_init" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".vmalloc" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".print_hex_dump" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_tx_wake_queue" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netdev_warn" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".lockdep_init_map_waits" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".strlen" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_control_msg" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_copy" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".wait_for_completion_timeout" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__ubsan_handle_divrem_overflow" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__init_work" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._copy_to_user" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".init_timer_key" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_get_dev" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".fortify_panic" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".sscanf" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kfree_skb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp8" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".flush_signals" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp1" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__ubsan_handle_shift_out_of_bounds" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".alloc_etherdev_mqs" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".cancel_work_sync" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".memcmp" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netdev_info" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kfree" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_alloc_urb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_carrier_off" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_lock_bh" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".request_firmware" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp8" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_put_dev" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_device_attach" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_copy_bits" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_trim" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mutex_lock_nested" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".dev_alloc_name" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_push" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
>> ERROR: modpost: ".strscpy" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".sprintf" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__ubsan_handle_load_invalid_value" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__msecs_to_jiffies" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_put" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__kmalloc" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".vzalloc" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".release_firmware" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".free_netdev" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__list_add_valid" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_lock" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_switch" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".scnprintf" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_rx" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp2" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_pc" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".unregister_netdev" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".yield" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".lib80211_get_crypto_ops" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kmemdup" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_deregister" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".jiffies_to_msecs" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_dequeue" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__raw_spin_lock_init" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kernel_sigaction" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mutex_lock_interruptible_nested" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__dynamic_pr_debug" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp1" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usleep_range" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__dev_kfree_skb_any" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp2" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_submit_urb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__netdev_alloc_skb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mac_pton" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_autopm_get_interface" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_register_driver" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".strnlen" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_lock_irqsave" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_queue_tail" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__check_object_size" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_pull" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".udelay" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_unlock" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__tasklet_hi_schedule" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".memcpy" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".wake_up_process" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".queue_work_on" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mutex_destroy" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".strncasecmp" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".memset" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".memmove" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".register_netdev" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._dev_err" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".memdup_user" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".get_random_bytes" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._raw_spin_unlock_bh" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_kill_urb" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".wait_for_completion_interruptible" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".printk" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".tasklet_setup" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__list_del_entry_valid" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".wireless_send_event" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".device_init_wakeup" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".msleep" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__stack_chk_fail" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kmemleak_not_leak" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_const_cmp4" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_tx_stop_all_queues" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".mutex_unlock" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".kthread_create_on_node" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".complete" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".strcmp" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".vfree" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".netif_carrier_on" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".eth_type_trans" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".usb_reset_device" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".iwe_stream_add_event" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".ieee80211_hdrlen" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: "._copy_from_user" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".iwe_stream_add_point" [drivers/staging/rtl8188eu/r8188eu.ko] undefined!
ERROR: modpost: ".skb_clone" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".wiphy_unregister" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".register_netdevice_notifier" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: "._raw_spin_unlock_irqrestore" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".cfg80211_inform_bss_frame_data" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__warn_printk" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".del_timer_sync" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__ubsan_handle_out_of_bounds" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".wiphy_new_nm" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__init_swait_queue_head" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__sanitizer_cov_trace_cmp4" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".kmem_cache_alloc_trace" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".complete_and_exit" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".sdio_set_block_size" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".mod_timer" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__tasklet_schedule" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".snprintf" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".__mutex_init" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".vmalloc" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".netif_tx_wake_queue" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
ERROR: modpost: ".lockdep_init_map_waits" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
Hi Luc,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 6 months ago
config: sh-randconfig-s031-20210213 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-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 e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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 >>)"
>> arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: got unsigned int
--
fs/cifs/cifs_debug.c:770:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user *buffer @@
fs/cifs/cifs_debug.c:770:14: sparse: expected char const *__gu_addr
fs/cifs/cifs_debug.c:770:14: sparse: got char const [noderef] __user *buffer
>> fs/cifs/cifs_debug.c:770:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
fs/cifs/cifs_debug.c:770:14: sparse: expected void const volatile [noderef] __user *ptr
fs/cifs/cifs_debug.c:770:14: sparse: got char const *__gu_addr
--
fs/cifs/ioctl.c:214:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/cifs/ioctl.c:214:29: sparse: expected int const *__gu_addr
fs/cifs/ioctl.c:214:29: sparse: got int [noderef] __user *
>> fs/cifs/ioctl.c:214:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/cifs/ioctl.c:214:29: sparse: expected void const volatile [noderef] __user *ptr
fs/cifs/ioctl.c:214:29: sparse: got int const *__gu_addr
--
fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user *buffer @@
fs/cifs/dfs_cache.c:195:14: sparse: expected char const *__gu_addr
fs/cifs/dfs_cache.c:195:14: sparse: got char const [noderef] __user *buffer
>> fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
fs/cifs/dfs_cache.c:195:14: sparse: expected void const volatile [noderef] __user *ptr
fs/cifs/dfs_cache.c:195:14: sparse: got char const *__gu_addr
--
fs/cifs/smb2ops.c:2049:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
fs/cifs/smb2ops.c:2049:13: sparse: expected unsigned int const *__gu_addr
fs/cifs/smb2ops.c:2049:13: sparse: got unsigned int [noderef] __user *
>> fs/cifs/smb2ops.c:2049:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
fs/cifs/smb2ops.c:2049:13: sparse: expected void const volatile [noderef] __user *ptr
fs/cifs/smb2ops.c:2049:13: sparse: got unsigned int const *__gu_addr
vim +26 arch/sh/kernel/cpu/sh2a/clock-sh7206.c
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05 23
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05 24 static void master_clk_init(struct clk *clk)
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05 25 {
16b259203c513e Paul Mundt 2010-11-01 @26 clk->rate *= pll2_mult * pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007];
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05 27 }
9d4436a6fbc8c5 Yoshinori Sato 2006-11-05 28
:::::: The code at line 26 was first introduced by commit
:::::: 16b259203c513ed28bd31cc9a981e0d3ad517943 sh: migrate SH_CLK_MD to mode pin API.
:::::: TO: Paul Mundt <lethal(a)linux-sh.org>
:::::: CC: Paul Mundt <lethal(a)linux-sh.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_223' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
by kernel test robot
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: 39cac191ff37939544af80d5d2af6b870fd94c9b arc/mm/highmem: Use generic kmap atomic implementation
date: 3 months ago
config: arc-randconfig-r006-20210213 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# 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 39cac191ff37939544af80d5d2af6b870fd94c9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 <command-line>:
arch/arc/mm/highmem.c: In function 'kmap_init':
>> include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_223' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:300:4: note: in definition of macro '__compiletime_assert'
300 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/arc/mm/highmem.c:69:2: note: in expansion of macro 'BUILD_BUG_ON'
69 | BUILD_BUG_ON(FIX_KMAP_SLOTS > PTRS_PER_PTE);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_223 +319 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 305
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @319 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320
:::::: The code at line 319 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months