From patchwork Fri May 31 15:59:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 2644851 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5DB6EDFB79 for ; Fri, 31 May 2013 16:00:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017Ab3EaQAL (ORCPT ); Fri, 31 May 2013 12:00:11 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:51136 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752843Ab3EaQAK (ORCPT ); Fri, 31 May 2013 12:00:10 -0400 Received: from wuerfel.localnet (HSI-KBW-095-208-002-043.hsi5.kabel-badenwuerttemberg.de [95.208.2.43]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MGL3r-1Ug1x92WNr-00FAly; Fri, 31 May 2013 17:59:44 +0200 From: Arnd Bergmann To: Linus Walleij , linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Tony Lindgren , Jon Hunter , Santosh Shilimkar , Kevin Hilman Subject: [PATCH] gpio/omap: omap_gpio_init_context stub must be inline Date: Fri, 31 May 2013 17:59:46 +0200 Message-ID: <2942784.trumtc2GjZ@wuerfel> User-Agent: KMail/4.10.2 (Linux/3.10.0-rc3-next-20130527+; KDE/4.10.3; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V02:K0:wfjrB23i1oCOJq9p4xPRXlBG1cSFLVQSmrGqWu1iKhj HSPWwRdhaefOjRR9M+JZnnXkoBR9DasYixtvv/SuiJhgE74KqE ZlZ/Bpqtu62cujDklUMPh5n7HCbF+byG575/k/GUq++vZ8EIfw EkV83wuzGWjsBNTZtsXCCtpa21ppw5Nr2p5jeAkIuzDFAm0eh3 mg6FxpKbY0LjVqgGMyCV1O+FT6dySW4RfrmfXo3BBBkN9S+AZs lclF2in+3LkP7EYjze2eSzkGNtDna2HEnM1h4YcD8RwY79P1Jc ZNh73f51IHPsK+9UxB5r1x+WqBxstXn3zv3sJUQFtQbECGChyU k2uRVuhi/usr8E2nkAwk= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The bug fix 352a2d5bf "gpio/omap: ensure gpio context is initialised" has caused a new warning for omap1_defconfig: drivers/gpio/gpio-omap.c:1465:13: warning: 'omap_gpio_init_context' defined but not used [-Wunused-function] static void omap_gpio_init_context(struct gpio_bank *p) {} ^ The solution is to mark the stub function as 'static inline' so it gets left out of the build when unused. Signed-off-by: Arnd Bergmann Acked-by: Tony Lindgren Acked-by: Santosh Shilimkar --- -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index d3f7d2d..e5fba65 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1462,7 +1462,7 @@ static void omap_gpio_restore_context(struct gpio_bank *bank) #else #define omap_gpio_runtime_suspend NULL #define omap_gpio_runtime_resume NULL -static void omap_gpio_init_context(struct gpio_bank *p) {} +static inline void omap_gpio_init_context(struct gpio_bank *p) {} #endif static const struct dev_pm_ops gpio_pm_ops = {