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>] [day] [month] [year] [list]
Message-ID: <202209030824.SouwDV5M-lkp@intel.com>
Date:   Sat, 3 Sep 2022 08:12:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yicong Yang <yangyicong@...ilicon.com>
Cc:     kbuild-all@...ts.01.org, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Sudeep Holla <sudeep.holla@....com>,
        Ionela Voinescu <ionela.voinescu@....com>
Subject: [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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ