All of lore.kernel.org
 help / color / mirror / Atom feed
* [mchinth:sep_socwatch_linux_5_7 19/34] drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size
@ 2020-04-23  3:36 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-23  3:36 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/mchinth/linux sep_socwatch_linux_5_7
head:   d0b187de0054ca718a325a5e30511873147ef526
commit: 074947f0245b650da1907cc66b8efc5696c8417c [19/34] platform/x86: Use $(srctree) instead of $(src) to adapt to kbuild regression
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout 074947f0245b650da1907cc66b8efc5696c8417c
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/platform/x86/sepdk/sep/unc_mmio.c:38:0:
   drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Write_PMU':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
                     ^
>> drivers/platform/x86/sepdk/sep/unc_mmio.c:201:16: note: in expansion of macro 'SYS_MMIO_Read32'
       tmp_value = SYS_MMIO_Read32(virtual_addr, offset_delta);
                   ^~~~~~~~~~~~~~~
   drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Enable_PMU':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
                     ^
   drivers/platform/x86/sepdk/sep/unc_mmio.c:365:18: note: in expansion of macro 'SYS_MMIO_Read32'
         buffer[j] = SYS_MMIO_Read32(
                     ^~~~~~~~~~~~~~~
   drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Trigger_Read':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
                     ^
   drivers/platform/x86/sepdk/sep/unc_mmio.c:573:12: note: in expansion of macro 'SYS_MMIO_Read32'
       value = SYS_MMIO_Read32(virtual_addr, offset_delta);
               ^~~~~~~~~~~~~~~
   drivers/platform/x86/sepdk/sep/unc_mmio.c: In function 'unc_mmio_Read_PMU_Data':
>> drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((base) ? readl((void __iomem *)(base) + (offset)) : 0)
                     ^
   drivers/platform/x86/sepdk/sep/unc_mmio.c:736:17: note: in expansion of macro 'SYS_MMIO_Read32'
        tmp_value = SYS_MMIO_Read32(virtual_addr,
                    ^~~~~~~~~~~~~~~

vim +56 drivers/platform/x86/sepdk/inc/utility.h

b0cc42c089f7fc Jon Moeller          2018-11-13  54  
b0cc42c089f7fc Jon Moeller          2018-11-13  55  #define SYS_MMIO_Read32(base, offset)                                       \
c160005a2deb53 Manisha Chinthapally 2018-11-13 @56  	((base) ? readl((void __iomem *)(base) + (offset)) : 0)
b0cc42c089f7fc Jon Moeller          2018-11-13  57  extern U64 SYS_MMIO_Read64(U64 baseAddress, U64 offset);
b0cc42c089f7fc Jon Moeller          2018-11-13  58  

:::::: The code at line 56 was first introduced by commit
:::::: c160005a2deb53dd684eb7be6b65b0834e97f605 SEP: some cleanup

:::::: TO: Manisha Chinthapally <manisha.chinthapally@intel.com>
:::::: CC: Faycal Benmlih <faycal.benmlih@intel.com>

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

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

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

only message in thread, other threads:[~2020-04-23  3:36 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:36 [mchinth:sep_socwatch_linux_5_7 19/34] drivers/platform/x86/sepdk/inc/utility.h:56:18: warning: cast to pointer from integer of different size 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.