[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

From: kernel test robot
Date: Sat Oct 30 2021 - 14:48:12 EST


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@xxxxxxxxx>

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@xxxxxxx>
:::::: CC: Marc Zyngier <marc.zyngier@xxxxxxx>

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

Attachment: .config.gz
Description: application/gzip