* [leon-rdma:dma-split-v1 4/17] arch/powerpc/include/asm/pci.h:49:42: warning: declaration of 'struct dma_map_ops' will not be visible outside of this function
@ 2024-04-30 22:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-30 22:39 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git dma-split-v1
head: b66ed91ccee0e8e645a07f54f0e39fe9ff4f03c9
commit: c9054c6f609d4d89977171559cd16e48e5fdb8b8 [4/17] dma-mapping: check if IOVA can be used
config: powerpc-randconfig-001-20240501 (https://download.01.org/0day-ci/archive/20240501/202405010612.RhFViKjr-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/202405010612.RhFViKjr-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405010612.RhFViKjr-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/dma/direct.c:10:
In file included from include/linux/dma-map-ops.h:12:
In file included from include/linux/pci.h:2106:
>> arch/powerpc/include/asm/pci.h:49:42: warning: declaration of 'struct dma_map_ops' will not be visible outside of this function [-Wvisibility]
void __init set_pci_dma_ops(const struct dma_map_ops *dma_ops);
^
1 warning generated.
--
In file included from kernel/dma/mapping.c:11:
In file included from include/linux/dma-map-ops.h:12:
In file included from include/linux/pci.h:2106:
>> arch/powerpc/include/asm/pci.h:49:42: warning: declaration of 'struct dma_map_ops' will not be visible outside of this function [-Wvisibility]
void __init set_pci_dma_ops(const struct dma_map_ops *dma_ops);
^
kernel/dma/mapping.c:877:6: error: call to undeclared function 'cc_platform_has'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
if (cc_platform_has(CC_ATTR_MEM_ENCRYPT)) {
^
kernel/dma/mapping.c:877:22: error: use of undeclared identifier 'CC_ATTR_MEM_ENCRYPT'
if (cc_platform_has(CC_ATTR_MEM_ENCRYPT)) {
^
1 warning and 2 errors generated.
vim +49 arch/powerpc/include/asm/pci.h
^1da177e4c3f41 include/asm-ppc64/pci.h Linus Torvalds 2005-04-16 47
4fc665b88a79a4 arch/powerpc/include/asm/pci.h Becky Bruce 2008-09-12 48 #ifdef CONFIG_PCI
d276960d9296b6 arch/powerpc/include/asm/pci.h Nick Child 2021-12-16 @49 void __init set_pci_dma_ops(const struct dma_map_ops *dma_ops);
4fc665b88a79a4 arch/powerpc/include/asm/pci.h Becky Bruce 2008-09-12 50 #else /* CONFIG_PCI */
4fc665b88a79a4 arch/powerpc/include/asm/pci.h Becky Bruce 2008-09-12 51 #define set_pci_dma_ops(d)
4fc665b88a79a4 arch/powerpc/include/asm/pci.h Becky Bruce 2008-09-12 52 #endif
4fc665b88a79a4 arch/powerpc/include/asm/pci.h Becky Bruce 2008-09-12 53
:::::: The code at line 49 was first introduced by commit
:::::: d276960d9296b6a9074795fe60a513abf8474e35 powerpc/kernel: Add __init attribute to eligible functions
:::::: TO: Nick Child <nick.child@ibm.com>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-30 22:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 22:39 [leon-rdma:dma-split-v1 4/17] arch/powerpc/include/asm/pci.h:49:42: warning: declaration of 'struct dma_map_ops' will not be visible outside of this function 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