From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [peterz-queue:x86/wip.ibt 7/15] arch/x86/mm/init.c:178:1: warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the attribute
Date: Fri, 3 Dec 2021 05:17:27 +0800 [thread overview]
Message-ID: <202112030502.YDiwVBKh-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: a2453d618b87ec61000fecf66dee9cbd109e2e50
commit: d7103a390456460fd2b7d93081cd64b3e55c10f9 [7/15] x86: Don't generate ENDBR in .discard.text
config: x86_64-randconfig-r001-20211202 (https://download.01.org/0day-ci/archive/20211203/202112030502.YDiwVBKh-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b553297ef3ee4dc2119d5429adf3072e90fac38)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=d7103a390456460fd2b7d93081cd64b3e55c10f9
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/wip.ibt
git checkout d7103a390456460fd2b7d93081cd64b3e55c10f9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/init.c:178:1: warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the attribute [-Wignored-attributes]
RESERVE_BRK(early_pgt_alloc, INIT_PGT_BUF_SIZE);
^
arch/x86/include/asm/setup.h:122:56: note: expanded from macro 'RESERVE_BRK'
static void __section(".discard.text") __attribute__((nocf_check)) __used notrace \
^
1 warning generated.
vim +/nocf_check +178 arch/x86/mm/init.c
167dcfc08b0b1f Lorenzo Stoakes 2020-12-15 176
fb754f958f8e46 Thomas Garnier 2016-08-09 177 #define INIT_PGT_BUF_SIZE (INIT_PGD_PAGE_COUNT * PAGE_SIZE)
8d57470d8f8596 Yinghai Lu 2012-11-16 @178 RESERVE_BRK(early_pgt_alloc, INIT_PGT_BUF_SIZE);
8d57470d8f8596 Yinghai Lu 2012-11-16 179 void __init early_alloc_pgt_buf(void)
8d57470d8f8596 Yinghai Lu 2012-11-16 180 {
8d57470d8f8596 Yinghai Lu 2012-11-16 181 unsigned long tables = INIT_PGT_BUF_SIZE;
8d57470d8f8596 Yinghai Lu 2012-11-16 182 phys_addr_t base;
8d57470d8f8596 Yinghai Lu 2012-11-16 183
8d57470d8f8596 Yinghai Lu 2012-11-16 184 base = __pa(extend_brk(tables, PAGE_SIZE));
8d57470d8f8596 Yinghai Lu 2012-11-16 185
8d57470d8f8596 Yinghai Lu 2012-11-16 186 pgt_buf_start = base >> PAGE_SHIFT;
8d57470d8f8596 Yinghai Lu 2012-11-16 187 pgt_buf_end = pgt_buf_start;
8d57470d8f8596 Yinghai Lu 2012-11-16 188 pgt_buf_top = pgt_buf_start + (tables >> PAGE_SHIFT);
8d57470d8f8596 Yinghai Lu 2012-11-16 189 }
8d57470d8f8596 Yinghai Lu 2012-11-16 190
:::::: The code at line 178 was first introduced by commit
:::::: 8d57470d8f859635deffe3919d7d4867b488b85a x86, mm: setup page table in top-down
:::::: TO: Yinghai Lu <yinghai@kernel.org>
:::::: CC: H. Peter Anvin <hpa@linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:x86/wip.ibt 7/15] arch/x86/mm/init.c:178:1: warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the attribute
Date: Fri, 03 Dec 2021 05:17:27 +0800 [thread overview]
Message-ID: <202112030502.YDiwVBKh-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3379 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: a2453d618b87ec61000fecf66dee9cbd109e2e50
commit: d7103a390456460fd2b7d93081cd64b3e55c10f9 [7/15] x86: Don't generate ENDBR in .discard.text
config: x86_64-randconfig-r001-20211202 (https://download.01.org/0day-ci/archive/20211203/202112030502.YDiwVBKh-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b553297ef3ee4dc2119d5429adf3072e90fac38)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=d7103a390456460fd2b7d93081cd64b3e55c10f9
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/wip.ibt
git checkout d7103a390456460fd2b7d93081cd64b3e55c10f9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/init.c:178:1: warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the attribute [-Wignored-attributes]
RESERVE_BRK(early_pgt_alloc, INIT_PGT_BUF_SIZE);
^
arch/x86/include/asm/setup.h:122:56: note: expanded from macro 'RESERVE_BRK'
static void __section(".discard.text") __attribute__((nocf_check)) __used notrace \
^
1 warning generated.
vim +/nocf_check +178 arch/x86/mm/init.c
167dcfc08b0b1f Lorenzo Stoakes 2020-12-15 176
fb754f958f8e46 Thomas Garnier 2016-08-09 177 #define INIT_PGT_BUF_SIZE (INIT_PGD_PAGE_COUNT * PAGE_SIZE)
8d57470d8f8596 Yinghai Lu 2012-11-16 @178 RESERVE_BRK(early_pgt_alloc, INIT_PGT_BUF_SIZE);
8d57470d8f8596 Yinghai Lu 2012-11-16 179 void __init early_alloc_pgt_buf(void)
8d57470d8f8596 Yinghai Lu 2012-11-16 180 {
8d57470d8f8596 Yinghai Lu 2012-11-16 181 unsigned long tables = INIT_PGT_BUF_SIZE;
8d57470d8f8596 Yinghai Lu 2012-11-16 182 phys_addr_t base;
8d57470d8f8596 Yinghai Lu 2012-11-16 183
8d57470d8f8596 Yinghai Lu 2012-11-16 184 base = __pa(extend_brk(tables, PAGE_SIZE));
8d57470d8f8596 Yinghai Lu 2012-11-16 185
8d57470d8f8596 Yinghai Lu 2012-11-16 186 pgt_buf_start = base >> PAGE_SHIFT;
8d57470d8f8596 Yinghai Lu 2012-11-16 187 pgt_buf_end = pgt_buf_start;
8d57470d8f8596 Yinghai Lu 2012-11-16 188 pgt_buf_top = pgt_buf_start + (tables >> PAGE_SHIFT);
8d57470d8f8596 Yinghai Lu 2012-11-16 189 }
8d57470d8f8596 Yinghai Lu 2012-11-16 190
:::::: The code at line 178 was first introduced by commit
:::::: 8d57470d8f859635deffe3919d7d4867b488b85a x86, mm: setup page table in top-down
:::::: TO: Yinghai Lu <yinghai@kernel.org>
:::::: CC: H. Peter Anvin <hpa@linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2021-12-02 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 21:17 kernel test robot [this message]
2021-12-02 21:17 ` [peterz-queue:x86/wip.ibt 7/15] arch/x86/mm/init.c:178:1: warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the attribute kernel test robot
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=202112030502.YDiwVBKh-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=peterz@infradead.org \
/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 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.