All of lore.kernel.org
 help / color / mirror / Atom feed
* [mchinth:sep_socwatch_linux_5_7 32/34] drivers/platform/x86/socwatch/sw_telem.c:239:33: sparse: warning: cast removes address space '<asn:2>' of expression
@ 2020-04-23  3:44 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-23  3:44 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Manisha Chinthapally <manisha.chinthapally@intel.com>
CC: Faycal Benmlih <faycal.benmlih@intel.com>

tree:   https://github.com/mchinth/linux sep_socwatch_linux_5_7
head:   d0b187de0054ca718a325a5e30511873147ef526
commit: 7f5608705621881d44c6df4cd64516757a6d03d6 [32/34] SEP/SOCWATCH resolve build errors after rebasing to linux v5.6-rc3
reproduce:
        # apt-get install sparse
        # sparse version: 
        git checkout 7f5608705621881d44c6df4cd64516757a6d03d6
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago

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


sparse warnings: (new ones prefixed by >>)

>> drivers/platform/x86/socwatch/sw_telem.c:239:33: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:242:28: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:245:58: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:260:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:260:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:260:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_punitInterfaceAddr
   drivers/platform/x86/socwatch/sw_telem.c:264:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:264:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:264:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_punitDataAddr
   drivers/platform/x86/socwatch/sw_telem.c:268:54: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:268:54: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:268:54: sparse:    got unsigned long long volatile [usertype] *ssram_virt_addr
   drivers/platform/x86/socwatch/sw_telem.c:280:28: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:283:28: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:286:29: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:289:29: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:292:56: sparse: warning: cast removes address space '<asn:2>' of expression
   drivers/platform/x86/socwatch/sw_telem.c:307:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:307:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:307:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_pmcIPCCmdAddr
   drivers/platform/x86/socwatch/sw_telem.c:311:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:311:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:311:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_pmcIPCStsAddr
   drivers/platform/x86/socwatch/sw_telem.c:315:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:315:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:315:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_pmcIPCWBufAddr
   drivers/platform/x86/socwatch/sw_telem.c:319:25: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:319:25: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:319:25: sparse:    got unsigned long long volatile [usertype] *static [toplevel] [assigned] s_pmcIPCRBufAddr
   drivers/platform/x86/socwatch/sw_telem.c:323:52: sparse: warning: incorrect type in argument 1 (different address spaces)
   drivers/platform/x86/socwatch/sw_telem.c:323:52: sparse:    expected void volatile [noderef] <asn:2> *addr
   drivers/platform/x86/socwatch/sw_telem.c:323:52: sparse:    got unsigned long long volatile [usertype] *ssram_virt_addr
   drivers/platform/x86/socwatch/sw_telem.c:671:5: sparse: warning: symbol 'read_telem' was not declared. Should it be static?

# https://github.com/mchinth/linux/commit/7f5608705621881d44c6df4cd64516757a6d03d6
git remote add mchinth https://github.com/mchinth/linux
git remote update mchinth
git checkout 7f5608705621881d44c6df4cd64516757a6d03d6
vim +239 drivers/platform/x86/socwatch/sw_telem.c

e62dab7842638a Faycal Benmlih       2019-04-23  231  
e62dab7842638a Faycal Benmlih       2019-04-23  232  /**
e62dab7842638a Faycal Benmlih       2019-04-23  233   * setup_punit_mbox -- Setup P-Unit virtual mappings
b0cc42c089f7fc Jon Moeller          2018-11-13  234   *
e62dab7842638a Faycal Benmlih       2019-04-23  235   * Returns: true if setup successfully
e62dab7842638a Faycal Benmlih       2019-04-23  236   */
e62dab7842638a Faycal Benmlih       2019-04-23  237  static bool setup_punit_mbox(void)
e62dab7842638a Faycal Benmlih       2019-04-23  238  {
7f560870562188 Manisha Chinthapally 2020-02-25 @239  	s_punitInterfaceAddr = (u64 *)ioremap_cache(
e62dab7842638a Faycal Benmlih       2019-04-23  240  				(unsigned long)s_mchBarAddrs[TELEM_MCHBAR_CFG] +
e62dab7842638a Faycal Benmlih       2019-04-23  241  				PUNIT_MAILBOX_INTERFACE_OFFSET, 0x4);
7f560870562188 Manisha Chinthapally 2020-02-25  242  	s_punitDataAddr = (u64 *)ioremap_cache(
e62dab7842638a Faycal Benmlih       2019-04-23  243  				(unsigned long)s_mchBarAddrs[TELEM_MCHBAR_CFG] +
e62dab7842638a Faycal Benmlih       2019-04-23  244  				PUNIT_MAILBOX_DATA_OFFSET, 0x4);
7f560870562188 Manisha Chinthapally 2020-02-25  245  	s_telemEventInfo[TELEM_PUNIT].ssram_virt_addr = (u64 *)ioremap_cache(
e62dab7842638a Faycal Benmlih       2019-04-23  246  				(unsigned long)
e62dab7842638a Faycal Benmlih       2019-04-23  247  					s_mchBarAddrs[TELEM_SSRAMBAR_CFG] +
e62dab7842638a Faycal Benmlih       2019-04-23  248  				PSS_TELEM_SSRAM_OFFSET, TELEM_SSRAM_SIZE);
e62dab7842638a Faycal Benmlih       2019-04-23  249  
e62dab7842638a Faycal Benmlih       2019-04-23  250  	return (s_punitInterfaceAddr && s_punitDataAddr &&
e62dab7842638a Faycal Benmlih       2019-04-23  251  		s_telemEventInfo[TELEM_PUNIT].ssram_virt_addr);
e62dab7842638a Faycal Benmlih       2019-04-23  252  }
e62dab7842638a Faycal Benmlih       2019-04-23  253  

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

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

only message in thread, other threads:[~2020-04-23  3:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  3:44 [mchinth:sep_socwatch_linux_5_7 32/34] drivers/platform/x86/socwatch/sw_telem.c:239:33: sparse: warning: cast removes address space '<asn:2>' of expression kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.