]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Aug 2023 17:35:42 +0000 (19:35 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:31 +0000 (12:00 +0100)
BugLink: https://bugs.launchpad.net/bugs/2039884
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@lst.de>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/freescale/enetc/enetc_ptp.c

index 17c097cef7d45fef43069f1ef45e02dc853690a7..5243fc031058904b27b0cf208a9d9ec5a6c58aa9 100644 (file)
@@ -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,