From patchwork Fri Sep 27 13:28:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 831153 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01on2108.outbound.protection.outlook.com [40.107.239.108]) (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 B228E282FA; Fri, 27 Sep 2024 13:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.239.108 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443822; cv=fail; b=FiM7cXJKgeoIKFfnhWtZfxJam0TmCO95uJXLpDPK+AJj43rP5Zx+2vDg766SMAnvxKmXuP6NCFV26Qutp7taW0zMGtl6vzGNkFmHP8ccCNUfMq+SNKoztpUKNcIfoyo0OyzNxjDE+93QurvOuQDpDcVg5KLrFMo/f9DhbEI9Ves= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443822; c=relaxed/simple; bh=4chnCKyzv2sEXSKHSTb4BCQorGpo5sKPLmYZg3Fy43g=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ZmhIRq81Bv4vzUkNB7pCrf3PQ9T4wq3V8Kw0g3uWcqpYTnOJAsTQq/0unPxpQgFcsaKmxrR/jsD2AAnaouffS3VUjZuG2HV3SIMrzoh24Ds6rV+cLVkcLL2ZfwCfvhSockZYol+ZVvLTe2XSoU2dGpl0vqJUlZbmHoSoHMCkVww= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.239.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mgosJhtkBttDe05nDEVz3wt+T07t5qp3VAyROcV2ZEXSBoVvsfUy5Ggj1L1pS8mgX2SwDhchmBYJ5K3NNq/GYj2EELLPUBcR4lGHXFvxWpLnMc+cFwct35Ymba8tAsMpTnTiUlu69wLeBfuLPoKVhL7V3oJGF+L82aydaIe5QZaZcyFNclv4GbuF8FzahN+SwNnvH5xhg5ckM4+5iyt11iRRQFmJ/dA9tgXa8kvGKVqzUbHKGVMYOZcm38lrbZ56jpUp7D3/y4H29P0V59G/5/0su+bJV2Xnil76iSkfrwIMmUGcFOAsjTWYzBr3+efnL3TfXbdsMpoX7WOZFpTv0w== 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=kHWe78rzSD6866GSL3KwDIyM6RpSgfXpWu8ZOMo9KfI=; b=GMlhHl6FfUAuwur8RAuaD9m81wBYagT4TMxEtdhiyaWPpOR2Hthr9QPsvOqg0lVab1z3q/h4f0exJxDApS4THC+hrR+YAYEemoUKpOMiSphklnqSOeLVbBGla0VY4jz00mpRfRqyF+lCu8ZGg5495Ru6cwZ6r7Gc3jipsm+KfcLx89PWd0q1JUAe2MvMLL2kidaV9dDrHCxOZgnEAPfcqvEokGGtbBuwVM07RIQeiV1JfsqomdyUf59mVrJzmylZCGXd1BTyo1oTSLqTzcCmrCP09vB738xZas29jQ6aWU84anjhc9k9sNxrwgSffSJWBpDCymXf9ikXQgvSSQ8hIw== 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:17 +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:17 +0000 From: Hardevsinh Palaniya To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya , Han Xu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Haibo Chen , Yogesh Gaur , imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] spi: spi-fsl-dspi: Fix casting warnings Date: Fri, 27 Sep 2024 18:58:32 +0530 Message-ID: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|PN2P287MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: e2fbfce6-f327-4b9d-20f7-08dcdef88674 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: IJE5/o2SIl8/70tAtfI8R5FJTvemps7lsgHb7Ihr5V7TvQVjzPIQJ+96GQGhNoFERoKyHrgmQzLx9aN3lLyxRGmbogX9svcyyMz7ISs9wYdJqbxI+i7wvUzpnxAN7RgpspvFfttcKoG+4NFogntf9iQLYkZZAKa5KOAs4gltOEnKcdRzpRTEJBuD6koFwDD/JYV4/W3reejTss35ZXMYxCuWSFc4gs/bVV7FFumc9EFLigpEtV+M6Hv60j9oHQsqMtfhbmdKwum+XgExw5VBHUMKLQGG+avjCOQgWwjxz/8OJx4uc5Ny2mXZyaGOpI9wKXHjdFkrWMuyVJbkk/JpurtJNHgFCnzRr36BntK7EIT4/kayGtTnng0tfcCPIjvzkthDTz6pQBg+LIxAyQo+cIHsDKcHl9tofFTZdmTLArartlbc08uFfgrBALcK6NBr/+I4fSfLIJDKaX0hP3bFYw0ADc6zfx6Kbv0kk9ttWYE+bNU/rWAVdp8hI6i4dz6iYciTn8bCehGtj3+mtr07zISGXDUSfL8wBMqe0xdR4OK2kD/cTGsfZLj9OACUjpmeC3zEWf/tRSb46YhnId3k7VXBY0YINEdf8aoZMUsslb8nUyv08RqHxdp+tRbhb6n6+KcZBcpQWtTgS7F5AvDe2Gbww15jwmcEzEmSWNih6Liffrp2CoafYLYgOy1Phak8FjVrM2PLxu+FmhsI6zNNI6zOWpWkUuUjGKFNKaU9KH7U2rKy6D9S0Pe9MmtmWTwssdVibTII5zwCxomMWB0Zz0bNWZdzgkwbhElpV53fvtaFOqCvFPz8oo3S/BcH+aJJU/69G7lD/0FJ2kVcSbAUs2dkcxHAYIXfNGozOcz1A4M3WYUHSi6rC0xYbw7U51lvaNhbM9uihPKZRL4svoRP2WD8LCmoCkd4kxzR4ccrirKEEEhzB+yFaXHmoFRyaQOTxcu8hbsSTLqS6/lU/AhrMSltNsamINY6HLYcC8koiM2eZouq+o5WZFHeN2yojUxVI5QCFEgRHXbrRvDICoLVzyw817S8m/3sIfZNzXsqFpBIcVOm5P/X2Tj/Syba9lfVgpxUMrGkAiTqoXVwPX7qoMTewAPJNJlqRLO+A/FgLuVjgIbJD6S/18cM+JwBEcKq27Ent4yQUFQe/i3I+o8EnwX19cS/YGo+v9TI3WVKTecL+10zVeYQJkcqkvYELsMlFWObaMCtqYiUn3JaWyIsHCVPmR6/M3eUDrLwCfXbLmHF4INZXTGIbSwSIRJWhWvFosdBV7Pf/DpRCDc4Azn6TNWlhYxQt8k1nY8DnaKKlBfQh67LxlxQ9r/h8SU47Y598Eo2zgqkn4zPitYgkSBbTWVyHZk3XIProCSL4cj1TEnmPJG58sfsShF15rqM0u6wDmdXoSSK+4vjzy+NBUHsBQ== 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: tGg3JI9YJ+x8ch9laoLs6J0gdxCv/GoI14Q4PhrI1sLRW6eaZG4hssorrrA3r51hBXOVjZ+18qyPZeBMTBb6tBQ2aAKGG3DOXytXBJ+bJQcSAZjYParWP8SVDUCPpYof3R9IsnuDqkQUN7nzhK7KWYEWEnqHcLJfhymvib6sHHYJbspKsk7l2uIwDd7cRzLdKpUE0Ur77vib7bAerDtByAN3lgQ2YuR1YphXPnJEsClT38lWTT+tlJT2rQXfymg42BBGHthVzd6Qruxsj3Gx/A47N+6Po02kZNNYfxynNlHuEJ1XolT2CZ+334QefPkjTU++NCVoVS9oPdL2hr7j5a1HIm7fLYDx3+F3xOnaviSBLeSyaNrXvpsbKXxsaZxMpl3pKqsL7CvFx6ZcSVs4m6xQxHo4WsKSUIhguD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npA/DyBAEf2fr+z8Il+QAG7guj8uOwBqj+qETja8xlM1MkxPkO483kASiMLbukL5oOPNzzcz9Yadg7HRwFrevw5jEJG5Apdr7hlZz86/SZaaJ2Arh6AcR3fb7MyFjBtKc0zvhBkzUbx/d/c7DIy1Z8BhL X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: e2fbfce6-f327-4b9d-20f7-08dcdef88674 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:17.0014 (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: Qmwdm+ytDueCqnoMm4Z67HR5xszrqqOpMuHV3WehjVQw6dfJaijnKBr7X2Y2YGpnoFX5fbbL2b1mYj15j6FUnoq21eZANWjhZEkG+n78SUalDZmgD5DAzLOZata02ekN X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB0416 Sparse warnings: drivers/spi/spi-fsl-dspi.c:283:17: warning: incorrect type in assignment (different base types) drivers/spi/spi-fsl-dspi.c:283:17: expected unsigned int [usertype] drivers/spi/spi-fsl-dspi.c:283:17: got restricted __be32 [usertype] drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32 drivers/spi/spi-fsl-dspi.c:295:17: warning: incorrect type in assignment (different base types) drivers/spi/spi-fsl-dspi.c:295:17: expected unsigned int [usertype] drivers/spi/spi-fsl-dspi.c:295:17: got restricted __be16 [usertype] drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16 drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16 drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16 drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16 Signed-off-by: Hardevsinh Palaniya --- drivers/spi/spi-fsl-dspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 191de1917f83..e34588679514 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -280,25 +280,25 @@ static void dspi_native_dev_to_host(struct fsl_dspi *dspi, u32 rxdata) static void dspi_8on32_host_to_dev(struct fsl_dspi *dspi, u32 *txdata) { - *txdata = cpu_to_be32(*(u32 *)dspi->tx); + *txdata = (__force u32)cpu_to_be32(*(u32 *)dspi->tx); dspi->tx += sizeof(u32); } static void dspi_8on32_dev_to_host(struct fsl_dspi *dspi, u32 rxdata) { - *(u32 *)dspi->rx = be32_to_cpu(rxdata); + *(u32 *)dspi->rx = be32_to_cpu((__force __be32)rxdata); dspi->rx += sizeof(u32); } static void dspi_8on16_host_to_dev(struct fsl_dspi *dspi, u32 *txdata) { - *txdata = cpu_to_be16(*(u16 *)dspi->tx); + *txdata = (__force u32)cpu_to_be16(*(u16 *)dspi->tx); dspi->tx += sizeof(u16); } static void dspi_8on16_dev_to_host(struct fsl_dspi *dspi, u32 rxdata) { - *(u16 *)dspi->rx = be16_to_cpu(rxdata); + *(u16 *)dspi->rx = be16_to_cpu((__force __be16)rxdata); dspi->rx += sizeof(u16); } From patchwork Fri Sep 27 13:28:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 831490 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01on2120.outbound.protection.outlook.com [40.107.239.120]) (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 A58EE282FA; Fri, 27 Sep 2024 13:30:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.239.120 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443827; cv=fail; b=Cbqw/Ei50zwuYE4BrMoH49NtNGP72AL8zgwOzJQ3Ndy+3N3seK5pR30HbobIlQ50a7BzTzmOuJvrA8BNckfuIJxKgJfZYrWL1CpJmiuoNMGr0RV5KAI9Cxy+DLmL0YL7e1mnCJhZT0s1ni9eBwlNr9xbMLMGQf7+eyg1ukQHquQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443827; c=relaxed/simple; bh=sC3u/JZ6EzKAf5NGXqXFmTxIwXabFsp5XKGQLYZdALw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=l5WoEVN0PC//vTrnk/CuCtOQ1t7kl4DdZAA1im/e9MFY/0K44L6NaBWeFIigvFeJnvOXZ7NnKVocbFuEKWDZMXkLxpmdkllmmV2478pJWxELeEy5TTaT7770HkZUIBXAqddD0klh8s/peDC55a5EqZdMdPIw1sZOU9h/ScbcKw0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.239.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZL2srfy9OE56f1n46WEGbvjRBTxnuFDe1HsovgMJPTCGIBTlzlDWc9e0UkeJYQBg7kO3zl2K4gLGdx0eYAKeXe4/DPiEpQVE/kpIkDya4EN3x+M+4R9DZR8/tmlfsHR4VJVLnz+dJBnc1rvm5Wi4YIwldCbr5Sm3m102dbusuNn6RE7Utp+sTskDMO4lyYbUv88jvZl9Tq7Qt1sGHqOftnak9mBBOFrwFo7ml3j4w5oHzrxWmYgNgHWS4ogbPXOYqHR+IDO/duecyWO+Rzr85oH+vuelwDXx631lnk9Kqa4fLGoLQVY0YOzYBrxrRUy3fkRLipQfmgPhaqbF+Ua1OA== 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=8B+ctj4wnj1B8HkzVG4H9VH0Yeeb7LHUmfY3cablIj0=; b=tPHT029O/uPdO19wH0uPsS+MI3isYhzmbkhNoSuwi9P6YDMYIIzZrdK1PzOi1fiOTQJL0GGtyLN/AdFNPUAU9hH153Dh3gV/cVBJRLpMGv+x2i+3MGVBI4L9AFa/rS09NDYvC2Cpd1KZ8YKjIijODDNHzO0ExnCWokYaLvWyayFeElzG7UUjxNQjk/cySrVjnaXOCjqo9bjSq5W7Ys2uMQ+trAUxM9Hw7TGL7iPn7BseKocU38xW1TtrxmiWLrkA54MsFpW3zJPNrJ8FSMhs3SZQH9gu4tt4cBx+Wi1VEK7zCG/NBsFr7hB1nVtcfniZUJKow4i0pWID0+U8Y0ey4Q== 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:22 +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:22 +0000 From: Hardevsinh Palaniya To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya , Han Xu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Haibo Chen , Yogesh Gaur , imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] spi: spi-fsl-qspi: Fix casting warnings Date: Fri, 27 Sep 2024 18:58:33 +0530 Message-ID: <20240927132944.19285-2-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> X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|PN2P287MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: dcebe16e-98a3-4e8a-6569-08dcdef889de 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: aVLg4mXO8TIK+QSlOd23eCAHfSR6o5A83RsQMtkbxJj89seqf+7jR85DKzwc53gE1CIZqhG7J/JGRyI74+LXmdtd6GGG3W7OjFnWJpFmdiV47q0zABmHRFECpyc+RHYEVRljSplAfcEjg8XQqPqHC/sqFXBzPiZepH3ZvH7Y2/DUS6XhSTcA9rAo3NUPvDnoW2I0Fwy5FkRHg6WXMp59ze1mD7VdrBaYJNa0LYVlyo5bfRmV9mR2HrQnnsm+fWiOACxN0YanIDLVZtpHxB5hGcpC5PG1I276vPjHtq0h7rL/hEaKWjPyBX9SdkXTWy/jlkj6/KSUe0Hm2wQgP16uo2m92UZjAqB8KbcsjnDIk98A97GCJ5nKaKCOqbaKlUZ5fCSrMdgIDUW7se1fodeEwoHkqjiYL3sGOpXx/tqvOPMfYsVQLdNBkkOMNZE5zsb2/qLNPhy0Y2ZHWuReg6Ajasoe7KcDihFKO8fnBQlhOh8AkarGUdWDfjxMtVnNBMs5d/J9pwptM2XPYvlpXGc5pZL/cSrr08cZwMuaXRW398mR6rtr8Ze2i56UOxTIjHNFNEvw6iptH6nDNLcx17IypjN3g0CzX3d/lPpgLmxxOb9nhsTM9hqCseJCrgXyJRgPoU0Rxz4wfbQVoyI2vbACgFc04AT8U479qm0Sw9LPBn+y1UMhcUvufL+wDLCy+oGx9Kt4qip8CJvh4L1n0yNBuxdld1yuYRAw+D7R1hIlIzoZpr83eHgzyFjDRCukJxBPrMygAHb4Ua4mvqCgSYB+ipxvoDrhsiM6GYGJsV7UjrPsd6hQI3IDIP6sn8S0x6wjNgkVayiEl5OmtElWvSFW6nUJuB6TDC3ZEBpElaseKuvsETVZ3AOpypbcUWhOBXm6UDazH39Ifps6uhqffTuXQw+V6Th2m0PQ8I8yP07RRumttTshsFKQT4o/rAParWSKLmbAR7DitQfSyB9Q2tJ+ZNTM3C6PR5AvvQra969p5+HojSwJbEUeBI/TzyGNGaeYLrdzz4q8dUlApc/HozmRloN9du30xdzepiF+/sJoj35eoCTo+MbAkY2RvLjnqwy0YpYjsgW8u1BKIbk6tBkovbPeqB8V5JcnLrAIzYE1FnzD50uds2cXcMhRa0XS8TH0/X5q/UhZK897x8uuAtawvK6knxTmMXtzKlKzddp+Ep6RJCcK4CMPrRdXyY4nsrgljvuDDofwCYO76Nm//3RRIkFFfBQwOWtf3vuUjyMi6wm01F476mAoFifeeix457DzcHS/YG4D358VqnH9Par3uIAmYTIO3FC3oDkPvMUtIsIWo8KJReLQy0IlJcAmMkqoQFIdUZY4LMKG7blRSKBpQLCEaLqdpM5qMO7H2+Ub/PqxvX4GxMpCTnsJRLL2nHXOqr7BUrFhdcFdzz9X2jrWDw== 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: Hi7DaCLQo0R/MP94T0K+ZnL37zhFnWesIUERNAsFWRyfHhBfs+mJyw5Lqk3o303Zwsal0aJhaX8ci92GTBSbtcF2ir11kXuS3hv0rJ0E/IX8jnvk0oNhqM1wCNMJkmJoEpyEblBAQMe8DyFPIUiv4u1pH2TWx6xh/OQ5ExPCTJXFpJ0+hmR6O9ZLnvL/hH3esy2tgUi31yG1VZB3x42YkFfScOoX+aSgwYNd6n7iiHTtnORS31VEsxCCdYJA4iWSd4P2YOp3pDULTjeVEC/1e9MAg9cWDHMevrM8ECndyZoyE/MnmacYh01mTgks3jD4uDY7B+g7W8FFTI6p27K9k846TxTOMU8FpRrO2gsD5FxNOdG5p3zo9xGCsdHhfqvSiu/5kM5VUkhllslkM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m5c516QEW9ls+BaXfirR7LFGrrWavEBjoxWfSpZeV8rU0BWBkW6m2o+SZfNP3vdkXkBBDZHv8B8iVjN2kTWk4OUk8KQyztVgYKJaptqHJ2af4lFhnYewGD5yKJ9UPt4fR7ieQSTHepXtUMtmCTwhKBBK824Mj6XSBBzkAx5GW/yTpOr4pnYt6xM X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: dcebe16e-98a3-4e8a-6569-08dcdef889de 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:22.7481 (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: olaUcIAEo5Ui5sUbdo+7B1VvzP5Owx+G4KE7L21izKk3pK94b37MevvVj89sfFYlL2dTvGtNc8VNI5k1J7LOK204QzD5T/JlC3nGCbX6Hl3CdHte+ETYkyqJBHxcAOte X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB0416 Sparse warnings: drivers/spi/spi-fsl-qspi.c:635:25: warning: cast from restricted __be32 Signed-off-by: Hardevsinh Palaniya --- drivers/spi/spi-fsl-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c index 79bac30e79af..e4a2a6049e33 100644 --- a/drivers/spi/spi-fsl-qspi.c +++ b/drivers/spi/spi-fsl-qspi.c @@ -632,7 +632,7 @@ static int fsl_qspi_readl_poll_tout(struct fsl_qspi *q, void __iomem *base, u32 reg; if (!q->devtype_data->little_endian) - mask = (u32)cpu_to_be32(mask); + mask =(__force u32)cpu_to_be32(mask); return readl_poll_timeout(base, reg, !(reg & mask), delay_us, timeout_us); From patchwork Fri Sep 27 13:28:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 831152 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01on2123.outbound.protection.outlook.com [40.107.222.123]) (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 75512282FA; Fri, 27 Sep 2024 13:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.222.123 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443832; cv=fail; b=AsBiHK5oyXqv1W8XGDN8bln4nUDdQiy4x0D8I+yfo02avKgM2MQpnTRj9cgiaMQq8B6OSU74nj1UzMoLJLVCnb9GnBysnCKR5/T3MWRZbfvkWSgLo1yJLpcwBAPK2gpu7CjqKhEarx0n4zzjGYTCPWjY+jUxtmTfHE6uQLcmGLk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443832; c=relaxed/simple; bh=VLidko9XAWY/6t+iDh7YVOD9QlgjOsj+OtU5vuztUK0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Tgsl1cKiunz5GiGOq6Z3VHetNrpPkz9A7Mw9W+p3ml4YhpfwefaZ5CBPVuyr7+4cqGuKlTR18ghdD9ogbeRoLnEJeMUnU99PdM3O6ip7gWtXDbfOYTSahvVJLZRlK1CrO1dgBLtgvYtrQTk9T4FlO4z6i9AlWpWdE+JWguSis7k= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.222.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XB/SbsGwRopwuyGQs0UFHiffeK28f4asw3IssI5XvpCMtBd72CuFVBHF27T/qnH6Nh02PfGTOEqpKxgNAVf3rTX0x/4fk3C9XH8IO86trdKTnJ6D860+eRc/HlttcUb9bD73lDQgwWHfSwteqkw6t7DttNBola6DrgvVCG8npJp8nVwak3jROVVu5/Su+L2qi1+qb4B3yaPePveVaIsG0txoVRxspFu/e61F2NhA2/BPrJpxKLLibn8e7AZLXofcomSM7gyPT0Ab5hwyt/j4xB3F5qDIHKOajiJfM6hzpCdfd8pmmIro9JI81zGSot76kv4c6AsXKp+7JbCdFevasA== 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=sdDqcPmH0MkP8SXsGARMMW0RJgtCReQj2lz3w9NFEbA=; b=XcwAtar6d5DaVu1GXSZYsizZ2p3T7QoXlSTsRI7jjPn0DxE8yDZlngRKrJBaVI7xy2WbPmoBn6sOSm10dCuT25Tl0bjYwjXKU6q1QHb5FULkK0zeV1PoRpSdnDXmcQqqpCwxGt3Ngn4VLdqe8cJZPikIZWIXHULjjJY9CFJlNhq+hf1sR9CaoU3i36sQSYPAxtMQeNxsY8wxR23O32O11ZZb9w4I6MoHtTHswgbcqqX2H7yRcdbheFoOd2QtH135xb7ZAtRhUJqXEasiCXoCq+whZmVHSLIz306A9EPk5K5a10oD9DqIAXzCeT64mUilAqU/PTqlhOIcNYtg4TEQfA== 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:27 +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:27 +0000 From: Hardevsinh Palaniya To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya , Han Xu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Haibo Chen , Yogesh Gaur , imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] spi: spi-imx: Fix casting warnings Date: Fri, 27 Sep 2024 18:58:34 +0530 Message-ID: <20240927132944.19285-3-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> X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|PN2P287MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a7751fc-0586-443f-ceee-08dcdef88cca 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: DoXkRprPcU8ikZhBikkcMvthfb8+94XE02MjBX3Ytv8WY3P50QZYX1rCsNys3rsNT7lJ/TLCym/q6j6k4Cb4PXfTnRU0tzi/la3W9OeRRgnn0Rfitg4e41gxLrYpzsVFypUZJKfvGy//S6/iEhumyqGtPvg/f2YgPZq30lbq4D9N6VeM/zYzwRymUzks/p6ANg5T2y3tCDtKD6OQINGtWGb2D2BKm1AD4hVG0urt7L2OlG6sER+Hlb0ADSzXVKadkkDcaCBjXLJdx+Vwsr4Ly+EmsKIepoxLWHTJGbFYqixgfr8xRHb0MgSbgGFaq3L6ZHevwVE1PL4o6Kys0ehKcBQuiWL3vnaSFRaaAVkeOZ8Asja3UGMYFqOzpAT/XKQEZKiGMYj1fGsMGgF0ov0f48wLLTMSDCFSO/gLHmH2LEhFsCSSa60j/aI5JbceBmsVXoHVqCnfctpG5dNBGigg3Fl0CNa/DTZs9vMqseUvqblGQeyGZ8yln0oefTWsvAp19Rm6+GyZFX++XpPhjLw3HGMJuHzp1WyRpfPrzyqsYlNcOjZvUite1xkY0t7Hw2WSIDBgTxhLkWcMUFOqVuUHwx0l1ScI9twmirAoClqi/kSTiY7kbdLAIFIfRTcVoWL+XPjX2lrldnPx1Y14VC4WRHN8pQih2qDzK3EF169QVxFq2E+77WX6g/h/m6xNhMV0U28nE5cUwOIaqjqcy8SQd6JWUDDUI4mnuA4IEAwOLcqGzfLDs3536rB8C5+6zTunkcQyi2uV/iTP2izKgDh9bA3rue+Kf+L71tFL9P1Eak/orl2cDYPv9WI97j/CYuWbl2IvaI2eb0WItSgp5Yk+N7G3ya9b+ct69tnqLfnAb4RhqZZwGGn8zAGIK8VrtTIwOADPIEC8ITTNsO1KArAECyx5f6ZjC9gHLwRm/m0HlX+wcA2WYV70RDTceyfGfKWaunpIpQFTZkQ3Zp74GK8fp1xzHDoWU6/P6LLK0OPb0mv0mY5Yk1xZFtl+N5wPVYHrOOEt3wDE/zgBPmxjhrytttnIHNhm2LtSyNRoUZSVp6aanV6UwzC2680hWekhyS9mUug8LzygjSXVsZM+0MF3LtWcn7ZeezZFqMcWfJItGx2gX9LQdgi/fz83DwMHwRmbG5NspQg6h2sQaZo1hKVSEiU0ko3mGRrnwHbDmylKfrX0RQDqaESSh9LgY8eaMyOvbfr5daticaoQmPSlelNzh4/IYIdRpzujiuTioC1h9yPWgt9ebQTpLassYEDBu8bVJms5VBmHn2pOSNOfXc2nDB5rggmTJNjuxg+SBlAT+RyqJ4vnx15rUEW7VtZ1oFA5T5JdE5b+HMNrUIzvC0j63pPxf2NUnUVGZtNg0pL3zTkaHV2qo01ehFJnZQk7F/jLc4tWkAcpovn+AOwsx5l2bw== 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: xWGFAbtwMPJHSLoIJ1/smLr1z18rfcsIgJJxpdrDNLWwYrJGP2nc/oZGIlQV2Hm18pahaoZwfuEL3aciNFS57zWd8ibhGo7b81nWTMwyYUqQcUx+t/qC0PWGOEyffIRCs+/Vn2v/FZWxTKOStwDUsAkBFuIcaes/WMbBtiEKwXpyvgj1LVTz0kXk3oYBctBG5cncXATFsgxb8EmaCK59CNMdVQFJyedj1vHEE7WJo+y0Dv1DgcP6AqHF2S/cQ1RWs+PqUr2VMNh1lvwlFRHGnx/fkS+0ow3qgybEuJKoZ+8ll7Qq3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Kop3Xeh6kJpkTK4hdT8I0GAoI7HkX0SHy9xFlM6mfKAxLbPsVdoKOfjEt4VQLQMd2OL4PPqy8//4EPmg/jrpCazZ8/XovRjJxzrllb+ZTn4LXcxLf8HJ1fUrpO42KLCScMKl4LY+ZYqo6/6IS9k7tzF6t7snZG29oHEg9xcYnCJuD+bvL9jbLm+HxdPFNnialkDC/+w2ZzersRjn7EYnEtJNCr7gEt0oPBBm8lK23BY5pENDjAdJYGEcCowqD6y3ajZI5zR5G0Uj75FOxPHUniynu X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 5a7751fc-0586-443f-ceee-08dcdef88cca 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:27.5823 (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: CIISMz4QewPvYr794fygthkDaLKEuvAmSmXsb1XU/OoPNK/TcwJMnB4sx/IH8SdRWVW5av3ELquymZY3ZpdH7OlXsihPLIPOwXvv4kpelBGtHY3BJgGXljdNiqs+rewj X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB0416 Sparse warnings: drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:410:19: warning: cast to restricted __be32 drivers/spi/spi-imx.c:439:21: warning: incorrect type in assignment (different base types) drivers/spi/spi-imx.c:439:21: expected unsigned int [addressable] [usertype] val drivers/spi/spi-imx.c:439:21: got restricted __be32 [usertype] Signed-off-by: Hardevsinh Palaniya --- drivers/spi/spi-imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 85bd1a82a34e..8d09d9c1c556 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -407,7 +407,7 @@ static void spi_imx_buf_tx_swap(struct spi_imx_data *spi_imx) static void mx53_ecspi_rx_target(struct spi_imx_data *spi_imx) { - u32 val = be32_to_cpu(readl(spi_imx->base + MXC_CSPIRXDATA)); + u32 val = readl(spi_imx->base + MXC_CSPIRXDATA); if (spi_imx->rx_buf) { int n_bytes = spi_imx->target_burst % sizeof(val); @@ -436,7 +436,7 @@ static void mx53_ecspi_tx_target(struct spi_imx_data *spi_imx) if (spi_imx->tx_buf) { memcpy(((u8 *)&val) + sizeof(val) - n_bytes, spi_imx->tx_buf, n_bytes); - val = cpu_to_be32(val); + val = (__force u32)cpu_to_be32(val); spi_imx->tx_buf += n_bytes; } From patchwork Fri Sep 27 13:28:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 831489 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01on2132.outbound.protection.outlook.com [40.107.222.132]) (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 6FF1C188904; Fri, 27 Sep 2024 13:30:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.222.132 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443838; cv=fail; b=GEohlCn83CgGaYcyzRnqumFycoYu5pHfUv8/UrOx8Uceqm3b/g5k1Q0avOv7lSQo6tyUipcKyKu2bI3sj3806c0cZuuWpTFucdQcVcRvmxZnVxo8rwlwNh6LUxsp46BM24fh1M9DQOyarjscO8jWYOzgYtvAAhVDup6UynhLrbM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727443838; c=relaxed/simple; bh=BLPQobnsXc5DFv1jL4jIR6wSGaEqVPhzKuld9KO+xmU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=gyoUydh8lAyk7OS8usP3J+imvZh8W0/gA8FNfIV7wRml3ypvLQn9tk0TRtFnxKt4QfyHl7HtWmq8IIcYuQur7wO85SmE765YkOerCOopCozrezS5gCAfHdV80tPjFdIzuc/uPp7zRRSQxRxf4fDCD1BG2s2N+ZjfYM6PkuiKsp4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.222.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io 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 To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org Cc: Hardevsinh Palaniya , Han Xu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Haibo Chen , Yogesh Gaur , 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> X-ClientProxiedBy: PN3PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:97::19) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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/utg6gtwI4qQKjmmpmovLjg4KDC2mdkOuSF90iY49eLH4o0gnZYCf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CVXqmZ2uj8d5BbhD8ZHHHpd8zYg== 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: 5HhtWHaql2eI06n8ZVJEuBLyQfTa80wncr2QEpeRlwl8OiyCxS2hqI6WPkQ1E3f7ZDK3pN3mjvzUAQ4ti3jO/oI2yvz41EHPSikf3tZ2w/zkzFgj8+TpK6XS+4SEO96OoguWY/X7afiw+9Sp54jHdMokc+faQ3vPEEjrzc2Wsxj6PX5UsVZ9blJqppJIegdE1zCrk8Os/DOC8+k5HL9JV/1NCLwKvJxoIBi2Ziq4uCm+ko5E/tJtMgIdJIZMGYsGAOIrh8XQxF+IhvXHXnfHAFKOLeUdS8s4jUgOxAvytQ19H+wWSFKy18Ckxx0rHf672E2pNENQ6UQFFLqZAiQnLbMVlN+n7vIiBdHuHtO+xa1GO7rxQOSh9ChUNcGLBRIy8CDY1GuI8SbT5U9Y3pOyREUN2LHBO/WpZSTc74X2kE+msRxfkKp4VwmpVSN0YnWWFA/6ZpNLPJ02mvKHg8G6mZ5fxw6VlwYyM1qEdMbCXILnmnz9LcdRn3KznQiFHC7jkZHn3WshCZqiUl3HRwPbBAj8x7RBnzpGxI/KOWfBO9+cPnJLzsN6A1sMdyy4+1Q93vbqNuyTlNPBnTGqmsKts9P+xKS/uZcVjSOpt3Nq8Sezebdd4tBbaLeYWWa580XnflYtF/HagXmDNSGgWyaynRVaR70RaUy46DWboS1ixKrf2leqpH79NFluVVvJN8qBq5IuWOqI/D6KfuN1Ig2CSP0651vK3yngWtt+qpIlXidbmlVxUiziqU8t7vglCAzJ7D2GRWUOfjj5L5aoYmTKe6MSo1kVG9rFhpMVR4WeSbAekS70Vkmitg2i2UaEWeEzP5VcLVBx4SQDK31Xvqz1sDh+VGpyTIL8GRR8pj0B2AeRVTgrF0RlIGT5mDtT20gX1YutYbdYGsNuS7gqVNdAvijV6UWz5+gSoauglS2b34h6hetyjTsUUykEIG7JdNHn7DAEYbXMcskfyTlmal3kN8xVZaUKkVWYVHKxrP8gj1FwJX8eP3WeeN4hSuE65yv+AKFd81RAB8zZoi2gaz9jZ3Z2LitVu0R+TqHJWNuDSIhLlzuaSPP8dFeS7UsoiPEn/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 Sparse warnings: drivers/spi/spi-nxp-fspi.c:512:25: warning: cast from restricted __be32 Signed-off-by: Hardevsinh Palaniya --- 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); if (c) return readl_poll_timeout(base, reg, (reg & mask),