Message ID | 20240927132944.19285-4-hardevsinh.palaniya@siliconsignals.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 B4F98CDD1B1 for <linux-arm-kernel@archiver.kernel.org>; Fri, 27 Sep 2024 13:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Goe23eKv0FHtvSpyhAkaUM+ubvUAUhr62D7zl3x3PzI=; b=yi/ZWRQOFKf5yjMbSJlhY9Tet1 yGGiL5MMxy8U3PacjM+deLaGoRfpP5py2N9iYe1XECZlSrJU0AkBObRkw4KQxIuTerBtDoSn13Ftk F4PHM1biXcy8f4pL11/fahZTDPSzekNGpTOBC++hZ62zhSdB68B8XnWmDHgTPq+uUWogCPi/MtBEo kwWO/E2DXfZCW4za/s9hIbJOWcvhTpYBq0Y+n9MGAaTRO850d10eBgKawAjDy0Z4CVryNpYgNlqTH jX7QeeNbrdyYc8dRjyQFp1uHbvd3ndpx1UrSoeDAif7Te+d83K7r9wSXcpoPEvGAcUYXaqYRoeuL0 4Txd3yzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suB80-0000000BJGD-109B; Fri, 27 Sep 2024 13:35:24 +0000 Received: from mail-bmxind01on20727.outbound.protection.outlook.com ([2a01:111:f403:2021::727] helo=IND01-BMX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suB3S-0000000BILF-3ztf for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2024 13:30:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KuJe3mYmgkPYiZ4fr5scPiCKy/scFMuen5QmLYg8ZOB56010JoYm0j2j+Smwv0eQXyCUNWpvNpJrMP6VUNv+Wp+Jr0rT6AxdSsTKt3HQSKTxvV8xJTDPFCpYb2HQ2zSB60c7iP/jFyPSzD7bSQ4R3xILWn9+ZBHsxjzD0tZ9XU9+I/TJ77d4YncnNua4fdAZy3sqUvj46CFRxgmARIxZ6YYwYD5mpY/dvC3kMJLJiEP1Ml6ircR6J9ePVubRyG23Npo0pFjhahYtILBlS1gyytvZry3oFn2h62YiRwnvvUxqR5DEUmQi5TBRSxfEECMMwFM3rjF+KMcD8Bqo4MdcWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Goe23eKv0FHtvSpyhAkaUM+ubvUAUhr62D7zl3x3PzI=; b=NKbfwttm7GRG8MHnSyKm7J1QV1knroHr7sv80dJpujZEcXdbLYZ7Oj5yC03KvAKCrwsijhgPxP7dJwb7CQMeHONnhTLb+gDKEUbX435VVrAG7yOv3o7GakNOJGf/X25yFnSMjky47S6gxNTWRTxJDcaYBre/aF/ge2m5MYjYJ6DtE3pJT6DPdN1CBqex7jZohnkdNGqo2ABRB+Dot390lLCMwvumiF9FAMwzcTFRlXz0raQ+Jv7a/LbE4mPwPglJNFnNfU3sRsq3aitBorM1/Wg2qVG8ycq6ULoZYAnYzNhWlrIzCSL8AEyUH1xrAGOSNWlKB7GZIUQOpDMUfhrmqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) by PN2P287MB0416.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:116::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.22; Fri, 27 Sep 2024 13:30:31 +0000 Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac]) by PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac%5]) with mapi id 15.20.8005.021; Fri, 27 Sep 2024 13:30:30 +0000 From: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>, Han Xu <han.xu@nxp.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Haibo Chen <haibo.chen@nxp.com>, Yogesh Gaur <yogeshgaur.83@gmail.com>, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] spi: spi-nxp-fspi: Fix casting warnings Date: Fri, 27 Sep 2024 18:58:35 +0530 Message-ID: <20240927132944.19285-4-hardevsinh.palaniya@siliconsignals.io> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io> References: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|PN2P287MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: 9216d459-39be-486c-bcbe-08dcdef88ebf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: HrOIOKq+dGNdGI8iqH7nHwidBSBiUVEt2FHbpWZsnB03Fdt6j3zXpQQbVv3cXT1Ux1Lwqdz+618QVJ+LWUlmiWMxlzrmq40bCab65xpSgJLLhMD4uFV3+ax3bocRxAUd2YjUGcdJJh4/wt1c/05TQr3E939mtUBwRApkmm7jSLOJVGgfJ/RuQ5OiLyHE7GJ9QLIiHcsHB9p/e31bd6H0CU4fZFdyNkI/ARzFRV7wD2T/zUULJqPFhvJQon/OO28wN8fYlBLuPi7/utg6gtwI4qQKjmmpmovLjg4KDC2mdkOuSF90iY49eLH4o0gnZYCfl4fqBVMdViWJuu4SL2rXmcO8DR6wLHghcYolfZQDlyzhNo3tZkxATAWerXl8MiuEIyi/s8XOtFpU8d9AKpuAs2fapoJr/zpfzR6C9zy36MFSlJPtLYT5smf1wudkFc/GN0gJmFpMVjYDuF/rNV1iYDBb1Frg4ZBUsZd53hHTmZY5snWdzQPdnpHsTE9QaeAjFZamWzIRynXmsGAeacOFXEUaaihDVv5WuW+sC1k/VR3kUFEXx6kpt47TKA1jLGccNjP64R2QkYuEh2aFPe/j+v4XmQPqhIwRcIU8A6VZqNWVbYKOZ14et3tiAB+f/tYnNA+30Ts+kx1q5OvW6DC2yvPmplQLXMbV66w+ZGe/neRZgpCvbSNOJZHy9TZUKH+b6Yra4af3GHzw7eFuFs5CMGAVhs+j547DPUxXP2esBTAGOL1ELMdF0OGxoyUqK2BZUR2NyzHJy8VIeBgx7MvwtJYUgeJvjKYBMq8USkUI0HwE0HIwmkeufbtWtBuPphfi/dZBMtDRkTGNvlkemJ4R3JxreV60jfUcCOxpTMTWsLR7XM2kI5eqABBJ4ObVv4aedRR6oAnR67oeUUhetVjnraa6ejQ6qdkHqrNnvV5/wOG07UONZzhkxyO/S+Lv6twYQqkdaKLeYm06hVJdE8AYlDYfVAJAuNpKpOZi/0tVcXloY9j6OkgP9fj6uZAYtt6X303AdJ0ad57zX2672Fpq39Ep8eGVx98qmej5pEzIKIat05SkeCVt5OZTJQn4G5W/8vM/mW2JMoFOm7AYbnYME3LJFhS8rps5O+eHkCATLBIkyB84U0oR7RULNg2V/5AlOBzxeunheKiGKQNT1Bo3ZKdVvYPZnDWBLwAg18SAPk+QjD1++8leCeG39kmCN5nFN8yiEJrOpfx7ypvf7vQJvYvHleXvJhrdyiE96b5CFd5KQgjVO/t6kIUYWVZGv16yMgBJ77S1vdfEGqrdYzIb6qxIJgqokHWG9hv/G6xD/8ATirUoA9NiUn2BaR+xI6AT3p6+O8tTANNnWtFZz/HI/Xy1z8D8Tc3sw2N3cEY/utemcSFrUdnHD1npF5gCVXqmZ2uj8d5BbhD8ZHHHpd8zYg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN0P287MB2843.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5HhtWHaql2eI06n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FeS7UsoiPEn/xMy93yObTbLiya3YhiqO9P2n8ugGhfc00OclEtBPhq2D1Vmf0vAs7SyX/TzPbC6an+wPBwmxMTdvvKFy8kQsBU6rNdK8iPL3WrAhQL+F3/+Wwb2ZqUo8HkwnNGRXBSmeQ9FVeGbcscM6S0S/GdpQI6yFfUju0+Q6anIkdn9xQ/keDueE8F3V8Dvi8U4CYDSnE6jhUIIeTCKf1V3nIEarnogMuQcNbrm2gmqHDJ9JEKzOCO+92Zq58RPT0RjWBsZbzh8vr5rew8/RtbR0rvQ3UTYbiMwvHicpnyVM4Bf4vQNGDWe2XTwf4nu+gzAokdXJfTsvikjECxdWOi3Hrr3BYPHbcPY2DfUHe/3VlKlZrj5+xOdf4GIfNbIMXncvkiHy+ivFO7doAr9B/SdWB6ctv5t6WJYZuu2fpFXCz4k4KAafvaAdwQkF4olia63S+2qZOyGWFAv6Gux/B1/84H24UIqegIGJuk11SzkLSx2gm7+I2/0rUbpbhj99P6egOlVOMUDdeXLeb6Gy0iOGLiHEgo9lZgFkOSj/riGXRuPlQgBcP/QbLNpyhVlQJRQwZoI X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 9216d459-39be-486c-bcbe-08dcdef88ebf X-MS-Exchange-CrossTenant-AuthSource: PN0P287MB2843.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2024 13:30:30.9364 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: i0RMW7ifhR4Wp5tgUrMpah77JYu6+46i6YrJ81ErRvo8NhGpKbW8I4xegQHgBX5zsWOzExthBnJZnlTPsZDGnPhVsCICmtUGgaDqhhvGNZfk6555o+rHgzpmPSlJyt2B X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB0416 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240927_063043_159840_D343238F X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/4] spi: spi-fsl-dspi: Fix casting warnings
|
expand
|
On Fri, Sep 27, 2024 at 06:58:35PM +0530, Hardevsinh Palaniya wrote: > Sparse warnings: > > drivers/spi/spi-nxp-fspi.c:512:25: warning: cast from restricted __be32 > > Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> > --- > drivers/spi/spi-nxp-fspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c > index 6585b19a4866..f602bfd11426 100644 > --- a/drivers/spi/spi-nxp-fspi.c > +++ b/drivers/spi/spi-nxp-fspi.c > @@ -509,7 +509,7 @@ static int fspi_readl_poll_tout(struct nxp_fspi *f, void __iomem *base, > u32 reg; > > if (!f->devtype_data->little_endian) > - mask = (u32)cpu_to_be32(mask); > + mask = (__force u32)cpu_to_be32(mask); See patch 2's comments. Frank > > if (c) > return readl_poll_timeout(base, reg, (reg & mask), > -- > 2.43.0 >
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 6585b19a4866..f602bfd11426 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -509,7 +509,7 @@ static int fspi_readl_poll_tout(struct nxp_fspi *f, void __iomem *base, u32 reg; if (!f->devtype_data->little_endian) - mask = (u32)cpu_to_be32(mask); + mask = (__force u32)cpu_to_be32(mask); if (c) return readl_poll_timeout(base, reg, (reg & mask),
Sparse warnings: drivers/spi/spi-nxp-fspi.c:512:25: warning: cast from restricted __be32 Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> --- drivers/spi/spi-nxp-fspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)