linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Josef Bacik <jbacik@fb.com>
Cc: kbuild-all@01.org, linux-btrfs@vger.kernel.org
Subject: [josef-btrfs:master 9/11] fs/btrfs/extent_io.c:4707:61: warning: overflow in implicit constant conversion
Date: Fri, 21 Oct 2016 05:04:30 +0800	[thread overview]
Message-ID: <201610210526.PNbISwsH%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git master
head:   570b2b152bf32db746eb6de1a144491b5f7ca34f
commit: 2d700e7883ba3aad07fa80214b66ed142cbc5ecc [9/11] Btrfs: kill the btree_inode
config: x86_64-randconfig-x015-201642 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 2d700e7883ba3aad07fa80214b66ed142cbc5ecc
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   fs/btrfs/extent_io.c: In function 'btrfs_release_extent_buffer_page':
>> fs/btrfs/extent_io.c:4707:61: warning: overflow in implicit constant conversion [-Woverflow]
       mod_node_page_state(page_pgdat(page), NR_METADATA_BYTES, -PAGE_SIZE);
                                                                ^

vim +4707 fs/btrfs/extent_io.c

  4691		index = num_extent_pages(eb->start, eb->len);
  4692		if (index == 0)
  4693			return;
  4694	
  4695		ASSERT(!test_bit(EXTENT_BUFFER_DIRTY, &eb->bflags));
  4696		do {
  4697			index--;
  4698			page = eb->pages[index];
  4699			if (!page)
  4700				continue;
  4701			ASSERT(PagePrivate(page));
  4702			ASSERT(page->private == (unsigned long)eb);
  4703			ClearPagePrivate(page);
  4704			set_page_private(page, 0);
  4705	
  4706			if (!test_bit(EXTENT_BUFFER_DUMMY, &eb->bflags))
> 4707				mod_node_page_state(page_pgdat(page), NR_METADATA_BYTES, -PAGE_SIZE);
  4708			if (current->reclaim_state)
  4709				current->reclaim_state->reclaimed_slab++;
  4710	
  4711			/* Once for the page private. */
  4712			put_page(page);
  4713	
  4714			/* Once for the alloc_page. */
  4715			put_page(page);

---
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: 26699 bytes --]

                 reply	other threads:[~2016-10-20 21:05 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=201610210526.PNbISwsH%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=jbacik@fb.com \
    --cc=kbuild-all@01.org \
    --cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).