All of lore.kernel.org
 help / color / mirror / Atom feed
* [ardb:x86-pie 1/19] arch/x86/include/asm/processor.h:401:16: error: implicit declaration of function 'per_cpu_offset'
@ 2023-04-21 21:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-21 21:57 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: oe-kbuild-all

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git x86-pie
head:   01406d471d3e3718b3771fdabcfca8c505157404
commit: 427d4bb4ab26e69846f693d1ac4618691bc4a1cc [1/19] x86: Use stack protector with guard symbol if supported
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20230422/202304220522.ChigZbHH-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=427d4bb4ab26e69846f693d1ac4618691bc4a1cc
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb x86-pie
        git checkout 427d4bb4ab26e69846f693d1ac4618691bc4a1cc
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304220522.ChigZbHH-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:60,
                    from arch/x86/include/asm/preempt.h:9,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:56,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/slab.h:15,
                    from include/linux/crypto.h:20,
                    from arch/x86/kernel/asm-offsets.c:9:
   arch/x86/include/asm/processor.h: In function 'cpu_kernelmode_gs_base':
>> arch/x86/include/asm/processor.h:401:16: error: implicit declaration of function 'per_cpu_offset' [-Werror=implicit-function-declaration]
     401 |         return per_cpu_offset(cpu);
         |                ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:114: arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:1286: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:226: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/per_cpu_offset +401 arch/x86/include/asm/processor.h

   398	
   399	static inline unsigned long cpu_kernelmode_gs_base(int cpu)
   400	{
 > 401		return per_cpu_offset(cpu);
   402	}
   403	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-04-21 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 21:57 [ardb:x86-pie 1/19] arch/x86/include/asm/processor.h:401:16: error: implicit declaration of function 'per_cpu_offset' 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.