All of lore.kernel.org
 help / color / mirror / Atom feed
* [csky-linux:linux-5.8-rc7 9/19] arch/riscv/mm/ioremap.c:9:10: warning: no previous prototype for 'phys_mem_access_prot'
@ 2020-08-01 17:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-01 17:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/c-sky/csky-linux linux-5.8-rc7
head:   01ba42df171e870ae7ac668d0acff16c35628a81
commit: ceab480532c503b9f3c000a98e6fbefd61f29d04 [9/19] riscv: Support non-coherency memory model
config: riscv-allnoconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.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
        git checkout ceab480532c503b9f3c000a98e6fbefd61f29d04
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.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/ioremap.c:9:10: warning: no previous prototype for 'phys_mem_access_prot' [-Wmissing-prototypes]
       9 | 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:86:9: error: implicit declaration of function 'pgprot_dmacoherent' [-Werror=implicit-function-declaration]
      86 |         pgprot_dmacoherent(PAGE_KERNEL),
         |         ^~~~~~~~~~~~~~~~~~
>> kernel/dma/pool.c:86:9: error: incompatible type for argument 3 of 'dma_common_contiguous_remap'
      86 |         pgprot_dmacoherent(PAGE_KERNEL),
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         |
         |         int
   In file included from include/linux/dma-direct.h:5,
                    from kernel/dma/pool.c:7:
   include/linux/dma-mapping.h:711:7: note: expected 'pgprot_t' {aka 'struct <anonymous>'} but argument is of type 'int'
     711 | void *dma_common_contiguous_remap(struct page *page, size_t size,
         |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/phys_mem_access_prot +9 arch/riscv/mm/ioremap.c

     8	
   > 9	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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 5488 bytes --]

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

only message in thread, other threads:[~2020-08-01 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 17:24 [csky-linux:linux-5.8-rc7 9/19] arch/riscv/mm/ioremap.c:9:10: warning: no previous prototype for 'phys_mem_access_prot' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.