[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b87566e9-c398-d390-e029-0a28b2c7fbf9@oracle.com>
Date: Fri, 6 Jul 2018 10:26:19 -0700
From: "santosh.shilimkar@...cle.com" <santosh.shilimkar@...cle.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Santosh Shilimkar <ssantosh@...nel.org>,
Keerthy <j-keerthy@...com>, Dave Gerlach <d-gerlach@...com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] soc: ti: wkup_m3_ipc: mark PM functions as __maybe_unused
On 7/6/18 5:36 AM, Arnd Bergmann wrote:
> Everyone gets these #ifdefs wrong, leading to another warning here:
>
> drivers/soc/ti/wkup_m3_ipc.c:547:12: error: 'wkup_m3_ipc_resume' defined but not used [-Werror=unused-function]
> static int wkup_m3_ipc_resume(struct device *dev)
> drivers/soc/ti/wkup_m3_ipc.c:539:12: error: 'wkup_m3_ipc_suspend' defined but not used [-Werror=unused-function]
> static int wkup_m3_ipc_suspend(struct device *dev)
>
> The easiest way to get it right is to remove all the #ifdefs and
> let the compiler drop the unused functions silently after we
> mark them as __maybe_unused.
>
> Fixes: 7a872b6fb7fd ("soc: ti: wkup_m3_ipc: Add rtc_only with ddr in self refresh mode support")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
Applied. Thanks Arnd !!
Regards,
Santosh
Powered by blists - more mailing lists