* [mmotm:master 51/95] drivers/md/bcache/btree.c:810:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result
@ 2017-11-22 3:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-11-22 3:33 UTC (permalink / raw)
To: Tetsuo Handa
Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: f5ef1cb6700e8b570adae945b1e0bd4ab95d8a26
commit: a58c5788f373a7a45532d5b02ae3b0173d4273e7 [51/95] mm,vmscan: mark register_shrinker() as __must_check
config: i386-randconfig-i0-201747 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout a58c5788f373a7a45532d5b02ae3b0173d4273e7
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/md/bcache/btree.c: In function 'bch_btree_cache_alloc':
>> drivers/md/bcache/btree.c:810:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result [-Wunused-result]
register_shrinker(&c->shrink);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/register_shrinker +810 drivers/md/bcache/btree.c
cafe5635 Kent Overstreet 2013-03-23 805
7dc19d5a Dave Chinner 2013-08-28 806 c->shrink.count_objects = bch_mca_count;
7dc19d5a Dave Chinner 2013-08-28 807 c->shrink.scan_objects = bch_mca_scan;
cafe5635 Kent Overstreet 2013-03-23 808 c->shrink.seeks = 4;
cafe5635 Kent Overstreet 2013-03-23 809 c->shrink.batch = c->btree_pages * 2;
cafe5635 Kent Overstreet 2013-03-23 @810 register_shrinker(&c->shrink);
cafe5635 Kent Overstreet 2013-03-23 811
cafe5635 Kent Overstreet 2013-03-23 812 return 0;
cafe5635 Kent Overstreet 2013-03-23 813 }
cafe5635 Kent Overstreet 2013-03-23 814
:::::: The code at line 810 was first introduced by commit
:::::: cafe563591446cf80bfbc2fe3bc72a2e36cf1060 bcache: A block layer cache
:::::: TO: Kent Overstreet <koverstreet@google.com>
:::::: CC: Kent Overstreet <koverstreet@google.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26250 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-22 3:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22 3:33 [mmotm:master 51/95] drivers/md/bcache/btree.c:810:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox