From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Keith Packard <keithpac@amazon.com>
Subject: [ardb:arm-vmap-stacks 5/20] arch/arm/mm/context.c:112:28: error: no member named 'task' in 'struct thread_info'
Date: Tue, 5 Oct 2021 10:02:33 +0800 [thread overview]
Message-ID: <202110051030.J3Ub7djT-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3725 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm-vmap-stacks
head: 9f4b28a772c8a5fb46362418b45a779c7b8c0bc5
commit: 12e3ad2cad7748f0816216192d7554be2eca2655 [5/20] ARM: smp: Enable THREAD_INFO_IN_TASK
config: arm-randconfig-r012-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dec2257f354d39dbd8232e6bd1a417d91c4f14a2)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=12e3ad2cad7748f0816216192d7554be2eca2655
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm-vmap-stacks
git checkout 12e3ad2cad7748f0816216192d7554be2eca2655
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/ arch/arm/mm/
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/arm/mm/context.c:112:28: error: no member named 'task' in 'struct thread_info'
pid = task_pid_nr(thread->task) << ASID_BITS;
~~~~~~ ^
1 error generated.
vim +112 arch/arm/mm/context.c
14d8c9512aef5b Catalin Marinas 2011-11-22 100
575320d625d5b5 Will Deacon 2012-07-06 101 #ifdef CONFIG_PID_IN_CONTEXTIDR
575320d625d5b5 Will Deacon 2012-07-06 102 static int contextidr_notifier(struct notifier_block *unused, unsigned long cmd,
575320d625d5b5 Will Deacon 2012-07-06 103 void *t)
575320d625d5b5 Will Deacon 2012-07-06 104 {
575320d625d5b5 Will Deacon 2012-07-06 105 u32 contextidr;
575320d625d5b5 Will Deacon 2012-07-06 106 pid_t pid;
575320d625d5b5 Will Deacon 2012-07-06 107 struct thread_info *thread = t;
575320d625d5b5 Will Deacon 2012-07-06 108
575320d625d5b5 Will Deacon 2012-07-06 109 if (cmd != THREAD_NOTIFY_SWITCH)
575320d625d5b5 Will Deacon 2012-07-06 110 return NOTIFY_DONE;
575320d625d5b5 Will Deacon 2012-07-06 111
575320d625d5b5 Will Deacon 2012-07-06 @112 pid = task_pid_nr(thread->task) << ASID_BITS;
575320d625d5b5 Will Deacon 2012-07-06 113 asm volatile(
575320d625d5b5 Will Deacon 2012-07-06 114 " mrc p15, 0, %0, c13, c0, 1\n"
ae3790b8a91642 Will Deacon 2012-08-24 115 " and %0, %0, %2\n"
ae3790b8a91642 Will Deacon 2012-08-24 116 " orr %0, %0, %1\n"
ae3790b8a91642 Will Deacon 2012-08-24 117 " mcr p15, 0, %0, c13, c0, 1\n"
575320d625d5b5 Will Deacon 2012-07-06 118 : "=r" (contextidr), "+r" (pid)
ae3790b8a91642 Will Deacon 2012-08-24 119 : "I" (~ASID_MASK));
575320d625d5b5 Will Deacon 2012-07-06 120 isb();
575320d625d5b5 Will Deacon 2012-07-06 121
575320d625d5b5 Will Deacon 2012-07-06 122 return NOTIFY_OK;
575320d625d5b5 Will Deacon 2012-07-06 123 }
575320d625d5b5 Will Deacon 2012-07-06 124
:::::: The code at line 112 was first introduced by commit
:::::: 575320d625d5b5eb115575a1f5e17af456e69577 ARM: 7445/1: mm: update CONTEXTIDR register to contain PID of current process
:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>
---
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: 33719 bytes --]
next reply other threads:[~2021-10-05 2:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 2:02 kernel test robot [this message]
2021-10-21 6:55 ` [ardb:arm-vmap-stacks 5/20] arch/arm/mm/context.c:112:28: error: no member named 'task' in 'struct thread_info' Arnd Bergmann
2021-10-21 7:02 ` Ard Biesheuvel
2021-10-21 7:19 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110051030.J3Ub7djT-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=keithpac@amazon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox