From: kernel test robot <lkp@intel.com>
To: Michael Walle <michael@walle.cc>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org,
Tudor Ambarus <tudor.ambarus@microchip.com>,
Pratyush Yadav <p.yadav@ti.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
yaliang.wang@windriver.com, Michael Walle <michael@walle.cc>
Subject: Re: [PATCH v2 14/32] mtd: spi-nor: winbond: unify function names
Date: Mon, 21 Feb 2022 03:07:42 +0800 [thread overview]
Message-ID: <202202210301.BeYSA7Ny-lkp@intel.com> (raw)
In-Reply-To: <20220218113607.1360020-15-michael@walle.cc>
Hi Michael,
I love your patch! Perhaps something to improve:
[auto build test WARNING on mtd/spi-nor/next]
[also build test WARNING on tip/master linux/master linus/master v5.17-rc4 next-20220217]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Michael-Walle/mtd-spi-nor-move-vendor-specific-code-into-vendor-modules/20220220-192832
base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-nor/next
config: alpha-randconfig-r034-20220220 (https://download.01.org/0day-ci/archive/20220221/202202210301.BeYSA7Ny-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/c09cbfe090ed6015773211aad1bd2387dd958b7a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Walle/mtd-spi-nor-move-vendor-specific-code-into-vendor-modules/20220220-192832
git checkout c09cbfe090ed6015773211aad1bd2387dd958b7a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/mtd/spi-nor/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mtd/spi-nor/winbond.c:141: warning: expecting prototype for winbond_set_4byte_addr_mode(). Prototype was for winbond_nor_set_4byte_addr_mode() instead
vim +141 drivers/mtd/spi-nor/winbond.c
7b8b22010af95f Boris Brezillon 2020-03-13 131
7b8b22010af95f Boris Brezillon 2020-03-13 132 /**
7b8b22010af95f Boris Brezillon 2020-03-13 133 * winbond_set_4byte_addr_mode() - Set 4-byte address mode for Winbond flashes.
7b8b22010af95f Boris Brezillon 2020-03-13 134 * @nor: pointer to 'struct spi_nor'.
7b8b22010af95f Boris Brezillon 2020-03-13 135 * @enable: true to enter the 4-byte address mode, false to exit the 4-byte
7b8b22010af95f Boris Brezillon 2020-03-13 136 * address mode.
7b8b22010af95f Boris Brezillon 2020-03-13 137 *
7b8b22010af95f Boris Brezillon 2020-03-13 138 * Return: 0 on success, -errno otherwise.
7b8b22010af95f Boris Brezillon 2020-03-13 139 */
c09cbfe090ed60 Michael Walle 2022-02-18 140 static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable)
7b8b22010af95f Boris Brezillon 2020-03-13 @141 {
7b8b22010af95f Boris Brezillon 2020-03-13 142 int ret;
7b8b22010af95f Boris Brezillon 2020-03-13 143
7b8b22010af95f Boris Brezillon 2020-03-13 144 ret = spi_nor_set_4byte_addr_mode(nor, enable);
7b8b22010af95f Boris Brezillon 2020-03-13 145 if (ret || enable)
7b8b22010af95f Boris Brezillon 2020-03-13 146 return ret;
7b8b22010af95f Boris Brezillon 2020-03-13 147
7b8b22010af95f Boris Brezillon 2020-03-13 148 /*
7b8b22010af95f Boris Brezillon 2020-03-13 149 * On Winbond W25Q256FV, leaving 4byte mode causes the Extended Address
7b8b22010af95f Boris Brezillon 2020-03-13 150 * Register to be set to 1, so all 3-byte-address reads come from the
7b8b22010af95f Boris Brezillon 2020-03-13 151 * second 16M. We must clear the register to enable normal behavior.
7b8b22010af95f Boris Brezillon 2020-03-13 152 */
7b8b22010af95f Boris Brezillon 2020-03-13 153 ret = spi_nor_write_enable(nor);
7b8b22010af95f Boris Brezillon 2020-03-13 154 if (ret)
7b8b22010af95f Boris Brezillon 2020-03-13 155 return ret;
7b8b22010af95f Boris Brezillon 2020-03-13 156
7b8b22010af95f Boris Brezillon 2020-03-13 157 ret = spi_nor_write_ear(nor, 0);
7b8b22010af95f Boris Brezillon 2020-03-13 158 if (ret)
7b8b22010af95f Boris Brezillon 2020-03-13 159 return ret;
7b8b22010af95f Boris Brezillon 2020-03-13 160
7b8b22010af95f Boris Brezillon 2020-03-13 161 return spi_nor_write_disable(nor);
7b8b22010af95f Boris Brezillon 2020-03-13 162 }
7b8b22010af95f Boris Brezillon 2020-03-13 163
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next prev parent reply other threads:[~2022-02-20 19:07 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-18 11:35 [PATCH v2 00/32] mtd: spi-nor: move vendor specific code into vendor modules Michael Walle
2022-02-18 11:35 ` [PATCH v2 01/32] mtd: spi-nor: atmel: unify function names Michael Walle
2022-02-18 11:35 ` [PATCH v2 02/32] mtd: spi-nor: catalyst: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 03/32] mtd: spi-nor: eon: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 04/32] mtd: spi-nor: esmt: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 05/32] mtd: spi-nor: everspin: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 06/32] mtd: spi-nor: fujitsu: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 07/32] mtd: spi-nor: gigadevice: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 08/32] mtd: spi-nor: intel: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 09/32] mtd: spi-nor: issi: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 10/32] mtd: spi-nor: macronix: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 11/32] mtd: spi-nor: micron-st: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 12/32] mtd: spi-nor: spansion: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 13/32] mtd: spi-nor: sst: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 14/32] mtd: spi-nor: winbond: " Michael Walle
2022-02-20 19:07 ` kernel test robot [this message]
2022-02-18 11:35 ` [PATCH v2 15/32] mtd: spi-nor: xilinx: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 16/32] mtd: spi-nor: xmc: " Michael Walle
2022-02-18 11:35 ` [PATCH v2 17/32] mtd: spi-nor: slightly refactor the spi_nor_setup() Michael Walle
2022-02-18 11:35 ` [PATCH v2 18/32] mtd: spi-nor: allow a flash to define its own ready() function Michael Walle
2022-02-18 11:35 ` [PATCH v2 19/32] mtd: spi-nor: export more function to be used in vendor modules Michael Walle
2022-02-18 11:35 ` [PATCH v2 20/32] mtd: spi-nor: guard _page_size parameter in S3AN_INFO() Michael Walle
2022-02-18 11:35 ` [PATCH v2 21/32] mtd: spi-nor: move all xilinx specifics into xilinx.c Michael Walle
2022-02-18 11:35 ` [PATCH v2 22/32] mtd: spi-nor: xilinx: rename vendor specific functions and defines Michael Walle
2022-02-18 11:35 ` [PATCH v2 23/32] mtd: spi-nor: xilinx: correct the debug message Michael Walle
2022-02-18 11:35 ` [PATCH v2 24/32] mtd: spi-nor: move all micron-st specifics into micron-st.c Michael Walle
2022-02-18 11:36 ` [PATCH v2 25/32] mtd: spi-nor: micron-st: convert USE_FSR to a manufacturer flag Michael Walle
2022-02-18 11:36 ` [PATCH v2 26/32] mtd: spi-nor: micron-st: rename vendor specific functions and defines Michael Walle
2022-02-18 11:36 ` [PATCH v2 27/32] mtd: spi-nor: spansion: slightly rework control flow in late_init() Michael Walle
2022-02-18 11:36 ` [PATCH v2 28/32] mtd: spi-nor: move all spansion specifics into spansion.c Michael Walle
2022-02-18 11:36 ` [PATCH v2 29/32] mtd: spi-nor: spansion: convert USE_CLSR to a manufacturer flag Michael Walle
2022-02-18 11:36 ` [PATCH v2 30/32] mtd: spi-nor: spansion: rename vendor specific functions and defines Michael Walle
2022-02-18 11:36 ` [PATCH v2 31/32] mtd: spi-nor: slightly change code style in spi_nor_sr_ready() Michael Walle
2022-02-18 11:36 ` [PATCH v2 32/32] mtd: spi-nor: renumber flags Michael Walle
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=202202210301.BeYSA7Ny-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=michael@walle.cc \
--cc=miquel.raynal@bootlin.com \
--cc=p.yadav@ti.com \
--cc=richard@nod.at \
--cc=tudor.ambarus@microchip.com \
--cc=vigneshr@ti.com \
--cc=yaliang.wang@windriver.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®