tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: c18bb367938bb02621f45d904531832df1abed2a [2579/2579] share_pool: Implement sp_walk_page_range()
config: arm64-randconfig-004-20241213 (https://download.01.org/0day-ci/archive/20241213/202412131028.JwkewMIN-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412131028.JwkewMIN-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/202412131028.JwkewMIN-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/share_pool.c: In function 'sp_hugetlb_entry':
>> mm/share_pool.c:738:21: error: implicit declaration of function 'huge_ptep_get' [-Werror=implicit-function-declaration]
738 | pte_t pte = huge_ptep_get(ptep);
| ^~~~~~~~~~~~~
>> mm/share_pool.c:738:21: error: invalid initializer
mm/share_pool.c: At top level:
mm/share_pool.c:1116:6: warning: no previous prototype for 'sp_proc_stat_drop' [-Wmissing-prototypes]
1116 | void sp_proc_stat_drop(struct sp_proc_stat *stat)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1347:6: warning: no previous prototype for 'spa_overview_show' [-Wmissing-prototypes]
1347 | void spa_overview_show(struct seq_file *seq)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1429:6: warning: no previous prototype for 'spg_overview_show' [-Wmissing-prototypes]
1429 | void spg_overview_show(struct seq_file *seq)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1561:12: warning: 'proc_overview_show' defined but not used [-Wunused-function]
1561 | static int proc_overview_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~~~~~~
mm/share_pool.c:1518:12: warning: 'proc_stat_show' defined but not used [-Wunused-function]
1518 | static int proc_stat_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~~
mm/share_pool.c:1454:12: warning: 'spa_stat_show' defined but not used [-Wunused-function]
1454 | static int spa_stat_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~
mm/share_pool.c:490:21: warning: 'spa_file' defined but not used [-Wunused-function]
490 | static struct file *spa_file(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:485:22: warning: 'spa_size' defined but not used [-Wunused-function]
485 | static unsigned long spa_size(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:409:13: warning: 'free_spg_stat' defined but not used [-Wunused-function]
409 | static void free_spg_stat(int spg_id)
| ^~~~~~~~~~~~~
mm/share_pool.c:386:12: warning: 'sp_init_spg_stat' defined but not used [-Wunused-function]
386 | static int sp_init_spg_stat(struct sp_group *spg)
| ^~~~~~~~~~~~~~~~
mm/share_pool.c:345:30: warning: 'sp_init_process_stat' defined but not used [-Wunused-function]
345 | static struct spg_proc_stat *sp_init_process_stat(struct task_struct *tsk,
| ^~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:267:13: warning: 'update_spg_proc_stat_k2u' defined but not used [-Wunused-function]
267 | static void update_spg_proc_stat_k2u(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:253:13: warning: 'update_spg_proc_stat_alloc' defined but not used [-Wunused-function]
253 | static void update_spg_proc_stat_alloc(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:223:13: warning: 'update_spg_stat_k2u' defined but not used [-Wunused-function]
223 | static void update_spg_stat_k2u(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~
mm/share_pool.c:201:13: warning: 'update_spg_stat_alloc' defined but not used [-Wunused-function]
201 | static void update_spg_stat_alloc(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from mm/share_pool.c:27:
mm/share_pool.c:105:19: warning: 'sp_group_id_ida' defined but not used [-Wunused-variable]
105 | static DEFINE_IDA(sp_group_id_ida);
| ^~~~~~~~~~~~~~~
include/linux/idr.h:253:44: note: in definition of macro 'DEFINE_IDA'
253 | #define DEFINE_IDA(name) struct ida name = IDA_INIT(name)
| ^~~~
mm/share_pool.c:99:19: warning: 'sp_group_idr' defined but not used [-Wunused-variable]
99 | static DEFINE_IDR(sp_group_idr);
| ^~~~~~~~~~~~
include/linux/idr.h:56:44: note: in definition of macro 'DEFINE_IDR'
56 | #define DEFINE_IDR(name) struct idr name = IDR_INIT(name)
| ^~~~
mm/share_pool.c:82:18: warning: 'mdc_default_group_id' defined but not used [-Wunused-const-variable=]
82 | static const int mdc_default_group_id = 1;
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PGP_KEY_PARSER
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n]
Selected by [y]:
- PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y]
vim +/huge_ptep_get +738 mm/share_pool.c
733
734 static int sp_hugetlb_entry(pte_t *ptep, unsigned long hmask,
735 unsigned long addr, unsigned long next,
736 struct mm_walk *walk)
737 {
> 738 pte_t pte = huge_ptep_get(ptep);
739 struct page *page = pte_page(pte);
740 struct sp_walk_data *sp_walk_data;
741
742 if (unlikely(!pte_present(pte))) {
743 pr_debug("the page of addr %lx unexpectedly not in RAM\n", (unsigned long)addr);
744 return -EFAULT;
745 }
746
747 sp_walk_data = walk->private;
748 get_page(page);
749 sp_walk_data->pages[sp_walk_data->page_count++] = page;
750 return 0;
751 }
752
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: d83dcc99d770b53e4839791fa2319c953fc6e42d [2579/2579] share_pool: Add proc interfaces to show sp info
config: arm64-randconfig-004-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130822.tSyyPsoM-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130822.tSyyPsoM-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/202412130822.tSyyPsoM-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/share_pool.c:877:6: warning: no previous prototype for 'sp_proc_stat_drop' [-Wmissing-prototypes]
877 | void sp_proc_stat_drop(struct sp_proc_stat *stat)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1108:6: warning: no previous prototype for 'spa_overview_show' [-Wmissing-prototypes]
1108 | void spa_overview_show(struct seq_file *seq)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1190:6: warning: no previous prototype for 'spg_overview_show' [-Wmissing-prototypes]
1190 | void spg_overview_show(struct seq_file *seq)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:1322:12: warning: 'proc_overview_show' defined but not used [-Wunused-function]
1322 | static int proc_overview_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~~~~~~
mm/share_pool.c:1279:12: warning: 'proc_stat_show' defined but not used [-Wunused-function]
1279 | static int proc_stat_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~~
>> mm/share_pool.c:1215:12: warning: 'spa_stat_show' defined but not used [-Wunused-function]
1215 | static int spa_stat_show(struct seq_file *seq, void *offset)
| ^~~~~~~~~~~~~
mm/share_pool.c:489:21: warning: 'spa_file' defined but not used [-Wunused-function]
489 | static struct file *spa_file(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:484:22: warning: 'spa_size' defined but not used [-Wunused-function]
484 | static unsigned long spa_size(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:408:13: warning: 'free_spg_stat' defined but not used [-Wunused-function]
408 | static void free_spg_stat(int spg_id)
| ^~~~~~~~~~~~~
mm/share_pool.c:385:12: warning: 'sp_init_spg_stat' defined but not used [-Wunused-function]
385 | static int sp_init_spg_stat(struct sp_group *spg)
| ^~~~~~~~~~~~~~~~
mm/share_pool.c:344:30: warning: 'sp_init_process_stat' defined but not used [-Wunused-function]
344 | static struct spg_proc_stat *sp_init_process_stat(struct task_struct *tsk,
| ^~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:266:13: warning: 'update_spg_proc_stat_k2u' defined but not used [-Wunused-function]
266 | static void update_spg_proc_stat_k2u(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:252:13: warning: 'update_spg_proc_stat_alloc' defined but not used [-Wunused-function]
252 | static void update_spg_proc_stat_alloc(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:222:13: warning: 'update_spg_stat_k2u' defined but not used [-Wunused-function]
222 | static void update_spg_stat_k2u(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~
mm/share_pool.c:200:13: warning: 'update_spg_stat_alloc' defined but not used [-Wunused-function]
200 | static void update_spg_stat_alloc(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from mm/share_pool.c:27:
mm/share_pool.c:104:19: warning: 'sp_group_id_ida' defined but not used [-Wunused-variable]
104 | static DEFINE_IDA(sp_group_id_ida);
| ^~~~~~~~~~~~~~~
include/linux/idr.h:253:44: note: in definition of macro 'DEFINE_IDA'
253 | #define DEFINE_IDA(name) struct ida name = IDA_INIT(name)
| ^~~~
mm/share_pool.c:98:19: warning: 'sp_group_idr' defined but not used [-Wunused-variable]
98 | static DEFINE_IDR(sp_group_idr);
| ^~~~~~~~~~~~
include/linux/idr.h:56:44: note: in definition of macro 'DEFINE_IDR'
56 | #define DEFINE_IDR(name) struct idr name = IDR_INIT(name)
| ^~~~
mm/share_pool.c:81:18: warning: 'mdc_default_group_id' defined but not used [-Wunused-const-variable=]
81 | static const int mdc_default_group_id = 1;
| ^~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PGP_KEY_PARSER
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n]
Selected by [y]:
- PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y]
vim +/spa_stat_show +1215 mm/share_pool.c
1214
> 1215 static int spa_stat_show(struct seq_file *seq, void *offset)
1216 {
1217 spg_overview_show(seq);
1218 spa_overview_show(seq);
1219 /* print the file header */
1220 seq_printf(seq, "%-10s %-16s %-16s %-10s %-7s %-5s %-8s %-8s\n",
1221 "Group ID", "va_start", "va_end", "Size(KB)", "Type", "Huge", "PID", "Ref");
1222 rb_spa_stat_show(seq);
1223 return 0;
1224 }
1225
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: c3fe0dc62217d6faa76128ed26d64e421767919e [2579/2579] cpufreq: Add SEEP governor for hardware-managed P-states
config: arm64-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130652.MbID3V5Y-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130652.MbID3V5Y-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/202412130652.MbID3V5Y-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/acpi/cppc_acpi.h:17,
from drivers/cpufreq/cpufreq_seep.c:13:
>> include/acpi/processor.h:221:9: error: unknown type name 'phys_cpuid_t'
221 | phys_cpuid_t phys_id; /* CPU hardware ID such as APIC ID for x86 */
| ^~~~~~~~~~~~
include/acpi/processor.h:350:1: error: unknown type name 'phys_cpuid_t'
350 | phys_cpuid_t acpi_get_phys_id(acpi_handle, int type, u32 acpi_id);
| ^~~~~~~~~~~~
include/acpi/processor.h:351:1: error: unknown type name 'phys_cpuid_t'
351 | phys_cpuid_t acpi_map_madt_entry(u32 acpi_id);
| ^~~~~~~~~~~~
include/acpi/processor.h:352:20: error: unknown type name 'phys_cpuid_t'
352 | int acpi_map_cpuid(phys_cpuid_t phys_id, u32 acpi_id);
| ^~~~~~~~~~~~
include/acpi/processor.h:354:1: error: unknown type name 'phys_cpuid_t'
354 | phys_cpuid_t acpi_id_to_phys_cpuid(u32 acpi_id);
| ^~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CPPC_CPUFREQ_SYSFS_INTERFACE
Depends on [n]: CPU_FREQ [=y] && (ARM || ARM64 [=y]) && ACPI_CPPC_CPUFREQ [=n]
Selected by [y]:
- CPU_FREQ_GOV_SEEP [=y] && CPU_FREQ [=y] && (ACPI_CPPC_CPUFREQ [=n] || ARM64 [=y])
vim +/phys_cpuid_t +221 include/acpi/processor.h
^1da177e4c3f415 Linus Torvalds 2005-04-16 217
^1da177e4c3f415 Linus Torvalds 2005-04-16 218 struct acpi_processor {
^1da177e4c3f415 Linus Torvalds 2005-04-16 219 acpi_handle handle;
^1da177e4c3f415 Linus Torvalds 2005-04-16 220 u32 acpi_id;
828aef376d7a129 Catalin Marinas 2015-03-24 @221 phys_cpuid_t phys_id; /* CPU hardware ID such as APIC ID for x86 */
af8f3f514d193eb Hanjun Guo 2015-01-04 222 u32 id; /* CPU logical ID allocated by OS */
^1da177e4c3f415 Linus Torvalds 2005-04-16 223 u32 pblk;
^1da177e4c3f415 Linus Torvalds 2005-04-16 224 int performance_platform_limit;
01854e697a77a43 Luming Yu 2007-05-26 225 int throttling_platform_limit;
ff55a9cebab0240 Len Brown 2007-06-02 226 /* 0 - states 0..n-th state available */
01854e697a77a43 Luming Yu 2007-05-26 227
^1da177e4c3f415 Linus Torvalds 2005-04-16 228 struct acpi_processor_flags flags;
^1da177e4c3f415 Linus Torvalds 2005-04-16 229 struct acpi_processor_power power;
^1da177e4c3f415 Linus Torvalds 2005-04-16 230 struct acpi_processor_performance *performance;
^1da177e4c3f415 Linus Torvalds 2005-04-16 231 struct acpi_processor_throttling throttling;
^1da177e4c3f415 Linus Torvalds 2005-04-16 232 struct acpi_processor_limit limit;
d9460fd227ed2ce Zhang Rui 2008-01-17 233 struct thermal_cooling_device *cdev;
ac212b6980d8d5e Rafael J. Wysocki 2013-05-03 234 struct device *dev; /* Processor device. */
3000ce3c52f8b8d Rafael J. Wysocki 2019-10-16 235 struct freq_qos_request perflib_req;
3000ce3c52f8b8d Rafael J. Wysocki 2019-10-16 236 struct freq_qos_request thermal_req;
^1da177e4c3f415 Linus Torvalds 2005-04-16 237 };
^1da177e4c3f415 Linus Torvalds 2005-04-16 238
:::::: The code at line 221 was first introduced by commit
:::::: 828aef376d7a129547bc4ebb949965040177e3da ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID
:::::: TO: Catalin Marinas <catalin.marinas(a)arm.com>
:::::: CC: Will Deacon <will.deacon(a)arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: 00d37128abe2687fac974c5d21aa67fac6518c7c [2579/2579] sched: Introduce smart grid scheduling strategy for cfs
config: arm64-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130534.AeGefPCj-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130534.AeGefPCj-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/202412130534.AeGefPCj-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/sched/core.c:2746:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2746 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9530:5: warning: no previous prototype for 'tg_set_dynamic_affinity_mode' [-Wmissing-prototypes]
9530 | int tg_set_dynamic_affinity_mode(struct task_group *tg, u64 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9567:5: warning: no previous prototype for 'tg_set_affinity_period' [-Wmissing-prototypes]
9567 | int tg_set_affinity_period(struct task_group *tg, u64 period_ms)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9578:5: warning: no previous prototype for 'tg_get_affinity_period' [-Wmissing-prototypes]
9578 | u64 tg_get_affinity_period(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'cpu_affinity_stat_show':
>> kernel/sched/core.c:9632:74: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'int' [-Wformat=]
9632 | seq_printf(sf, "sd_level %d, cpu list %*pbl, stay_cnt %llu\n",
| ~~~^
| |
| long long unsigned int
| %u
vim +9632 kernel/sched/core.c
9619
9620 static int cpu_affinity_stat_show(struct seq_file *sf, void *v)
9621 {
9622 struct task_group *tg = css_tg(seq_css(sf));
9623 struct auto_affinity *auto_affi = tg->auto_affinity;
9624 struct affinity_domain *ad = &auto_affi->ad;
9625 int i;
9626
9627 seq_printf(sf, "period_active %d\n", auto_affi->period_active);
9628 seq_printf(sf, "dcount %d\n", ad->dcount);
9629 seq_printf(sf, "domain_mask 0x%x\n", ad->domain_mask);
9630 seq_printf(sf, "curr_level %d\n", ad->curr_level);
9631 for (i = 0; i < ad->dcount; i++)
> 9632 seq_printf(sf, "sd_level %d, cpu list %*pbl, stay_cnt %llu\n",
9633 i, cpumask_pr_args(ad->domains[i]),
9634 schedstat_val(ad->stay_cnt[i]));
9635
9636 return 0;
9637 }
9638 #endif /* CONFIG_QOS_SCHED_SMART_GRID */
9639
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Kefeng,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: ba25d7467b3040d98290a140256303ba190ef376 [2579/2579] arm64: cpu_park: Move into stand-alone file
config: arm64-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130351.ogsraRJ5-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130351.ogsraRJ5-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/202412130351.ogsraRJ5-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/kernel/arm64_cpu_park.c: In function 'cpu_park_stop':
>> arch/arm64/kernel/arm64_cpu_park.c:249:31: error: 'const struct cpu_operations' has no member named 'cpu_die'
249 | if (ops && ops->cpu_die)
| ^~
arch/arm64/kernel/arm64_cpu_park.c:250:28: error: 'const struct cpu_operations' has no member named 'cpu_die'
250 | ops->cpu_die(cpu);
| ^~
vim +249 arch/arm64/kernel/arm64_cpu_park.c
235
236 void cpu_park_stop(void)
237 {
238 int cpu = smp_processor_id();
239 const struct cpu_operations *ops = NULL;
240 /*
241 * Go to cpu park state.
242 * Otherwise go to cpu die.
243 */
244 if (kexec_in_progress && park_info.start_v) {
245 machine_kexec_mask_interrupts();
246 cpu_park(cpu);
247
248 ops = get_cpu_ops(cpu);
> 249 if (ops && ops->cpu_die)
250 ops->cpu_die(cpu);
251 }
252 }
253
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki