linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 51/95] drivers/md/bcache/btree.c:810:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result
Date: Wed, 22 Nov 2017 11:33:41 +0800	[thread overview]
Message-ID: <201711221138.aOIYAWVb%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2017-11-22  3:34 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=201711221138.aOIYAWVb%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /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