Hi Xin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on robh/for-next peter-chen-usb/for-usb-next v5.17-rc1
next-20220124]
[cannot apply to balbi-usb/testing/next]
[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/Xin-Ji/dt-bindings-usb-Add-analo...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: s390-randconfig-s031-20220124
(
https://download.01.org/0day-ci/archive/20220124/202201242014.N4URst2I-lk...)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
#
https://github.com/0day-ci/linux/commit/f75d15d4f011dabf8a702d85fb788f9ae...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Xin-Ji/dt-bindings-usb-Add-analogix-anx7411-PD-binding/20220121-142000
git checkout f75d15d4f011dabf8a702d85fb788f9aefb326e2
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash
drivers/irqchip/ drivers/usb/typec/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/usb/typec/anx7411.c:636:28: sparse: sparse: incorrect
type in assignment (different base types) @@ expected unsigned int [usertype] @@
got restricted __le32 [usertype] @@
drivers/usb/typec/anx7411.c:636:28: sparse:
expected unsigned int [usertype]
drivers/usb/typec/anx7411.c:636:28: sparse: got restricted __le32 [usertype]
vim +636 drivers/usb/typec/anx7411.c
621
622 static void anx7411_translate_payload(struct device *dev, u32 *payload,
623 u32 *pdo, int nr, const char *type)
624 {
625 int i;
626
627 dev_info(dev, "convert %s pdos to little endian format\n", type);
628 if (nr > PDO_MAX_OBJECTS) {
629 dev_err(dev, "nr(%d) exceed PDO_MAX_OBJECTS(%d)\n",
630 nr, PDO_MAX_OBJECTS);
631
632 return;
633 }
634
635 for (i = 0; i < nr; i++)
636 payload[i] = cpu_to_le32(pdo[i]);
637 }
638
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org