mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [driver-core:driver-core-linus 9/9] drivers/base/arch_topology.c:727:24: warning: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast
@ 2022-09-03  0:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-03  0:12 UTC (permalink / raw)
  To: Yicong Yang
  Cc: kbuild-all, devel, linux-kernel, Greg Kroah-Hartman,
	Sudeep Holla, Ionela Voinescu

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-linus
head:   6b66ca0bac1b9cee7608d7c4dc59b699458b4cb8
commit: 6b66ca0bac1b9cee7608d7c4dc59b699458b4cb8 [9/9] arch_topology: Make cluster topology span at least SMT CPUs
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220903/202209030824.SouwDV5M-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=6b66ca0bac1b9cee7608d7c4dc59b699458b4cb8
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core driver-core-linus
        git checkout 6b66ca0bac1b9cee7608d7c4dc59b699458b4cb8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/base/arch_topology.c: In function 'cpu_clustergroup_mask':
   drivers/base/arch_topology.c:727:24: error: implicit declaration of function 'cpu_smt_mask'; did you mean 'cpu_cpu_mask'? [-Werror=implicit-function-declaration]
     727 |                 return cpu_smt_mask(cpu);
         |                        ^~~~~~~~~~~~
         |                        cpu_cpu_mask
>> drivers/base/arch_topology.c:727:24: warning: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast [-Wint-conversion]
     727 |                 return cpu_smt_mask(cpu);
         |                        ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +727 drivers/base/arch_topology.c

   718	
   719	const struct cpumask *cpu_clustergroup_mask(int cpu)
   720	{
   721		/*
   722		 * Forbid cpu_clustergroup_mask() to span more or the same CPUs as
   723		 * cpu_coregroup_mask().
   724		 */
   725		if (cpumask_subset(cpu_coregroup_mask(cpu),
   726				   &cpu_topology[cpu].cluster_sibling))
 > 727			return cpu_smt_mask(cpu);
   728	
   729		return &cpu_topology[cpu].cluster_sibling;
   730	}
   731	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-03  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-03  0:12 [driver-core:driver-core-linus 9/9] drivers/base/arch_topology.c:727:24: warning: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast 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

all inboxes | Powered by JetHome®