Message ID | 20241228090852.2049321-1-carlos.song@nxp.com |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2055.outbound.protection.outlook.com [40.107.22.55]) (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 2C7CB41760; Sat, 28 Dec 2024 08:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735376295; cv=fail; b=QeJr7dSZRT7klB9xx8O0JhBfvMnfHfA/HcZZ84tk21jk+/uub/iPqCffMSqkhfCf8gt9cLDOqJQlCm986dnouuXx/F5p9fzrYj+xpzEDz3H/ROGacwpvBNtiEQXS5Xw5SEnh4xSij7Ru2nF4TEoQjdraADCJ4zMl30U0U+QLVyg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735376295; c=relaxed/simple; bh=lRzgXviL0G32nqEhaxFJVo7hjk2IZXzGLCirayMCsEo=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=umip2gc3SrxbtaRx4KclfYWjafgTOrNy2CnzPytxtNBy4z+sGVGC3zLgcsd7mzUgYByLjk01Z9DV5i7hnGG0y4zDatJqR7RE/5/Hn5tvr3s3UH+f2TuCqSjx6ER6/oLwS4LZxi2WuNjCV/3shoLQcVk+zDa0OBysuM0J3G0fLoY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=OcPk9vQz; arc=fail smtp.client-ip=40.107.22.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="OcPk9vQz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VA4UyY4rW82iKMNbA38cClCxxLgxTDY4xAGabYEITLqyEI9p4gj8omvymaKJMGtENef8FAJlbLl1cPHTmjE4rbDSfwYrux0gEA7w/XKH3wZrwYqrtqUdVYIm/81GTCtvpHUbWxC2AylImVnic2eQM4Vw0rSd6UYx98LcrFP3aXt9F9V8E3X0bjIGCaeykALkZsp3fSpJabS6OTikYhkLgJhqspKIHqvnN5260WA5d71PffYggUTBeFTBqy4NLkwwhQQaBvLdfAdKNNqKDeh5B0RynHJpzn17EzDNPUTBboWiXGjtlbQpTEnSWcWHW+5wo5MuvygX/h6nyCcX9wbcNw== 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=AEGwca3WB93A+Nfg5ocz9VfG22vlSz4Jvrnj1jN0YI4=; b=y+0Zv7cHhKKerWDNtzaL/3SIrX2DqwHeGB4ooatWj0Iwltx6gB+9cjDmsLdVThgJaAqW+GnqBq7DLOdcfqD6Wk/l9sHAtaCdTHwzMW4CNYQZD2jDcClHvyLxG90WXSY4lJe85plz9rHWsoh7FBlGcrjcJjrmnzw2VYspaoaxX51JnlTNZ4jU7BL5cla1wHAkSUd5w5GdvVXqZEjylfQNJacFjvwWkC3zv/IJQoUezvv9J4lc94QqixktMgXyRHQEp3pPW9JQPoKB1Q2VCls2QMOKwNuz3IrOJigRr6G19a5M8EwqYXOAnVoWwgTW5qiyZhTU/OHjilvN6tZ8gxhr5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AEGwca3WB93A+Nfg5ocz9VfG22vlSz4Jvrnj1jN0YI4=; b=OcPk9vQz2tSTmztua2aHlK47cdGUkgKxiax5bv1e2YoZsCKcP8K5FfhQSsv2XRm0M3GrREYiH6mOUHfb+gmXFkZivWW1fYLKW5S5TxxDwt9e2B65ere5DEozuhCYpYLrQ6uZRA6Fk6pLPwWgMvns0sZcILUINQOamNzDdWUQC5jZqr+FAa/XLXhh7Z/bZAhCm4iv8T0xST88WEH4sKRNkgQUCnkdO8XLJHtGyMngrIG0Ns/Lta+E9noEkJhgnAC4bxi3P4iKGDVm9hKPbptjcW+ugDiphpVMkrne+S6gPihF2lYUTI4kcKswN3PZ1iTk0NS5HfU9sRss6iWxbr44jQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) by DU2PR04MB8709.eurprd04.prod.outlook.com (2603:10a6:10:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.16; Sat, 28 Dec 2024 08:57:57 +0000 Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0]) by AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0%4]) with mapi id 15.20.8293.000; Sat, 28 Dec 2024 08:57:57 +0000 From: Carlos Song <carlos.song@nxp.com> To: frank.li@nxp.com, aisheng.dong@nxp.com, andi.shyti@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Carlos Song <carlos.song@nxp.com>, kernel test robot <lkp@intel.com> Subject: [PATCH] i2c: imx-lpi2c: fix build warning "function defined but not used" Date: Sat, 28 Dec 2024 17:08:52 +0800 Message-Id: <20241228090852.2049321-1-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0018.apcprd02.prod.outlook.com (2603:1096:4:194::18) To AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: <linux-i2c.vger.kernel.org> List-Subscribe: <mailto:linux-i2c+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-i2c+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3937:EE_|DU2PR04MB8709:EE_ X-MS-Office365-Filtering-Correlation-Id: c5e3a26e-06ec-4e9b-52c3-08dd271db8e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: LDb7Ga4KGiXyVaJ9ADm56MkUZTIDH8IDQDNBznaJbcFZ7MCViZzuUypmAChAOvSn6NzDB+cZNew1fZ2Kg8GI8ixiCrvtwUZUmEqafjJboFdJy0mOwrEtm4oP1GFijSr56vAYgWZ69BeGssatg91/plql7dWsltheKVb9NltGeZR7P67ktrIatM7C4+IRvE9idToxxQpBB1joYCDuxgV9zt6Eu9FLsEFnMinRXV2JQn5GAxRjomu2QGb2ne3nem9+NBMmYpk2wmOCxLRvUrc1jXxzzqr7yDGrm2PgY7l8Q4/qLHaCpMZ/tPlL1tNWaCAyrqZ+Ekhm6fcxGYLUqlTKDEFotPj7n76T2O9d25+6FRMOS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01SAdTvToLiTG1DyLqmxIj20WG3/yj+u X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3937.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wogPxPczrapMkTSksSC51+BHnkT6Jyl3V7MkTVzsckfuMuMr3lSPo0Oq9NvA8scj5UPnsIq7Z9M+TWDt5/X7L7tvvSBT5TnC83HWobPSmqKnxsCghEP+AdJsBJa2rK1wO56shuWmL4Jvu2m/czY2VcQakz69/pzJgRfoRO8Pxgz3Ry/SLccjTjTgXMOgCX8t6rf1mopJJZpbgVrDeCn8DApHTj6hLyNwqXa8Wl38wpyr8hAKutDxFwn2cKtvSug0EjoP73KA449T8x6QTX4e+KwOTFaMffjr5P4BbmfWIYMtelfX5jh2EyevfYOxxyrXE2dfAh3OthzbPKqdFAsMzW3EfcEEV0irht2xlciZHMPKuBpMnQ9w+QhblilPxDnToBQardCv5KpHBgt+KKwz2ZRuMRR0lRSpaBF3VcpcRN8CDR7376HkAohoaHbGr+B+KEqhvHNDBEonPUtbAVks+xAOWVO7dAvdau9OYoJQ18Oxso5YOhOwrUvv+FbhQwcoQl+MtD3fztkysMN0MPU9AQFjBJzMtT8AtGO2VMVQTo0qIcJF3Sy04fhU4pzOBh/vBRBwKa8RWJBuw05FCQOkaUEukah4V7Var3spSLjtzO4Bj0XcH2pM6hKnw6+m/3NkNlXtlXjFe4jSPRmMWgmTfcjnwiJpIDp8za7bfXfHO7+ghOFFmYWcM28F3iZkea1JygNsWuc6hK5aARosAgFs2RPQlRWUomEmZHUuHrPeOu3XGThmdIqQxvdC673x9HpEKyKx63yse0Nzv6qJHp/YF8WKVFsKNuC6qlNvkZLaS1SFrijR4F9tGJhknFYUTuo94OoqU8dl5RFqRyk0Wr+5P94mh2fH6Gy1i91stXUml8fFWcWFS4sIM8qYVXPRE4bdXC8/HXFVNRaIZL5ypbC64QCXja6Cb/++MmZFM60QFoPwlIhNiPo2LF/hrzGL30oPTMaSkF3x0WV8LVI8xOgUBtFpk/0yykrGZsvWMpgZ4q7va9Crdl7g1ImKzE0HwoXKHPt0Ff1KA7XYnbQOrNd7BrKCK/Fn/+fpGUbLWS4jWGRkNuTJo6MtJL6OkzyCGVEivqQzwpJuwCRWG8CH76lIEXNoZT4fFbczcuzVUU25Mcs25XQ2vgK3Y4WoXHUzj+o2yhiJZyX2A/Mr11X+d8Aa51mDEol9m5cUWlF4zFQYi4Ic+QDr2QdSorJuLs1eg3JZ2f1RuS4SCV50/btXR3G9sZudhti7BG2M/TRLJDWBjZjl9wQ9JQdxNQByaJEVy2aoMU2XCCNBKloCchdlj2ghgtz31bWr9uFq9lud3WngtWriX9wfy5+AtcD2Z7271tIk6e2zgtYxkMnavap3jTfUqfEtcUJz0mXkzwgQ8ZywmhmDb2YYFuuJjKkan8tRsJ1CgL0u1JAeNQYy7UEEFm/Rq4rwBzuk7FBw067tRjn2sJIiW1/mRKUS0Z20vIoqCRo1RXQmIsrrwBamL/Hc8H9KZ6LM3WJ4yvnlUeBuJ4fTq5eypJ4nvdD9Dklw4zyyL8TSYUOO8k24/3GlV91THWh9clvruW2MfVyLZ6ojhLw7ScUuIxjqQUG7LDqrprICiTyp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5e3a26e-06ec-4e9b-52c3-08dd271db8e6 X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3937.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2024 08:57:57.0141 (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: cWip2bMe5Ri7OSYjTngE+cn0SffrTslNBx4fOwV4Py2zhcnTmPr5PVn4e8aI7yMtbt51SRK7Tjj5yjZPIyb/Hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8709 |
Series |
i2c: imx-lpi2c: fix build warning "function defined but not used"
|
expand
|
diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index 02361274fcaa..dc25d7dfe1ab 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -1422,12 +1422,12 @@ static int __maybe_unused lpi2c_runtime_resume(struct device *dev) return 0; } -static int lpi2c_suspend_noirq(struct device *dev) +static int __maybe_unused lpi2c_suspend_noirq(struct device *dev) { return pm_runtime_force_suspend(dev); } -static int lpi2c_resume_noirq(struct device *dev) +static int __maybe_unused lpi2c_resume_noirq(struct device *dev) { struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); int ret;
lpi2c_resume_noirq() and lpi2c_suspend_noirq() are defined but it maybe unused, so should add __maybe_unused to both functions to avoid build warning. Fixes: fa89723f7a78 ("i2c: imx-lpi2c: add target mode support") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412280835.LRAV3z0g-lkp@intel.com/ Signed-off-by: Carlos Song <carlos.song@nxp.com> --- drivers/i2c/busses/i2c-imx-lpi2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)