All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Łukasz Stelmach" <l.stelmach@samsung.com>,
	"Andrew Lunn" <andrew@lunn.ch>,
	jim.cromie@gmail.com, "Heiner Kallweit" <hkallweit1@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Kukjin Kim" <kgene@kernel.org>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	"Russell King" <linux@armlinux.org.uk>
Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v12 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver
Date: Sat, 8 May 2021 04:39:36 +0800	[thread overview]
Message-ID: <202105080427.kD09Vtav-lkp@intel.com> (raw)
In-Reply-To: <20210507140110.6323-4-l.stelmach@samsung.com>

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

Hi "Łukasz,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/ukasz-Stelmach/dt-bindings-vendor-prefixes-Add-asix-prefix/20210507-230201
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 4a52dd8fefb45626dace70a63c0738dbd83b7edb
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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/ff94c8ffb12909c7f9451a35a027154de2b1ca54
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review ukasz-Stelmach/dt-bindings-vendor-prefixes-Add-asix-prefix/20210507-230201
        git checkout ff94c8ffb12909c7f9451a35a027154de2b1ca54
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/byteorder/big_endian.h:5,
                    from arch/arc/include/uapi/asm/byteorder.h:14,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arc/include/asm/bitops.h:373,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/spi/spi.h:10,
                    from drivers/net/ethernet/asix/ax88796c_spi.c:12:
   drivers/net/ethernet/asix/ax88796c_spi.c: In function 'axspi_read_reg':
>> drivers/net/ethernet/asix/ax88796c_spi.c:95:21: error: passing argument 1 of '__swab16s' from incompatible pointer type [-Werror=incompatible-pointer-types]
      95 |  le16_to_cpus(ax_spi->rx_buf);
   include/uapi/linux/byteorder/big_endian.h:97:38: note: in definition of macro '__le16_to_cpus'
      97 | #define __le16_to_cpus(x) __swab16s((x))
         |                                      ^
   drivers/net/ethernet/asix/ax88796c_spi.c:95:2: note: in expansion of macro 'le16_to_cpus'
      95 |  le16_to_cpus(ax_spi->rx_buf);
         |  ^~~~~~~~~~~~
   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:13,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/arc/include/uapi/asm/byteorder.h:14,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arc/include/asm/bitops.h:373,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/spi/spi.h:10,
                    from drivers/net/ethernet/asix/ax88796c_spi.c:12:
   include/uapi/linux/swab.h:240:37: note: expected '__u16 *' {aka 'short unsigned int *'} but argument is of type 'u8 *' {aka 'unsigned char *'}
     240 | static inline void __swab16s(__u16 *p)
         |                              ~~~~~~~^
   cc1: some warnings being treated as errors


vim +/__swab16s +95 drivers/net/ethernet/asix/ax88796c_spi.c

    10	
    11	#include <linux/string.h>
  > 12	#include <linux/spi/spi.h>
    13	
    14	#include "ax88796c_spi.h"
    15	
    16	const u8 ax88796c_rx_cmd_buf[5] = {AX_SPICMD_READ_RXQ, 0xFF, 0xFF, 0xFF, 0xFF};
    17	const u8 ax88796c_tx_cmd_buf[4] = {AX_SPICMD_WRITE_TXQ, 0xFF, 0xFF, 0xFF};
    18	
    19	/* driver bus management functions */
    20	int axspi_wakeup(struct axspi_data *ax_spi)
    21	{
    22		int ret;
    23	
    24		ax_spi->cmd_buf[0] = AX_SPICMD_EXIT_PWD;	/* OP */
    25		ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1);
    26		if (ret)
    27			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    28		return ret;
    29	}
    30	
    31	int axspi_read_status(struct axspi_data *ax_spi, struct spi_status *status)
    32	{
    33		int ret;
    34	
    35		/* OP */
    36		ax_spi->cmd_buf[0] = AX_SPICMD_READ_STATUS;
    37		ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)&status, 3);
    38		if (ret)
    39			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    40		else
    41			le16_to_cpus(&status->isr);
    42	
    43		return ret;
    44	}
    45	
    46	int axspi_read_rxq(struct axspi_data *ax_spi, void *data, int len)
    47	{
    48		struct spi_transfer *xfer = ax_spi->spi_rx_xfer;
    49		int ret;
    50	
    51		memcpy(ax_spi->cmd_buf, ax88796c_rx_cmd_buf, 5);
    52	
    53		xfer->tx_buf = ax_spi->cmd_buf;
    54		xfer->rx_buf = NULL;
    55		xfer->len = ax_spi->comp ? 2 : 5;
    56		xfer->bits_per_word = 8;
    57		spi_message_add_tail(xfer, &ax_spi->rx_msg);
    58	
    59		xfer++;
    60		xfer->rx_buf = data;
    61		xfer->tx_buf = NULL;
    62		xfer->len = len;
    63		xfer->bits_per_word = 8;
    64		spi_message_add_tail(xfer, &ax_spi->rx_msg);
    65		ret = spi_sync(ax_spi->spi, &ax_spi->rx_msg);
    66		if (ret)
    67			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    68	
    69		return ret;
    70	}
    71	
    72	int axspi_write_txq(const struct axspi_data *ax_spi, void *data, int len)
    73	{
    74		return spi_write(ax_spi->spi, data, len);
    75	}
    76	
    77	u16 axspi_read_reg(struct axspi_data *ax_spi, u8 reg)
    78	{
    79		int ret;
    80		int len = ax_spi->comp ? 3 : 4;
    81	
    82		ax_spi->cmd_buf[0] = 0x03;	/* OP code read register */
    83		ax_spi->cmd_buf[1] = reg;	/* register address */
    84		ax_spi->cmd_buf[2] = 0xFF;	/* dumy cycle */
    85		ax_spi->cmd_buf[3] = 0xFF;	/* dumy cycle */
    86		ret = spi_write_then_read(ax_spi->spi,
    87					  ax_spi->cmd_buf, len,
    88					  ax_spi->rx_buf, 2);
    89		if (ret) {
    90			dev_err(&ax_spi->spi->dev,
    91				"%s() failed: ret = %d\n", __func__, ret);
    92			return 0xFFFF;
    93		}
    94	
  > 95		le16_to_cpus(ax_spi->rx_buf);
    96	
    97		return *(u16 *)ax_spi->rx_buf;
    98	}
    99	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 67599 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH net-next v12 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver
Date: Sat, 08 May 2021 04:39:36 +0800	[thread overview]
Message-ID: <202105080427.kD09Vtav-lkp@intel.com> (raw)
In-Reply-To: <20210507140110.6323-4-l.stelmach@samsung.com>

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

Hi "Łukasz,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/ukasz-Stelmach/dt-bindings-vendor-prefixes-Add-asix-prefix/20210507-230201
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 4a52dd8fefb45626dace70a63c0738dbd83b7edb
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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/ff94c8ffb12909c7f9451a35a027154de2b1ca54
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review ukasz-Stelmach/dt-bindings-vendor-prefixes-Add-asix-prefix/20210507-230201
        git checkout ff94c8ffb12909c7f9451a35a027154de2b1ca54
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/byteorder/big_endian.h:5,
                    from arch/arc/include/uapi/asm/byteorder.h:14,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arc/include/asm/bitops.h:373,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/spi/spi.h:10,
                    from drivers/net/ethernet/asix/ax88796c_spi.c:12:
   drivers/net/ethernet/asix/ax88796c_spi.c: In function 'axspi_read_reg':
>> drivers/net/ethernet/asix/ax88796c_spi.c:95:21: error: passing argument 1 of '__swab16s' from incompatible pointer type [-Werror=incompatible-pointer-types]
      95 |  le16_to_cpus(ax_spi->rx_buf);
   include/uapi/linux/byteorder/big_endian.h:97:38: note: in definition of macro '__le16_to_cpus'
      97 | #define __le16_to_cpus(x) __swab16s((x))
         |                                      ^
   drivers/net/ethernet/asix/ax88796c_spi.c:95:2: note: in expansion of macro 'le16_to_cpus'
      95 |  le16_to_cpus(ax_spi->rx_buf);
         |  ^~~~~~~~~~~~
   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:13,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/arc/include/uapi/asm/byteorder.h:14,
                    from include/asm-generic/bitops/le.h:6,
                    from arch/arc/include/asm/bitops.h:373,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/spi/spi.h:10,
                    from drivers/net/ethernet/asix/ax88796c_spi.c:12:
   include/uapi/linux/swab.h:240:37: note: expected '__u16 *' {aka 'short unsigned int *'} but argument is of type 'u8 *' {aka 'unsigned char *'}
     240 | static inline void __swab16s(__u16 *p)
         |                              ~~~~~~~^
   cc1: some warnings being treated as errors


vim +/__swab16s +95 drivers/net/ethernet/asix/ax88796c_spi.c

    10	
    11	#include <linux/string.h>
  > 12	#include <linux/spi/spi.h>
    13	
    14	#include "ax88796c_spi.h"
    15	
    16	const u8 ax88796c_rx_cmd_buf[5] = {AX_SPICMD_READ_RXQ, 0xFF, 0xFF, 0xFF, 0xFF};
    17	const u8 ax88796c_tx_cmd_buf[4] = {AX_SPICMD_WRITE_TXQ, 0xFF, 0xFF, 0xFF};
    18	
    19	/* driver bus management functions */
    20	int axspi_wakeup(struct axspi_data *ax_spi)
    21	{
    22		int ret;
    23	
    24		ax_spi->cmd_buf[0] = AX_SPICMD_EXIT_PWD;	/* OP */
    25		ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1);
    26		if (ret)
    27			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    28		return ret;
    29	}
    30	
    31	int axspi_read_status(struct axspi_data *ax_spi, struct spi_status *status)
    32	{
    33		int ret;
    34	
    35		/* OP */
    36		ax_spi->cmd_buf[0] = AX_SPICMD_READ_STATUS;
    37		ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)&status, 3);
    38		if (ret)
    39			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    40		else
    41			le16_to_cpus(&status->isr);
    42	
    43		return ret;
    44	}
    45	
    46	int axspi_read_rxq(struct axspi_data *ax_spi, void *data, int len)
    47	{
    48		struct spi_transfer *xfer = ax_spi->spi_rx_xfer;
    49		int ret;
    50	
    51		memcpy(ax_spi->cmd_buf, ax88796c_rx_cmd_buf, 5);
    52	
    53		xfer->tx_buf = ax_spi->cmd_buf;
    54		xfer->rx_buf = NULL;
    55		xfer->len = ax_spi->comp ? 2 : 5;
    56		xfer->bits_per_word = 8;
    57		spi_message_add_tail(xfer, &ax_spi->rx_msg);
    58	
    59		xfer++;
    60		xfer->rx_buf = data;
    61		xfer->tx_buf = NULL;
    62		xfer->len = len;
    63		xfer->bits_per_word = 8;
    64		spi_message_add_tail(xfer, &ax_spi->rx_msg);
    65		ret = spi_sync(ax_spi->spi, &ax_spi->rx_msg);
    66		if (ret)
    67			dev_err(&ax_spi->spi->dev, "%s() failed: ret = %d\n", __func__, ret);
    68	
    69		return ret;
    70	}
    71	
    72	int axspi_write_txq(const struct axspi_data *ax_spi, void *data, int len)
    73	{
    74		return spi_write(ax_spi->spi, data, len);
    75	}
    76	
    77	u16 axspi_read_reg(struct axspi_data *ax_spi, u8 reg)
    78	{
    79		int ret;
    80		int len = ax_spi->comp ? 3 : 4;
    81	
    82		ax_spi->cmd_buf[0] = 0x03;	/* OP code read register */
    83		ax_spi->cmd_buf[1] = reg;	/* register address */
    84		ax_spi->cmd_buf[2] = 0xFF;	/* dumy cycle */
    85		ax_spi->cmd_buf[3] = 0xFF;	/* dumy cycle */
    86		ret = spi_write_then_read(ax_spi->spi,
    87					  ax_spi->cmd_buf, len,
    88					  ax_spi->rx_buf, 2);
    89		if (ret) {
    90			dev_err(&ax_spi->spi->dev,
    91				"%s() failed: ret = %d\n", __func__, ret);
    92			return 0xFFFF;
    93		}
    94	
  > 95		le16_to_cpus(ax_spi->rx_buf);
    96	
    97		return *(u16 *)ax_spi->rx_buf;
    98	}
    99	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67599 bytes --]

  reply	other threads:[~2021-05-07 20:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20210507140113eucas1p21220dba3bb049a157df40fe778e39893@eucas1p2.samsung.com>
2021-05-07 14:01 ` [PATCH net-next v12 0/3] AX88796C SPI Ethernet Adapter Łukasz Stelmach
2021-05-07 14:01   ` Łukasz Stelmach
     [not found]   ` <CGME20210507140113eucas1p13dc9798741a7ecad721f07efe543b56d@eucas1p1.samsung.com>
2021-05-07 14:01     ` [PATCH net-next v12 1/3] dt-bindings: vendor-prefixes: Add asix prefix Łukasz Stelmach
2021-05-07 14:01       ` Łukasz Stelmach
     [not found]   ` <CGME20210507140113eucas1p135a114200d194a8fa9d52987b7725fa4@eucas1p1.samsung.com>
2021-05-07 14:01     ` [PATCH net-next v12 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Łukasz Stelmach
2021-05-07 14:01       ` Łukasz Stelmach
     [not found]   ` <CGME20210507140114eucas1p23b94a5fdf2d50813999a6d4a9a44731f@eucas1p2.samsung.com>
2021-05-07 14:01     ` [PATCH net-next v12 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver Łukasz Stelmach
2021-05-07 14:01       ` Łukasz Stelmach
2021-05-07 20:39       ` kernel test robot [this message]
2021-05-07 20:39         ` kernel test robot

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=202105080427.kD09Vtav-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=hkallweit1@gmail.com \
    --cc=jim.cromie@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=kuba@kernel.org \
    --cc=l.stelmach@samsung.com \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=robh+dt@kernel.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.