lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202504251845.LAwzxYtY-lkp@intel.com>
Date: Fri, 25 Apr 2025 19:10:31 +0800
From: kernel test robot <lkp@...el.com>
To: Zhongqiu Han <quic_zhonhan@...cinc.com>, rafael@...nel.org,
	pavel@...nel.org, len.brown@...el.com
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
	quic_zhonhan@...cinc.com
Subject: Re: [PATCH] PM: QoS: Add support for CPU affinity mask-based CPUs
 latency QoS

Hi Zhongqiu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on rafael-pm/bleeding-edge amd-pstate/linux-next amd-pstate/bleeding-edge linus/master v6.15-rc3 next-20250424]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Zhongqiu-Han/PM-QoS-Add-support-for-CPU-affinity-mask-based-CPUs-latency-QoS/20250424-175559
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20250424095228.1112558-1-quic_zhonhan%40quicinc.com
patch subject: [PATCH] PM: QoS: Add support for CPU affinity mask-based CPUs latency QoS
config: s390-randconfig-001-20250425 (https://download.01.org/0day-ci/archive/20250425/202504251845.LAwzxYtY-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504251845.LAwzxYtY-lkp@intel.com/reproduce)

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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504251845.LAwzxYtY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:8:
   In file included from include/linux/cpufreq.h:19:
>> include/linux/pm_qos.h:335:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_add' [-Wmissing-prototypes]
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         | ^
         | static 
>> include/linux/pm_qos.h:340:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_update' [-Wmissing-prototypes]
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:340:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         | ^
         | static 
>> include/linux/pm_qos.h:345:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_remove' [-Wmissing-prototypes]
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   include/linux/pm_qos.h:345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         | ^
         | static 
>> include/linux/pm_qos.h:349:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_release' [-Wmissing-prototypes]
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   include/linux/pm_qos.h:349:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         | ^
         | static 
>> include/linux/pm_qos.h:353:6: warning: no previous prototype for function 'wakeup_qos_affinity_idle_cpu' [-Wmissing-prototypes]
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   include/linux/pm_qos.h:353:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         | ^
         | static 
   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:335:5: error: redefinition of 'cpu_latency_qos_affinity_add'
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:335:5: note: previous definition is here
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:340:5: error: redefinition of 'cpu_latency_qos_affinity_update'
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:340:5: note: previous definition is here
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:345:5: error: redefinition of 'cpu_latency_qos_affinity_remove'
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   include/linux/pm_qos.h:345:5: note: previous definition is here
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:349:5: error: redefinition of 'cpu_latency_qos_affinity_release'
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   include/linux/pm_qos.h:349:5: note: previous definition is here
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   In file included from kernel/cpu.c:41:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:353:6: error: redefinition of 'wakeup_qos_affinity_idle_cpu'
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   include/linux/pm_qos.h:353:6: note: previous definition is here
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   5 warnings and 5 errors generated.
--
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:31:
   In file included from include/linux/cpufreq.h:19:
>> include/linux/pm_qos.h:335:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_add' [-Wmissing-prototypes]
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         | ^
         | static 
>> include/linux/pm_qos.h:340:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_update' [-Wmissing-prototypes]
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:340:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         | ^
         | static 
>> include/linux/pm_qos.h:345:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_remove' [-Wmissing-prototypes]
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   include/linux/pm_qos.h:345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         | ^
         | static 
>> include/linux/pm_qos.h:349:5: warning: no previous prototype for function 'cpu_latency_qos_affinity_release' [-Wmissing-prototypes]
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   include/linux/pm_qos.h:349:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         | ^
         | static 
>> include/linux/pm_qos.h:353:6: warning: no previous prototype for function 'wakeup_qos_affinity_idle_cpu' [-Wmissing-prototypes]
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   include/linux/pm_qos.h:353:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         | ^
         | static 
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:73:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:335:5: error: redefinition of 'cpu_latency_qos_affinity_add'
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:335:5: note: previous definition is here
     335 | int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
         |     ^
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:73:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:340:5: error: redefinition of 'cpu_latency_qos_affinity_update'
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   include/linux/pm_qos.h:340:5: note: previous definition is here
     340 | int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
         |     ^
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:73:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:345:5: error: redefinition of 'cpu_latency_qos_affinity_remove'
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   include/linux/pm_qos.h:345:5: note: previous definition is here
     345 | int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
         |     ^
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:73:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:349:5: error: redefinition of 'cpu_latency_qos_affinity_release'
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   include/linux/pm_qos.h:349:5: note: previous definition is here
     349 | int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
         |     ^
   In file included from kernel/sched/core.c:88:
   In file included from kernel/sched/sched.h:73:
   In file included from include/trace/events/power.h:10:
   include/linux/pm_qos.h:353:6: error: redefinition of 'wakeup_qos_affinity_idle_cpu'
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   include/linux/pm_qos.h:353:6: note: previous definition is here
     353 | void wakeup_qos_affinity_idle_cpu(int cpu) {}
         |      ^
   kernel/sched/core.c:7686:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
    7686 |                                        preempt_modes[preempt_dynamic_mode] : "undef",
         |                                        ^             ~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:7661:1: note: array 'preempt_modes' declared here
    7661 | const char *preempt_modes[] = {
         | ^
   6 warnings and 5 errors generated.


vim +/cpu_latency_qos_affinity_add +335 include/linux/pm_qos.h

   325	
   326	#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_PM)
   327	int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
   328				const cpumask_t *affinity_mask, s32 latency_value);
   329	int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
   330				s32 new_value);
   331	int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req);
   332	int cpu_latency_qos_affinity_release(struct list_head *pm_reqs);
   333	void wakeup_qos_affinity_idle_cpu(int cpu);
   334	#else
 > 335	int cpu_latency_qos_affinity_add(struct cpu_affinity_qos_req *pm_req,
   336				const cpumask_t *affinity_mask, s32 latency_value)
   337	{
   338		return 0;
   339	}
 > 340	int cpu_latency_qos_affinity_update(struct cpu_affinity_qos_req *pm_req,
   341				s32 new_value)
   342	{
   343		return 0;
   344	}
 > 345	int cpu_latency_qos_affinity_remove(struct cpu_affinity_qos_req *pm_req)
   346	{
   347		return 0;
   348	}
 > 349	int cpu_latency_qos_affinity_release(struct list_head *pm_reqs)
   350	{
   351		return 0;
   352	}
 > 353	void wakeup_qos_affinity_idle_cpu(int cpu) {}

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ