From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90A1F4C61 for ; Wed, 31 Aug 2022 20:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661976748; x=1693512748; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vn/WIXt6p2KiwXZee2jPKaJHrFuZK0viV3WvtlWXyqQ=; b=djwqUrxmenXuD6Bm6uguHUn8ppWmT7rUdDbh4NReU9vZ5Q0UwUIxMGS4 wBaB0V9XqhajreUEN3Cn+z+Mlmth0N5gcDPZduFUXCEwc/35Fq4yDu1yp OWLWRDHPCZDIUz5x7nj/ud7tVSTFKV0g4q0xQtqAO6A9GZNd2EW1QlaRw HBvOa56MoOyxuo51nkDJMWLNuRRsIiZkvWr7vUPnynHqkDTvSx9nXvGiX 8T66MtWmgRdX+JAyxsc4t48SQgRre8XstBKV/++GFCzMzl/QdIEDqC8j3 cW74sRKzUTxQ0sDraPdAgDEwVxc4lbXYDVIfH2UjJ6db29zXYqnEnC0SI g==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="296816049" X-IronPort-AV: E=Sophos;i="5.93,279,1654585200"; d="scan'208";a="296816049" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 13:12:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,279,1654585200"; d="scan'208";a="645355358" Received: from lkp-server02.sh.intel.com (HELO 811e2ceaf0e5) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 31 Aug 2022 13:12:26 -0700 Received: from kbuild by 811e2ceaf0e5 with local (Exim 4.96) (envelope-from ) id 1oTU4X-0000fW-1U; Wed, 31 Aug 2022 20:12:25 +0000 Date: Thu, 1 Sep 2022 04:12:01 +0800 From: kernel test robot To: Andy Shevchenko , Mark Brown , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Linus Walleij Subject: Re: [PATCH v1 3/3] regmap: spi-avmm: Use swabXX_array() helpers Message-ID: <202209010444.n3YAkNP1-lkp@intel.com> References: <20220831145407.78166-3-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831145407.78166-3-andriy.shevchenko@linux.intel.com> Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on broonie-regmap/for-next] [also build test ERROR on next-20220831] [cannot apply to linus/master v6.0-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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/swab-Add-array-operations/20220831-225514 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next config: hexagon-randconfig-r045-20220831 (https://download.01.org/0day-ci/archive/20220901/202209010444.n3YAkNP1-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1c66bacd6cde1f37d6ac96c45b389666a1334ec0) 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/intel-lab-lkp/linux/commit/783618682b27b5d06605086a386d64d355914b38 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/swab-Add-array-operations/20220831-225514 git checkout 783618682b27b5d06605086a386d64d355914b38 # save the config file mkdir build_dir && cp config build_dir/.config 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 All errors (new ones prefixed by >>): In file included from drivers/base/regmap/regmap-spi-avmm.c:8: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/base/regmap/regmap-spi-avmm.c:8: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/base/regmap/regmap-spi-avmm.c:8: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> 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. vim +171 drivers/base/regmap/regmap-spi-avmm.c 168 169 static void br_swap_words_32(char *buf, unsigned int len) 170 { > 171 swab32_array(buf, len / 4); 172 } 173 -- 0-DAY CI Kernel Test Service https://01.org/lkp