Hi Chen,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 58ec866c31299a4b0d63a01cb026877c5f85e4d9
commit: 6943b93b464351cbc35aa002e86bac48e08b1c3f [1291/1291] mm: add support for limiting the usage of reliable memory in pagecache
config: arm64-randconfig-003-20241113 (https://download.01.org/0day-ci/archive/20241113/202411130708.2IT5fUX3-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130708.2IT5fUX3-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/202411130708.2IT5fUX3-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/mem_reliable.c:42:22: warning: 'reliable_pagecache_max_bytes' defined but not used [-Wunused-variable]
42 | static unsigned long reliable_pagecache_max_bytes = ULONG_MAX;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/mem_reliable.c:41:22: warning: 'zero' defined but not used [-Wunused-variable]
41 | static unsigned long zero;
| ^~~~
vim +/zero +41 mm/mem_reliable.c
40
> 41 static unsigned long zero;
42 static unsigned long reliable_pagecache_max_bytes = ULONG_MAX;
43
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi luochunsheng,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 58ec866c31299a4b0d63a01cb026877c5f85e4d9
commit: d70a672bcf377261c1b9f07009d22aef935e7b92 [1290/1290] iommu: smmu-v3 support Virtualization feature when 3408iMR/3416iMRraid card exist
config: arm64-randconfig-001-20241112 (https://download.01.org/0day-ci/archive/20241113/202411130719.5GGQe3oi-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130719.5GGQe3oi-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/202411130719.5GGQe3oi-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iommu/arm-smmu-v3.c: In function 'arm_smmu_init_strtab_2lvl':
>> drivers/iommu/arm-smmu-v3.c:2896:41: error: 'pci_bus_type' undeclared (first use in this function); did you mean 'pci_pcie_type'?
2896 | ret = bus_for_each_dev(&pci_bus_type, NULL, (void *)smmu,
| ^~~~~~~~~~~~
| pci_pcie_type
drivers/iommu/arm-smmu-v3.c:2896:41: note: each undeclared identifier is reported only once for each function it appears in
drivers/iommu/arm-smmu-v3.c: In function 'arm_smmu_write_strtab_ent':
drivers/iommu/arm-smmu-v3.c:1229:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
1229 | if (disable_bypass)
| ^
drivers/iommu/arm-smmu-v3.c:1231:17: note: here
1231 | default:
| ^~~~~~~
vim +2896 drivers/iommu/arm-smmu-v3.c
2861
2862 /* Calculate the L1 size, capped to the SIDSIZE. */
2863 size = STRTAB_L1_SZ_SHIFT - (ilog2(STRTAB_L1_DESC_DWORDS) + 3);
2864 size = min(size, smmu->sid_bits - STRTAB_SPLIT);
2865 cfg->num_l1_ents = 1 << size;
2866
2867 size += STRTAB_SPLIT;
2868 if (size < smmu->sid_bits)
2869 dev_warn(smmu->dev,
2870 "2-level strtab only covers %u/%u bits of SID\n",
2871 size, smmu->sid_bits);
2872
2873 l1size = cfg->num_l1_ents * (STRTAB_L1_DESC_DWORDS << 3);
2874 strtab = dmam_alloc_coherent(smmu->dev, l1size, &cfg->strtab_dma,
2875 GFP_KERNEL | __GFP_ZERO);
2876 if (!strtab) {
2877 dev_err(smmu->dev,
2878 "failed to allocate l1 stream table (%u bytes)\n",
2879 size);
2880 return -ENOMEM;
2881 }
2882 cfg->strtab = strtab;
2883
2884 /* Configure strtab_base_cfg for 2 levels */
2885 reg = FIELD_PREP(STRTAB_BASE_CFG_FMT, STRTAB_BASE_CFG_FMT_2LVL);
2886 reg |= FIELD_PREP(STRTAB_BASE_CFG_LOG2SIZE, size);
2887 reg |= FIELD_PREP(STRTAB_BASE_CFG_SPLIT, STRTAB_SPLIT);
2888 cfg->strtab_base_cfg = reg;
2889
2890 #ifdef CONFIG_SMMU_BYPASS_DEV
2891 ret = arm_smmu_init_l1_strtab(smmu);
2892 if (ret)
2893 return ret;
2894
2895 if (smmu_bypass_devices_num) {
> 2896 ret = bus_for_each_dev(&pci_bus_type, NULL, (void *)smmu,
2897 arm_smmu_prepare_init_l2_strtab);
2898 }
2899 return ret;
2900 #else
2901 return arm_smmu_init_l1_strtab(smmu);
2902 #endif
2903 }
2904
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Xu,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 58ec866c31299a4b0d63a01cb026877c5f85e4d9
commit: 0c40cea7cfc2d1d9762e6fbbb531a43e6dac95ca [1290/1290] NMI: Enable arm-pmu interrupt as NMI in Acensed.
config: arm64-randconfig-003-20241112 (https://download.01.org/0day-ci/archive/20241113/202411130527.FCTcx7wa-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130527.FCTcx7wa-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/202411130527.FCTcx7wa-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/mm/init.c:469:13: warning: no previous prototype for 'arm64_memblock_init' [-Wmissing-prototypes]
469 | void __init arm64_memblock_init(void)
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c: In function 'ascend_enable_all_features':
arch/arm64/mm/init.c:787:17: error: 'mem_sleep_current' undeclared (first use in this function)
787 | mem_sleep_current = PM_SUSPEND_ON;
| ^~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c:787:17: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm64/mm/init.c:790:17: error: 'pmu_nmi_enable' undeclared (first use in this function); did you mean 'perf_pmu_enable'?
790 | pmu_nmi_enable = true;
| ^~~~~~~~~~~~~~
| perf_pmu_enable
vim +790 arch/arm64/mm/init.c
774
775 void ascend_enable_all_features(void)
776 {
777 if (IS_ENABLED(CONFIG_ASCEND_DVPP_MMAP))
778 enable_mmap_dvpp = 1;
779
780 if (IS_ENABLED(CONFIG_ASCEND_IOPF_HIPRI))
781 enable_iopf_hipri = 1;
782
783 if (IS_ENABLED(CONFIG_ASCEND_CHARGE_MIGRATE_HUGEPAGES))
784 enable_charge_mighp = 1;
785
786 if (IS_ENABLED(CONFIG_SUSPEND))
787 mem_sleep_current = PM_SUSPEND_ON;
788
789 if (IS_ENABLED(CONFIG_PMU_WATCHDOG))
> 790 pmu_nmi_enable = true;
791
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 400fd9ccb52e01bf78acae2bbc1710923a15f033
commit: 433c0b72564239cf3086f563d5ca32a10e4ffd3f [2417/2417] sched/fair: Count the number of tasks marked as steal_task on cfs_rq
config: x86_64-randconfig-015-20241112 (https://download.01.org/0day-ci/archive/20241113/202411130044.gkUMo98D-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/20241113/202411130044.gkUMo98D-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/202411130044.gkUMo98D-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:39:
In file included from include/linux/blkdev.h:9:
In file included from include/linux/genhd.h:20:
In file included from include/linux/blk_types.h:11:
In file included from include/linux/bvec.h:14:
In file included from include/linux/mm.h:1587:
include/linux/vmstat.h:417:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
417 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
418 | item];
| ~~~~
include/linux/vmstat.h:424:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
424 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
425 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:431:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
431 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:436:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
436 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
437 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:445:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
445 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
446 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/sched/fair.c:23:
kernel/sched/sched.h:1864:15: warning: cast from 'void (*)(struct rq *)' to 'void (*)(struct callback_head *)' converts to incompatible function type [-Wcast-function-type-strict]
1864 | head->func = (void (*)(struct callback_head *))func;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/fair.c:4499:43: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
4499 | (rq->cfs.h_nr_running < 2 || rq->cfs.steal_h_nr_running == 0))
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:4525:36: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
4525 | if (group_steal_used() && rq->cfs.steal_h_nr_running < 1)
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:6670:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
6670 | cfs_rq->steal_h_nr_running++;
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:6694:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
6694 | cfs_rq->steal_h_nr_running++;
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:6795:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
6795 | cfs_rq->steal_h_nr_running--;
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:6831:12: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
6831 | cfs_rq->steal_h_nr_running--;
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:13229:29: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
13229 | if (tg_used && src_rq->cfs.steal_h_nr_running < 1)
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:13241:30: error: no member named 'steal_h_nr_running' in 'struct cfs_rq'; did you mean 'idle_h_nr_running'?
13241 | (tg_used && src_rq->cfs.steal_h_nr_running < 1))
| ^~~~~~~~~~~~~~~~~~
| idle_h_nr_running
kernel/sched/sched.h:632:16: note: 'idle_h_nr_running' declared here
632 | unsigned int idle_h_nr_running; /* SCHED_IDLE */
| ^
kernel/sched/fair.c:13411:6: warning: no previous prototype for function 'task_vruntime_update' [-Wmissing-prototypes]
13411 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
| ^
kernel/sched/fair.c:13411:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
13411 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
| ^
| static
7 warnings and 8 errors generated.
vim +4499 kernel/sched/fair.c
4485
4486 static void overload_clear(struct rq *rq)
4487 {
4488 struct sparsemask *overload_cpus;
4489 unsigned long time;
4490 bool need_clear = false;
4491
4492 if (!steal_enabled())
4493 return;
4494
4495 if (!group_steal_used() && rq->cfs.h_nr_running >= 2)
4496 return;
4497
4498 if (group_steal_used() &&
> 4499 (rq->cfs.h_nr_running < 2 || rq->cfs.steal_h_nr_running == 0))
4500 need_clear = true;
4501
4502 if (!need_clear)
4503 return;
4504
4505 time = schedstat_start_time();
4506 rcu_read_lock();
4507 overload_cpus = rcu_dereference(rq->cfs_overload_cpus);
4508 if (overload_cpus)
4509 sparsemask_clear_elem(overload_cpus, rq->cpu);
4510 rcu_read_unlock();
4511 schedstat_end_time(rq, time);
4512 }
4513
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Ding,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 58ec866c31299a4b0d63a01cb026877c5f85e4d9
commit: fdda68feeca82610ccbcdcbda7250623a6d187d2 [1290/1290] arm64/ascend: Set mem_sleep_current to PM_SUSPEND_ON for ascend platform
config: arm64-randconfig-003-20241112 (https://download.01.org/0day-ci/archive/20241113/202411130037.24hgbc37-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130037.24hgbc37-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/202411130037.24hgbc37-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/mm/init.c:469:13: warning: no previous prototype for 'arm64_memblock_init' [-Wmissing-prototypes]
469 | void __init arm64_memblock_init(void)
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c: In function 'ascend_enable_setup':
>> arch/arm64/mm/init.c:784:17: error: 'mem_sleep_current' undeclared (first use in this function)
784 | mem_sleep_current = PM_SUSPEND_ON;
| ^~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c:784:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/mem_sleep_current +784 arch/arm64/mm/init.c
770
771 #ifdef CONFIG_ASCEND_FEATURES
772 static int __init ascend_enable_setup(char *__unused)
773 {
774 if (IS_ENABLED(CONFIG_ASCEND_DVPP_MMAP))
775 enable_mmap_dvpp = 1;
776
777 if (IS_ENABLED(CONFIG_ASCEND_IOPF_HIPRI))
778 enable_iopf_hipri = 1;
779
780 if (IS_ENABLED(CONFIG_ASCEND_CHARGE_MIGRATE_HUGEPAGES))
781 enable_charge_mighp = 1;
782
783 if (IS_ENABLED(CONFIG_SUSPEND))
> 784 mem_sleep_current = PM_SUSPEND_ON;
785
786 return 1;
787 }
788
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Yang,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 078e0901be705959736f37cb993768ed39658448
commit: e63b4759933f6a5c5ce6cdc1d11c7bf2201d0612 [1290/1290] arm64: arch_timer: only do cntvct workaround on VDSO path on D05
config: arm64-randconfig-002-20241112 (https://download.01.org/0day-ci/archive/20241112/202411122158.hK6m4BFI-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241112/202411122158.hK6m4BFI-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/202411122158.hK6m4BFI-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clocksource/arm_arch_timer.c: In function 'arch_timer_enable_workaround':
>> drivers/clocksource/arm_arch_timer.c:554:44: error: 'hisi_161010101_read_cntvct_el0' undeclared (first use in this function)
554 | if (wa->read_cntvct_el0 == hisi_161010101_read_cntvct_el0) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clocksource/arm_arch_timer.c:554:44: note: each undeclared identifier is reported only once for each function it appears in
vim +/hisi_161010101_read_cntvct_el0 +554 drivers/clocksource/arm_arch_timer.c
527
528 static
529 void arch_timer_enable_workaround(const struct arch_timer_erratum_workaround *wa,
530 bool local)
531 {
532 int i;
533
534 if (local) {
535 __this_cpu_write(timer_unstable_counter_workaround, wa);
536 } else {
537 for_each_possible_cpu(i)
538 per_cpu(timer_unstable_counter_workaround, i) = wa;
539 }
540
541 /*
542 * Use the locked version, as we're called from the CPU
543 * hotplug framework. Otherwise, we end-up in deadlock-land.
544 */
545 static_branch_enable_cpuslocked(&arch_timer_read_ool_enabled);
546
547 /*
548 * Don't use the vdso fastpath if errata require using the
549 * out-of-line counter accessor. We may change our mind pretty
550 * late in the game (with a per-CPU erratum, for example), so
551 * change both the default value and the vdso itself.
552 */
553 if (wa->read_cntvct_el0) {
> 554 if (wa->read_cntvct_el0 == hisi_161010101_read_cntvct_el0) {
555 clocksource_counter.archdata.vdso_direct = true;
556 vdso_default = true;
557 vdso_fix = true;
558 } else {
559 clocksource_counter.archdata.vdso_direct = false;
560 vdso_default = false;
561 }
562 }
563 }
564
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki