]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Sep 2023 20:28:37 +0000 (21:28 +0100)
commit3d0f6408601b620f3d382c655cfd5adc982ad439
treede34754aa4d116c705e1b821fb3972c019a366d3
parentda95090821c40a3e83164f0a1c8434103a69df21
net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index

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>
drivers/net/ethernet/freescale/enetc/enetc_ptp.c