From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753539AbaA0Jyy (ORCPT ); Mon, 27 Jan 2014 04:54:54 -0500 Received: from mail-we0-f182.google.com ([74.125.82.182]:45879 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431AbaA0Jyx (ORCPT ); Mon, 27 Jan 2014 04:54:53 -0500 Date: Mon, 27 Jan 2014 09:54:32 +0000 From: Lee Jones To: Geert Uytterhoeven Cc: Krzysztof Kozlowski , Samuel Ortiz , Sangbeom Kim , Chanwoo Choi , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM_SLEEP Message-ID: <20140127095432.GB14478@lee--X1> References: <1390732723-7129-1-git-send-email-geert@linux-m68k.org> <1390811288.4974.4.camel@AMDC1943> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> If CONFIG_PM_SLEEP=n: > >> > >> drivers/mfd/max14577.c:177: warning: ‘max14577_suspend’ defined but not used > >> drivers/mfd/max14577.c:200: warning: ‘max14577_resume’ defined but not used > >> > >> Signed-off-by: Geert Uytterhoeven > >> --- > >> drivers/mfd/max14577.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c > >> index ac514fb2b877..71aa14a6bfbb 100644 > >> --- a/drivers/mfd/max14577.c > >> +++ b/drivers/mfd/max14577.c > >> @@ -173,6 +173,7 @@ static const struct i2c_device_id max14577_i2c_id[] = { > >> }; > >> MODULE_DEVICE_TABLE(i2c, max14577_i2c_id); > >> > >> +#ifdef CONFIG_PM_SLEEP > >> static int max14577_suspend(struct device *dev) > >> { > >> struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); > >> @@ -208,6 +209,7 @@ static int max14577_resume(struct device *dev) > >> > >> return 0; > >> } > >> +#endif /* CONFIG_PM_SLEEP */ > >> > >> static struct of_device_id max14577_dt_match[] = { > >> { .compatible = "maxim,max14577", }, > > > > Same here: > > http://thread.gmane.org/gmane.linux.kernel/1615513/focus=1615563 > > although I don't mind if your patch comes in :). > > Sorry, missed those. > It's a pity these known fixes don't go in together with the code that introduces > them... Great idea. Can I borrow your time machine? ;) Or, we can use the -rcs, as this is what they were designed for. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog