Skip to content

Commit

Permalink
rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
Browse files Browse the repository at this point in the history
commit 95e7ebc upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Christoph Hellwig authored and gregkh committed Sep 6, 2023
1 parent 9152196 commit 36231e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds1685.c
Expand Up @@ -1434,7 +1434,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev)
unreachable();
}
}
EXPORT_SYMBOL(ds1685_rtc_poweroff);
EXPORT_SYMBOL_GPL(ds1685_rtc_poweroff);
/* ----------------------------------------------------------------------- */


Expand Down

0 comments on commit 36231e2

Please sign in to comment.