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 82F7C6FA7 for ; Sun, 17 Sep 2023 19:17:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8292C433C8; Sun, 17 Sep 2023 19:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694978239; bh=aCvsjbYM2sHMfDK7EX5yg7+GC4Wg28nf+2zfPLZ0qPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OegvBPm2AoisU+WDfCmOjQ7b9RbKR+u8FmMWODN2uUfGOzIix8i2IYICRi6wcdZRD DvXDPkAwT/OFBJ7JTDZehuA/6qofstAYltzjoR7oGQkD4exJpskECf9ydKdFD2noKv mA0qWBmp5ptAN8Gs2muliP8tP3/Ehonxxkbg9AtY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christoph Hellwig , Jakub Kicinski , Luis Chamberlain Subject: [PATCH 5.10 004/406] net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index Date: Sun, 17 Sep 2023 21:07:38 +0200 Message-ID: <20230917191101.193676050@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191101.035638219@linuxfoundation.org> References: <20230917191101.035638219@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christoph Hellwig commit 569820befb16ffc755ab7af71f4f08cc5f68f0fe upstream. enetc_phc_index is only used via symbol_get, which was only ever intended for very internal symbols like this one. Use EXPORT_SYMBOL_GPL for it so that symbol_get can enforce only being used on EXPORT_SYMBOL_GPL symbols. Signed-off-by: Christoph Hellwig Reviewed-by: Jakub Kicinski Reviewed-by: Greg Kroah-Hartman Signed-off-by: Luis Chamberlain Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/freescale/enetc/enetc_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/freescale/enetc/enetc_ptp.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_ptp.c @@ -8,7 +8,7 @@ #include "enetc.h" int enetc_phc_index = -1; -EXPORT_SYMBOL(enetc_phc_index); +EXPORT_SYMBOL_GPL(enetc_phc_index); static struct ptp_clock_info enetc_ptp_caps = { .owner = THIS_MODULE,