Kernel
Threads by month
- ----- 2025 -----
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- 20 participants
- 18517 discussions

[openeuler:OLK-6.6 1667/1667] mm/page_cache_limit.c:103:52: sparse: sparse: incorrect type in argument 3 (different address spaces)
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: 7d1031b36ebd6c273d9aad316fd9e3e2daa01a85 [1667/1667] mm: support pagecache limit
config: loongarch-randconfig-r121-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270823.5Ug5pZtv-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270823.5Ug5pZtv-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270823.5Ug5pZtv-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/page_cache_limit.c:61:5: sparse: sparse: symbol 'cache_reclaim_enable_handler' was not declared. Should it be static?
mm/page_cache_limit.c:77:5: sparse: sparse: symbol 'cache_reclaim_sysctl_handler' was not declared. Should it be static?
>> mm/page_cache_limit.c:103:52: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void * @@ got void [noderef] __user *buffer @@
mm/page_cache_limit.c:103:52: sparse: expected void *
mm/page_cache_limit.c:103:52: sparse: got void [noderef] __user *buffer
>> mm/page_cache_limit.c:94:5: sparse: sparse: symbol 'cache_limit_mbytes_sysctl_handler' was not declared. Should it be static?
>> mm/page_cache_limit.c:187:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@ expected int ( [usertype] *proc_handler )( ... ) @@ got int ( * )( ... ) @@
mm/page_cache_limit.c:187:35: sparse: expected int ( [usertype] *proc_handler )( ... )
mm/page_cache_limit.c:187:35: sparse: got int ( * )( ... )
vim +103 mm/page_cache_limit.c
93
> 94 int cache_limit_mbytes_sysctl_handler(struct ctl_table *table, int write,
95 void __user *buffer, size_t *length, loff_t *ppos)
96 {
97 int ret;
98 unsigned long vm_cache_limit_mbytes_max;
99 unsigned long origin_mbytes = vm_cache_limit_mbytes;
100 int nr_retries = MAX_RECLAIM_RETRIES;
101
102 vm_cache_limit_mbytes_max = totalram_pages() >> (20 - PAGE_SHIFT);
> 103 ret = proc_doulongvec_minmax(table, write, buffer, length, ppos);
104 if (ret || !write)
105 return ret;
106
107 if (vm_cache_limit_mbytes > vm_cache_limit_mbytes_max) {
108 vm_cache_limit_mbytes = origin_mbytes;
109 return -EINVAL;
110 }
111
112 if (write) {
113 while (should_reclaim_page_cache() && page_cache_over_limit() &&
114 nr_retries--) {
115 if (signal_pending(current))
116 return -EINTR;
117
118 shrink_memory(node_reclaim_num(), false);
119 }
120 }
121
122 return 0;
123 }
124
125 static void shrink_shepherd(struct work_struct *w)
126 {
127 int node;
128
129 if (!should_periodical_reclaim())
130 return;
131
132 for_each_online_node(node) {
133 if (!work_pending(&vmscan_works[node]))
134 queue_work_node(node, system_unbound_wq, &vmscan_works[node]);
135 }
136
137 queue_delayed_work(system_unbound_wq, &shepherd,
138 round_jiffies_relative((unsigned long)vm_cache_reclaim_s * HZ));
139 }
140
141 static void shrink_page_work(struct work_struct *w)
142 {
143 shrink_memory(node_reclaim_num(), true);
144 }
145
146 static void shrink_shepherd_timer(void)
147 {
148 int i;
149
150 for (i = 0; i < MAX_NUMNODES; i++)
151 INIT_WORK(&vmscan_works[i], shrink_page_work);
152 }
153
154 static struct ctl_table page_cache_limit_table[] = {
155 {
156 .procname = "cache_reclaim_s",
157 .data = &vm_cache_reclaim_s,
158 .maxlen = sizeof(vm_cache_reclaim_s),
159 .mode = 0644,
160 .proc_handler = cache_reclaim_sysctl_handler,
161 .extra1 = SYSCTL_ZERO,
162 .extra2 = &vm_cache_reclaim_s_max,
163 },
164 {
165 .procname = "cache_reclaim_weight",
166 .data = &vm_cache_reclaim_weight,
167 .maxlen = sizeof(vm_cache_reclaim_weight),
168 .mode = 0644,
169 .proc_handler = proc_dointvec_minmax,
170 .extra1 = SYSCTL_ONE,
171 .extra2 = &vm_cache_reclaim_weight_max,
172 },
173 {
174 .procname = "cache_reclaim_enable",
175 .data = &vm_cache_reclaim_enable,
176 .maxlen = sizeof(vm_cache_reclaim_enable),
177 .mode = 0644,
178 .proc_handler = cache_reclaim_enable_handler,
179 .extra1 = SYSCTL_ZERO,
180 .extra2 = SYSCTL_ONE,
181 },
182 {
183 .procname = "cache_limit_mbytes",
184 .data = &vm_cache_limit_mbytes,
185 .maxlen = sizeof(vm_cache_limit_mbytes),
186 .mode = 0644,
> 187 .proc_handler = cache_limit_mbytes_sysctl_handler,
188 },
189 };
190
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:openEuler-1.0-LTS] BUILD REGRESSION a8a9daf97ebc8e303e039402fe784e7bd4e5a9bb
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree/branch: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
branch HEAD: a8a9daf97ebc8e303e039402fe784e7bd4e5a9bb !14306 printk: Fix the qspinlock deadloop caused by zap_locks()
Unverified Error/Warning (likely false positive, kindly check if interested):
drivers/dma/ti/edma.c:1962:35-51: opportunity for str_yes_no(ecc -> chmap_exist)
Error/Warning ids grouped by kconfigs:
recent_errors
|-- arm64-allnoconfig
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains
| |-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled
|-- arm64-defconfig
| `-- net-ipv4-route.c:warning:array-subscript-is-outside-array-bounds-of-struct-fib_nh
|-- arm64-randconfig-001-20241226
| |-- drivers-nvme-host-core.c:error:compat_uptr_t-undeclared-(first-use-in-this-function)
| |-- drivers-nvme-host-core.c:error:expected-before-ptrval
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity
| `-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains
|-- arm64-randconfig-002-20241226
| |-- drivers-misc-uacce-uacce.c:error:implicit-declaration-of-function-module_refcount
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains
| |-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa
| |-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled
| |-- sound-soc-codecs-88pm86-codec.c:warning:aif1_mux-defined-but-not-used
| `-- sound-soc-codecs-88pm86-codec.c:warning:pcm_switch_controls-defined-but-not-used
|-- arm64-randconfig-003-20241226
| |-- drivers-nvme-host-core.c:error:compat_uptr_t-undeclared-(first-use-in-this-function)
| |-- drivers-nvme-host-core.c:error:expected-before-ptrval
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-init_auto_affinity
| |-- kernel-sched-core.c:error:implicit-declaration-of-function-tg_update_affinity_domains
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled
|-- arm64-randconfig-004-20241226
| |-- drivers-clocksource-arm_arch_timer.c:error:hisi_161010101_read_cntvct_el0-undeclared-(first-use-in-this-function)
| |-- drivers-misc-uacce-uacce.c:error:implicit-declaration-of-function-module_refcount
| |-- drivers-nvme-host-core.c:error:compat_uptr_t-undeclared-(first-use-in-this-function)
| `-- drivers-nvme-host-core.c:error:expected-before-ptrval
|-- arm64-randconfig-r054-20241226
| `-- drivers-dma-ti-edma.c:opportunity-for-str_yes_no(ecc-chmap_exist)
|-- arm64-randconfig-r064-20241226
| |-- drivers-clocksource-arm_arch_timer.c:error:hisi_161010101_read_cntvct_el0-undeclared-(first-use-in-this-function)
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled
|-- arm64-randconfig-r133-20241227
| |-- include-linux-kern_levels.h:warning:format-d-expects-argument-of-type-int-but-argument-has-type-long-unsigned-int
| |-- include-linux-kern_levels.h:warning:format-lx-expects-argument-of-type-long-unsigned-int-but-argument-has-type-const-long-unsigned-int
| |-- include-linux-kern_levels.h:warning:format-p-expects-a-matching-void-argument
| |-- kernel-cred.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-const-volatile-p-got-int-const-noderef-__rcu
| |-- kernel-dma-coherent.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-addr-got-void-noderef-__iomem-mem_base
| |-- kernel-dma-coherent.c:sparse:sparse:incorrect-type-in-assignment-(different-address-spaces)-expected-void-noderef-__iomem-mem_base-got-void
| |-- kernel-dma-coherent.c:sparse:sparse:incorrect-type-in-assignment-(different-address-spaces)-expected-void-virt_base-got-void-noderef-__iomem-mem_base
| |-- kernel-time-time.c:sparse:sparse:symbol-__compat_get_timespec64-was-not-declared.-Should-it-be-static
| |-- kernel-time-time.c:sparse:sparse:symbol-__compat_put_timespec64-was-not-declared.-Should-it-be-static
| |-- lib-kobject.c:sparse:sparse:symbol-kset_get_ownership-was-not-declared.-Should-it-be-static
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled
|-- x86_64-allnoconfig
| |-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa-Werror-Wimplicit-function-declaration
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
|-- x86_64-allyesconfig
| |-- drivers-net-ethernet-hisilicon-hns3-hns3_extension-hns3_enet_it.c:warning:no-previous-prototype-for-function-hns3_nic_select_queue_it
| `-- samples-vfio-mdev-.tmp_mdpy-fb.o:warning:objtool:missing-symbol-for-section-.init.text
|-- x86_64-buildonly-randconfig-001-20241226
| |-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa-Werror-Wimplicit-function-declaration
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
|-- x86_64-buildonly-randconfig-002-20241226
| |-- arch-x86-kernel-unwind_orc.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-dvb-frontends-mn88443x.c:warning:unused-variable-mn88443x_of_match
| |-- drivers-mtd-nand-core.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-usb-dwc2-hcd_ddma.o:warning:objtool:missing-symbol-for-section-.text
| |-- fs-f2fs-recovery.o:warning:objtool:missing-symbol-for-section-.init.text
| |-- kernel-gcov-base.o:warning:objtool:missing-symbol-for-section-.text
| |-- kernel-sched-pelt.o:warning:objtool:missing-symbol-for-section-.text
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
|-- x86_64-buildonly-randconfig-003-20241226
| |-- arch-x86-kernel-unwind_orc.o:warning:objtool:missing-symbol-for-section-.text
| |-- arch-x86-power-cpu.o:warning:objtool:missing-symbol-for-section-.exit.text
| |-- drivers-hwtracing-intel_th-debug.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-md-dm-verity-verify-sig.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-dvb-frontends-mn88443x.c:warning:unused-variable-mn88443x_of_match
| |-- drivers-media-platform-vicodec-vicodec-codec.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-usb-as102-as102_fw.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-usb-as102-as1_cmd.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-usb-as102-as1_cmd_cfg.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-usb-as102-as1_cmd_stream.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-media-usb-uvc-uvc_entity.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-xen-mem-reservation.o:warning:objtool:missing-symbol-for-section-.text
| |-- kernel-gcov-base.o:warning:objtool:missing-symbol-for-section-.text
| |-- kernel-sched-pelt.o:warning:objtool:missing-symbol-for-section-.text
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
|-- x86_64-buildonly-randconfig-004-20241226
| |-- arch-x86-events-zhaoxin-core.c:error:redefinition-of-zhaoxin_pmu_init
| |-- arch-x86-events-zhaoxin-core.c:warning:attribute-declaration-must-precede-definition
| |-- arch-x86-kernel-cpu-mce-therm_throt.o:warning:objtool:missing-symbol-for-section-.irqentry.text
| |-- arch-x86-kernel-cpu-mce-threshold.o:warning:objtool:missing-symbol-for-section-.irqentry.text
| |-- arch-x86-power-cpu.o:warning:objtool:missing-symbol-for-section-.exit.text
| |-- drivers-media-dvb-frontends-mn88443x.c:warning:unused-variable-mn88443x_of_match
| |-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa-Werror-Wimplicit-function-declaration
| |-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
| `-- net-ipv4-metrics.o:warning:objtool:missing-symbol-for-section-.text
|-- x86_64-buildonly-randconfig-005-20241226
| |-- arch-x86-kernel-cpu-mce-genpool.o:warning:objtool:missing-symbol-for-section-.text
| |-- arch-x86-kernel-unwind_orc.o:warning:objtool:missing-symbol-for-section-.text
| |-- block-bfq-wf2q.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-hwtracing-intel_th-debug.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-md-dm-verity-verify-sig.o:warning:objtool:missing-symbol-for-section-.text
| |-- fs-f2fs-recovery.o:warning:objtool:missing-symbol-for-section-.init.text
| |-- kernel-sched-pelt.o:warning:objtool:missing-symbol-for-section-.text
| `-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
|-- x86_64-buildonly-randconfig-006-20241226
| |-- arch-x86-mm-.tmp_maccess.o:warning:objtool:missing-symbol-for-section-.text
| |-- drivers-md-.tmp_dm-writecache.o:warning:objtool:missing-symbol-for-section-.init.text
| |-- drivers-mfd-.tmp_madera-i2c.o:warning:objtool:missing-symbol-for-section-.init.text
| |-- drivers-video-backlight-.tmp_rave-sp-backlight.o:warning:objtool:missing-symbol-for-section-.init.text
| `-- net-sched-.tmp_sch_etf.o:warning:objtool:missing-symbol-for-section-.init.text
|-- x86_64-defconfig
| |-- kernel-sched-pelt.o:warning:objtool:missing-symbol-for-section-.text
| |-- net-ipv4-metrics.o:warning:objtool:missing-symbol-for-section-.text
| `-- net-ipv4-netlink.o:warning:objtool:missing-symbol-for-section-.text
`-- x86_64-randconfig-161-20241226
|-- kernel-hung_task.c:error:use-of-undeclared-identifier-sysctl_hung_task_all_cpu_backtrace
|-- mm-memory.c:error:implicit-declaration-of-function-hugetlb_insert_hugepage_pte_by_pa-Werror-Wimplicit-function-declaration
`-- mm-vmscan.c:error:implicit-declaration-of-function-kernel_swap_enabled-Werror-Wimplicit-function-declaration
elapsed time: 720m
configs tested: 16
configs skipped: 128
tested configs:
arm64 allmodconfig gcc-14.2.0
arm64 allnoconfig gcc-14.2.0
arm64 defconfig gcc-14.2.0
arm64 randconfig-001-20241226 gcc-14.2.0
arm64 randconfig-002-20241226 gcc-14.2.0
arm64 randconfig-003-20241226 gcc-14.2.0
arm64 randconfig-004-20241226 gcc-14.2.0
x86_64 allnoconfig clang-19
x86_64 allyesconfig clang-19
x86_64 buildonly-randconfig-001-20241226 clang-19
x86_64 buildonly-randconfig-002-20241226 clang-19
x86_64 buildonly-randconfig-003-20241226 clang-19
x86_64 buildonly-randconfig-004-20241226 clang-19
x86_64 buildonly-randconfig-005-20241226 clang-19
x86_64 buildonly-randconfig-006-20241226 clang-19
x86_64 defconfig gcc-11
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1667/1667] arch/x86/kvm/svm/sev.c:2200:18: error: no member named 'false' in 'struct hygon_kvm_hooks_table'
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
Hi fangbaoshun,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: 1c3b1095a26ed8bc1aa7ac3d4e8dd3e65964a74b [1667/1667] KVM: SVM: Add KVM_CSV_COMMAND_BATCH command for applying CSV RING_BUFFER mode
config: x86_64-randconfig-102-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270855.zkm1zix6-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241227/202412270855.zkm1zix6-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270855.zkm1zix6-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kvm/svm/sev.c:12:
In file included from include/linux/kvm_host.h:16:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> arch/x86/kvm/svm/sev.c:2200:18: error: no member named 'false' in 'struct hygon_kvm_hooks_table'
2200 | hygon_kvm_hooks.sev_enabled = &sev_enabled;
| ~~~~~~~~~~~~~~~ ^
arch/x86/kvm/svm/sev.c:66:21: note: expanded from macro 'sev_enabled'
66 | #define sev_enabled false
| ^
>> arch/x86/kvm/svm/sev.c:2200:32: error: cannot take the address of an rvalue of type 'int'
2200 | hygon_kvm_hooks.sev_enabled = &sev_enabled;
| ^~~~~~~~~~~~
arch/x86/kvm/svm/sev.c:2198:6: warning: no previous prototype for function 'sev_install_hooks' [-Wmissing-prototypes]
2198 | void sev_install_hooks(void)
| ^
arch/x86/kvm/svm/sev.c:2198:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2198 | void sev_install_hooks(void)
| ^
| static
2 warnings and 2 errors generated.
vim +2200 arch/x86/kvm/svm/sev.c
2195
2196 #ifdef CONFIG_HYGON_CSV
2197 /* Code to set all of the function and vaiable pointers */
2198 void sev_install_hooks(void)
2199 {
> 2200 hygon_kvm_hooks.sev_enabled = &sev_enabled;
2201 hygon_kvm_hooks.sev_issue_cmd = sev_issue_cmd;
2202 hygon_kvm_hooks.get_num_contig_pages = get_num_contig_pages;
2203 hygon_kvm_hooks.sev_pin_memory = sev_pin_memory;
2204 hygon_kvm_hooks.sev_unpin_memory = sev_unpin_memory;
2205
2206 hygon_kvm_hooks.sev_hooks_installed = true;
2207 }
2208 #endif
2209
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-5.10 2600/2600] arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 951151c7a27bc2a9436c2c49ae12510c82137ec1
commit: 2cef14dac00fca28ba2c0492e70bb537cba83f4d [2600/2600] mm/pin_mem: add PG_hotreplace to mark pages need hotreplaced
config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270714.njP0n3lT-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270714.njP0n3lT-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270714.njP0n3lT-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/memory.c:5306:22: sparse: sparse: cast removes address space '__user' of expression
mm/memory.c:273:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:307:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:943:17: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block
mm/memory.c:1099:61: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:1123:61: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:1635:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block
mm/memory.c:1684:9: sparse: sparse: context imbalance in 'insert_page' - different lock contexts for basic block
mm/memory.c:2186:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block
mm/memory.c:2243:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:2265:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:2431:17: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock
mm/memory.c:2504:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:2540:46: sparse: sparse: self-comparison always evaluates to false
mm/memory.c:2719:17: sparse: sparse: context imbalance in 'wp_page_copy' - unexpected unlock
mm/memory.c: note: in included file (through arch/arm64/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/atomic.h, ...):
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
mm/memory.c:3064:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
mm/memory.c:3127:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block
mm/memory.c:3755:19: sparse: sparse: context imbalance in 'pte_alloc_one_map' - different lock contexts for basic block
mm/memory.c:3982:17: sparse: sparse: context imbalance in 'finish_fault' - unexpected unlock
mm/memory.c:4091:9: sparse: sparse: context imbalance in 'do_fault_around' - unexpected unlock
mm/memory.c:4814:5: sparse: sparse: context imbalance in 'follow_invalidate_pte' - different lock contexts for basic block
mm/memory.c:4935:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock
--
mm/migrate.c: note: in included file (through arch/arm64/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/atomic.h, ...):
>> arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates bits from constant value (3fff becomes ff)
vim +88 arch/arm64/include/asm/cmpxchg.h
10b663aef1c2479 Catalin Marinas 2012-03-05 84
305d454aaa292be Will Deacon 2015-10-08 85 __XCHG_GEN()
305d454aaa292be Will Deacon 2015-10-08 86 __XCHG_GEN(_acq)
305d454aaa292be Will Deacon 2015-10-08 87 __XCHG_GEN(_rel)
305d454aaa292be Will Deacon 2015-10-08 @88 __XCHG_GEN(_mb)
305d454aaa292be Will Deacon 2015-10-08 89
:::::: The code at line 88 was first introduced by commit
:::::: 305d454aaa292be3a09a9d674e6c35f5b4249a13 arm64: atomics: implement native {relaxed, acquire, release} atomics
:::::: TO: Will Deacon <will.deacon(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1667/1667] mm/page_cache_limit.c:35:5: sparse: sparse: symbol 'cache_reclaim_enable_handler' was not declared. Should it be static?
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: 621647ce254f1d347ae9bc3d328c09cbb2732487 [1667/1667] mm: support periodical memory reclaim
config: loongarch-randconfig-r121-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270644.ScfyxcPp-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270644.ScfyxcPp-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270644.ScfyxcPp-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/page_cache_limit.c:35:5: sparse: sparse: symbol 'cache_reclaim_enable_handler' was not declared. Should it be static?
>> mm/page_cache_limit.c:51:5: sparse: sparse: symbol 'cache_reclaim_sysctl_handler' was not declared. Should it be static?
vim +/cache_reclaim_enable_handler +35 mm/page_cache_limit.c
34
> 35 int cache_reclaim_enable_handler(struct ctl_table *table, int write,
36 void *buffer, size_t *length, loff_t *ppos)
37 {
38 int ret;
39
40 ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
41 if (ret || !write)
42 return ret;
43
44 if (should_periodical_reclaim())
45 schedule_delayed_work(&shepherd, round_jiffies_relative(
46 (unsigned long)vm_cache_reclaim_s * HZ));
47
48 return 0;
49 }
50
> 51 int cache_reclaim_sysctl_handler(struct ctl_table *table, int write,
52 void *buffer, size_t *length, loff_t *ppos)
53 {
54 int ret;
55
56 ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
57 if (ret || !write)
58 return ret;
59
60 if (should_periodical_reclaim())
61 mod_delayed_work(system_unbound_wq, &shepherd,
62 round_jiffies_relative(
63 (unsigned long)vm_cache_reclaim_s * HZ));
64
65 return ret;
66 }
67
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1667/1667] drivers/i2c/busses/i2c-zhaoxin-smbus.c:367:36: warning: 'zxsmb_acpi_match' defined but not used
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: 08d91e70564c8af05a673fef3dbae0b2278529fd [1667/1667] i2c: smbus: Add support for Zhaoxin SMBUS controller
config: arm64-randconfig-r111-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270617.vikLQkom-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270617.vikLQkom-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270617.vikLQkom-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/i2c/busses/i2c-zhaoxin-smbus.c:367:36: warning: 'zxsmb_acpi_match' defined but not used [-Wunused-const-variable=]
367 | static const struct acpi_device_id zxsmb_acpi_match[] = {
| ^~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PGP_PRELOAD
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n]
Selected by [y]:
- PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y]
vim +/zxsmb_acpi_match +367 drivers/i2c/busses/i2c-zhaoxin-smbus.c
366
> 367 static const struct acpi_device_id zxsmb_acpi_match[] = {
368 {"SMB3324", 0 },
369 { }
370 };
371 MODULE_DEVICE_TABLE(acpi, zxsmb_acpi_match);
372
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6] BUILD REGRESSION 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree/branch: https://gitee.com/openeuler/kernel.git OLK-6.6
branch HEAD: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee !14201 【OLK-6.6】 drivers: arch_topology: Refactor do-while loops
Error/Warning ids grouped by kconfigs:
recent_errors
|-- arm64-allmodconfig
| |-- arch-arm64-kernel-virtcca_cvm_guest.c:warning:no-previous-prototype-for-function-enable_swiotlb_for_cvm_dev
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- drivers-net-ethernet-huawei-hinic3-cqm-cqm_bitmap_table.c:error:a-randomized-struct-can-only-be-initialized-with-a-designated-initializer
| |-- drivers-perf-arm_pmuv3.c:warning:stack-frame-size-()-exceeds-limit-()-in-armv8pmu_handle_irq
| |-- instantiation:error:expected-absolute-expression
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_entity_is_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_entity_to_task
| `-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_tag_of_entity
|-- arm64-allnoconfig
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
| |-- kismet:WARNING:unmet-direct-dependencies-detected-for-CRYPTO_DRBG_CTR-when-selected-by-CRYPTO_DEV_HISI_TRNG
| `-- kismet:WARNING:unmet-direct-dependencies-detected-for-HALTPOLL_CPUIDLE-when-selected-by-ARM64
|-- arm64-defconfig
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- arm64-randconfig-001-20241226
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- instantiation:error:expected-absolute-expression
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- arm64-randconfig-002-20241226
| |-- instantiation:error:expected-absolute-expression
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- arm64-randconfig-003-20241226
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- instantiation:error:expected-absolute-expression
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- arm64-randconfig-004-20241226
| |-- WARNING:modpost:vmlinux:section-mismatch-in-reference:virtio_fs_init-(section:.init.text)-virtio_fs_sysfs_exit-(section:.exit.text)
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- arm64-randconfig-r111-20241227
| |-- drivers-clk-imx-clk-composite-7ulp.c:sparse:sparse:Using-plain-integer-as-NULL-pointer
| |-- drivers-iommu-arm-arm-smmu-v3-arm-smmu-v3.c:error:pci_bus_type-undeclared-(first-use-in-this-function)
| |-- fs-proc-etmem_scan.c:sparse:sparse:cast-removes-address-space-__rcu-of-expression
| |-- fs-proc-etmem_scan.c:warning:suggest-braces-around-empty-body-in-an-else-statement
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- loongarch-allmodconfig
| |-- arch-loongarch-kernel-paravirt.c:error:KVM_HCALL_FUNC_PV_IPI-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:mp_ops-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-paravt_steal_clock
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-parse_no_stealacc
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_cpu_reboot
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_disable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_enable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_nb
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_notify
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_down_prepare
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_online
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_init
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-steal_acc
| |-- arch-loongarch-kernel-paravirt.c:warning:paravt_steal_clock-defined-but-not-used
| |-- arch-loongarch-kvm-intc-pch_pic.c:warning:variable-ret-set-but-not-used
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-e-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-irq_source_id-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-kvm-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-level-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-line_status-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpu-set-but-not-used
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpus-set-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:Function-parameter-or-member-ivrs-not-described-in-get_highest_supported_ivhd_type
| |-- drivers-iommu-loongarch_iommu.c:warning:la_iommu_setup-defined-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-check_device_compat
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-create_rlookup_entry
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_attach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_deattach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-find_iommu_by_dev
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-get_iommu_info_from_dom
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-iommu_init_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-la_iommu_probe_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-lookup_rlooptable
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-loongarch_get_iommu_by_devid
| |-- drivers-scsi-leapioraid-leapioraid_func.c:warning:mq-poll-directive-output-may-be-truncated-writing-bytes-into-a-region-of-size-between-and
| |-- drivers-scsi-leapioraid-leapioraid_func.c:warning:u-directive-output-may-be-truncated-writing-between-and-bytes-into-a-region-of-size-between-and
| |-- include-linux-init.h:error:redefinition-of-parse_no_stealacc
| |-- include-linux-init.h:error:redefinition-of-str_parse_no_stealacc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_entity_is_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_entity_to_task
| `-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_tag_of_entity
|-- loongarch-allnoconfig
| |-- arch-loongarch-kernel-efi.c:error:implicit-declaration-of-function-pmd_mkhuge
| |-- arch-loongarch-kernel-efi.c:error:incompatible-types-when-assigning-to-type-pmd_t-from-type-int
| |-- arch-loongarch-kernel-legacy_boot.c:error:implicit-declaration-of-function-nid_to_addrbase
| |-- drivers-irqchip-irq-loongson-eiointc.c:error:NODES_PER_FLATMODE_NODE-undeclared-(first-use-in-this-function)
| |-- include-linux-suspend.h:error:expected-)-before-numeric-constant
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- loongarch-allyesconfig
| |-- arch-loongarch-kernel-paravirt.c:error:KVM_HCALL_FUNC_PV_IPI-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:mp_ops-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-paravt_steal_clock
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-parse_no_stealacc
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_cpu_reboot
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_disable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_enable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_nb
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_notify
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_down_prepare
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_online
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_init
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-steal_acc
| |-- arch-loongarch-kernel-paravirt.c:warning:paravt_steal_clock-defined-but-not-used
| |-- arch-loongarch-kvm-intc-pch_pic.c:warning:variable-ret-set-but-not-used
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-e-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-irq_source_id-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-kvm-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-level-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-line_status-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpu-set-but-not-used
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpus-set-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:Function-parameter-or-member-ivrs-not-described-in-get_highest_supported_ivhd_type
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-check_device_compat
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-create_rlookup_entry
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_attach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_deattach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-find_iommu_by_dev
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-get_iommu_info_from_dom
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-iommu_init_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-la_iommu_probe_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-lookup_rlooptable
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-loongarch_get_iommu_by_devid
| |-- drivers-scsi-leapioraid-leapioraid_func.c:warning:mq-poll-directive-output-may-be-truncated-writing-bytes-into-a-region-of-size-between-and
| |-- drivers-scsi-leapioraid-leapioraid_func.c:warning:u-directive-output-may-be-truncated-writing-between-and-bytes-into-a-region-of-size-between-and
| |-- include-linux-init.h:error:redefinition-of-parse_no_stealacc
| |-- include-linux-init.h:error:redefinition-of-str_parse_no_stealacc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_entity_is_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_entity_to_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-bpf_sched_tag_of_entity
| |-- net-ipv4-tcp_comp.c:warning:no-previous-prototype-for-comp_setup_strp
| `-- net-ipv4-tcp_comp.c:warning:no-previous-prototype-for-comp_stream_read
|-- loongarch-defconfig
| |-- arch-loongarch-kvm-intc-pch_pic.c:warning:variable-ret-set-but-not-used
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-e-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-irq_source_id-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-kvm-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-level-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-line_status-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpu-set-but-not-used
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpus-set-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:Function-parameter-or-member-ivrs-not-described-in-get_highest_supported_ivhd_type
| |-- drivers-iommu-loongarch_iommu.c:warning:la_iommu_setup-defined-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-check_device_compat
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-create_rlookup_entry
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_attach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_deattach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-find_iommu_by_dev
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-get_iommu_info_from_dom
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-iommu_init_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-la_iommu_probe_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-lookup_rlooptable
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-loongarch_get_iommu_by_devid
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- loongarch-loongson3_defconfig
| |-- arch-loongarch-kvm-intc-pch_pic.c:warning:variable-ret-set-but-not-used
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-e-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-irq_source_id-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-kvm-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-level-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-irqfd.c:warning:Function-parameter-or-member-line_status-not-described-in-kvm_set_msi
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpu-set-but-not-used
| |-- arch-loongarch-kvm-vm.c:warning:variable-vcpus-set-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:Function-parameter-or-member-ivrs-not-described-in-get_highest_supported_ivhd_type
| |-- drivers-iommu-loongarch_iommu.c:warning:la_iommu_setup-defined-but-not-used
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-check_device_compat
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-create_rlookup_entry
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_attach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_deattach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-find_iommu_by_dev
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-get_iommu_info_from_dom
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-iommu_init_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-la_iommu_probe_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-lookup_rlooptable
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-loongarch_get_iommu_by_devid
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- loongarch-randconfig-002-20241226
| |-- arch-loongarch-kernel-efi.c:error:implicit-declaration-of-function-pmd_mkhuge
| |-- arch-loongarch-kernel-efi.c:error:incompatible-types-when-assigning-to-type-pmd_t-from-type-int
| |-- arch-loongarch-kernel-paravirt.c:error:KVM_HCALL_FUNC_PV_IPI-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:mp_ops-undeclared-(first-use-in-this-function)
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-paravt_steal_clock
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-parse_no_stealacc
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_cpu_reboot
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_disable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_enable_steal_time
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_nb
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_reboot_notify
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_down_prepare
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_cpu_online
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-pv_time_init
| |-- arch-loongarch-kernel-paravirt.c:error:redefinition-of-steal_acc
| |-- arch-loongarch-kernel-paravirt.c:warning:paravt_steal_clock-defined-but-not-used
| |-- include-linux-init.h:error:redefinition-of-parse_no_stealacc
| `-- include-linux-init.h:error:redefinition-of-str_parse_no_stealacc
|-- loongarch-randconfig-r121-20241227
| |-- arch-loongarch-kernel-dma.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-const-volatile-noderef-__iomem-addr-got-void-volatile
| |-- arch-loongarch-kernel-kfpu.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-bool-noderef-__percpu
| |-- arch-loongarch-kernel-legacy_boot.c:error:implicit-declaration-of-function-nid_to_addrbase
| |-- drivers-acpi-pptt.c:sparse:sparse:symbol-acpi_pptt_for_each_container-was-not-declared.-Should-it-be-static
| |-- drivers-clk-imx-clk-composite-7ulp.c:sparse:sparse:Using-plain-integer-as-NULL-pointer
| |-- drivers-iommu-loongarch_iommu.c:warning:Function-parameter-or-member-ivrs-not-described-in-get_highest_supported_ivhd_type
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-check_device_compat
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-create_rlookup_entry
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_attach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-domain_deattach_iommu
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-find_iommu_by_dev
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-get_iommu_info_from_dom
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-iommu_init_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-la_iommu_probe_device
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-lookup_rlooptable
| |-- drivers-iommu-loongarch_iommu.c:warning:no-previous-prototype-for-loongarch_get_iommu_by_devid
| |-- drivers-irqchip-irq-loongson-eiointc.c:error:NODES_PER_FLATMODE_NODE-undeclared-(first-use-in-this-function)
| |-- drivers-pci-controller-pci-loongson.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-volatile-noderef-__iomem-addr-got-void-volatile
| |-- drivers-phy-mediatek-phy-mtk-tphy.c:sparse:sparse:dubious:x-y
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
| |-- kernel-trace-ftrace.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| |-- kernel-trace-trace.h:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| `-- mm-show_mem.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
|-- loongarch-randconfig-r132-20241226
| |-- include-linux-cpuidle.h:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| |-- include-linux-cpuidle.h:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-unsigned-int-noderef-__percpu
| |-- include-linux-entry-common.h:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| |-- include-linux-entry-common.h:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-unsigned-int-noderef-__percpu
| |-- mm-gup.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| |-- mm-gup.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-unsigned-int-noderef-__percpu
| |-- net-core-page_pool.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-int-noderef-__percpu
| `-- net-core-page_pool.c:sparse:sparse:incorrect-type-in-argument-(different-address-spaces)-expected-void-ptr-got-unsigned-int-noderef-__percpu
|-- x86_64-allnoconfig
| |-- drivers-char-lsse_sdf_cdev.c:linux-module.h-is-included-more-than-once.
| |-- drivers-scsi-leapioraid-leapioraid_app.c:leapioraid_func.h-is-included-more-than-once.
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
| |-- kismet:WARNING:unmet-direct-dependencies-detected-for-ACPI_HOTPLUG_IGNORE_OSC-when-selected-by-X86
| `-- kismet:WARNING:unmet-direct-dependencies-detected-for-VFIO_MDEV-when-selected-by-CRYPTO_DEV_HCT
|-- x86_64-allyesconfig
| |-- arch-x86-crypto-sm3-zhaoxin-gmi.c:warning:no-previous-prototype-for-function-sm3_generic_block_fn
| |-- arch-x86-crypto-sm3-zhaoxin-gmi.c:warning:no-previous-prototype-for-function-zx_sm3_finup
| |-- arch-x86-crypto-sm3-zhaoxin-gmi.c:warning:no-previous-prototype-for-function-zx_sm3_update
| |-- arch-x86-crypto-sm4-zhaoxin-gmi.c:warning:no-previous-prototype-for-function-gmi_sm4_set_key
| |-- arch-x86-kernel-cpu-hygon.c:warning:no-previous-prototype-for-function-get_nt_block_copy_mini_len
| |-- arch-x86-kernel-cpu-hygon.c:warning:no-previous-prototype-for-function-set_c86_features_para_invalid
| |-- arch-x86-kernel-csv-shared.c:warning:no-previous-prototype-for-function-csv3_early_secure_call_ident_map
| |-- arch-x86-kernel-csv-shared.c:warning:no-previous-prototype-for-function-csv3_scan_secure_call_pages
| |-- arch-x86-kernel-fpu-core.c:warning:no-previous-prototype-for-function-get_fpustate_free_space
| |-- arch-x86-kvm-svm-csv.c:warning:no-previous-prototype-for-function-csv_vm_attestation
| |-- arch-x86-kvm-svm-sev.c:warning:no-previous-prototype-for-function-sev_install_hooks
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-add_sgpio_zhaoxin
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_wait_em_reset
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_zhaoxin_set_em_sgpio
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_zhaoxin_set_em_sgpio_gpmode
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-remove_sgpio_zhaoxin
| |-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-set_em_messages
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- drivers-gpu-drm-amd-amdgpu-..-amdkfd-kfd_topology.c:warning:stack-frame-size-()-exceeds-limit-()-in-kfd_topology_add_device
| |-- drivers-gpu-drm-amd-amdgpu-..-display-dc-dml-calcs-dcn_calc_auto.c:warning:stack-frame-size-()-exceeds-limit-()-in-mode_support_and_system_configuration
| |-- drivers-gpu-drm-amd-amdgpu-..-display-dc-dml-dcn30-display_mode_vba_30.c:warning:stack-frame-size-()-exceeds-limit-()-in-dml30_ModeSupportAndSystemConfigurationFull
| |-- drivers-net-ethernet-huawei-hinic3-cqm-cqm_bitmap_table.c:error:a-randomized-struct-can-only-be-initialized-with-a-designated-initializer
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_entity_is_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_entity_to_task
| |-- kernel-sched-bpf_sched.c:warning:no-previous-prototype-for-function-bpf_sched_tag_of_entity
| |-- net-ipv4-tcp_comp.c:warning:no-previous-prototype-for-function-comp_setup_strp
| `-- net-ipv4-tcp_comp.c:warning:no-previous-prototype-for-function-comp_stream_read
|-- x86_64-buildonly-randconfig-001-20241226
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
| `-- kernel-sched-isolation.c:error:use-of-undeclared-identifier-setup_max_cpus
|-- x86_64-buildonly-randconfig-002-20241226
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- x86_64-buildonly-randconfig-003-20241226
| `-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
|-- x86_64-buildonly-randconfig-004-20241226
| `-- kernel-sched-isolation.c:error:use-of-undeclared-identifier-setup_max_cpus
|-- x86_64-buildonly-randconfig-005-20241226
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- x86_64-buildonly-randconfig-006-20241226
| |-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- x86_64-defconfig
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- x86_64-randconfig-101-20241227
| |-- WARNING:modpost:vmlinux:section-mismatch-in-reference:virtio_fs_init-(section:.init.text)-virtio_fs_sysfs_exit-(section:.exit.text)
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- x86_64-randconfig-103-20241227
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
|-- x86_64-randconfig-104-20241227
| |-- kernel-irq-proc.c:warning:no-previous-prototype-for-register_irqchip_proc
| `-- kernel-irq-proc.c:warning:no-previous-prototype-for-unregister_irqchip_proc
`-- x86_64-randconfig-161-20241226
|-- drivers-ata-ahci_zhaoxin_sgpio.c-ahci_wait_em_reset()-warn:variable-dereferenced-before-check-sgpio_zhaoxin-(see-line-)
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-add_sgpio_zhaoxin
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_wait_em_reset
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_zhaoxin_set_em_sgpio
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-ahci_zhaoxin_set_em_sgpio_gpmode
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-remove_sgpio_zhaoxin
|-- drivers-ata-ahci_zhaoxin_sgpio.c:warning:no-previous-prototype-for-function-set_em_messages
|-- drivers-ata-libahci.c:warning:no-previous-prototype-for-function-get_ahci_em_messages
|-- drivers-platform-x86-intel-speed_select_if-isst_tpmi_core.c-isst_if_clos_assoc()-warn:possible-spectre-second-half.-sst_inst
|-- drivers-platform-x86-intel-speed_select_if-isst_tpmi_core.c-isst_if_clos_assoc()-warn:potential-spectre-issue-isst_common.sst_inst-r
|-- drivers-platform-x86-intel-speed_select_if-isst_tpmi_core.c-isst_if_get_tpmi_instance_count()-warn:possible-spectre-second-half.-sst_inst
|-- drivers-platform-x86-intel-speed_select_if-isst_tpmi_core.c-isst_if_get_tpmi_instance_count()-warn:potential-spectre-issue-isst_common.sst_inst-r-(local-cap)
|-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-register_irqchip_proc
|-- kernel-irq-proc.c:warning:no-previous-prototype-for-function-unregister_irqchip_proc
|-- kernel-pid_sysctl.h-(null)()-warn:(struct-ctl_table)-proc_handler-cannot-be-NULL.-Expression:pid_ns_ctl_table_vm-proc_handler
|-- kernel-pid_sysctl.h-(null)()-warn:(struct-ctl_table)-procname-cannot-be-NULL.-Expression:pid_ns_ctl_table_vm-procname
`-- mm-kasan-kasan_test.c-rcu_uaf_reclaim()-error:dereferencing-freed-memory-fp-(line-)
elapsed time: 724m
configs tested: 22
configs skipped: 122
tested configs:
arm64 allmodconfig clang-18
arm64 allnoconfig gcc-14.2.0
arm64 defconfig gcc-14.2.0
arm64 randconfig-001-20241226 clang-15
arm64 randconfig-002-20241226 clang-17
arm64 randconfig-003-20241226 clang-19
arm64 randconfig-004-20241226 gcc-14.2.0
loongarch allmodconfig gcc-14.2.0
loongarch allnoconfig gcc-14.2.0
loongarch defconfig gcc-14.2.0
loongarch loongson3_defconfig gcc-14.2.0
loongarch randconfig-001-20241226 gcc-14.2.0
loongarch randconfig-002-20241226 gcc-14.2.0
x86_64 allnoconfig clang-19
x86_64 allyesconfig clang-19
x86_64 buildonly-randconfig-001-20241226 clang-19
x86_64 buildonly-randconfig-002-20241226 clang-19
x86_64 buildonly-randconfig-003-20241226 clang-19
x86_64 buildonly-randconfig-004-20241226 clang-19
x86_64 buildonly-randconfig-005-20241226 clang-19
x86_64 buildonly-randconfig-006-20241226 clang-19
x86_64 defconfig gcc-11
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1667/1667] fs/proc/etmem_scan.c:737:16: sparse: sparse: cast removes address space '__rcu' of expression
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: 5d3b64fd78b80ec49285f2186e7b5ac5850f76e4 [1667/1667] etmem: add etmem scan feature
config: arm64-randconfig-r111-20241227 (https://download.01.org/0day-ci/archive/20241227/202412270547.i7G0fcKP-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270547.i7G0fcKP-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270547.i7G0fcKP-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
fs/proc/etmem_scan.c:269:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __user *buf @@ got void *buf @@
fs/proc/etmem_scan.c:269:18: sparse: expected void [noderef] __user *buf
fs/proc/etmem_scan.c:269:18: sparse: got void *buf
>> fs/proc/etmem_scan.c:737:16: sparse: sparse: cast removes address space '__rcu' of expression
fs/proc/etmem_scan.c:1361:40: sparse: sparse: incorrect type in assignment (incompatible argument 2 (different address spaces)) @@ expected long ( *extern [addressable] [assigned] [toplevel] read )( ... ) @@ got long ( * )( ... ) @@
fs/proc/etmem_scan.c:1361:40: sparse: expected long ( *extern [addressable] [assigned] [toplevel] read )( ... )
fs/proc/etmem_scan.c:1361:40: sparse: got long ( * )( ... )
fs/proc/etmem_scan.c:697:46: sparse: sparse: self-comparison always evaluates to false
fs/proc/etmem_scan.c:720:46: sparse: sparse: self-comparison always evaluates to false
vim +/__rcu +737 fs/proc/etmem_scan.c
724
725 static int arm_page_range(struct page_idle_ctrl *pic,
726 unsigned long addr,
727 unsigned long end)
728 {
729 pgd_t *pgd;
730 unsigned long next;
731 struct kvm *kvm = pic->kvm;
732 int err = 0;
733
734 WARN_ON(addr >= end);
735
736 read_lock(&pic->kvm->mmu_lock);
> 737 pgd = (pgd_t *)kvm->arch.mmu.pgt->pgd + pgd_index(addr) * PTRS_PER_PTE;
738 read_unlock(&pic->kvm->mmu_lock);
739
740 local_irq_disable();
741 do {
742 next = pgd_addr_end(addr, end);
743 if (!pgd_present(*pgd)) {
744 set_restart_gpa(next, "PGD_HOLE");
745 continue;
746 }
747
748 err = arm_p4d_range(pic, pgd, addr, next);
749 if (err)
750 break;
751 } while (pgd++, addr = next, addr != end);
752
753 local_irq_enable();
754 return err;
755 }
756 #endif
757
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1665/1665] include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot 27 Dec '24
by kernel test robot 27 Dec '24
27 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: d9ed39df777afd38fcbd4f4ca670cceb2f168124 [1665/1665] entry: Move exit to usermode functions to header file
config: loongarch-randconfig-r132-20241226 (https://download.01.org/0day-ci/archive/20241227/202412270028.2z6SRiIf-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241227/202412270028.2z6SRiIf-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412270028.2z6SRiIf-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got unsigned int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got unsigned int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got unsigned int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got unsigned int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got int [noderef] __percpu *
kernel/entry/common.c:380:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:380:9: sparse: expected void *ptr
kernel/entry/common.c:380:9: sparse: got int [noderef] __percpu *
kernel/entry/common.c:423:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:423:29: sparse: expected void *ptr
kernel/entry/common.c:423:29: sparse: got int [noderef] __percpu *
kernel/entry/common.c:423:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:423:29: sparse: expected void *ptr
kernel/entry/common.c:423:29: sparse: got int [noderef] __percpu *
kernel/entry/common.c:423:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:423:29: sparse: expected void *ptr
kernel/entry/common.c:423:29: sparse: got int [noderef] __percpu *
kernel/entry/common.c:423:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/entry/common.c:423:29: sparse: expected void *ptr
kernel/entry/common.c:423:29: sparse: got int [noderef] __percpu *
kernel/entry/common.c: note: in included file:
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got unsigned int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
>> include/linux/entry-common.h:285:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:285:9: sparse: expected void *ptr
include/linux/entry-common.h:285:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got unsigned int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
include/linux/entry-common.h:298:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
include/linux/entry-common.h:298:9: sparse: expected void *ptr
include/linux/entry-common.h:298:9: sparse: got int [noderef] __percpu *
vim +285 include/linux/entry-common.h
264
265 /**
266 * exit_to_user_mode_loop - do any pending work before leaving to user space
267 */
268 unsigned long exit_to_user_mode_loop(struct pt_regs *regs,
269 unsigned long ti_work);
270
271 /**
272 * exit_to_user_mode_prepare - call exit_to_user_mode_loop() if required
273 * @regs: Pointer to pt_regs on entry stack
274 *
275 * 1) check that interrupts are disabled
276 * 2) call tick_nohz_user_enter_prepare()
277 * 3) call exit_to_user_mode_loop() if any flags from
278 * EXIT_TO_USER_MODE_WORK are set
279 * 4) check that interrupts are still disabled
280 */
281 static __always_inline void exit_to_user_mode_prepare(struct pt_regs *regs)
282 {
283 unsigned long ti_work;
284
> 285 lockdep_assert_irqs_disabled();
286
287 /* Flush pending rcuog wakeup before the last need_resched() check */
288 tick_nohz_user_enter_prepare();
289
290 ti_work = read_thread_flags();
291 if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK))
292 ti_work = exit_to_user_mode_loop(regs, ti_work);
293
294 arch_exit_to_user_mode_prepare(regs, ti_work);
295
296 /* Ensure that kernel state is sane for a return to userspace */
297 kmap_assert_nomap();
298 lockdep_assert_irqs_disabled();
299 lockdep_sys_exit();
300 }
301
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0

[openeuler:OLK-6.6 1665/1665] net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot 26 Dec '24
by kernel test robot 26 Dec '24
26 Dec '24
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 16a0cbac6609f8ba10a91a9d52b15bf28243c3ee
commit: ff4e538c8c3e675a15e1e49509c55951832e0451 [1665/1665] page_pool: add a lockdep check for recycling in hardirq
config: loongarch-randconfig-r132-20241226 (https://download.01.org/0day-ci/archive/20241226/202412262337.yFvf5ux1-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241226/202412262337.yFvf5ux1-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412262337.yFvf5ux1-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got unsigned int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
>> net/core/page_pool.c:590:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
net/core/page_pool.c:590:9: sparse: expected void *ptr
net/core/page_pool.c:590:9: sparse: got int [noderef] __percpu *
vim +590 net/core/page_pool.c
579
580 /* If the page refcnt == 1, this will try to recycle the page.
581 * if PP_FLAG_DMA_SYNC_DEV is set, we'll try to sync the DMA area for
582 * the configured size min(dma_sync_size, pool->max_len).
583 * If the page refcnt != 1, then the page will be returned to memory
584 * subsystem.
585 */
586 static __always_inline struct page *
587 __page_pool_put_page(struct page_pool *pool, struct page *page,
588 unsigned int dma_sync_size, bool allow_direct)
589 {
> 590 lockdep_assert_no_hardirq();
591
592 /* This allocator is optimized for the XDP mode that uses
593 * one-frame-per-page, but have fallbacks that act like the
594 * regular page allocator APIs.
595 *
596 * refcnt == 1 means page_pool owns page, and can recycle it.
597 *
598 * page is NOT reusable when allocated when system is under
599 * some pressure. (page_is_pfmemalloc)
600 */
601 if (likely(page_ref_count(page) == 1 && !page_is_pfmemalloc(page))) {
602 /* Read barrier done in page_ref_count / READ_ONCE */
603
604 if (pool->p.flags & PP_FLAG_DMA_SYNC_DEV)
605 page_pool_dma_sync_for_device(pool, page,
606 dma_sync_size);
607
608 if (allow_direct && in_softirq() &&
609 page_pool_recycle_in_cache(page, pool))
610 return NULL;
611
612 /* Page found as candidate for recycling */
613 return page;
614 }
615 /* Fallback/non-XDP mode: API user have elevated refcnt.
616 *
617 * Many drivers split up the page into fragments, and some
618 * want to keep doing this to save memory and do refcnt based
619 * recycling. Support this use case too, to ease drivers
620 * switching between XDP/non-XDP.
621 *
622 * In-case page_pool maintains the DMA mapping, API user must
623 * call page_pool_put_page once. In this elevated refcnt
624 * case, the DMA is unmapped/released, as driver is likely
625 * doing refcnt based recycle tricks, meaning another process
626 * will be invoking put_page.
627 */
628 recycle_stat_inc(pool, released_refcnt);
629 page_pool_return_page(pool, page);
630
631 return NULL;
632 }
633
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0