From: Christoph Hellwig Date: Tue, 1 Aug 2023 17:35:42 +0000 (+0200) Subject: net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index X-Git-Tag: v6.6.17~4090^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=569820befb16ffc755ab7af71f4f08cc5f68f0fe;p=platform%2Fkernel%2Flinux-rpi.git net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index 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 --- diff --git a/drivers/net/ethernet/freescale/enetc/enetc_ptp.c b/drivers/net/ethernet/freescale/enetc/enetc_ptp.c index 17c097c..5243fc0 100644 --- 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,