linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [csky-linux:v5.14-rc2-of-delay-cpu-available 1/5] arch/riscv/mm/dma-mapping.c:56:10: warning: no previous prototype for 'phys_mem_access_prot'
@ 2021-07-27 20:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-27 20:47 UTC (permalink / raw)
  To: Guo Ren; +Cc: kbuild-all, linux-kernel, Liu Shaohua

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

tree:   https://github.com/c-sky/csky-linux v5.14-rc2-of-delay-cpu-available
head:   f6c22a2278708ce7227c42294e351ff53e8b279a
commit: cf49643a9a30e90e8f914729124a420a4ccfa356 [1/5] riscv: cmo: RFC Add dma-noncoherency support
config: riscv-nommu_k210_defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 10.3.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://github.com/c-sky/csky-linux/commit/cf49643a9a30e90e8f914729124a420a4ccfa356
        git remote add csky-linux https://github.com/c-sky/csky-linux
        git fetch --no-tags csky-linux v5.14-rc2-of-delay-cpu-available
        git checkout cf49643a9a30e90e8f914729124a420a4ccfa356
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=riscv 

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

All error/warnings (new ones prefixed by >>):

>> arch/riscv/mm/dma-mapping.c:56:10: warning: no previous prototype for 'phys_mem_access_prot' [-Wmissing-prototypes]
      56 | pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
         |          ^~~~~~~~~~~~~~~~~~~~
--
   kernel/dma/pool.c: In function 'atomic_pool_expand':
>> kernel/dma/pool.c:105:9: error: implicit declaration of function 'pgprot_dmacoherent' [-Werror=implicit-function-declaration]
     105 |         pgprot_dmacoherent(PAGE_KERNEL),
         |         ^~~~~~~~~~~~~~~~~~
>> kernel/dma/pool.c:105:9: error: incompatible type for argument 3 of 'dma_common_contiguous_remap'
     105 |         pgprot_dmacoherent(PAGE_KERNEL),
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         |
         |         int
   In file included from kernel/dma/pool.c:8:
   include/linux/dma-map-ops.h:232:76: note: expected 'pgprot_t' but argument is of type 'int'
     232 | void *dma_common_contiguous_remap(struct page *page, size_t size, pgprot_t prot,
         |                                                                   ~~~~~~~~~^~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DMA_REMAP
   Depends on MMU
   Selected by
   - DMA_DIRECT_REMAP


vim +/phys_mem_access_prot +56 arch/riscv/mm/dma-mapping.c

    55	
  > 56	pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,

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

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

only message in thread, other threads:[~2021-07-27 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 20:47 [csky-linux:v5.14-rc2-of-delay-cpu-available 1/5] arch/riscv/mm/dma-mapping.c:56:10: warning: no previous prototype for 'phys_mem_access_prot' 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;
as well as URLs for NNTP newsgroup(s).