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: 109199 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp2557595qge; Wed, 2 Aug 2017 02:37:54 -0700 (PDT) X-Received: by 10.98.223.18 with SMTP id u18mr21829949pfg.166.1501666674200; Wed, 02 Aug 2017 02:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501666674; cv=none; d=google.com; s=arc-20160816; b=fkcZqJmMZGnlxX7+askdVN+oBjTu3vVUxwyo2Z+JcvdulDWrcGVKUX/SPiPhuQNbsO /RMgNYUK2cXfELuBHJC14zUr8ErCqNKur5WqvuGvDa6QbzcvC1znoA1Nt91sj/VYY7c6 RK/2PdfkVFW4PKG02uCVOS4+MLHfhRwCH3ftPFYHb15vhkPBtT2V7JnPS/4C+ZAhmYxk OjBTuNRoJP2ZtcX7GtiGttHunMun83x06IpgQqRHplxs10C+sq1kCb4+9JJF4tGr52K/ ULL69p2PaRKRq7mOnHPHm9VM22pqSRGIIQ/N+TkZtNzL+mMC87KacUwhSnBiuqd2pm5v U3Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mJD/4mKKeyAuP5l7xus8EyQseYxl2iuNvESkfmpwhZE=; b=JtVVwpx9yxt67ld2SCMAgLb2ismYQrgxeGBbopO0ZMIu7bPlWGLfuXJkk//SwDnhgd i1PYQHZETqQGlqq8zM4VmMyvlUqpLrU6W5wpz/V1ovsWg2RZaoSuAost4XMlyRuGDhu5 RRSGoSjY3fYhXYYNr0PwIVwhabUaXAx7FRFpe6qHzfzh32CrjVMD++D3NBaeYykqurkC 5oETEiK7fgpDF5mr2ocwLQAubGkcNBCxRQrpB0JE+7MsoBzcmIihjp/BA8SEKP9oy3+1 pLS+r1tt0Nq1L/QeL54O3iMMHSvQfyGNaUoYvzowQ3FUKzYo+rzVpiesw89f0fPiCZm7 0LbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si4003842plj.158.2017.08.02.02.37.54; Wed, 02 Aug 2017 02:37:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdHBJhx (ORCPT + 2 others); 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:8TXqOGk6GqFN2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List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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 --- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Daniel Vetter 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) {