From patchwork Wed Aug 2 09:36:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9876445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7CC960360 for ; Wed, 2 Aug 2017 09:37:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE2D828798 for ; Wed, 2 Aug 2017 09:37:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A127C287A5; Wed, 2 Aug 2017 09:37:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B7E728798 for ; Wed, 2 Aug 2017 09:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdHBJhx (ORCPT ); Wed, 2 Aug 2017 05:37:53 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:53101 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbdHBJhw (ORCPT ); Wed, 2 Aug 2017 05:37:52 -0400 Received: from wuerfel.lan ([78.43.238.10]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MI6Uo-1dgg6v3zPa-003uqF; Wed, 02 Aug 2017 11:37:32 +0200 From: Arnd Bergmann To: Bartlomiej Zolnierkiewicz , Daniel Vetter Cc: Arnd Bergmann , Dan Carpenter , Sean Paul , Arvind Yadav , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: matrox: hide unused 'hotplug' variable Date: Wed, 2 Aug 2017 11:36:47 +0200 Message-Id: <20170802093722.3666961-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:8TXqOGk6GqFN2zZzbqdcG7EdYI1TDrqgIhU9QqdQFKyj1gbJxnf qx21x92trW8L4SxS7aeE9RBNlgKXpVtakjB8MK1jZxnqenCaAw7Bkntwi6yEcwf8T+4PWG8 XBgMooqX58mcOCVQbUOMRmcwThnECofItVeHKW6ohWTYIaDDEUSOjHG/sIbXE3o7CPmoEdB HLaBsbROJXgQB/JApQtyA== X-UI-Out-Filterresults: notjunk:1; V01:K0:NoKcR1pbCtw=:uSpR4VzTKedMcIjI630ZLc tkIlRDj0UDM4QTsZF9LEEXtoXboo5RlBGplyvAyzwl+nrbqKTA2ZMh106XWw3u9l9o9D4FvMd /dHwBFMJiwUkcAkekTyzkxl0J+SjNspUYoNvV647mZQl5dDpx5mPG9oZBo+9ZHLe/JGJ9XfFl kVGZ6l+zXqTCIsItDp/baMcgZUOwwa9Z6xdzi5zUQ5o/+y9H0wsVC9P03m9pNyHBZvyEfDFw8 4Iz2BokXVCDJN5AFP9VzD4bbdfCcLV5hPG2wjGNvVS1hYGrtGXZHsQ/xJyBhXbwd7armeYhVj Jj3VEDzOfXB2G47vb2Dm29YCY3JkK1y6D2of8xDD4h0nx2ihpPrRyu/fAMAs7B8ttLSYhCxAD MTEHndg8P+TZYCXl9Zf+32RocYUA//5NHyQr7CIOldpRdc4l4e3qTZ0E9dqfeR8PntLMJf03N iVf8jmDxrpEJtxZx8TcMAoIHYx/5K8ScrGApM5YkecZl7nTWu86iA16jFZwTQ8/g5SrcNXS+C kkDaHL5XgZajJ+y8g3cbfSPuQM4reIa0yI9sTiU1RPqeIi6wNhd4doebTJhBISVHF8bLAg9nR kSObI3kilGa7cDaWogxXh9YL03VE3W7Wxci+1NRYIQd9UgApZqHc9aw3XRXSbMtesHNJINLyt gHwwsi1CLTk+Pl9N22uGoLZJ9dOFZLgvlYLcJcHZzsz905AWeq/W+1CNoWMKQ/DLj7qflK6q5 E6YyNrOPqxIIa6Af94zxQ5BZN4vMyy24N2iSHA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable has become unused in modular configurations which triggers a harmless warning: drivers/video/fbdev/matrox/matroxfb_base.c:1583:12: error: 'hotplug' defined but not used [-Werror=unused-variable] This moves it into an #ifdef section of the file, matching all its references. Fixes: 376b3ff54c9a ("fbdev: Nuke FBINFO_MODULE") Signed-off-by: Arnd Bergmann Reviewed-by: Daniel Vetter --- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index fd1589fcdf15..00ea4e4ab95a 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -1578,9 +1578,9 @@ static struct fb_videomode defaultmode = { NULL, 60, 640, 480, 39721, 40, 24, 32, 11, 96, 2, 0, FB_VMODE_NONINTERLACED }; -#endif /* !MODULE */ static int hotplug = 0; +#endif /* !MODULE */ static void setDefaultOutputs(struct matrox_fb_info *minfo) {