Re: [PATCH v1 3/3] regmap: spi-avmm: Use swabXX_array() helpers

From: Andy Shevchenko
Date: Wed Aug 31 2022 - 17:19:50 EST


On Thu, Sep 01, 2022 at 04:12:01AM +0800, kernel test robot wrote:

...

> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/base/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):

Indeed, I compiled only first two patches on x86.

> >> drivers/base/regmap/regmap-spi-avmm.c:171:15: error: incompatible pointer types passing 'char *' to parameter of type 'u32 *' (aka 'unsigned int *') [-Werror,-Wincompatible-pointer-types]
> swab32_array(buf, len / 4);
> ^~~
> include/linux/swab.h:32:38: note: passing argument to parameter 'buf' here
> static inline void swab32_array(u32 *buf, unsigned int words)
> ^
> 6 warnings and 1 error generated.

While error message is valid, I believe the warnings are not related to the
patch in question and were before it.

--
With Best Regards,
Andy Shevchenko