All of lore.kernel.org
 help / color / mirror / Atom feed
* [rppt:pt-cleanups/pXd-consolidation 22/26] arch/x86/mm/init.c:668:2: error: implicit declaration of function 'init_trampoline_default'
@ 2020-05-05  9:26 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-05  9:26 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pt-cleanups/pXd-consolidation
head:   3938b8b12f4104fa561dc8148c4547d315af3893
commit: 88fa24a978e453c7db4a9d81ad7cfa6ae59b553c [22/26] x86/mm/kaslr: move init_trampoline_default() definition close to its use
config: x86_64-randconfig-h001-20200503 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project ff6a0b6a8ee74693e9711973028a8a327adf9cd5)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 88fa24a978e453c7db4a9d81ad7cfa6ae59b553c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> arch/x86/mm/init.c:668:2: error: implicit declaration of function 'init_trampoline_default' [-Werror,-Wimplicit-function-declaration]
           init_trampoline();
           ^
   arch/x86/include/asm/pgtable.h:1085:27: note: expanded from macro 'init_trampoline'
   #  define init_trampoline init_trampoline_default
                             ^
   1 error generated.

vim +/init_trampoline_default +668 arch/x86/mm/init.c

0167d7d8b0beb4 Tang Chen       2013-11-12  663  
0167d7d8b0beb4 Tang Chen       2013-11-12  664  	/* the ISA range is always mapped regardless of memory holes */
c164fbb40c43f8 Logan Gunthorpe 2020-04-10  665  	init_memory_mapping(0, ISA_END_ADDRESS, PAGE_KERNEL);
0167d7d8b0beb4 Tang Chen       2013-11-12  666  
b234e8a09003af Thomas Garnier  2016-06-21  667  	/* Init the trampoline, possibly with KASLR memory offset */
b234e8a09003af Thomas Garnier  2016-06-21 @668  	init_trampoline();
b234e8a09003af Thomas Garnier  2016-06-21  669  
b959ed6c73845a Tang Chen       2013-11-12  670  	/*
b959ed6c73845a Tang Chen       2013-11-12  671  	 * If the allocation is in bottom-up direction, we setup direct mapping
b959ed6c73845a Tang Chen       2013-11-12  672  	 * in bottom-up, otherwise we setup direct mapping in top-down.
b959ed6c73845a Tang Chen       2013-11-12  673  	 */
b959ed6c73845a Tang Chen       2013-11-12  674  	if (memblock_bottom_up()) {
b959ed6c73845a Tang Chen       2013-11-12  675  		unsigned long kernel_end = __pa_symbol(_end);
b959ed6c73845a Tang Chen       2013-11-12  676  
b959ed6c73845a Tang Chen       2013-11-12  677  		/*
b959ed6c73845a Tang Chen       2013-11-12  678  		 * we need two separate calls here. This is because we want to
b959ed6c73845a Tang Chen       2013-11-12  679  		 * allocate page tables above the kernel. So we first map
b959ed6c73845a Tang Chen       2013-11-12  680  		 * [kernel_end, end) to make memory above the kernel be mapped
b959ed6c73845a Tang Chen       2013-11-12  681  		 * as soon as possible. And then use page tables allocated above
b959ed6c73845a Tang Chen       2013-11-12  682  		 * the kernel to map [ISA_END_ADDRESS, kernel_end).
b959ed6c73845a Tang Chen       2013-11-12  683  		 */
b959ed6c73845a Tang Chen       2013-11-12  684  		memory_map_bottom_up(kernel_end, end);
b959ed6c73845a Tang Chen       2013-11-12  685  		memory_map_bottom_up(ISA_END_ADDRESS, kernel_end);
b959ed6c73845a Tang Chen       2013-11-12  686  	} else {
0167d7d8b0beb4 Tang Chen       2013-11-12  687  		memory_map_top_down(ISA_END_ADDRESS, end);
b959ed6c73845a Tang Chen       2013-11-12  688  	}
8d57470d8f8596 Yinghai Lu      2012-11-16  689  

:::::: The code at line 668 was first introduced by commit
:::::: b234e8a09003af108d3573f0369e25c080676b14 x86/mm: Separate variable for trampoline PGD

:::::: TO: Thomas Garnier <thgarnie@google.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

only message in thread, other threads:[~2020-05-05  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05  9:26 [rppt:pt-cleanups/pXd-consolidation 22/26] arch/x86/mm/init.c:668:2: error: implicit declaration of function 'init_trampoline_default' kbuild 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.