mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Zach Brown <zach.brown@ni.com>
Cc: kbuild-all@01.org, dwmw2@infradead.org,
	computersforpeace@gmail.com, boris.brezillon@free-electrons.com,
	marek.vasut@gmail.com, richard@nod.at, cyrille.pitchen@atmel.com,
	dedekind1@gmail.com, linux-mtd@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] UBI: add debugfs file for tracking PEB state
Date: Sat, 25 Mar 2017 23:23:25 +0800	[thread overview]
Message-ID: <201703252344.iKNfSlbB%fengguang.wu@intel.com> (raw)
In-Reply-To: <1490379824-1872-1-git-send-email-zach.brown@ni.com>

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

Hi Ben,

[auto build test WARNING on v4.9-rc8]
[also build test WARNING on next-20170324]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Zach-Brown/UBI-add-debugfs-file-for-tracking-PEB-state/20170325-205127
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/mtd/ubi/debug.c: In function 'eraseblk_count_seq_show':
>> drivers/mtd/ubi/debug.c:465:19: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare]
     if (!erase_count < 0)
                      ^
>> drivers/mtd/ubi/debug.c:465:19: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]

vim +/0 +465 drivers/mtd/ubi/debug.c

   449				 "physical_block_number\terase_count\tblock_status\tread_status\n");
   450			return 0;
   451		}
   452	
   453		err = ubi_io_is_bad(ubi, *block_number);
   454		if (err)
   455			return err;
   456	
   457		spin_lock(&ubi->wl_lock);
   458	
   459		wl = ubi->lookuptbl[*block_number];
   460		if (wl)
   461			erase_count = wl->ec;
   462	
   463		spin_unlock(&ubi->wl_lock);
   464	
 > 465		if (!erase_count < 0)
   466			return 0;
   467	
   468		seq_printf(s, "%-22d\t%-11d\n", *block_number, erase_count);
   469	
   470		return 0;
   471	}
   472	
   473	static const struct seq_operations eraseblk_count_seq_ops = {

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

  reply	other threads:[~2017-03-25 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24 18:23 Zach Brown
2017-03-25 15:23 ` kbuild test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-09-20 20:45 Zach Brown
2016-09-21 11:13 ` Richard Weinberger
2016-09-21 15:47   ` Zach Brown

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=201703252344.iKNfSlbB%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@atmel.com \
    --cc=dedekind1@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    --cc=zach.brown@ni.com \
    /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®