From patchwork Mon Jun 24 02:43:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13708861 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2058.outbound.protection.outlook.com [40.107.8.58]) (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 B88DD442C; Mon, 24 Jun 2024 02:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719196498; cv=fail; b=lVwKVSfdnet8ZjfZ3hGXzDZsBycGbajIzrzytQMwWSHXbG5e6wMQpg+7FM9w5yuO0P3149zWiU5viTiCQyf4zEkOnL5NLPR2S7Bo8ko6AlfYfdlBiMtD1+S44UZOPvN1UcVJSw+yQL+EDIi5W8X1DNbBJ9Wl2l4l5BK76saQPZc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719196498; c=relaxed/simple; bh=D7EQCKBO+Rz5rUVHnfRJPJQRJY8ZfZQ8zt/FU6hxAIk=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=KP0q7fZqjW3sXds8us1laj3ZNUfLTYEEXAQmED0Yhye1wIwRNJpbW9NZbV7xf74tIHoYyo0pqjhrLtxiFHA+ZsnoMhdTefnjgkkqwFZRE7RSvh4ouVOGOS4pxq0SCh6xtvcvfxzd1kgOU3+xiSRoLwamOjj7GLgWDIegXrzLeyA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=InJpB/u7; arc=fail smtp.client-ip=40.107.8.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="InJpB/u7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YHFkvVaH/n7dD8HJN70igCsMgEDe5c9ftrcsi3vkj6Gg8yegSXxS7Vdawe1D3c1cKhFtpL0bdMFbamJlQBMOqs4+3yO8orP3UV5F+5NR6zrGBsApqtlviOWVoiBAHAvzouNBMszrTQm2elVDRgcqEEx4su3jcs9bCONnt257cc8rMCHWtjrG5Wdg4s+RbrkBLSExzD00R82KjimLOvi93r1sqzHKo6CT133UfYdm20m3CUF9x3/LrvaDa2OJ7a3ZzjmWEBcbJk3rpyLDQ5HN4NAmNMCjvUJpxCm7t4HE3FrtwS8FCkTOzRmB92Tb2dCwG+PGgfZ+k955F8dXom6ugQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Qj1C8uMM9mCl5UNe6//0tqzioHN+0eXZhd7GorEozAs=; b=ZMu0sVWt8ocDKAyQLblO/G5ROPzrgRS44usPTJe20SAYfx6NhOmTdvLcPdRbRom8CtkA0F9WNP35cPFV3R0k7GvFKGMszE4w1fJbeX4OsUDUg2Mr1sCChWTeWdYC6+DWpq3ZEffhrtp3GzxrwxGoNsnIAjsfGZnB4XpuO793HMxVNRuiYfz/LNBFt+mf8LTtfjUr30F0AL8JHymyYxR4m+bJckP0ti5xxKV7LhMjU4DeYYtlO4ChU8sIzyK/1DJdUa6fYrmI12ttfeoX7SjNE7/A7l2LvVHReHE1RRTORM+fTfhsNDScMMtSE8/TSCyh1P9mxDwjw3pGMt4C/m1Lzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qj1C8uMM9mCl5UNe6//0tqzioHN+0eXZhd7GorEozAs=; b=InJpB/u78bGgcCvZOZPyYTMUNRfBlESCbvPcoeiDmPNbwks1kD0oCMx3ImT4LD3yfDT1ny5nzvZIVsO2D3/t4YpEv5uExnv6P4BDlbRMPnny2xyW094DHGi276yqjLftVQUSD9qN0aly7NCaj5yglorBl6aGHLXlF309qOWwXD8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) by PAWPR04MB9912.eurprd04.prod.outlook.com (2603:10a6:102:387::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.26; Mon, 24 Jun 2024 02:34:53 +0000 Received: from AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256]) by AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256%4]) with mapi id 15.20.7698.025; Mon, 24 Jun 2024 02:34:53 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: imx@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan , kernel test robot Subject: [PATCH] clk: imx: composite-7ulp: Use NULL instead of 0 Date: Mon, 24 Jun 2024 10:43:51 +0800 Message-Id: <20240624024351.488492-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR01CA0016.apcprd01.prod.exchangelabs.com (2603:1096:4:191::20) To AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB5941:EE_|PAWPR04MB9912:EE_ X-MS-Office365-Filtering-Correlation-Id: ac97347d-0764-430b-96bb-08dc93f63a1a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|52116011|7416011|376011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: wmYVOfc6XHc+zundsBFmvtAf/Jzm8gp13+tmyQf1kGAWKjvIda8+yeNK5WLo9hqF3doxSexp+hFfnuiOTyzGD7FSpeKwgdUMGZdfSk5NhySt0SAp7LdU7JgzFe3W8+lre4LSD+dw6yJZGjhKE39wSCwHKMdETGHIfSkvXJeSO5Z4e8DcZCsrYfU9Dm9ZkCiHApTELC5DA4VI4LUvuThHi7LAR/S6KhqDk20iR3qZaSX1oBR1DsEPVHz4odsgHbjmw5F4EuonZXpI7T3do9FeL3vhtlPzjjImg7qPYKzT5hUb1GeNgj7AzG9QT+thuxt7uIGMF4Zj2WxvvoMfRQ9k8+v/YJ0Fn0ufiYPkL3wffuyE7FR9kO40Od/SY9eBaECWct3oHh/G+lPozR64iQTSEqlxlcZDQ07O/gd5YnFhL7daauNvqGrIyZnT54j1JqQDh0PpmWkPA19DwtJYN/PsZwsQGSRpT8jWBqJ49xuKTfHcPllLMACnOsHPMvtJR/Z9vslR4WuKePeclLWeJwSS4qg4HpAhhsCS3Ozn9s8x6NXvngZs9OftRCQ79sQzt2QavZ5YeHY9IMVs9aihApV54nPPkXnOO4I/01ex0/OKt4VMkT5Sdi8g1u9f+aUtf3MfNv1qIs0Zk1lYqMzriZkMYOVJcg2lRjiiCqDGe2dyOsVTD6KDJ+QDbr0VwQyQuwjSk9/+azzGW44HTcesmLCWpHF/mBfZBDyvCLvwZqaz3Nz6eaRFc/bo19lqjGdTJu7WRzEA1hRcWBClUoCthrgeyGsVzMs+ELlmRjnIemO7PrnAR4HiqwVsVqSuA/2V8LfezBTAWEqff9T306656Dlv8Rdpw7tFQkRLt59guBLwPCnIx1rbNWvKLeqVlCt7ao+CO4hrmsJx1aHWtMsTdKMwdDC4ygcZlLWWaMVcaftDkvLdWtUcPl43VrAU+ZpaechpUAY8rtTRgBoJubC3hJ5vDo4tQEXYAMdChJ/A9Nm44hStSFtBfCu4bMD+5sZ4yvKlaa9BiwMLho7nWcDZt278Qnq2PdaZXPuuZc5Hze7x6StynXvlG81mbzM1fICTsddbu16BmzMixBn4suoudFKuODnGg6ojiZrz7dSsVSgeW3xpoqMQ8+PH8LkuZP82xc/OgI7UTJsNSoR6uFQpBDVBnR/Thrg29qoXN8ygGjI927CWZqWfFkUKhLgH5ktoCIGPkD7aSEw3UK2CXDJrrxd4AiFwj1DAE1A2/791lz5xbwLKui9rmgkEle4suQZlM/nSgH7o3jwGeGbnc8uo5tYsazcUyO56Eba1EPgcG6jVRWD3FTB95LISCOQUWx5fIIND X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5941.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(52116011)(7416011)(376011)(1800799021)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam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OwzR4IPyjj9P1l5QW1yrN77Ghh5P5LeBKbsGRLyy9TQAEjjkEWscfL4Okve7KYUrZD5N0FXmgkpA+hUZ0yquw4QRuIc/7SuArWghooLwTCHFP1+L0gEWjJhmpjZb1pPxpwv8VJBr66H+7IAgXnYm2TNorblVFmcto7HNRpgbH1yeeW68l1ipzDrmEiK53g0/McPKDPDUWa2govyMXgijxXngaZ1uwMntpLJo2YqCs0Z2jsXKxNyPOW811nQ0ntKe6dE6hdqLjE704jN5xco5GrsGu6JoCw0RxYjlHN21hW32gZCng7dnFnuWIvXGG8WFCHXoKBR6JjCJGNTkPIQHLVOzUwSpYhC0aAvnswbMBWy8mEJmEmXcRqwC/NeCRMY4x1TWiKJO0AZk86H7e9BpJVdHB1D7Lmpx06PSzbrU0/G07zci91fM19PgfnkCrRenEbjiseDUoqLDi+YgyO5YvyUMJvx+lzsgT2ecusTlhPpi6CGLbJXdp1JWEwLwMsxRu0oqN+kYvw5GFTM2j7Mc5XjAaFiuPWjszRd+/GKQA X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac97347d-0764-430b-96bb-08dc93f63a1a X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5941.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 02:34:53.1286 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iPfsjFpvYH1SZBCo/HF6hOdC11pGuvCFBy7SYts26GZUwMKxE0Zo2AWNvTSGmniRnkx89+ApU70XLy7r1NXAIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9912 From: Peng Fan Address the sparse warnings " sparse warnings: (new ones prefixed by >>) >> drivers/clk/imx/clk-composite-7ulp.c:85:24: sparse: sparse: Using plain integer as NULL pointer " Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406220536.JnAncjqz-lkp@intel.com/ Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- V1: Since the orignal patch is still in linux-next tree, so not add fixes tag drivers/clk/imx/clk-composite-7ulp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-composite-7ulp.c b/drivers/clk/imx/clk-composite-7ulp.c index db7f40b07d1a..8ed2e0ad2769 100644 --- a/drivers/clk/imx/clk-composite-7ulp.c +++ b/drivers/clk/imx/clk-composite-7ulp.c @@ -82,7 +82,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, val = readl(reg); if (!(val & PCG_PR_MASK)) { pr_info("PCC PR is 0 for clk:%s, bypass\n", name); - return 0; + return NULL; } if (mux_present) {