All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: LABBE Corentin <clabbe.montjoie@gmail.com>
Cc: kbuild-all@01.org, computersforpeace@gmail.com,
	dwmw2@infradead.org, josh.wu@atmel.com,
	LABBE Corentin <clabbe.montjoie@gmail.com>,
	linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference
Date: Thu, 12 Nov 2015 17:06:35 +0800	[thread overview]
Message-ID: <201511121748.2SYvLaTJ%fengguang.wu@intel.com> (raw)
In-Reply-To: <1447314579-31374-1-git-send-email-clabbe.montjoie@gmail.com>

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

Hi LABBE,

[auto build test WARNING on mtd/master]
[also build test WARNING on v4.3 next-20151112]

url:    https://github.com/0day-ci/linux/commits/LABBE-Corentin/mtd-nand-atmel_nand-fix-a-possible-NULL-dereference/20151112-155258
base:   git://git.infradead.org/linux-mtd.git master
config: arm-at91_dt_defconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/mtd/nand/atmel_nand.c: In function 'atmel_of_init_port':
>> drivers/mtd/nand/atmel_nand.c:1503:13: warning: assignment discards 'const' qualifier from pointer target type
     host->caps = of_id->data;
                ^

vim +/const +1503 drivers/mtd/nand/atmel_nand.c

  1487	
  1488	static const struct of_device_id atmel_nand_dt_ids[];
  1489	
  1490	static int atmel_of_init_port(struct atmel_nand_host *host,
  1491				      struct device_node *np)
  1492	{
  1493		u32 val;
  1494		u32 offset[2];
  1495		int ecc_mode;
  1496		struct atmel_nand_data *board = &host->board;
  1497		enum of_gpio_flags flags = 0;
  1498		const struct of_device_id *of_id;
  1499	
  1500		of_id = of_match_device(atmel_nand_dt_ids, host->dev);
  1501		if (!of_id)
  1502			return -ENODEV;
> 1503		host->caps = of_id->data;
  1504	
  1505		if (of_property_read_u32(np, "atmel,nand-addr-offset", &val) == 0) {
  1506			if (val >= 32) {
  1507				dev_err(host->dev, "invalid addr-offset %u\n", val);
  1508				return -EINVAL;
  1509			}
  1510			board->ale = val;
  1511		}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 20006 bytes --]

      parent reply	other threads:[~2015-11-12  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  7:49 [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference LABBE Corentin
2015-11-12  8:29 ` Joachim Eastwood
2015-11-12  8:29   ` Joachim Eastwood
2015-11-12  9:29   ` LABBE Corentin
2015-11-12  9:06 ` kbuild test robot [this message]

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=201511121748.2SYvLaTJ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=clabbe.montjoie@gmail.com \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=josh.wu@atmel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.