From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223AbcD0ONg (ORCPT ); Wed, 27 Apr 2016 10:13:36 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:36007 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbcD0ONa (ORCPT ); Wed, 27 Apr 2016 10:13:30 -0400 Subject: Re: [PATCH] pinctrl: ish-pfc: avoid unused variable warning To: Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven , Linus Walleij References: <1461751049-2751427-1-git-send-email-arnd@arndb.de> Cc: Simon Horman , Wolfram Sang , Ulrich Hecht , Laxman Dewangan , Hisashi Nakamura , Takeshi Kihara , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org From: Sergei Shtylyov Message-ID: Date: Wed, 27 Apr 2016 17:13:25 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1461751049-2751427-1-git-send-email-arnd@arndb.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. s/ish-/sh-/ in the subject. On 4/27/2016 12:56 PM, Arnd Bergmann wrote: > After the conversion to devm_pinctrl_register, we get a warning in > sh_pfc_remove when CONFIG_PINCTRL_SH_PFC_GPIO is disabled: > > drivers/pinctrl/sh-pfc/core.c: In function 'sh_pfc_remove': > drivers/pinctrl/sh-pfc/core.c:603:17: unused variable 'pfc' [-Werror=unused-variable] > struct sh_pfc *pfc = platform_get_drvdata(pdev); > > This moves the variable definition inside of the same ifdef > that has the only user, to get a clean build again. > > Signed-off-by: Arnd Bergmann > Fixes: 67ec8d7b4846 ("pinctrl: ish-pfc: Use devm_pinctrl_register() for pinctrl registration") Ah, the broken patch also has this typo. :-) WBR, Sergei