mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [arm-perf:kvm/mm-hacking 1/2] arch/arm/include/asm/arch_gicv3.h:164:66: warning: passing argument 1 of 'cpu_cache.flush_kern_dcache_area' makes pointer from integer without a cast
@ 2021-10-30 18:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-30 18:47 UTC (permalink / raw)
  To: Will Deacon; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git kvm/mm-hacking
head:   dcd2a5d48eac9f3c59295a6bf24374f9692224aa
commit: f27856d7a406974029c677ab353c3f01f6970c0f [1/2] irqchip/gic-v3-its: Mark some in-memory data structures as 'decrypted'
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/will/linux.git/commit/?id=f27856d7a406974029c677ab353c3f01f6970c0f
        git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
        git fetch --no-tags arm-perf kvm/mm-hacking
        git checkout f27856d7a406974029c677ab353c3f01f6970c0f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   drivers/irqchip/irq-gic-v3-its.c: In function 'gic_reset_prop_table':
   drivers/irqchip/irq-gic-v3-its.c:2169:9: error: implicit declaration of function 'set_memory_decrypted' [-Werror=implicit-function-declaration]
    2169 |         set_memory_decrypted((unsigned long)va, LPI_PROPBASE_SZ >> PAGE_SHIFT);
         |         ^~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic-v3-its.c: In function 'its_free_prop_table':
   drivers/irqchip/irq-gic-v3-its.c:2189:9: error: implicit declaration of function 'set_memory_encrypted' [-Werror=implicit-function-declaration]
    2189 |         set_memory_encrypted(va, LPI_PROPBASE_SZ >> PAGE_SHIFT);
         |         ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/irqchip/arm-gic-v3.h:602,
                    from drivers/irqchip/irq-gic-v3-its.c:34:
   drivers/irqchip/irq-gic-v3-its.c: In function 'its_allocate_pending_table':
>> arch/arm/include/asm/arch_gicv3.h:164:66: warning: passing argument 1 of 'cpu_cache.flush_kern_dcache_area' makes pointer from integer without a cast [-Wint-conversion]
     164 | #define gic_flush_dcache_to_poc(a,l)    __cpuc_flush_dcache_area((a), (l))
         |                                                                  ^~~
         |                                                                  |
         |                                                                  long unsigned int
   drivers/irqchip/irq-gic-v3-its.c:2955:9: note: in expansion of macro 'gic_flush_dcache_to_poc'
    2955 |         gic_flush_dcache_to_poc(va, LPI_PENDBASE_SZ);
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/include/asm/arch_gicv3.h:164:66: note: expected 'void *' but argument is of type 'long unsigned int'
     164 | #define gic_flush_dcache_to_poc(a,l)    __cpuc_flush_dcache_area((a), (l))
         |                                                                  ^~~
   drivers/irqchip/irq-gic-v3-its.c:2955:9: note: in expansion of macro 'gic_flush_dcache_to_poc'
    2955 |         gic_flush_dcache_to_poc(va, LPI_PENDBASE_SZ);
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic-v3-its.c: In function 'its_alloc_table_entry':
>> arch/arm/include/asm/arch_gicv3.h:164:66: warning: passing argument 1 of 'cpu_cache.flush_kern_dcache_area' makes pointer from integer without a cast [-Wint-conversion]
     164 | #define gic_flush_dcache_to_poc(a,l)    __cpuc_flush_dcache_area((a), (l))
         |                                                                  ^~~
         |                                                                  |
         |                                                                  long unsigned int
   drivers/irqchip/irq-gic-v3-its.c:3298:25: note: in expansion of macro 'gic_flush_dcache_to_poc'
    3298 |                         gic_flush_dcache_to_poc(l2addr, baser->psz);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/include/asm/arch_gicv3.h:164:66: note: expected 'void *' but argument is of type 'long unsigned int'
     164 | #define gic_flush_dcache_to_poc(a,l)    __cpuc_flush_dcache_area((a), (l))
         |                                                                  ^~~
   drivers/irqchip/irq-gic-v3-its.c:3298:25: note: in expansion of macro 'gic_flush_dcache_to_poc'
    3298 |                         gic_flush_dcache_to_poc(l2addr, baser->psz);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +164 arch/arm/include/asm/arch_gicv3.h

d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01  163  
92116b804a02a98 Vladimir Murzin       2016-11-02 @164  #define gic_flush_dcache_to_poc(a,l)    __cpuc_flush_dcache_area((a), (l))
92116b804a02a98 Vladimir Murzin       2016-11-02  165  

:::::: The code at line 164 was first introduced by commit
:::::: 92116b804a02a9869fb8ef843473a5673ed64d3c ARM: gic-v3-its: Add 32bit support to GICv3 ITS

:::::: TO: Vladimir Murzin <vladimir.murzin@arm.com>
:::::: CC: Marc Zyngier <marc.zyngier@arm.com>

---
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: 54490 bytes --]

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

only message in thread, other threads:[~2021-10-30 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 18:47 [arm-perf:kvm/mm-hacking 1/2] arch/arm/include/asm/arch_gicv3.h:164:66: warning: passing argument 1 of 'cpu_cache.flush_kern_dcache_area' makes pointer from integer without a cast kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®