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]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux