From: David Miller Subject: Re: [PATCH net-next] net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused Date: Wed, 26 Sep 2018 10:36:27 -0700 (PDT) Message-ID: <20180926.103627.366696832700107636.davem@davemloft.net> References: <20180926131418.2729391-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, f.fainelli@gmail.com, weiyongjun1@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: arnd@arndb.de Return-path: In-Reply-To: <20180926131418.2729391-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Arnd Bergmann Date: Wed, 26 Sep 2018 15:14:10 +0200 > The newly added runtime-pm support causes a harmless warning > when CONFIG_PM is disabled: > > drivers/net/phy/mdio-bcm-unimac.c:330:12: error: 'unimac_mdio_resume' defined but not used [-Werror=unused-function] > static int unimac_mdio_resume(struct device *d) > drivers/net/phy/mdio-bcm-unimac.c:321:12: error: 'unimac_mdio_suspend' defined but not used [-Werror=unused-function] > static int unimac_mdio_suspend(struct device *d) > > Marking the functions as __maybe_unused is the easiest workaround > and avoids adding #ifdef checks. > > Fixes: b78ac6ecd1b6 ("net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider") > Signed-off-by: Arnd Bergmann Applied.