From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 63C0D1E7C10; Mon, 21 Oct 2024 10:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729506455; cv=none; b=hE3o8oexuWta6sO7FHMi2XYPnp2PUpR3Lx/gmiVrtJpjpe1LDsTkzqLdabaDvAP85rOZnBwZ/NqhDavBf82mLqvQt0cCzba12ERYHmtxMQAl9dgpIwaUKfpI93v1AmuwUuFLUZ7j9BCEOEYCpdZpUTymy/Jt7hJisPnd7Cck9U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729506455; c=relaxed/simple; bh=tnvV29nc7flNY7GW2jdoTCayLM0hSmnqC9e2U0K5Loc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NzYiESUsN6gzMPooiKO2LNFpMDVEmlDr+GYVBt09eIkk5zqXKLgRt9+QXLn00NhUpHAtJgpgAIA5fgKw4SlOAJnFV6MDkUH/sGt4mVzotbUIM2mtYfkPboWB8ytsMs3TnNxc7yJvx5YoYEfvOYfAmHlnWuo89KmHKIyFYFn8rh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gyWqvr2q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gyWqvr2q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72DB1C4CEC3; Mon, 21 Oct 2024 10:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729506455; bh=tnvV29nc7flNY7GW2jdoTCayLM0hSmnqC9e2U0K5Loc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gyWqvr2qhPZ3pogm3RSLPUf6utaG6Y552P8um2moPC1z22N1n4CJYHcPtqWMG/7e/ o8LLqJrK0Igfg6uqtJeSYSnWMmE0cL1tP+Pyq+L6b0MLiYFddpzONRr3B4ucfOdO+z IpY7NLFwN65KpiDY3jfqwht7cJogVcM9mWfPN7WA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Wei Fang , Claudiu Manoil , Vladimir Oltean , Jakub Kicinski Subject: [PATCH 6.11 011/135] net: enetc: add missing static descriptor and inline keyword Date: Mon, 21 Oct 2024 12:22:47 +0200 Message-ID: <20241021102259.779258039@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021102259.324175287@linuxfoundation.org> References: <20241021102259.324175287@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wei Fang commit 1d7b2ce43d2c22a21dadaf689cb36a69570346a6 upstream. 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 function '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@intel.com/ Signed-off-by: Wei Fang Reviewed-by: Claudiu Manoil Reviewed-by: Vladimir Oltean Link: https://patch.msgid.link/20241011030103.392362-1-wei.fang@nxp.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- include/linux/fsl/enetc_mdio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- 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(st 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_regs) +static inline struct enetc_hw *enetc_hw_alloc(struct device *dev, + void __iomem *port_regs) { return ERR_PTR(-EINVAL); } #endif