All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC v5 net-next 01/13] mfd: ocelot: add support for external mfd control over SPI for the VSC7512
Date: Sun, 19 Dec 2021 09:55:13 +0800	[thread overview]
Message-ID: <202112190908.GDAHmtPe-lkp@intel.com> (raw)
In-Reply-To: <20211218214954.109755-2-colin.foster@in-advantage.com>

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

Hi Colin,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20211217]
[also build test WARNING on v5.16-rc5]
[cannot apply to net-next/master lee-mfd/for-mfd-next linusw-pinctrl/devel net/master horms-ipvs/master linus/master v5.16-rc5 v5.16-rc4 v5.16-rc3]
[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/Colin-Foster/add-support-for-VSC75XX-control-over-SPI/20211219-055252
base:    c122052c3cb861b3e61a01d2c2ab9069e470663e
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20211219/202112190908.GDAHmtPe-lkp(a)intel.com/config)
compiler: m68k-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/ec7f2a8290ac0b1f74a64884f16444c56edb274f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Colin-Foster/add-support-for-VSC75XX-control-over-SPI/20211219-055252
        git checkout ec7f2a8290ac0b1f74a64884f16444c56edb274f
        # 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=m68k SHELL=/bin/bash drivers/mfd/

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/mfd/ocelot-spi.c: In function 'ocelot_spi_reg_read':
>> drivers/mfd/ocelot-spi.c:124:28: warning: variable 'ocelot_spi' set but not used [-Wunused-but-set-variable]
     124 |         struct ocelot_spi *ocelot_spi;
         |                            ^~~~~~~~~~


vim +/ocelot_spi +124 drivers/mfd/ocelot-spi.c

   118	
   119	static int ocelot_spi_reg_read(void *context, unsigned int reg,
   120				       unsigned int *val)
   121	{
   122		struct ocelot_spi_regmap_context *regmap_context = context;
   123		struct spi_transfer tx, padding, rx;
 > 124		struct ocelot_spi *ocelot_spi;
   125		struct spi_message msg;
   126		struct spi_device *spi;
   127		unsigned int addr;
   128		u8 *tx_buf;
   129	
   130		WARN_ON(!val);
   131	
   132		spi = regmap_context->spi;
   133	
   134		ocelot_spi = spi_get_drvdata(spi);
   135	
   136		addr = ocelot_spi_translate_address(reg + regmap_context->base);
   137		tx_buf = (u8 *)&addr;
   138	
   139		spi_message_init(&msg);
   140	
   141		memset(&tx, 0, sizeof(struct spi_transfer));
   142	
   143		/* Ignore the first byte for the 24-bit address */
   144		tx.tx_buf = &tx_buf[1];
   145		tx.len = 3;
   146	
   147		spi_message_add_tail(&tx, &msg);
   148	
   149		if (regmap_context->padding_bytes > 0) {
   150			u8 dummy_buf[16] = {0};
   151	
   152			memset(&padding, 0, sizeof(struct spi_transfer));
   153	
   154			/* Just toggle the clock for padding bytes */
   155			padding.len = regmap_context->padding_bytes;
   156			padding.tx_buf = dummy_buf;
   157			padding.dummy_data = 1;
   158	
   159			spi_message_add_tail(&padding, &msg);
   160		}
   161	
   162		memset(&rx, 0, sizeof(struct spi_transfer));
   163		rx.rx_buf = val;
   164		rx.len = 4;
   165	
   166		spi_message_add_tail(&rx, &msg);
   167	
   168		return spi_sync(spi, &msg);
   169	}
   170	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  reply	other threads:[~2021-12-19  1:55 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 21:49 [RFC v5 net-next 00/13] add support for VSC75XX control over SPI Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 01/13] mfd: ocelot: add support for external mfd control over SPI for the VSC7512 Colin Foster
2021-12-19  1:55   ` kernel test robot [this message]
2021-12-29 15:22   ` Lee Jones
2021-12-30  1:43     ` Colin Foster
2022-01-10 12:16       ` Lee Jones
2022-01-11  0:33         ` Colin Foster
2022-01-11 10:13           ` Lee Jones
2022-01-11 13:44             ` Mark Brown
2022-01-11 16:53               ` Colin Foster
2022-01-11 17:00                 ` Lee Jones
2022-01-11 18:28                   ` Colin Foster
2022-01-11 18:41                     ` Alexandre Belloni
2022-01-15  2:07                     ` Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 02/13] mfd: ocelot: offer an interface for MFD children to get regmaps Colin Foster
2021-12-29 15:23   ` Lee Jones
2021-12-29 19:34     ` Alexandre Belloni
2021-12-29 20:12       ` Lee Jones
2021-12-18 21:49 ` [RFC v5 net-next 03/13] net: mscc: ocelot: expose ocelot wm functions Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 04/13] net: dsa: felix: add configurable device quirks Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 05/13] net: mdio: mscc-miim: add ability to externally register phy reset control Colin Foster
2021-12-19  0:33   ` kernel test robot
2021-12-18 21:49 ` [RFC v5 net-next 06/13] net: dsa: ocelot: add external ocelot switch control Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 07/13] mfd: ocelot: enable the external switch interface Colin Foster
2021-12-29 15:24   ` Lee Jones
2021-12-18 21:49 ` [RFC v5 net-next 08/13] mfd: add interface to check whether a device is mfd Colin Foster
2021-12-29 15:25   ` Lee Jones
2021-12-30  2:04     ` Colin Foster
2021-12-30 13:43       ` Lee Jones
2021-12-30 20:12         ` Colin Foster
2022-01-10 12:23           ` Lee Jones
2021-12-18 21:49 ` [RFC v5 net-next 09/13] net: mdio: mscc-miim: add local dev variable to cleanup probe function Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 10/13] net: mdio: mscc-miim: add MFD functionality through ocelot-core Colin Foster
2021-12-19  0:13   ` kernel test robot
2021-12-18 21:49 ` [RFC v5 net-next 11/13] mfd: ocelot-core: add control for the external mdio interface Colin Foster
2021-12-29 15:26   ` Lee Jones
2021-12-18 21:49 ` [RFC v5 net-next 12/13] pinctrl: ocelot: add MFD functionality through ocelot-core Colin Foster
2021-12-18 21:49 ` [RFC v5 net-next 13/13] mfd: ocelot: add ocelot-pinctrl as a supported child interface Colin Foster
2021-12-29 15:26   ` Lee Jones

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=202112190908.GDAHmtPe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.