public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 1 May 2024 06:39:42 +0800	[thread overview]
Message-ID: <202405010612.RhFViKjr-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-04-30 22:40 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=202405010612.RhFViKjr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=leon@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox