This is a note to let you know that I've just added the patch titled net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: net-enetc-use-export_symbol_gpl-for-enetc_phc_index.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 569820befb16ffc755ab7af71f4f08cc5f68f0fe Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@xxxxxx> Date: Tue, 1 Aug 2023 19:35:42 +0200 Subject: net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index From: Christoph Hellwig <hch@xxxxxx> 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 <hch@xxxxxx> Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx> Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 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, Patches currently in stable-queue which might be from hch@xxxxxx are queue-5.15/mmc-au1xmmc-force-non-modular-build-and-remove-symbol_get-usage.patch queue-5.15/net-enetc-use-export_symbol_gpl-for-enetc_phc_index.patch queue-5.15/modules-only-allow-symbol_get-of-export_symbol_gpl-modules.patch queue-5.15/rtc-ds1685-use-export_symbol_gpl-for-ds1685_rtc_poweroff.patch queue-5.15/arm-pxa-remove-use-of-symbol_get.patch