linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6040/6048] arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid'
@ 2021-02-03 16:50 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-03 16:50 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: kbuild-all, Linux Memory Management List, Catalin Marinas,
	David Hildenbrand

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
commit: ea7ce6b17c1555b62690471f536eba6358ed3125 [6040/6048] set_memory: allow querying whether set_direct_map_*() is actually enabled
config: arm64-randconfig-r024-20210202 (attached as .config)
compiler: aarch64-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ea7ce6b17c1555b62690471f536eba6358ed3125
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout ea7ce6b17c1555b62690471f536eba6358ed3125
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   In file included from mm/kfence/core.c:26:
   arch/arm64/include/asm/kfence.h: In function 'kfence_protect_page':
>> arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' [-Werror=implicit-function-declaration]
      17 |  set_memory_valid(addr, 1, !protect);
         |  ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for OCTEONTX2_MBOX
   Depends on NETDEVICES && ETHERNET && NET_VENDOR_MARVELL
   Selected by
   - CRYPTO_DEV_OCTEONTX2_CPT && CRYPTO && CRYPTO_HW && (ARM64 || COMPILE_TEST && PCI_MSI && 64BIT && CRYPTO_LIB_AES


vim +/set_memory_valid +17 arch/arm64/include/asm/kfence.h

b6a4dacdad08f0 Marco Elver 2021-01-22  14  
b6a4dacdad08f0 Marco Elver 2021-01-22  15  static inline bool kfence_protect_page(unsigned long addr, bool protect)
b6a4dacdad08f0 Marco Elver 2021-01-22  16  {
b6a4dacdad08f0 Marco Elver 2021-01-22 @17  	set_memory_valid(addr, 1, !protect);
b6a4dacdad08f0 Marco Elver 2021-01-22  18  
b6a4dacdad08f0 Marco Elver 2021-01-22  19  	return true;
b6a4dacdad08f0 Marco Elver 2021-01-22  20  }
b6a4dacdad08f0 Marco Elver 2021-01-22  21  

:::::: The code at line 17 was first introduced by commit
:::::: b6a4dacdad08f0a7db077346f89b36aa6891cde7 arm64, kfence: enable KFENCE for ARM64

:::::: TO: Marco Elver <elver@google.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-next:master 6040/6048] arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid'
@ 2021-01-28 11:21 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-28 11:21 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Catalin Marinas, David Hildenbrand

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
commit: ea7ce6b17c1555b62690471f536eba6358ed3125 [6040/6048] set_memory: allow querying whether set_direct_map_*() is actually enabled
config: arm64-randconfig-r031-20210128 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 48bdd676a1d1338c10541460bf5beb69ac17e451)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ea7ce6b17c1555b62690471f536eba6358ed3125
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout ea7ce6b17c1555b62690471f536eba6358ed3125
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

   In file included from mm/kfence/core.c:26:
>> arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' [-Werror,-Wimplicit-function-declaration]
           set_memory_valid(addr, 1, !protect);
           ^
   1 error generated.


vim +/set_memory_valid +17 arch/arm64/include/asm/kfence.h

b6a4dacdad08f0 Marco Elver 2021-01-22  14  
b6a4dacdad08f0 Marco Elver 2021-01-22  15  static inline bool kfence_protect_page(unsigned long addr, bool protect)
b6a4dacdad08f0 Marco Elver 2021-01-22  16  {
b6a4dacdad08f0 Marco Elver 2021-01-22 @17  	set_memory_valid(addr, 1, !protect);
b6a4dacdad08f0 Marco Elver 2021-01-22  18  
b6a4dacdad08f0 Marco Elver 2021-01-22  19  	return true;
b6a4dacdad08f0 Marco Elver 2021-01-22  20  }
b6a4dacdad08f0 Marco Elver 2021-01-22  21  

:::::: The code at line 17 was first introduced by commit
:::::: b6a4dacdad08f0a7db077346f89b36aa6891cde7 arm64, kfence: enable KFENCE for ARM64

:::::: TO: Marco Elver <elver@google.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-03 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 16:50 [linux-next:master 6040/6048] arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-01-28 11:21 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).