Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751735AbdIOTwh (ORCPT ); Fri, 15 Sep 2017 15:52:37 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:53854 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259AbdIOTwf (ORCPT ); Fri, 15 Sep 2017 15:52:35 -0400 From: Arnd Bergmann To: Bluecherry Maintainers , Anton Sviridenko , Andrey Utkin , Ismael Luceno , Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] solo6x10: hide unused variable Date: Fri, 15 Sep 2017 21:52:04 +0200 Message-Id: <20170915195225.1394284-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:7r8nPAPJBY9LRG75bJflT0kjurUGMotdTBZHIdYg4Kz5VbQHWfd JD9F7e3Kv5FM0dsRXU2AGy6phtPMEwFv380Gi1urgWv3vf5x+uz4nRq4zXRKYUnka0Bw16M tePtZmea/DiCNXMqUrAvyzsMkyw7fhEgCX5UflElYQPaf/q1YLkIsj6OEunQ7ZvOjJNr26h 1/sqJs4FBzQeNq4e0q95A== X-UI-Out-Filterresults: notjunk:1;V01:K0:sLYySDv0CGI=:6YFGq1kQ7AhMWRhuZ5e/gT ek+8EJaVOsp4aSRR9Efh2WqAwQeWqhz8b+cE/KEVjr7FZPMc0Omw9Olf/qZlZym4RPjXfCqGz lPUPiFUQiGdPoae1G5gQeC0rrDUFlmbr2Ka4Bg7aKhdAnLD0KQL2Col7yGullpBB4EUPz/feP JJk2nS09vIuRuP6PqbvPGHG0iH8wRTdHLFvQoMnFAK7wx+/C8DJy+stuvPAAQPNxw1DRjDZ8v dXoRBziowxz5piFGnbS0o34FLlcYLAlECiCouMpHMtxXeBUu5ew1dJ3PpgxErTuZOSvsKUomJ hCOiB78I3b/7naYtlu6v7stcMWUylD++25eScuUUnbVfc6YpZSDX45SFnU3B4qxuq8in8IbuH DEMLCa6ym6kSGWsVTPK0RFGPmwMywVTwF+CPl4HEcn8jdnA4339dWUCwnKl/FXB/edStIVxX3 9ijpbKIicdlvfBRRjAHQRmCAQy0/B5i3OFCov7JEFM0A6Ew374kRABSchDHmlSTbyXO2u3mBG 5Aq+IHY0UHjCD7ZiF7BKft3QLXWTwQPrnFaxZF379WHTjhErIy5HCMb62JerwdJUDRt2zSfcF QxunARK/51HC2jqa4Fq9XXeZx3pD9iUtQxVZ34ipNtm2ZYpuV5M+YoLumo6GjKLGSldfOlH/M AvszqNf1F+J5lM2cTISNLdQ8yhhhMFv31LPdFhUQxScD0qWXTkE4+p6aYL0R8v2oDXvBOuL36 h+uEqyBZTuBh0KQ+yIXqsk+A1gGWPFMm65DhOQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 30 When building without CONFIG_GPIOLIB, we get a harmless warning about an unused variable: drivers/media/pci/solo6x10/solo6x10-gpio.c: In function 'solo_gpio_init': drivers/media/pci/solo6x10/solo6x10-gpio.c:165:6: error: unused variable 'ret' [-Werror=unused-variable] This adds another #ifdef around the declaration. Fixes: d3202d1981dc ("media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface") Signed-off-by: Arnd Bergmann --- drivers/media/pci/solo6x10/solo6x10-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/pci/solo6x10/solo6x10-gpio.c b/drivers/media/pci/solo6x10/solo6x10-gpio.c index 3d0d1aa2f6a8..7b4641a2cb84 100644 --- a/drivers/media/pci/solo6x10/solo6x10-gpio.c +++ b/drivers/media/pci/solo6x10/solo6x10-gpio.c @@ -162,7 +162,9 @@ static void solo_gpiochip_set(struct gpio_chip *chip, int solo_gpio_init(struct solo_dev *solo_dev) { +#ifdef CONFIG_GPIOLIB int ret; +#endif solo_gpio_config(solo_dev); #ifdef CONFIG_GPIOLIB -- 2.9.0