lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107280437.bpB3hM1m-lkp@intel.com>
Date:   Wed, 28 Jul 2021 04:47:45 +0800
From:   kernel test robot <lkp@...el.com>
To:     Guo Ren <guoren@...ux.alibaba.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Liu Shaohua <liush@...winnertech.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'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (8654 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ