Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1267734
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference |
| Date | 2015-11-12 10:10 +0100 |
| Message-ID | <qtW3g-6XW-11@gated-at.bofh.it> (permalink) |
| References | <qtUNQ-5ZA-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-11-12 08:50 +0100
Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference Joachim Eastwood <manabian@gmail.com> - 2015-11-12 09:40 +0100
Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-11-12 10:30 +0100
Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference kbuild test robot <lkp@intel.com> - 2015-11-12 10:10 +0100
csiph-web