Re: [PATCH] spi: tegra20-slink: fix "defined but not used" if !CONFIG_PM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 12, 2021 at 11:25:19PM +0200, Adam Borowski wrote:

> +#ifdef CONFIG_PM
>  static int tegra_slink_runtime_suspend(struct device *dev);
>  static int tegra_slink_runtime_resume(struct device *dev);
> +#endif

ifdefs are not an idiomatic fix, use __maybe_unused if you have to.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux