All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Thu, 23 Apr 2020 11:36:13 +0800	[thread overview]
Message-ID: <202004231110.nLCZ7XXX%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-04-23  3:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004231110.nLCZ7XXX%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.