From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: 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/backing-dev.c:810:42: error: 'laptop_mode_timer_fn' undeclared
Date: Wed, 11 Aug 2021 14:10:53 +0800 [thread overview]
Message-ID: <202108111444.avE7XZjN-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3869 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: sh-randconfig-r034-20210810 (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.3.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=gcc-10.3.0 make.cross O=build_dir ARCH=sh 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 >>):
In file included from include/linux/workqueue.h:9,
from include/linux/mm_types.h:16,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/fs.h:15,
from include/linux/backing-dev.h:13,
from mm/backing-dev.c:5:
mm/backing-dev.c: In function 'bdi_alloc':
>> mm/backing-dev.c:810:42: error: 'laptop_mode_timer_fn' undeclared (first use in this function)
810 | timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/timer.h:115:29: note: in definition of macro '__init_timer'
115 | init_timer_key((_timer), (_fn), (_flags), #_timer, &__key);\
| ^~~
mm/backing-dev.c:810:2: note: in expansion of macro 'timer_setup'
810 | timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
| ^~~~~~~~~~~
mm/backing-dev.c:810:42: note: each undeclared identifier is reported only once for each function it appears in
810 | timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/timer.h:115:29: note: in definition of macro '__init_timer'
115 | init_timer_key((_timer), (_fn), (_flags), #_timer, &__key);\
| ^~~
mm/backing-dev.c:810:2: note: in expansion of macro 'timer_setup'
810 | timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
| ^~~~~~~~~~~
vim +/laptop_mode_timer_fn +810 mm/backing-dev.c
794
795 struct backing_dev_info *bdi_alloc(int node_id)
796 {
797 struct backing_dev_info *bdi;
798
799 bdi = kzalloc_node(sizeof(*bdi), GFP_KERNEL, node_id);
800 if (!bdi)
801 return NULL;
802
803 if (bdi_init(bdi)) {
804 kfree(bdi);
805 return NULL;
806 }
807 bdi->capabilities = BDI_CAP_WRITEBACK | BDI_CAP_WRITEBACK_ACCT;
808 bdi->ra_pages = VM_READAHEAD_PAGES;
809 bdi->io_pages = VM_READAHEAD_PAGES;
> 810 timer_setup(&bdi->laptop_mode_wb_timer, laptop_mode_timer_fn, 0);
811 return bdi;
812 }
813 EXPORT_SYMBOL(bdi_alloc);
814
---
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: 32236 bytes --]
next reply other threads:[~2021-08-11 6:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 6:10 kernel test robot [this message]
2021-08-11 7:46 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=202108111444.avE7XZjN-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--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
all inboxes | Powered by JetHome®