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.extable 21/23] arch/x86/include/asm/word-at-a-time.h:98:15: error: '__cold__' attribute only applies to functions
Date: Wed, 10 Nov 2021 05:47:50 +0800 [thread overview]
Message-ID: <202111100546.qMMclefA-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2552 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.extable
head: 3083969163ff9cd715077a33b045e439b92b70bf
commit: 6dbe299818d0da139c576c414c09bbf133c8a331 [21/23] x86,word-at-a-time: Remove .fixup usage
config: i386-buildonly-randconfig-r002-20211109 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3798ad5fa845771846599f3c088016e3aef800c)
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=6dbe299818d0da139c576c414c09bbf133c8a331
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.extable
git checkout 6dbe299818d0da139c576c414c09bbf133c8a331
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
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 >>):
In file included from lib/strnlen_user.c:8:
>> arch/x86/include/asm/word-at-a-time.h:98:15: error: '__cold__' attribute only applies to functions [-Werror,-Wignored-attributes]
do_exception: __cold;
^
include/linux/compiler_attributes.h:72:56: note: expanded from macro '__cold'
#define __cold __attribute__((__cold__))
^
1 error generated.
vim +/__cold__ +98 arch/x86/include/asm/word-at-a-time.h
81
82 static inline unsigned long load_unaligned_zeropad(const void *addr)
83 {
84 unsigned long offset, data;
85 unsigned long ret;
86
87 asm_volatile_goto(
88 "1: mov %[mem], %[ret]\n"
89
90 _ASM_EXTABLE(1b, %l[do_exception])
91
92 : [ret] "=r" (ret)
93 : [mem] "m" (*(unsigned long *)addr)
94 : : do_exception);
95
96 return ret;
97
> 98 do_exception: __cold;
99 offset = (unsigned long)addr & (sizeof(long) - 1);
100 addr = (void *)((unsigned long)addr & ~(sizeof(long) - 1));
101 data = *(unsigned long *)addr;
102 ret = data >> offset * 8;
103
104 return ret;
105 }
106
---
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: 39244 bytes --]
reply other threads:[~2021-11-09 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202111100546.qMMclefA-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox