[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160830.233238.1711742937489908366.davem@davemloft.net>
Date: Tue, 30 Aug 2016 23:32:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: sergei.shtylyov@...entembedded.com, ykaneko0929@...il.com,
kazuya.mizuguchi.ks@...esas.com, horms+renesas@...ge.net.au,
masaru.nagai.vx@...esas.com, niklas.soderlund+renesas@...natech.se,
netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ravb: avoid unused function warnings
From: Arnd Bergmann <arnd@...db.de>
Date: Fri, 26 Aug 2016 17:30:29 +0200
> When CONFIG_PM_SLEEP is disabled, we get a couple of harmless warnings:
>
> drivers/net/ethernet/renesas/ravb_main.c:2117:12: error: 'ravb_resume' defined but not used [-Werror=unused-function]
> drivers/net/ethernet/renesas/ravb_main.c:2104:12: error: 'ravb_suspend' defined but not used [-Werror=unused-function]
>
> The simplest solution here is to replace the #ifdef with __maybe_unused
> annotations, which lets the compiler do the right thing by itself.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> Fixes: 0184165b2f42 ("ravb: add sleep PM suspend/resume support")
Applied, thanks.
Powered by blists - more mailing lists