From nobody Wed Nov 27 09:38:02 2024 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2080.outbound.protection.outlook.com [40.107.103.80]) (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 7162F322E; Fri, 11 Oct 2024 03:16:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728616576; cv=fail; b=WjRMF4VOBPoGuxlETOpgEa7cQd6HprSzaF1/+HusAenfxpeujH4QaNKqCTgUk2uqNBbbIvh2obNGhwQmlrNkJsFy1ceFFLiL5hYvPV54+z+XUc/HGwfBXTIrpKxwj6yP8AbGXihA8LaUqkiPH1GWpLmeYMIffyaQbPsOmp2t530= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728616576; c=relaxed/simple; bh=ddQdb5QBAMBR+SV7tGl7aBEDzwxzYV62dGo+VKveEq0=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=RqEC5V9B3+FDfG1KuW1TUF/EyAwXNbUyVx7U3sLipBh0xY0OIqaHGgUkTrj9MFFn+ebRbjd6L6FBcLaCPCf+mukXR0hFPogM+46fkwQYat1M+N874hMt7kq6wnugyzfB2/SZtkHh2OTaGzFaM+E35pwpwvJccEEeJPzbhkfzjnM= 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=XLipNquW; arc=fail smtp.client-ip=40.107.103.80 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="XLipNquW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aIA/s4hxa8Z2Pg7CwiM5CV7S5vba40yesuHZmtHK106i5cSob6cLi09ejfYE+HdQdLF5M0JOTlobw5H/YwIe8fzbnCNPCBXfNkTCLPIh0rPQ8oogKxwLTZRkL02Y4EJuUHA7YydaRURFLfwUkexuDOtky6qRa/lXFG48vsPNk9wBtLcx91cCz216fuYuf0zyt5zfhgXv/SzEz1Bv1pWFlwTJLqx5uPEmezGALiDo3MTRV7eSKUZpKz9lQlW5EOA+xkf5wLMj9CQ4lmxtlKbAlKT7vs93Dp4Tp1v0vuqqTwS1+sOCdVe446wLKvZv/4OAIvjSbBVA6bVT9U8lNzGBsA== 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=waCzLYymp369lq2JaGe2UTMDulnmUfPcw7tlc4zpad4=; b=Xh4NgNF+wEjyMKw4t5D4EidfltYfT6Bc5BZWeUwXHjuKdvWXJPygaKERFBqTemcHFSZ/3U6StY+tdMlC0OV9n2oamfcY02eipFHd8QZ/VmiF0EiDM7uq7dkCnFvKS34BiWOE7OT2Jp/Sh2sp8VDKaqQ9ZU8+4s9rShZ6mPYHuRW/7hTgNN+pBMazbMB+59Ep6L9Mbvs8b7lVCTbHMUbmLnX4FACc3mmWdSbMPrhSatJiLhjIoUbq6lYq5rFRpfkIpcdu2zBKmwHGgH/IaKH7bX0d7Lmwrp3RPMP6ZNReW9xj3IFvNcpM+Qv3xPqk2s1GDtfVoZ38eqJsqYJj2Wsgsw== 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=waCzLYymp369lq2JaGe2UTMDulnmUfPcw7tlc4zpad4=; b=XLipNquWJ9tXKRyq2se5B8QX1ZeEkD9h7NFmFqc8l2eMg8pV6fCNM+n3Q2fo1GMvdCO42BjbQzEwUAu1NSnbE1srFQID+EP/QauNy3VVzXqoc+ONvI0beiYhvK4pkpmByCrkBVOjiTYojuSP3IhyqHJ0FnWSUQa4blO/8ecce7Jfk9ObP8YhGp0nJkZkPdpq/ZY/Rp0jsGV2E+EY9wPK3nKdNNZezhyIJrUPOg2rsV4Og+PpiVkO3ohvcQhYK4cUaI5w0v3BNSAvd4ffa199D+4bmYuDz4HYM1BfugRYFWjjcyEtjeXkiS8LuIWB04HWa6GNoBe+ftYuKmx6DP4LoA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by VI0PR04MB10999.eurprd04.prod.outlook.com (2603:10a6:800:266::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Fri, 11 Oct 2024 03:16:10 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8026.019; Fri, 11 Oct 2024 03:16:10 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, christophe.leroy@csgroup.eu Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH net] net: enetc: add missing static descriptor and inline keyword Date: Fri, 11 Oct 2024 11:01:03 +0800 Message-Id: <20241011030103.392362-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|VI0PR04MB10999:EE_ X-MS-Office365-Filtering-Correlation-Id: 079c5914-dc3b-4ec2-c65e-08dce9a30dd2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8f7SfF29biAnKxsg9nEpS3YVutP/sZJi0qj+FfaeMXM8fSlcQi/jkDCLWzN3?= =?us-ascii?Q?Vn1dJwcLnURo8PtvTLNDqj1TzHz9f8WEClO0VKwkYRKqY/C8sV8EUSWdzMso?= =?us-ascii?Q?y0pE8yaU/TOt4EvQ5nHuKCofgmxkCys/Bifz5xhY96dQkVHh6bdbec7QIFHA?= =?us-ascii?Q?ALp6phkps2WwYys4ll864VA0vDWH4mfYNJzKZxQe454hgElqF4If74eFtGZj?= =?us-ascii?Q?BWubGYbLqQdikKBqtM80WERNd/xVDj3CclPJnMccZgbKKKIWkr/6gyGvGxM0?= =?us-ascii?Q?EC5/R4swq/91WvBhIoQa8D79Tb+l19n0hyYuBgDYIMDtgqPlooCO0J3kOVRP?= =?us-ascii?Q?/8gpqcbOQ0JWh6LLGSvdwt2TkO9A6ccCAWLR6wwInxp2l6vCl6/TP5o9R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MUn3opyAXVAglsnwZd2x5Is+8OyB?= =?us-ascii?Q?L5kdTwB17Y3Bzgf2YaQIYYteEewsXm5vkaTSSKPrJUcptw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?51gg2zTJsInJumtTJ7cJjf5uvy5dRjRpRSRPLM+rkkm8WKS2Y4yPYevHaglQ?= =?us-ascii?Q?d1pIIDZgyUHNbeR8U1O5rd+vthW8bQ0Jy7ojbYq3+gMxWDvDllqWz2h9FP1X?= =?us-ascii?Q?WZgcTEBILtKyKg8NyBj4UyCa3wOKztLJh/tCDLNOducleGf7NiSDY44oF8Ad?= =?us-ascii?Q?f4o3HkT0nhgmh8QYFcmkcwM5hVdLeF4igOt/Twj+YwvCt6KWiDijg+9nTQ3/?= =?us-ascii?Q?ElgH+lvxSbxGgYQevVj/8awW5lH6H8LBHSQrO/EqqKaKDbg/nYnOyFlXIvFg?= =?us-ascii?Q?0DIs1b/QOKd1zRR1FCBjRb4axIr6PNjz2tOnYaPxGOq4YqrdV50sYyHV7OMj?= =?us-ascii?Q?WID1ME350oMb8+gdprvLYpqUBjwsnczWcQ2OVuLAsSsrptP/0qvdQlL4XD0d?= =?us-ascii?Q?NdoGg2K1ZVHba2zmukhcXwqU7gCDGH94pIY/GGvSXXS9nrKPrhmtcCfamuo8?= =?us-ascii?Q?FkV/Vl4sRzwZecHbRbbJbLf6cxRjUXdHIDL8EXPynZaoxe/CeWUH7hiPVror?= =?us-ascii?Q?+VItcieh76sX7J+0CphYNDYzTb3pq8GdJEFMP5c1wpPE1b1BAeMvksmNsDE7?= =?us-ascii?Q?aR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ERw9W5MEkdAa+?= =?us-ascii?Q?lE9VtbIlQsUaF2EF8iCxVlWqRfPr+dSEtu0JNTuyapMxFfg4gX1y6yKJj2nH?= =?us-ascii?Q?VaLAdcfSTDifCmiQZl0D7x5wCdzMU0qVptpT/TJU?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 079c5914-dc3b-4ec2-c65e-08dce9a30dd2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 03:16:10.2485 (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: /07sUNvPDwU8a/CXIbIhfjVSADllcsSzlWzrRtWeO4AK6lqZMgtjhDlnzbM9KIzTF44eNjz5EVM/hePTyrIC1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10999 Content-Type: text/plain; charset="utf-8" Fix the build warnings when CONFIG_FSL_ENETC_MDIO is not enabled. The detailed warnings are shown as follows. include/linux/fsl/enetc_mdio.h:62:18: warning: no previous prototype for fu= nction 'enetc_hw_alloc' [-Wmissing-prototypes] 62 | struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem= *port_regs) | ^ include/linux/fsl/enetc_mdio.h:62:1: note: declare 'static' if the function= is not intended to be used outside of this translation unit 62 | struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem= *port_regs) | ^ | static 8 warnings generated. Fixes: 6517798dd343 ("enetc: Make MDIO accessors more generic and export to= include/linux/fsl") Cc: stable@vger.kernel.org Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202410102136.jQHZOcS4-lkp@int= el.com/ Signed-off-by: Wei Fang Reviewed-by: Vladimir Oltean --- include/linux/fsl/enetc_mdio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/fsl/enetc_mdio.h b/include/linux/fsl/enetc_mdio.h index df25fffdc0ae..623ccfcbf39c 100644 --- a/include/linux/fsl/enetc_mdio.h +++ b/include/linux/fsl/enetc_mdio.h @@ -59,7 +59,8 @@ static inline int enetc_mdio_read_c45(struct mii_bus *bus= , int phy_id, static inline int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int devad, int regnum, u16 value) { return -EINVAL; } -struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem *port_reg= s) +static inline struct enetc_hw *enetc_hw_alloc(struct device *dev, + void __iomem *port_regs) { return ERR_PTR(-EINVAL); } =20 #endif --=20 2.34.1