Skip to content

Commit fbbfb3f

Browse files
arndbherbertx
authored andcommitted
hwrng: omap3-rom - Fix unused function warnings
When runtime-pm is disabled, we get a few harmless warnings: drivers/char/hw_random/omap3-rom-rng.c:65:12: error: unused function 'omap_rom_rng_runtime_suspend' [-Werror,-Wunused-function] drivers/char/hw_random/omap3-rom-rng.c:81:12: error: unused function 'omap_rom_rng_runtime_resume' [-Werror,-Wunused-function] Mark these functions as __maybe_unused so gcc can drop them silently. Fixes: 8d9d4bd ("hwrng: omap3-rom - Use runtime PM instead of custom functions") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 13a1bb9 commit fbbfb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/hw_random/omap3-rom-rng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w)
6262
return r;
6363
}
6464

65-
static int omap_rom_rng_runtime_suspend(struct device *dev)
65+
static int __maybe_unused omap_rom_rng_runtime_suspend(struct device *dev)
6666
{
6767
struct omap_rom_rng *ddata;
6868
int r;
@@ -78,7 +78,7 @@ static int omap_rom_rng_runtime_suspend(struct device *dev)
7878
return 0;
7979
}
8080

81-
static int omap_rom_rng_runtime_resume(struct device *dev)
81+
static int __maybe_unused omap_rom_rng_runtime_resume(struct device *dev)
8282
{
8383
struct omap_rom_rng *ddata;
8484
int r;

0 commit comments

Comments
 (0)