From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Dave Chinner <dchinner@redhat.com>
Subject: fs/xfs/xfs_icache.c:286:1: warning: unused function 'xfs_inew_wait'
Date: Wed, 1 Sep 2021 20:13:33 +0800 [thread overview]
Message-ID: <202109012016.Ulrosjzh-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3955 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9e9fb7655ed585da8f468e29221f0ba194a5f613
commit: 7fdff52623b4df9c9ae665fe8bb727978c29414e xfs: remove iter_flags parameter from xfs_inode_walk_*
date: 3 months ago
config: mips-randconfig-r026-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 510e106fa8635e7f9c51c896180b971de6309b2f)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7fdff52623b4df9c9ae665fe8bb727978c29414e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7fdff52623b4df9c9ae665fe8bb727978c29414e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash block/ fs/xfs/
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 >>):
>> fs/xfs/xfs_icache.c:286:1: warning: unused function 'xfs_inew_wait'
xfs_inew_wait(
^
fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
Target: mips64-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-4b1fde8a2b/bin
clang-14: note: diagnostic msg:
Makefile arch block drivers fs include kernel mm net nr_bisected scripts source usr
vim +/xfs_inew_wait +286 fs/xfs/xfs_icache.c
ad438c4038968e Dave Chinner 2016-05-18 284
7fdff52623b4df Darrick J. Wong 2021-05-31 285 static inline void
ae2c4ac2dd39b2 Brian Foster 2017-04-26 @286 xfs_inew_wait(
ae2c4ac2dd39b2 Brian Foster 2017-04-26 287 struct xfs_inode *ip)
ae2c4ac2dd39b2 Brian Foster 2017-04-26 288 {
ae2c4ac2dd39b2 Brian Foster 2017-04-26 289 wait_queue_head_t *wq = bit_waitqueue(&ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 290 DEFINE_WAIT_BIT(wait, &ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 291
ae2c4ac2dd39b2 Brian Foster 2017-04-26 292 do {
2141713616c652 Ingo Molnar 2017-03-05 293 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 294 if (!xfs_iflags_test(ip, XFS_INEW))
ae2c4ac2dd39b2 Brian Foster 2017-04-26 295 break;
ae2c4ac2dd39b2 Brian Foster 2017-04-26 296 schedule();
ae2c4ac2dd39b2 Brian Foster 2017-04-26 297 } while (true);
2141713616c652 Ingo Molnar 2017-03-05 298 finish_wait(wq, &wait.wq_entry);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 299 }
ae2c4ac2dd39b2 Brian Foster 2017-04-26 300
:::::: The code at line 286 was first introduced by commit
:::::: ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 xfs: update ag iterator to support wait on new inodes
:::::: TO: Brian Foster <bfoster@redhat.com>
:::::: CC: Darrick J. Wong <darrick.wong@oracle.com>
---
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: 30278 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: fs/xfs/xfs_icache.c:286:1: warning: unused function 'xfs_inew_wait'
Date: Wed, 01 Sep 2021 20:13:33 +0800 [thread overview]
Message-ID: <202109012016.Ulrosjzh-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4023 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9e9fb7655ed585da8f468e29221f0ba194a5f613
commit: 7fdff52623b4df9c9ae665fe8bb727978c29414e xfs: remove iter_flags parameter from xfs_inode_walk_*
date: 3 months ago
config: mips-randconfig-r026-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 510e106fa8635e7f9c51c896180b971de6309b2f)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7fdff52623b4df9c9ae665fe8bb727978c29414e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7fdff52623b4df9c9ae665fe8bb727978c29414e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash block/ fs/xfs/
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 >>):
>> fs/xfs/xfs_icache.c:286:1: warning: unused function 'xfs_inew_wait'
xfs_inew_wait(
^
fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
Target: mips64-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-4b1fde8a2b/bin
clang-14: note: diagnostic msg:
Makefile arch block drivers fs include kernel mm net nr_bisected scripts source usr
vim +/xfs_inew_wait +286 fs/xfs/xfs_icache.c
ad438c4038968e Dave Chinner 2016-05-18 284
7fdff52623b4df Darrick J. Wong 2021-05-31 285 static inline void
ae2c4ac2dd39b2 Brian Foster 2017-04-26 @286 xfs_inew_wait(
ae2c4ac2dd39b2 Brian Foster 2017-04-26 287 struct xfs_inode *ip)
ae2c4ac2dd39b2 Brian Foster 2017-04-26 288 {
ae2c4ac2dd39b2 Brian Foster 2017-04-26 289 wait_queue_head_t *wq = bit_waitqueue(&ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 290 DEFINE_WAIT_BIT(wait, &ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 291
ae2c4ac2dd39b2 Brian Foster 2017-04-26 292 do {
2141713616c652 Ingo Molnar 2017-03-05 293 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 294 if (!xfs_iflags_test(ip, XFS_INEW))
ae2c4ac2dd39b2 Brian Foster 2017-04-26 295 break;
ae2c4ac2dd39b2 Brian Foster 2017-04-26 296 schedule();
ae2c4ac2dd39b2 Brian Foster 2017-04-26 297 } while (true);
2141713616c652 Ingo Molnar 2017-03-05 298 finish_wait(wq, &wait.wq_entry);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 299 }
ae2c4ac2dd39b2 Brian Foster 2017-04-26 300
:::::: The code at line 286 was first introduced by commit
:::::: ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 xfs: update ag iterator to support wait on new inodes
:::::: TO: Brian Foster <bfoster@redhat.com>
:::::: CC: Darrick J. Wong <darrick.wong@oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30278 bytes --]
next reply other threads:[~2021-09-01 12:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-01 12:13 kernel test robot [this message]
2021-09-01 12:13 ` fs/xfs/xfs_icache.c:286:1: warning: unused function 'xfs_inew_wait' 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=202109012016.Ulrosjzh-lkp@intel.com \
--to=lkp@intel.com \
--cc=dchinner@redhat.com \
--cc=djwong@kernel.org \
--cc=kbuild-all@lists.01.org \
--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 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.