Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2117506rbb; Tue, 27 Feb 2024 11:07:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTt3qYG5MD7bhZo5nuxsjHM45Tm7EmcbB8Jhm+a4MLO/G8uSo0+7JfBRWUUpweZ6zGOKNwiPG3kRNB5BwyMjkeP4Fdn5R9NZU0oQE+Vw== X-Google-Smtp-Source: AGHT+IFJ8hKkzxmuaeFOQnJEC6v6NelYwruxRx5jpo2Q0Q7AR2pUqwryyFieZ/NT9B+JzeHBPhq+ X-Received: by 2002:a05:620a:2056:b0:787:c780:a767 with SMTP id d22-20020a05620a205600b00787c780a767mr2479498qka.9.1709060823891; Tue, 27 Feb 2024 11:07:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709060823; cv=pass; d=google.com; s=arc-20160816; b=trEknud3vs2SuuyimnKL35u1KVQTRMJ0hdK16grrnoYl/Ijq3CvXSVZODBoeLGTe86 e8OHKxloB1IABoE/K4ONdnDD7/9cWKMmnOg5LhyzPGiEX9IVUJZSRfimKax5yc0kfRGW pYr7l3x7u55bS0HMFYqOlvcAtgk5/sHbggUqFOUXTYu3s2X6eliPlHIJQZooQIYo2rbU WfmGIV9vom4MaYaYP1TJECFsKNElDrJ7xhLTvHUNlnZlGTeNdMsBskuDfBpk7uQkb/LF E7GBWiVdvCUWfxc5fdVG5rnN/P5wLzvShEepDbBjtuei3+hD92ffp+Eo4vw5azXg3bhy m89A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=QWIGqeOV9TzmX2gvnl4x4i0ewm1Q5pwo94q2v2LY4Xo=; fh=sjQpSLGhFIqLpX//DW1yCBBWwy2MGmWf06GSFeqhWkA=; b=T6LQ9UQ5lu0RA/QOQAtbuM4w4AFV4GzgjbujhQB9GEqOrdl2RZQpmwArTdYHxHPB2w C+F5NEY8F0eW6AdxYw8qFfHCUjKkEletq+qynXo0RKwwjz7d/KcsbgLAp9qlHzKUZLhC 7dt97+bRameGlQVCIwMywn4h4S3DiwCEbUYl6EnkxFJCaU0Kdj0vP+j8MFBftLH5jmol cdufaoFuKWxY5YE3RxlhGQIFzGDvRPaswBGF8Ht3n5qvft7CQVVqzuRq1jN+XzlaRDfX R820JapR3TGVbriLSuZjusW5bxrSm4C9+04FT77RCJhiI4zmExtk4sDo6E1wJHPSJyjC CTYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=OVFmRDrY; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-83893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id oo20-20020a05620a531400b00787b070ce5esi7751138qkn.631.2024.02.27.11.07.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:07:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=OVFmRDrY; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-83893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AC7691C28B18 for ; Tue, 27 Feb 2024 19:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32C8414AD2E; Tue, 27 Feb 2024 19:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="OVFmRDrY" Received: from relay.smtp-ext.broadcom.com (unknown [192.19.166.228]) (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 D29765103E for ; Tue, 27 Feb 2024 19:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.166.228 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060606; cv=none; b=sxei3HbUN9i1o6KFNtcMxZUk17z5MdmsXDpSJwlsQQAHwkZakfctkOFWWTgcQou6ES1fmv0fTGqsIvJtgfJDDHxwZpIP2utj+kxnmakgaXEd7V+Y58krZ4OQcuXBA2ZTc4mR556U8fE4y+5Vhl25i/ZK4ZISquglaCP8Mtgxr/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060606; c=relaxed/simple; bh=BoWABUn1BHPA1kyndGRUMStiFm/fHNE3QtKwM9H3nBM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MMa7A8/YNVkmtyNp2D6bDBdTs3kMysIqmf7XutGCr8t4uo5M17swnWeP3SOoJ7S+aqQC3cayiX5csNslimL3YE2IqDiHKOKBK6HAJmOUp8Z/3kdhNC037Zm3z+XFgXC/NjMJp+0f9kWnToV99YkhbAEjLO/ynAADP4ZrJX/fmgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=OVFmRDrY; arc=none smtp.client-ip=192.19.166.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 38C09C002447; Tue, 27 Feb 2024 11:03:18 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 38C09C002447 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1709060598; bh=BoWABUn1BHPA1kyndGRUMStiFm/fHNE3QtKwM9H3nBM=; h=From:To:Cc:Subject:Date:From; b=OVFmRDrYgzqLGPly1HT6HYrshnsYYT48BvU8jVn9UBewjWVkzpDazgtEEbk4qMIVc jgT0+K0xciQkv++/5yukLJWftEr14alsLbKIh9UOWrICPqIBE+IHh5QuuBe4JLf79H cCLrw4v5+scKOo4maI5BkHnpVe1iPl0UYpJJxxNQ= Received: from bcacpedev-irv-3.lvn.broadcom.net (bcacpedev-irv-3.lvn.broadcom.net [10.173.232.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id B9BB418041CAC4; Tue, 27 Feb 2024 11:03:16 -0800 (PST) From: William Zhang To: Linux MTD List , Linux ARM List , Broadcom Kernel List Cc: f.fainelli@gmail.com, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, miquel.raynal@bootlin.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, William Zhang , kernel test robot , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Brian Norris , Richard Weinberger , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Florian Fainelli , David Regan Subject: [PATCH] mtd: rawnand: brcmnand: fix sparse warnings Date: Tue, 27 Feb 2024 11:02:57 -0800 Message-Id: <20240227190258.200929-1-william.zhang@broadcom.com> X-Mailer: git-send-email 2.37.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix the following sparse warnings: sparse warnings: (new ones prefixed by >>) >> drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:79:41: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c:80:17: sparse: sparse: cast removes address space '__iomem' of expression Fixes: c52c16d1bee5 ("mtd: rawnand: brcmnand: Add BCMBCA read data bus interface") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402270940.gmVLVRg0-lkp@intel.com/ Signed-off-by: William Zhang --- drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c b/drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c index 7ad3e7a98f97..ea534850b97a 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c @@ -76,8 +76,8 @@ static void bcmbca_read_data_bus(struct brcmnand_soc *soc, * and dest address, which is incompatible with nand cache. Fallback * to the memcpy_fromio in such case */ - if (bcmbca_nand_is_buf_aligned((void *)flash_cache, buffer)) - memcpy((void *)buffer, (void *)flash_cache, fc_words * 4); + if (bcmbca_nand_is_buf_aligned((void __force *)flash_cache, buffer)) + memcpy((void *)buffer, (void __force *)flash_cache, fc_words * 4); else memcpy_fromio((void *)buffer, flash_cache, fc_words * 4); } -- 2.37.3