Message ID | 20210113145009.1272040-21-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 61F90C433E6 for <dri-devel@archiver.kernel.org>; Wed, 13 Jan 2021 14:50:56 +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 102B7235FF for <dri-devel@archiver.kernel.org>; Wed, 13 Jan 2021 14:50:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 102B7235FF 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 C30D96EA6A; Wed, 13 Jan 2021 14:50:52 +0000 (UTC) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C2546EA5F for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 14:50:44 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id d13so2384746wrc.13 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 06:50:44 -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=8AKZe0pvPLHu3x895juPn/Z4GbXtcqzxxje+6pz86KU=; b=MweOdz1mBiZ3YANYAenthalC1RAZ2L7YBzcfY2mxwBScLf0FZ7dfPLhGVCYJ3wStLt C3s1vvBrFa415Wr1aCWWYyc6yuvzFexaNiSTEv/rsPJ+qSMCxbo/gkIkbK6PkL7+YYiN j4X4qJFw6IVfKE3+eKxdcIPKq3uf/B3BN8WWKumhwaTV44EooXi7ZrrsGRMN/hPU9R9g aM2d+N3S2d8PdXVSrkZFhnz4GytrdOwPuh2vbjAk7nR/Um1bObWFqsibjGktJZnkTX2+ LSnF9sH+yRTO8ixzJlE682O8bs4obJ1NQRctXzq69GkYjy20O7QmRaSjmdm9hW95TO4e 51pQ== 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=8AKZe0pvPLHu3x895juPn/Z4GbXtcqzxxje+6pz86KU=; b=ila38zexkNwRpGNl0t79I9dEPhmRPQEn86XqxtyJ4ctQvhkWSMWUOEF2dpZBWJ086/ YvLuPnno9SSkHdxDRn/hCDsbkecZqXUUaMCPJOTcAYcnUtNF2QvSVwqr7zdaehmE0dIm FBkQyuDRU8Blqukpoi6I+i57m3n7wPs3JW/Za+lS31avP3AjarNuA+WyLLxKY2fJie3G 9r41w9M4iJQp28sEiq3qk+64dhDWaDZWXfnBAKBlpuKN5S4Hjv3WP8GuDH3BcGpEaCEU GYgoI/UwuinhfgHz8huxCagQQpFLcO2E1FdqsLt01P+ENKgKyjS3mgSVgTMuRVwrhaR+ Mxug== X-Gm-Message-State: AOAM532l1rFInmhaCi3sccWZ8228/GwqCdbGWdbnUmDP+68SsRcs1rjb eVul080fptuNWD+hw0MJw0LE9A== X-Google-Smtp-Source: ABdhPJw5rVCSN67wNU6TdCizFMPeOQwAc4JEScwBmwUscxQjY1orEkpeVLOPrWKc5N9q4Vjxl5enIA== X-Received: by 2002:a05:6000:124e:: with SMTP id j14mr3073602wrx.310.1610549443321; Wed, 13 Jan 2021 06:50:43 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:42 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 20/31] video: fbdev: core: fbcon: Mark 'pending' as __maybe_unused Date: Wed, 13 Jan 2021 14:49:58 +0000 Message-Id: <20210113145009.1272040-21-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, Jes Sorensen <jds@kom.auc.dk>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, William Rucklidge <wjr@cs.cornell.edu>, Emmanuel Marty <core@ggi-project.org>, carter@compsci.bristol.ac.uk, Martin Mares <mj@ucw.cz>, Jakub Jelinek <jj@ultra.linux.cz>, Brad Douglas <brad@neruo.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/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index bf61598bf1c39..f3d628fd07dc1 100644 --- a/drivers/video/fbdev/core/fbcon.c +++ b/drivers/video/fbdev/core/fbcon.c @@ -3292,7 +3292,7 @@ static void fbcon_exit(void) #endif for_each_registered_fb(i) { - int pending = 0; + int __maybe_unused pending = 0; mapped = 0; info = registered_fb[i];
'pending' is only used if FBCONDEBUG is defined. Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/core/fbcon.c: In function ‘fbcon_exit’: drivers/video/fbdev/core/fbcon.c:3295:7: warning: variable ‘pending’ set but not used [-Wunused-but-set-variable] Cc: carter@compsci.bristol.ac.uk Cc: William Rucklidge <wjr@cs.cornell.edu> Cc: Jes Sorensen <jds@kom.auc.dk> Cc: Emmanuel Marty <core@ggi-project.org> Cc: Jakub Jelinek <jj@ultra.linux.cz> Cc: Martin Mares <mj@ucw.cz> Cc: Brad Douglas <brad@neruo.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/core/fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)