All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Liu Shaohua <liush@allwinnertech.com>
Subject: [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'
Date: Wed, 28 Jul 2021 04:47:45 +0800	[thread overview]
Message-ID: <202107280437.bpB3hM1m-lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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'
Date: Wed, 28 Jul 2021 04:47:45 +0800	[thread overview]
Message-ID: <202107280437.bpB3hM1m-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2699 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(a)lists.01.org

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

             reply	other threads:[~2021-07-27 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 20:47 kernel test robot [this message]
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

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=202107280437.bpB3hM1m-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=guoren@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liush@allwinnertech.com \
    /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 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.