All of lore.kernel.org
 help / color / mirror / Atom feed
* [melver:review/kmsan 36/43] arch/x86/mm/fault.c:299:28: error: 'KMSAN_VMALLOC_SHADOW_START' undeclared
@ 2021-12-20 22:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-20 22:08 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git review/kmsan
head:   b7e0800dfd0a0e1067ccbbbfd9b825b639606b24
commit: e809796b501e52d9dbb51a5e11c28a919d6e92b7 [36/43] x86: kmsan: sync metadata pages on page fault
config: i386-randconfig-a002-20211220 (https://download.01.org/0day-ci/archive/20211221/202112210650.eE1RkQXT-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git/commit/?id=e809796b501e52d9dbb51a5e11c28a919d6e92b7
        git remote add melver https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git
        git fetch --no-tags melver review/kmsan
        git checkout e809796b501e52d9dbb51a5e11c28a919d6e92b7
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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 >>):

   arch/x86/mm/fault.c:263:6: warning: no previous prototype for '__arch_sync_kernel_mappings' [-Wmissing-prototypes]
     263 | void __arch_sync_kernel_mappings(unsigned long start, unsigned long end)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/mm/fault.c: In function 'arch_sync_kernel_mappings':
>> arch/x86/mm/fault.c:299:28: error: 'KMSAN_VMALLOC_SHADOW_START' undeclared (first use in this function)
     299 |    start - VMALLOC_START + KMSAN_VMALLOC_SHADOW_START,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/mm/fault.c:299:28: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/mm/fault.c:302:28: error: 'KMSAN_VMALLOC_ORIGIN_START' undeclared (first use in this function)
     302 |    start - VMALLOC_START + KMSAN_VMALLOC_ORIGIN_START,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/KMSAN_VMALLOC_SHADOW_START +299 arch/x86/mm/fault.c

   286	
   287	void arch_sync_kernel_mappings(unsigned long start, unsigned long end)
   288	{
   289		__arch_sync_kernel_mappings(start, end);
   290		/*
   291		 * KMSAN maintains two additional metadata page mappings for the
   292		 * [VMALLOC_START, VMALLOC_END) range. These mappings start at
   293		 * KMSAN_VMALLOC_SHADOW_START and KMSAN_VMALLOC_ORIGIN_START and
   294		 * have to be synced together with the vmalloc memory mapping.
   295		 */
   296		if (IS_ENABLED(CONFIG_KMSAN) &&
   297		    start >= VMALLOC_START && end < VMALLOC_END) {
   298			__arch_sync_kernel_mappings(
 > 299				start - VMALLOC_START + KMSAN_VMALLOC_SHADOW_START,
   300				end - VMALLOC_START + KMSAN_VMALLOC_SHADOW_START);
   301			__arch_sync_kernel_mappings(
 > 302				start - VMALLOC_START + KMSAN_VMALLOC_ORIGIN_START,
   303				end - VMALLOC_START + KMSAN_VMALLOC_ORIGIN_START);
   304		}
   305	}
   306	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2021-12-20 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 22:08 [melver:review/kmsan 36/43] arch/x86/mm/fault.c:299:28: error: 'KMSAN_VMALLOC_SHADOW_START' undeclared 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.