Message ID | 20210113145009.1272040-24-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 t13csp598388jap; Wed, 13 Jan 2021 06:51:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJziDDHp/Sobv5fkw1hYLCCNztymN40TB3WrOsAb9RiKBbEL+ldP72ekJGz1JUHEe3q9N4GM X-Received: by 2002:a63:174f:: with SMTP id 15mr2411785pgx.49.1610549464914; Wed, 13 Jan 2021 06:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549464; cv=none; d=google.com; s=arc-20160816; b=XF2mUE7cgHReBOtMoo5bj7Ti2Fusp+1+VjNTXu72yytTyY5lOPgtQhznQhcu2bbTWG qL1kQ5ro7YOM892MlPysG7VNTOwZKrcQhEM3r6330XUcroIRSBziMFAEbZB/Uvwft3Is MDtlcz+ujiC8B6D2Zy7QzeHdVRzVghyrKVA2DEvKl22e1L7uK4RMNw/uSV1+oiOj5wbk d6C5fe/0VejkijmWADCWM6i61i52dfxIF1v3ZemEMUfWtwfJb4B7XkWijPgEWwIrYbER t4dALpS31nbLmwR67Pkz5BvjG7rbMQ2wC5oXgW1bh5U2S0r+jMZSIpCFLhx4YDunhwIg i1Ug== 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=Vveo/vbN03J4pu602XY+LCT1eZ/st3MVZV90VrCA3E0=; b=xcW/R4wxJQgE/76VQ1E/WRdYgPiq+yaW0yBTmkdTfIpLx+lN7z4ttzyJpNAWvrrDaa vKo6j1jGLrPFrrFi/Ag/vdjO1jIVUSYJzlzM7xWvovK2pL1YO+XRaFUBzopG+smVvZ65 2a0+NawV+oe8IDBNcva+tXMXqnYONOQgBERNOE4Jmg+tlUbD0DAiADMNnnb2fggHIpul qUh1UAFT6ngBkiKPCghblDEpZh1iowpQfSptDxUTcMFqaYD1YKJOmDctDQRncWHefuaP J3gKT5PqhepR8RogM/FMnIUjG9gGOCRMr6rL1SDVBvL5/AawGTEEXkuDeqLLQtndtfsf hbYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q1+kp8rl; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id c8si2592080pgw.214.2021.01.13.06.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:51:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q1+kp8rl; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 B67F96EA6D; Wed, 13 Jan 2021 14:50:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 32A956EA62 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 14:50:48 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id r3so2427416wrt.2 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 06:50:48 -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=8R8CrMmu7yuBA/ZNIQZlAyfMprfiOkPW3GpI5ayBsWg=; b=q1+kp8rlc5YHssN6Eq89+XBI9+3PExs7mtj+vKpE1TFKE1rjX2///yzy+zDTZKSmOo veDWfzfkp2jlcqkWf6hyrhxd4ZIDNoNqF9HS7ddPt4booh+FDzx3O5uQ2G8rdhZHcVp3 PA1ZgIYstzQ14gHP1p8JOg40/+Qe5fqobxdt9bJb49f5X37fSTQnByGZCt6BqgU83z6p QzAtbnYyN0YvKG7g442YVr2E98ZQvzgo4BnA5yP33ogF0/EDLppn6AMEy+q/dBx0eQ5f Im6lCkgNGn1IZSkhzSUaYdClRbl34RHO4jN1MiOjnXDBZW66eOJRiiEjwIv769RVoAR7 qlfA== 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=8R8CrMmu7yuBA/ZNIQZlAyfMprfiOkPW3GpI5ayBsWg=; b=GQ1lQN5CN3t9N/nXuruGJoYAdWYGOY79rmAytG/C0SfoOcGyeNYZ4m10yqdDs7sLfw wdFoSB/Reg3bFTOfKRSstbYGfPwsBKITY5DJzPuD7xLuo3jd8tW77JlH9o8SxfY84SCM MLZodTCW75uMn1ILiok170Aq2v0Kb0u1VBL5q1uKV9gieh51DOcUETslAwI6wT2AU7Wq Rm8msV+CwUyqaA3HX2T57tLm0D+mSV3JUyGEQvGXaPWELWswJwr2Hy1Ow0vFAWAVLk1A 4b65RonXvFx0YxYBV3wx7vILMR5OfIAco9kb2KBhcJZCg6qk4nHlBXScC0ye87UcYj14 sYtg== X-Gm-Message-State: AOAM5318xAsc9vOz2FApyJmedyy8DGpvJHy2L0Ti26qeZ+FQjXkx/P8T bEOcX52EzY6zHj3V58qCK9mimA== X-Received: by 2002:a5d:4d50:: with SMTP id a16mr2926797wru.43.1610549446928; Wed, 13 Jan 2021 06:50:46 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:46 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 23/31] video: fbdev: s1d13xxxfb: Mark debug variables as __maybe_unused Date: Wed, 13 Jan 2021 14:50:01 +0000 Message-Id: <20210113145009.1272040-24-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, Thibaut VARENE <varenet@parisc-linux.org>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Dooks <ben@simtec.co.uk>, Kristoffer Ericson <kristoffer.ericson@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/s1d13xxxfb.c b/drivers/video/fbdev/s1d13xxxfb.c index 4541afcf9386e..e6e8bc74412c6 100644 --- a/drivers/video/fbdev/s1d13xxxfb.c +++ b/drivers/video/fbdev/s1d13xxxfb.c @@ -640,8 +640,8 @@ static void s1d13xxxfb_fetch_hw_state(struct fb_info *info) u16 offset; u32 xres, yres; u32 xres_virtual, yres_virtual; - int bpp, lcd_bpp; - int is_color, is_dual, is_tft; + int bpp, __maybe_unused lcd_bpp; + int is_color, __maybe_unused is_dual, is_tft; int lcd_enabled, crt_enabled; fix->type = FB_TYPE_PACKED_PIXELS;
Can't declare these under the same clause as their use, since debugging is enabled manually with an '#if {0,1}', so mark them as __maybe_unused instead to notify the compiler that this behaviour is expected. Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/s1d13xxxfb.c: In function ‘s1d13xxxfb_fetch_hw_state’: drivers/video/fbdev/s1d13xxxfb.c:644:16: warning: variable ‘is_dual’ set but not used [-Wunused-but-set-variable] drivers/video/fbdev/s1d13xxxfb.c:643:11: warning: variable ‘lcd_bpp’ set but not used [-Wunused-but-set-variable] Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com> Cc: Thibaut VARENE <varenet@parisc-linux.org> Cc: Ben Dooks <ben@simtec.co.uk> Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/video/fbdev/s1d13xxxfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)