Skip to content

Commit 569820b

Browse files
Christoph Hellwigmcgrof
authored andcommitted
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 <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>
1 parent d4a5c59 commit 569820b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/enetc/enetc_ptp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "enetc.h"
99

1010
int enetc_phc_index = -1;
11-
EXPORT_SYMBOL(enetc_phc_index);
11+
EXPORT_SYMBOL_GPL(enetc_phc_index);
1212

1313
static struct ptp_clock_info enetc_ptp_caps = {
1414
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)