* [chanwoo:devfreq-testing 5/5] drivers/devfreq/hisi_uncore_freq.c:562:9: error: returning 'const struct cpumask *' from a function with result type 'struct cpumask *' discards qualifiers
@ 2025-05-20 19:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-20 19:18 UTC (permalink / raw)
To: Jie Zhan; +Cc: llvm, oe-kbuild-all, linux-pm, Chanwoo Choi, Lifeng Zheng
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: a4bcf6ccfb61f2e8354081ecc584c003d6b91c4e
commit: a4bcf6ccfb61f2e8354081ecc584c003d6b91c4e [5/5] PM / devfreq: Add HiSilicon uncore frequency scaling driver
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20250521/202505210327.PWLD6OdP-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250521/202505210327.PWLD6OdP-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505210327.PWLD6OdP-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/devfreq/hisi_uncore_freq.c:562:9: error: returning 'const struct cpumask *' from a function with result type 'struct cpumask *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
562 | return topology_cluster_cpumask(cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/topology.h:224:40: note: expanded from macro 'topology_cluster_cpumask'
224 | #define topology_cluster_cpumask(cpu) cpumask_of(cpu)
| ^~~~~~~~~~~~~~~
include/linux/cpumask.h:880:25: note: expanded from macro 'cpumask_of'
880 | #define cpumask_of(cpu) (get_cpu_mask(cpu))
| ^~~~~~~~~~~~~~~~~~~
1 error generated.
vim +562 drivers/devfreq/hisi_uncore_freq.c
559
560 static struct cpumask *get_cluster_cpumask(int cpu)
561 {
> 562 return topology_cluster_cpumask(cpu);
563 }
564
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-20 19:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 19:18 [chanwoo:devfreq-testing 5/5] drivers/devfreq/hisi_uncore_freq.c:562:9: error: returning 'const struct cpumask *' from a function with result type 'struct cpumask *' discards qualifiers kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox