Re: [PATCH v2 1/1] mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables

From: kbuild test robot
Date: Thu Jun 22 2017 - 02:06:26 EST


Hi Cyrille,

[auto build test WARNING on spi-nor/next]
[cannot apply to v4.12-rc6]
[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/Cyrille-Pitchen/mtd-spi-nor-parse-Serial-Flash-Discoverable-Parameters-SFDP-tables/20170622-081417
base: git://github.com/spi-nor/linux next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/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 >>):

In file included from drivers/mtd/devices/st_spi_fsm.c:29:0:
>> drivers/mtd/devices/serial_flash_cmds.h:16:0: warning: "SPINOR_OP_RDSR2" redefined
#define SPINOR_OP_RDSR2 0x35

In file included from drivers/mtd/devices/st_spi_fsm.c:22:0:
include/linux/mtd/spi-nor.h:44:0: note: this is the location of the previous definition
#define SPINOR_OP_RDSR2 0x3f /* Read status register 2 */


vim +/SPINOR_OP_RDSR2 +16 drivers/mtd/devices/serial_flash_cmds.h

5549fbd5 Lee Jones 2014-03-20 1 /*
5549fbd5 Lee Jones 2014-03-20 2 * Generic/SFDP Flash Commands and Device Capabilities
5549fbd5 Lee Jones 2014-03-20 3 *
5549fbd5 Lee Jones 2014-03-20 4 * Copyright (C) 2013 Lee Jones <lee.jones@xxxxxxxxxx>
5549fbd5 Lee Jones 2014-03-20 5 *
5549fbd5 Lee Jones 2014-03-20 6 * This code is free software; you can redistribute it and/or modify
5549fbd5 Lee Jones 2014-03-20 7 * it under the terms of the GNU General Public License version 2 as
5549fbd5 Lee Jones 2014-03-20 8 * published by the Free Software Foundation.
5549fbd5 Lee Jones 2014-03-20 9 *
5549fbd5 Lee Jones 2014-03-20 10 */
5549fbd5 Lee Jones 2014-03-20 11
5549fbd5 Lee Jones 2014-03-20 12 #ifndef _MTD_SERIAL_FLASH_CMDS_H
5549fbd5 Lee Jones 2014-03-20 13 #define _MTD_SERIAL_FLASH_CMDS_H
5549fbd5 Lee Jones 2014-03-20 14
5549fbd5 Lee Jones 2014-03-20 15 /* Generic Flash Commands/OPCODEs */
92d3af9a Brian Norris 2014-04-08 @16 #define SPINOR_OP_RDSR2 0x35
92d3af9a Brian Norris 2014-04-08 17 #define SPINOR_OP_WRVCR 0x81
92d3af9a Brian Norris 2014-04-08 18 #define SPINOR_OP_RDVCR 0x85
5549fbd5 Lee Jones 2014-03-20 19
5549fbd5 Lee Jones 2014-03-20 20 /* JEDEC Standard - Serial Flash Discoverable Parmeters (SFDP) Commands */
92d3af9a Brian Norris 2014-04-08 21 #define SPINOR_OP_WRITE 0x02 /* PAGE PROGRAM */
92d3af9a Brian Norris 2014-04-08 22 #define SPINOR_OP_WRITE_1_1_2 0xa2 /* DUAL INPUT PROGRAM */
92d3af9a Brian Norris 2014-04-08 23 #define SPINOR_OP_WRITE_1_2_2 0xd2 /* DUAL INPUT EXT PROGRAM */
92d3af9a Brian Norris 2014-04-08 24 #define SPINOR_OP_WRITE_1_1_4 0x32 /* QUAD INPUT PROGRAM */

:::::: The code at line 16 was first introduced by commit
:::::: 92d3af9ac369faf3bd2c409cf5218510500af214 mtd: st_spi_fsm: replace FLACH_CMD_* with SPINOR_OP_*

:::::: TO: Brian Norris <computersforpeace@xxxxxxxxx>
:::::: CC: Brian Norris <computersforpeace@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip