LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [vireshk-pm:cpufreq/arm/linux-next 15/17] drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2021-08-24 15:57 kernel test robot
  2021-08-25  3:32 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-08-24 15:57 UTC (permalink / raw)
  To: Thara Gopinath; +Cc: kbuild-all, linux-kernel, Viresh Kumar

[-- Attachment #1: Type: text/plain, Size: 2449 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/arm/linux-next
head:   028068a13c533046fd4e37f06fb6efe50c759892
commit: 942914c2f2438d137bcb9b9cb8343de62dc482df [15/17] cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support
config: riscv-randconfig-s032-20210824 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?id=942914c2f2438d137bcb9b9cb8343de62dc482df
        git remote add vireshk-pm https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
        git fetch --no-tags vireshk-pm cpufreq/arm/linux-next
        git checkout 942914c2f2438d137bcb9b9cb8343de62dc482df
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __percpu *__vpp_verify @@     got unsigned long * @@
   drivers/base/arch_topology.c:156:9: sparse:     expected void const [noderef] __percpu *__vpp_verify
   drivers/base/arch_topology.c:156:9: sparse:     got unsigned long *

vim +156 drivers/base/arch_topology.c

2ef7a2953c81ee Juri Lelli 2017-05-31  153  
4ca4f26a9c6610 Juri Lelli 2017-05-31  154  void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity)
2ef7a2953c81ee Juri Lelli 2017-05-31  155  {
2ef7a2953c81ee Juri Lelli 2017-05-31 @156  	per_cpu(cpu_scale, cpu) = capacity;
2ef7a2953c81ee Juri Lelli 2017-05-31  157  }
2ef7a2953c81ee Juri Lelli 2017-05-31  158  

:::::: The code at line 156 was first introduced by commit
:::::: 2ef7a2953c81ee6b341e3ffb33570adc894cf4a5 arm, arm64: factorize common cpu capacity default code

:::::: TO: Juri Lelli <juri.lelli@arm.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30272 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [vireshk-pm:cpufreq/arm/linux-next 15/17] drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces)
  2021-08-24 15:57 [vireshk-pm:cpufreq/arm/linux-next 15/17] drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
@ 2021-08-25  3:32 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2021-08-25  3:32 UTC (permalink / raw)
  To: kernel test robot; +Cc: Thara Gopinath, kbuild-all, linux-kernel

On 24-08-21, 23:57, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/arm/linux-next
> head:   028068a13c533046fd4e37f06fb6efe50c759892
> commit: 942914c2f2438d137bcb9b9cb8343de62dc482df [15/17] cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support
> config: riscv-randconfig-s032-20210824 (attached as .config)
> compiler: riscv64-linux-gcc (GCC) 11.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.3-348-gf0e6938b-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?id=942914c2f2438d137bcb9b9cb8343de62dc482df
>         git remote add vireshk-pm https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
>         git fetch --no-tags vireshk-pm cpufreq/arm/linux-next
>         git checkout 942914c2f2438d137bcb9b9cb8343de62dc482df
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> 
> sparse warnings: (new ones prefixed by >>)
> >> drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __percpu *__vpp_verify @@     got unsigned long * @@
>    drivers/base/arch_topology.c:156:9: sparse:     expected void const [noderef] __percpu *__vpp_verify
>    drivers/base/arch_topology.c:156:9: sparse:     got unsigned long *
> 
> vim +156 drivers/base/arch_topology.c
> 
> 2ef7a2953c81ee Juri Lelli 2017-05-31  153  
> 4ca4f26a9c6610 Juri Lelli 2017-05-31  154  void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity)
> 2ef7a2953c81ee Juri Lelli 2017-05-31  155  {
> 2ef7a2953c81ee Juri Lelli 2017-05-31 @156  	per_cpu(cpu_scale, cpu) = capacity;
> 2ef7a2953c81ee Juri Lelli 2017-05-31  157  }

Fixed thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-25  3:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 15:57 [vireshk-pm:cpufreq/arm/linux-next 15/17] drivers/base/arch_topology.c:156:9: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
2021-08-25  3:32 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).