Message ID | 20210113145009.1272040-22-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp599657jap; Wed, 13 Jan 2021 06:52:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2/yoL0LISTz58wKFMaR01sLudyUmYySZdeyDmtevusfaiW594SeWIh0acu9QJgJ5aaEEV X-Received: by 2002:a17:902:f686:b029:de:18c7:41f8 with SMTP id l6-20020a170902f686b02900de18c741f8mr2706441plg.65.1610549454141; Wed, 13 Jan 2021 06:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549454; cv=none; d=google.com; s=arc-20160816; b=tfQi2dfx+qlpkimG2M+pdV3dttn37cTumkfpQ2O8BLLvxXVGbDIeCeJvPumjQimMtQ rQkIIY5b8Q8eJ5CNh89NcxJhjKRXBh/N/JM+qxo9EuQDHEbNrrYXTJp1t+EAmhWk8dkU A1JZsicsrK94+8Q5QC0K70opX5vDzQRlsqL297xaFL/T3V54d0FXfV5kCa27KUBtMBzU nPicRRR9YKqCtNCmKTgjsYoFQNyCMHKNC1JHDWXonryPP5T5ZsrfCdLolU/dFBB8mddU C0Iu74rRXqLp/OlJqtfR+yuwbp2EjX+XVWiA+JXLAbG2IqkbcGbCymMION/z4SvzaTqt VcZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=6tOxi4i7IftlDZCAc+ih/GJrUd2vSspfIFJOSbyOUNI=; b=h/XocqtfVBhAYEzd4H9OcXspdi21PLOsyVYjTHhFB02WKMtDRcf8Cd+4607sDr/aBI G1NXng8CK+u8TyBMjqhXKSDyzAhMoHfE1GZRAyt/7gurJckNae3jRyuEFqG9DtVenItE 0A/qtuO4j1mXgZ7oknNs9Lbc9MzMIQL11h1yzsfkMj5Z2HFMFu+hn66ldHa0RGll4uGg 27Ax7EZCngnKxB8DGyCr2Fd72vYGWyhRxFqzvzHJ+rGjBNSVKEunBbd9wFX8JQuqTbZd iRyBrFXQfyYv1EN3yPyxzXF5RhmGfWOMB999nrtJL920wVNGtvzCkO49CWreUfIEoo90 uJyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h7CCOaMR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id f1si2588770pjo.106.2021.01.13.06.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h7CCOaMR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C76C06EA62; Wed, 13 Jan 2021 14:50:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE5D66EA62 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 14:50:45 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id a12so2392953wrv.8 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 06:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kdRuSJvii4mKY/Efrp+W2ecV3k/kYMixGrJ5X2aYPPE=; b=h7CCOaMRu/KwDp4FkMru0iAXzhcqDT8Zgx3TFkmqeQ+lFmQabkd31QQ+lufeDRUy3X LtVPTgu8/Zqp1FSR8BAvO7dZtJzfFJCxlVtW1Nocwnb68P37FSE+be5cVVaNK5Tt8JCU 9w0Ph8RfNh92LMTOPQay3rdqNK2k+J9YHe1s4Pc7Cfwul+RTcoi4Ud5EHifbnQv/CgAl HXLZdEt7o50147fxcADWLOPX90H4PF4f7epdHBvT72f7b/PpYAha9w6yexNN/IIcz2uN fnQb+ZapvvgV5yFNpXtWjyjgqG+ixxGtM9qn4DjB5lbBlmDCcef1Kbvt5M9KefOQMbJJ FfRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kdRuSJvii4mKY/Efrp+W2ecV3k/kYMixGrJ5X2aYPPE=; b=cJAxdU2kqecmfgFAYtddy9+o62Um1rwHRzsXdkbpcjgKlTUpJ0UiDX8pCbqRDD0Xg7 2e+bw+vYT9RznnULogSjQU2vVL7eziS1bGw4og2fPCXQ++wwkwrKaaCrOC7a0YG6P/Ei NFRj4L6KYyQTHdZir7LSlj72wQWhNIlCytsmdVIv64kvKgvpStUkc1qRbQaAmE5Ki2Mn o5ppb0poEkBTqMOSQrRPISoanpPrYCwsHaCc8iLva9EgHRLd0LlR7jGABItySWB/RfxZ +LDLDU/Q8c55XV4+iAjVh1AEZPH6Tr/LNdzHkmsB3dPQMD6eseFACfPQsGfcfBVflSS9 2TwA== X-Gm-Message-State: AOAM532gPu/yHqRz/KYKf2s7Rd619l9A6GaZaf19CFKZf/ZjrL/KGbil SA43bgU/0dNF1dmP9l4vkrq+jg== X-Received: by 2002:a05:6000:108b:: with SMTP id y11mr2937092wrw.379.1610549444578; Wed, 13 Jan 2021 06:50:44 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:43 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 21/31] video: fbdev: sstfb: Mark 3 debug variables as __maybe_unused Date: Wed, 13 Jan 2021 14:49:59 +0000 Message-Id: <20210113145009.1272040-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: linux-fbdev@vger.kernel.org, Urs Ganse <ursg@uni.de>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Helge Deller <deller@gmx.de>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alan Cox <alan@redhat.com>, Paul Mundt <lethal@chaoticdreams.org>, Ghozlane Toumi <gtoumi@laposte.net>, Alex Dewar <alex.dewar90@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from Video
|
expand
|
diff --git a/drivers/video/fbdev/sstfb.c b/drivers/video/fbdev/sstfb.c index c05cdabeb11c2..b8813a0b63b1d 100644 --- a/drivers/video/fbdev/sstfb.c +++ b/drivers/video/fbdev/sstfb.c @@ -931,7 +931,7 @@ static int sst_detect_ics(struct fb_info *info) { struct sstfb_par *par = info->par; int m_clk0_1, m_clk0_7, m_clk1_b; - int n_clk0_1, n_clk0_7, n_clk1_b; + int __maybe_unused n_clk0_1, __maybe_unused n_clk0_7, __maybe_unused n_clk1_b; int i; for (i = 0; i<5; i++ ) {
These are only used if SST_DEBUG_FUNC is set. Declare them under the same clause as their use. Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/sstfb.c: In function ‘sst_detect_ics’: drivers/video/fbdev/sstfb.c:934:26: warning: variable ‘n_clk1_b’ set but not used [-Wunused-but-set-variable] drivers/video/fbdev/sstfb.c:934:16: warning: variable ‘n_clk0_7’ set but not used [-Wunused-but-set-variable] drivers/video/fbdev/sstfb.c:934:6: warning: variable ‘n_clk0_1’ set but not used [-Wunused-but-set-variable] Cc: Alex Dewar <alex.dewar90@gmail.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Cc: Ghozlane Toumi <gtoumi@laposte.net> Cc: James Simmons <jsimmons@infradead.org> Cc: Paul Mundt <lethal@chaoticdreams.org> Cc: Urs Ganse <ursg@uni.de> Cc: Helge Deller <deller@gmx.de> Cc: Alan Cox <alan@redhat.com> Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/video/fbdev/sstfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)