* [chandanr:dio-inode-completion-chain 1/1] fs/xfs/xfs_aops.c:177:21: warning: unknown attribute 'optimize' ignored
@ 2023-02-06 8:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-06 8:09 UTC (permalink / raw)
To: Chandan Babu R; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-06 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06 8:09 [chandanr:dio-inode-completion-chain 1/1] fs/xfs/xfs_aops.c:177:21: warning: unknown attribute 'optimize' ignored kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox