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)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 2 Aug 2023 18:18:22 +0000 (11:18 -0700)
commit569820befb16ffc755ab7af71f4f08cc5f68f0fe
tree9f2acf69ed9acf822d4e39f455550cfee7b020cd
parentd4a5c59a955bba96b273ec1a5885bada24c56979
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>
drivers/net/ethernet/freescale/enetc/enetc_ptp.c