Message ID | 20210113145009.1272040-24-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=rTNG=GQ=lists.freedesktop.org=dri-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBAE4C433E0 for <dri-devel@archiver.kernel.org>; Wed, 13 Jan 2021 14:51:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B0498235FF for <dri-devel@archiver.kernel.org>; Wed, 13 Jan 2021 14:51:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0498235FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.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) 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-Google-Smtp-Source: ABdhPJwF8QB82NwqEyn+scjHeSXF56DRGMKoUHEnV/4pPFJaM/1IosDrCdd2x+tLam8CZhkoj23PHQ== 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(-)