diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-01 20:35:43 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-08-02 21:18:22 +0300 |
commit | 95e7ebc6823170256a8ce19fad87912805bfa001 (patch) | |
tree | 1a1a47c7fb17f37c420854ccf843289458e11ffe | |
parent | 569820befb16ffc755ab7af71f4f08cc5f68f0fe (diff) | |
download | linux-95e7ebc6823170256a8ce19fad87912805bfa001.tar.xz |
rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
ds1685_rtc_poweroff is only used externally 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>
Acked-by: Joshua Kinard <kumba@gentoo.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r-- | drivers/rtc/rtc-ds1685.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 0f707be0eb87..04dbf35cf3b7 100644 --- a/drivers/rtc/rtc-ds1685.c +++ b/drivers/rtc/rtc-ds1685.c @@ -1432,7 +1432,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) unreachable(); } } -EXPORT_SYMBOL(ds1685_rtc_poweroff); +EXPORT_SYMBOL_GPL(ds1685_rtc_poweroff); /* ----------------------------------------------------------------------- */ |