From: kernel test robot <lkp@intel.com>
To: Chandan Babu R <chandan.babu@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [chandanr:dio-inode-completion-chain 1/1] fs/xfs/xfs_aops.c:177:21: warning: unknown attribute 'optimize' ignored
Date: Mon, 6 Feb 2023 16:09:50 +0800 [thread overview]
Message-ID: <202302061644.RRCrgJQf-lkp@intel.com> (raw)
tree: https://github.com/chandanr/linux dio-inode-completion-chain
head: 5f08e3ed4dcab37394794c13e3b79402ca05f3ca
commit: 5f08e3ed4dcab37394794c13e3b79402ca05f3ca [1/1] changes
config: x86_64-randconfig-a006-20230206 (https://download.01.org/0day-ci/archive/20230206/202302061644.RRCrgJQf-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/chandanr/linux/commit/5f08e3ed4dcab37394794c13e3b79402ca05f3ca
git remote add chandanr https://github.com/chandanr/linux
git fetch --no-tags chandanr dio-inode-completion-chain
git checkout 5f08e3ed4dcab37394794c13e3b79402ca05f3ca
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/xfs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/xfs/xfs_aops.c:177:21: warning: unknown attribute 'optimize' ignored [-Wunknown-attributes]
void __attribute__((optimize("O0")))
^~~~~~~~~~~~~~
1 warning generated.
vim +/optimize +177 fs/xfs/xfs_aops.c
176
> 177 void __attribute__((optimize("O0")))
178 xfs_end_dio(
179 struct work_struct *work)
180 {
181 struct xfs_inode *ip =
182 container_of(work, struct xfs_inode, i_dio_work);
183 struct iomap_dio *dio;
184 struct list_head tmp;
185 unsigned long flags;
186 int nr_entries = 0;
187
188 spin_lock_irqsave(&ip->i_dio_lock, flags);
189 list_replace_init(&ip->i_dio_list, &tmp);
190 spin_unlock_irqrestore(&ip->i_dio_lock, flags);
191
192 /* chandan: do we have to sort dios? */
193 while ((dio = list_first_entry_or_null(&tmp, struct iomap_dio,
194 dio_list))) {
195 struct kiocb *iocb = dio->iocb;
196
197 ++nr_entries;
198 list_del_init(&dio->dio_list);
199 iocb->ki_complete(iocb, iomap_dio_complete(dio));
200 }
201
202 return;
203 }
204
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-06 8:10 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=202302061644.RRCrgJQf-lkp@intel.com \
--to=lkp@intel.com \
--cc=chandan.babu@oracle.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@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