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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED016C25B7C for ; Tue, 28 May 2024 12:22:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 852FA6B0095; Tue, 28 May 2024 08:22:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 803546B0099; Tue, 28 May 2024 08:22:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A41E6B009A; Tue, 28 May 2024 08:22:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4840D6B0095 for ; Tue, 28 May 2024 08:22:55 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F2ADD40914 for ; Tue, 28 May 2024 12:22:54 +0000 (UTC) X-FDA: 82167718668.07.09C09D7 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by imf26.hostedemail.com (Postfix) with ESMTP id 59DD2140002 for ; Tue, 28 May 2024 12:22:52 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TVspQ7WN; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716898973; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=gbkviaIVTtszkRMoyXOdVrBS2j0n1xa6zT0WIlMkCdg=; b=bqoAdS274GoGwKKuPL0Qzb00IGMRKGEZtH8KdXwWbt6g0hr8eAAlmysb4NWA/faKXO7Nz3 EmPatp3G97Xr72RjmyEJSED45AJwl8QTx7oy5LV0ZR+zplVt4SO9wM3Ylh8gjTulquC04o Oz8vqlkuqLYVgnnBWMxeRxdRE6TiPPs= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TVspQ7WN; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716898973; a=rsa-sha256; cv=none; b=nO+HpubD4QWLhYhw1uel0hEjKxpYUSGLlhDMsbY6i2tyvDEiApbZGn+Foh6QDX6RCGeURt h8q5YU8Of8sm+akt96lSaBgT+FPgtMlGp8NvbGzQk59ZFENQMo9wwc1Qmt8RdVj+AfmDfL BWJ6ZFouA2ppBiojxfW7YWoTAmOrnfc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716898972; x=1748434972; h=date:from:to:cc:subject:message-id:mime-version; bh=KjKbFlMb+jJc1eeLU4kns7MHmvkZGq7XLqQ26l4Xvxw=; b=TVspQ7WNuIl2B+CdpFQD/leQ0PteqKK+mJl/yMH5w3qspC3HgMBmrD90 sLLl3C1knxNsZJIZfZDify9vQj2yX0Xcr2MWFUQ88RzeL7xeeg1Dx+lgL 7xscB2s6w2ctfuIKIGMGqwlrNmDUGBwRjgR0ZCU/EGGhDfJxLbZzB9Vhv obJQ6CaDXtm0Li+LDkJp9ntqbIs+sP3mBFXLun0B8FFqzXXZE+EYbjIdC lIk0WkdmyMV05REpT9vXtLkCneOMa2UETQAHzNda/IsrHRC1LELJuuA23 WYOXe5h7Jx2Qbr0hOr/JUHVGiYWRiCbhlQbOi5fwPX/UZoaz0GBCks5sM w==; X-CSE-ConnectionGUID: +ffIDo0SR4KFVY6C+kSk4g== X-CSE-MsgGUID: hw1OaKx9SIiB6EGcUt1UDA== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="17029189" X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="17029189" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 05:22:50 -0700 X-CSE-ConnectionGUID: odPOU+1tT4eHOFFvbTZ1MQ== X-CSE-MsgGUID: /Rw084JcRcqTnz4fvXatjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="35077969" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 28 May 2024 05:22:49 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sBvqo-000CAZ-1i; Tue, 28 May 2024 12:22:46 +0000 Date: Tue, 28 May 2024 20:22:39 +0800 From: kernel test robot To: Sascha Hauer Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Miquel Raynal Subject: [linux-next:master 1849/2075] drivers/mtd/nand/raw/mxc_nand.c:1479:26: sparse: sparse: incorrect type in initializer (different address spaces) Message-ID: <202405282036.maEDO54Q-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 59DD2140002 X-Stat-Signature: 6afgmc1jnwea9ghqbaw68scifbz8dkri X-Rspam-User: X-HE-Tag: 1716898972-538431 X-HE-Meta: U2FsdGVkX1807sai5FiOJSm3/9ZtoUw3QB3ArAlHhTs0hpPqQ0Wi/DdHjPqrcnDjklNMuIR0tYAms5BPQoPJLWJAajToqjzwILQ9/EEmem2o92SmQEk7Rsx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Jfyhq95GHr7aVhZRxm8oQLig4k1xu1N1DdK36wdOdnhUbhiZA1iwEWSi9srqNahhTrS/CEzT8FYWiupauTZ775UWfzv7bTbstFwkcYpV1Q4ou+GBNvFsxWaU6tgF7aKr9dxK/FqfC90ZaRrgo11 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6dc544b66971c7f9909ff038b62149105272d26a commit: 2ba9d29c44cc046b46c275d654fa946a0781a540 [1849/2075] mtd: nand: mxc_nand: support software ECC config: nios2-randconfig-r133-20240528 (https://download.01.org/0day-ci/archive/20240528/202405282036.maEDO54Q-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240528/202405282036.maEDO54Q-lkp@intel.com/reproduce) 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/202405282036.maEDO54Q-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/mtd/nand/raw/mxc_nand.c:1479:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short [noderef] [usertype] __iomem *t @@ got void *buf @@ drivers/mtd/nand/raw/mxc_nand.c:1479:26: sparse: expected unsigned short [noderef] [usertype] __iomem *t drivers/mtd/nand/raw/mxc_nand.c:1479:26: sparse: got void *buf >> drivers/mtd/nand/raw/mxc_nand.c:1516:65: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *buf @@ got void [noderef] __iomem * @@ drivers/mtd/nand/raw/mxc_nand.c:1516:65: sparse: expected void *buf drivers/mtd/nand/raw/mxc_nand.c:1516:65: sparse: got void [noderef] __iomem * drivers/mtd/nand/raw/mxc_nand.c:1527:87: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *buf @@ got void [noderef] __iomem * @@ drivers/mtd/nand/raw/mxc_nand.c:1527:87: sparse: expected void *buf drivers/mtd/nand/raw/mxc_nand.c:1527:87: sparse: got void [noderef] __iomem * vim +1479 drivers/mtd/nand/raw/mxc_nand.c 1476 1477 static void memff16_toio(void *buf, int n) 1478 { > 1479 __iomem u16 *t = buf; 1480 int i; 1481 1482 for (i = 0; i < (n >> 1); i++) 1483 __raw_writew(0xffff, t++); 1484 } 1485 1486 static void copy_page_to_sram(struct mtd_info *mtd, const void *buf, int buf_len) 1487 { 1488 struct nand_chip *this = mtd_to_nand(mtd); 1489 struct mxc_nand_host *host = nand_get_controller_data(this); 1490 unsigned int no_subpages = mtd->writesize / 512; 1491 int oob_per_subpage, i; 1492 1493 oob_per_subpage = (mtd->oobsize / no_subpages) & ~1; 1494 1495 /* 1496 * During a page write the i.MX NAND controller will read 512b from 1497 * main_area0 SRAM, then oob_per_subpage bytes from spare0 SRAM, then 1498 * 512b from main_area1 SRAM and so on until the full page is written. 1499 * For software ECC we want to have a 1:1 mapping between the raw page 1500 * data on the NAND chip and the view of the NAND core. This is 1501 * necessary to make the NAND_CMD_RNDOUT read the data it expects. 1502 * To accomplish this we have to write the data in the order the controller 1503 * reads it. This is reversed in copy_page_from_sram() below. 1504 * 1505 * buf_len can either be the full page including the OOB or user data only. 1506 * When it's user data only make sure that we fill up the rest of the 1507 * SRAM with 0xff. 1508 */ 1509 for (i = 0; i < no_subpages; i++) { 1510 int now = min(buf_len, 512); 1511 1512 if (now) 1513 memcpy16_toio(host->main_area0 + i * 512, buf, now); 1514 1515 if (now < 512) > 1516 memff16_toio(host->main_area0 + i * 512 + now, 512 - now); 1517 1518 buf += 512; 1519 buf_len -= now; 1520 1521 now = min(buf_len, oob_per_subpage); 1522 if (now) 1523 memcpy16_toio(host->spare0 + i * host->devtype_data->spare_len, 1524 buf, now); 1525 1526 if (now < oob_per_subpage) 1527 memff16_toio(host->spare0 + i * host->devtype_data->spare_len + now, 1528 oob_per_subpage - now); 1529 1530 buf += oob_per_subpage; 1531 buf_len -= now; 1532 } 1533 } 1534 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki