[arm64:for-next/ghostbusters 14/19] arch/arm64/kernel/proton-pack.c:329:2: error: implicit declaration of function 'task_stack_page'

kernel test robot lkp at intel.com
Fri Sep 25 12:23:18 EDT 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/ghostbusters
head:   9a313c5d65a5f10ddf605022e9220e52946326f0
commit: a44acf477220ad763fbb0ccb1c5235aa7d150bb6 [14/19] arm64: Move SSBD prctl() handler alongside other spectre mitigation code
config: arm64-randconfig-r023-20200920 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6a6b06f5262bb96523eceef4a42fe8e60ae2a630)
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/arm64/linux.git/commit/?id=a44acf477220ad763fbb0ccb1c5235aa7d150bb6
        git remote add arm64 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
        git fetch --no-tags arm64 for-next/ghostbusters
        git checkout a44acf477220ad763fbb0ccb1c5235aa7d150bb6
        # 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 at intel.com>

All errors (new ones prefixed by >>):

   arch/arm64/kernel/proton-pack.c:288:2: error: implicit declaration of function 'install_bp_hardening_cb' [-Werror,-Wimplicit-function-declaration]
           install_bp_hardening_cb(cb);
           ^
   arch/arm64/kernel/proton-pack.c:304:2: error: implicit declaration of function 'install_bp_hardening_cb' [-Werror,-Wimplicit-function-declaration]
           install_bp_hardening_cb(qcom_link_stack_sanitisation);
           ^
   arch/arm64/kernel/proton-pack.c:326:12: error: implicit declaration of function 'is_compat_thread' [-Werror,-Wimplicit-function-declaration]
           u64 val = is_compat_thread(task_thread_info(task)) ?
                     ^
>> arch/arm64/kernel/proton-pack.c:329:2: error: implicit declaration of function 'task_stack_page' [-Werror,-Wimplicit-function-declaration]
           task_pt_regs(task)->pstate |= val;
           ^
   arch/arm64/include/asm/processor.h:268:36: note: expanded from macro 'task_pt_regs'
           ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
                                             ^
   arch/arm64/kernel/proton-pack.c:329:2: note: did you mean 'task_spread_page'?
   arch/arm64/include/asm/processor.h:268:36: note: expanded from macro 'task_pt_regs'
           ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
                                             ^
   include/linux/sched.h:1585:1: note: 'task_spread_page' declared here
   TASK_PFA_TEST(SPREAD_PAGE, spread_page)
   ^
   include/linux/sched.h:1571:21: note: expanded from macro 'TASK_PFA_TEST'
           static inline bool task_##func(struct task_struct *p)           \
                              ^
   <scratch space>:51:1: note: expanded from here
   task_spread_page
   ^
   arch/arm64/kernel/proton-pack.c:334:12: error: implicit declaration of function 'is_compat_thread' [-Werror,-Wimplicit-function-declaration]
           u64 val = is_compat_thread(task_thread_info(task)) ?
                     ^
   arch/arm64/kernel/proton-pack.c:337:2: error: implicit declaration of function 'task_stack_page' [-Werror,-Wimplicit-function-declaration]
           task_pt_regs(task)->pstate &= ~val;
           ^
   arch/arm64/include/asm/processor.h:268:36: note: expanded from macro 'task_pt_regs'
           ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
                                             ^
   6 errors generated.

vim +/task_stack_page +329 arch/arm64/kernel/proton-pack.c

   322	
   323	/* Spectre v4 prctl */
   324	static void ssbd_ssbs_enable(struct task_struct *task)
   325	{
   326		u64 val = is_compat_thread(task_thread_info(task)) ?
   327			  PSR_AA32_SSBS_BIT : PSR_SSBS_BIT;
   328	
 > 329		task_pt_regs(task)->pstate |= val;
   330	}
   331	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 46968 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200926/37ef6cab/attachment-0001.gz>


More information about the linux-arm-kernel mailing list