From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C87CDC7EE23 for ; Sun, 11 Jun 2023 09:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JQVCLkr3Lkb9rmK9RUSqVE/KNnQjK06+o3qhcjTDsP0=; b=rK8ce2DFwUtAgD CvkLPdnbCSRI7jwUHMJG8kk3GvpQ3EUUtcQ5Xs2h/9Dr5hOOb5RmqEBT194exo54rOX54QHyfdb3k jvc7X6LSDNvDV+hNCp6fmBP57zAAirbvWiI8gH1Rp9vMS/nzrxN39hDppeCVDlVqxokjRFnysK/Nm N3Dk9EXn90x4ptwIhjLJaXqsvuTSf1RoAubFFXnSfxlQv3qk0ZnDWTh+ZjaCzGUC5IqmdNMScK02M rwY8+nWYH4lVThWBVq4kGtPSZZvZw3Bgv8+/cU8MNTiE4KCC0/+Q/0hqynx4YpasX34Jwioh8UM/v kfPJWEAWysD+RWir35IA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8Hmu-000VPR-0s; Sun, 11 Jun 2023 09:55:08 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8Hmq-000VOd-34; Sun, 11 Jun 2023 09:55:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686477304; x=1718013304; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9xFoy8YY2bEQ2njjFFeAn0PsmVd441wz0nYBOh9GH98=; b=Fskg9Oh2LIFL4+IXoo8J0JdJawwEzXrRrKblug215NH7QZ2SeU6it5aN PyFKOy5myC14qYi8yoSriVWwVvPu2yZX3pHf6AITIKOfIlAedkHc0Pbvc Ip9cVSZfwQ3EgvI6Bvx3rZVETplm/efvFV1f3JYTjzfGr3YQcmsvVxZI3 Qs93AoafhEg/c2lYN12+G0yOyOLv9TgGuOzPbXuNCI51UlAN40UshsSYf K/R8WBDr32R24fVHuOMqzj3niX6TQ8tw09k7evk0vFrowHej0DoNGy+X9 ISx9Dy5hAzd+70IETQuqrOF6KLsfjGWqYpkppDfsTfKJskf8/HY0UlU0H w==; X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="444215442" X-IronPort-AV: E=Sophos;i="6.00,234,1681196400"; d="scan'208";a="444215442" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2023 02:55:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="1040991129" X-IronPort-AV: E=Sophos;i="6.00,234,1681196400"; d="scan'208";a="1040991129" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 11 Jun 2023 02:54:57 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q8Hmi-000An6-2x; Sun, 11 Jun 2023 09:54:56 +0000 Date: Sun, 11 Jun 2023 17:54:09 +0800 From: kernel test robot To: William Zhang , Broadcom Kernel List , Linux MTD List Cc: oe-kbuild-all@lists.linux.dev, f.fainelli@gmail.com, rafal@milecki.pl, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, computersforpeace@gmail.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, William Zhang , Miquel Raynal , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Richard Weinberger , Kamal Dasu , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 10/12] mtd: rawnand: brcmnand: Add BCMBCA read data bus interface Message-ID: <202306111741.1Hs0TVE4-lkp@intel.com> References: <20230606231252.94838-11-william.zhang@broadcom.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230606231252.94838-11-william.zhang@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230611_025505_063104_F5CF3F5A X-CRM114-Status: GOOD ( 14.82 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Hi William, kernel test robot noticed the following build warnings: [auto build test WARNING on mtd/nand/next] [also build test WARNING on mtd/mtd/next mtd/mtd/fixes linus/master v6.4-rc5 next-20230609] [cannot apply to robh/for-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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/William-Zhang/mtd-rawnand-brcmnand-Fix-ECC-level-field-setting-for-v7-2-controller/20230607-071834 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next patch link: https://lore.kernel.org/r/20230606231252.94838-11-william.zhang%40broadcom.com patch subject: [PATCH 10/12] mtd: rawnand: brcmnand: Add BCMBCA read data bus interface config: arm-randconfig-s052-20230611 (https://download.01.org/0day-ci/archive/20230611/202306111741.1Hs0TVE4-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0 reproduce: mkdir -p ~/bin 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-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/2fce7300f3e21ad0cb55442e1acfeaf60f41bf7d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review William-Zhang/mtd-rawnand-brcmnand-Fix-ECC-level-field-setting-for-v7-2-controller/20230607-071834 git checkout 2fce7300f3e21ad0cb55442e1acfeaf60f41bf7d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/mtd/nand/raw/brcmnand/ If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306111741.1Hs0TVE4-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:83:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *flash_cache @@ got void [noderef] __iomem *flash_cache @@ drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:83:48: sparse: expected void *flash_cache drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:83:48: sparse: got void [noderef] __iomem *flash_cache drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:84:25: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:84:25: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:84:25: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:86:25: sparse: sparse: cast removes address space '__iomem' of expression >> drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:86:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void * @@ drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:86:25: sparse: expected void const volatile [noderef] __iomem *from drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:86:25: sparse: got void * vim +86 drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c 70 71 static void bcmbca_read_data_bus(struct brcmnand_soc *soc, 72 void __iomem *flash_cache, u32 *buffer, 73 int fc_words, bool is_param) 74 { 75 int i; 76 77 if (!is_param) { 78 /* 79 * memcpy can do unaligned aligned access depending on source 80 * and dest address, which is incompatible with nand cache. Fallback 81 * to the memcpy for io version 82 */ > 83 if (bcmbca_nand_is_buf_aligned(flash_cache, buffer)) 84 memcpy((void *)buffer, (void *)flash_cache, fc_words * 4); 85 else > 86 memcpy_fromio((void *)buffer, (void *)flash_cache, fc_words * 4); 87 } else { 88 /* Flash cache has same endian as the host for parameter pages */ 89 for (i = 0; i < fc_words; i++, buffer++) 90 *buffer = __raw_readl(flash_cache + i * 4); 91 } 92 } 93 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/