From patchwork Thu Nov 26 13:42:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333007 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156196ejs; Thu, 26 Nov 2020 05:43:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiSS31h4//OweueNQqyUUZ2LxTv85M2vEDipSU1iXBS6NDEUy8AHL/+6H/yh/2t3vA9142 X-Received: by 2002:a17:90a:f406:: with SMTP id ch6mr3879485pjb.88.1606398236167; Thu, 26 Nov 2020 05:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398236; cv=none; d=google.com; s=arc-20160816; b=jsgjDLFQr+3QOgVcip04AcEyyRmaDPRPPll+jRCszgHlPOqT87c2x6uFX3SvT4hZu2 PS7oUAKbn7ZRjOOUZw0oRpcxubvGZsgwk8k/B5Y8zTUKGaYghm4/ksSrdAXAOAHVikf6 gAxEH2M46eI+kmrua/5ttrmgpwW6AQ1ME/Z9aStQJuR9eZVkOWw4RX9MzUO9iHN0b+EM JXOoM+6Ch2LJQF6elWtNJSC1ya4I041hchCp1Z9e1Slqza7pBuWYFmOmasBJwNe1ZjrR ulSE+p/gzD6UQ/761VA0aqJncrSd+eihhPe2q54AT+40BEQH2b4oKckji95KVKTcT34l GHCA== 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=HGpO5+uCIE+wdGM2LKZcJx2HAtp1ukj8kLcUF6nyu6k=; b=IiXTny+sff8jH3guaKYqwlxshrDhrPa6OFHQUXHRS3DX3MaB0KewtgyORkpbUCNs8Y 44KAo7KjsDNf+XxLlz5ehSQjFCeYppIAzLDm2d4YSbzaMA9X9e4f2W8bVq1so7zs+Hm0 +Gmd220z4shP8N/epOz3m4ht/rGBUzlOqD1Bzlq0rB+IJzUMDBaUF5P+4uSMfrI5VbYL jXOuMQAEHLE+esbfcB92CaUVb0hwgz0LWcZF6hiWmzb5Qdpwg07AMYgW6r+urYMJ5ez0 ACFXLzdK6L0nrmtn0PDINKVTT/5xqyZSDGKAqWayWybIRZiQDncSsQW2w70VsUBC/72X k5kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="pisVm/rn"; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b7si5147968pgt.379.2020.11.26.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:56 -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="pisVm/rn"; 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 C41086E987; Thu, 26 Nov 2020 13:43:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6BA3D6E97C for ; Thu, 26 Nov 2020 13:43:34 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 1so2457564wme.3 for ; Thu, 26 Nov 2020 05:43:34 -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=VuZf51/6rbT4Y+F0DKDI1W5yRp5gMKolAl3JbWxMH/Y=; b=pisVm/rn1U4ASlnA+K2ad3MOviG7WcK7m0ytip6AZ5V+ZahEqcC/N+qhBRNXTuHkZp ko49wyV7Vf6eJlfyXLiC5aAbzmVW6rAzSbPTgRiKdjsoT5IpZ8dygbiNxsHF1XuXWfwf 9vv1Y26Cbn+buNvO7Cv8ebSz4oVmgNILfAinKRefB7PT2t++oPiclWQGOt4nWn3LzjJs m9X+RiPK7ANui7vbnIYJ/9uVxveDWjnHNu419aZNGdpS1UAMejAu3C5samgmGP7nShMQ djH4l5wasV5qzjKRhoEUsnPEtwerC2XlPgh2hDNjOo/RSmGu1jNsvKfVfwNBk0qeXyL4 kgkw== 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=VuZf51/6rbT4Y+F0DKDI1W5yRp5gMKolAl3JbWxMH/Y=; b=WC2P5JlfyG+hbFS74FTVylCrP5g4vdovUBJjBKByM1SKVYBYlRXSL7J1vBxekEM4dW N988cT7GmTTAyrfKhisQke3KNHz9q7WBuDUaJRrPd1fNAojPD7b5lrWKCtiJ2AM6EE7k AGqbcxdAlmT2dDJSL/vWjUG4/MTJdI+owE8yEG8sQqLbteejxtwuLLKSr6vmj3C6rvyV cJNJWvi4neVAQCPDaFrv4riRFnCEKu8HxgtOv7/i70ORXptUYY6aRLsK3H4a0Y2X2bet C9h2DFmOLzy4v0eisKvBuUXMDOm/QjJpokSj9sQSlMpQngMOtwEgpj+rBYdHILGBtTWI W3EQ== X-Gm-Message-State: AOAM5337OUWiguSZBTeT0tm/eRyy0Z/FjwmLjRAYj4GVPKawedMg4Ygk lxvbRagTR/S+r6L9Yk04usAuBA== X-Received: by 2002:a05:600c:286:: with SMTP id 6mr3443933wmk.125.1606398213104; Thu, 26 Nov 2020 05:43:33 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 32/40] drm/amd/display/amdgpu_dm/amdgpu_dm: Mark 'link_bandwidth_kbps' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:32 +0000 Message-Id: <20201126134240.3214176-33-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'link_bandwidth_kbps' is always obtained, but only used if CONFIG_DRM_AMD_DC_DCN is defined. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘create_stream_for_sink’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5080:11: warning: variable ‘link_bandwidth_kbps’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 08539f4315864..ac7643d73bc68 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5077,7 +5077,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector, #if defined(CONFIG_DRM_AMD_DC_DCN) struct dsc_dec_dpcd_caps dsc_caps; #endif - uint32_t link_bandwidth_kbps; + uint32_t __maybe_unused link_bandwidth_kbps; struct dc_sink *sink = NULL; if (aconnector == NULL) {