Message ID | 20210113145009.1272040-21-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 t13csp599407jap; Wed, 13 Jan 2021 06:52:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoVl4D0KDvLHAJWhY0VPOVLwYpuB0hSkDW+cQDFNZ0aXpQ3twPqLN3I+2IvVMCjOrx8GuY X-Received: by 2002:a62:dd94:0:b029:19e:92ec:722a with SMTP id w142-20020a62dd940000b029019e92ec722amr2492584pff.50.1610549456838; Wed, 13 Jan 2021 06:50:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549456; cv=none; d=google.com; s=arc-20160816; b=qD+d0SXqNsQCfMLaBfidvDwXi9DLLxsxRig6u5wmtI5jMb5LZ4Y6BgFqSSTzjSFe93 DRieMPCeD1ZAMZ8apdkwkbLIzFAxovjJ0ug8hJqG9V+okDE9T3mjMuVn4qvLSdNgf4V9 Fw7RbmHyNaquDf6ieUULstX6QpqKtThw5ETbv7kcvh70HaIFHey6ju6sSL4Vf4D/YQkN o05U+dyrbbmsYjvwq/OH7NBnCZnwcpnEUL+U/b92a68jV8Z5mmvl4KG11Hi9hHwzf3bc kPvP2EXWzqLgu3TC/QQ/2pQ9oSakv1lgBA4beT4APjUMKEmVyVt3+pRZiKZpELQBByPG EtgA== 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=w4t75V4YhAMkpMQeSrRJ6s2iXm/9iUEZWIBPUbTuubU=; b=nr0/gqRcRcM4bCdYYyaWC2mjXO8DxLHAeRboPdjv2hxDX7KpjpYyD4HYfvDCiMa4lT ce7ixLeNvRBwobH13uEf9IsIF3j4+Gg2Ek09WPFwkkVqWfEhlUrfMv3d0WQYGg/ZqQqj 9LvvmgmQsLg8rj6y71mlLkZQEJlpofQ2TBK/zT40Ki5nvWxikV4uZf2VjS378wTEOF93 0rFTzTZnxvR+5kLILw1hUFs0JY9VoQuQtEFItJs8H7APpTRF8BsksXjMQ79T3jaI7QQD 4ykjFu5ug2vtchVP0QMReonTWFO6cBOfkzWTkfoQwYSRjrQzNWyP9PxyOCiCbHaViUS1 TpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MweOdz1m; 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 f31si2450716pgb.39.2021.01.13.06.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:56 -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=MweOdz1m; 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 C30D96EA6A; Wed, 13 Jan 2021 14:50:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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-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(-)