From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Jan Kara <jack@suse.cz>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>
Subject: [block:for-5.15/block 48/54] mm/page-writeback.c:2036:6: error: redefinition of 'laptop_sync_completion'
Date: Wed, 11 Aug 2021 14:13:34 +0800 [thread overview]
Message-ID: <202108111419.eWtUWgpN-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4380 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.15/block
head: 99d26de2f6d79badc80f55b54bd90d4cb9d1ad90
commit: 5ed964f8e54eb3191b8b7b45aeb52672a0c995dc [48/54] mm: hide laptop_mode_wb_timer entirely behind the BDI API
config: hexagon-randconfig-r032-20210810 (attached as .config)
compiler: clang version 12.0.0
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/axboe/linux-block.git/commit/?id=5ed964f8e54eb3191b8b7b45aeb52672a0c995dc
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.15/block
git checkout 5ed964f8e54eb3191b8b7b45aeb52672a0c995dc
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the block/for-5.15/block HEAD 99d26de2f6d79badc80f55b54bd90d4cb9d1ad90 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
mm/page-writeback.c:2013:6: warning: no previous prototype for function 'laptop_mode_timer_fn' [-Wmissing-prototypes]
void laptop_mode_timer_fn(struct timer_list *t)
^
mm/page-writeback.c:2013:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void laptop_mode_timer_fn(struct timer_list *t)
^
static
mm/page-writeback.c:2026:6: warning: no previous prototype for function 'laptop_io_completion' [-Wmissing-prototypes]
void laptop_io_completion(struct backing_dev_info *info)
^
mm/page-writeback.c:2026:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void laptop_io_completion(struct backing_dev_info *info)
^
static
>> mm/page-writeback.c:2036:6: error: redefinition of 'laptop_sync_completion'
void laptop_sync_completion(void)
^
include/linux/writeback.h:345:20: note: previous definition is here
static inline void laptop_sync_completion(void) { }
^
2 warnings and 1 error generated.
--
>> mm/backing-dev.c:810:42: error: use of undeclared identifier 'laptop_mode_timer_fn'
timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
^
1 error generated.
vim +/laptop_sync_completion +2036 mm/page-writeback.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 2030
^1da177e4c3f41 Linus Torvalds 2005-04-16 2031 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 2032 * We're in laptop mode and we've just synced. The sync's writes will have
^1da177e4c3f41 Linus Torvalds 2005-04-16 2033 * caused another writeback to be scheduled by laptop_io_completion.
^1da177e4c3f41 Linus Torvalds 2005-04-16 2034 * Nothing needs to be written back anymore, so we unschedule the writeback.
^1da177e4c3f41 Linus Torvalds 2005-04-16 2035 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 @2036 void laptop_sync_completion(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 2037 {
31373d09da5b7f Matthew Garrett 2010-04-06 2038 struct backing_dev_info *bdi;
31373d09da5b7f Matthew Garrett 2010-04-06 2039
31373d09da5b7f Matthew Garrett 2010-04-06 2040 rcu_read_lock();
31373d09da5b7f Matthew Garrett 2010-04-06 2041
31373d09da5b7f Matthew Garrett 2010-04-06 2042 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list)
31373d09da5b7f Matthew Garrett 2010-04-06 2043 del_timer(&bdi->laptop_mode_wb_timer);
31373d09da5b7f Matthew Garrett 2010-04-06 2044
31373d09da5b7f Matthew Garrett 2010-04-06 2045 rcu_read_unlock();
^1da177e4c3f41 Linus Torvalds 2005-04-16 2046 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 2047
:::::: The code at line 2036 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
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: 24533 bytes --]
reply other threads:[~2021-08-11 6:14 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=202108111419.eWtUWgpN-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=clang-built-linux@googlegroups.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=johannes.thumshirn@wdc.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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