From patchwork Wed Jan 13 08:07:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362050 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296924jap; Wed, 13 Jan 2021 00:08:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRmB++Mb25jGH2y/ZEaZlIoPsET/C9Y2pD3M3no81ONGvks7bfEqgpsLsWAZMEm5wc0sfx X-Received: by 2002:a17:90a:14e2:: with SMTP id k89mr758995pja.168.1610525312240; Wed, 13 Jan 2021 00:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525312; cv=none; d=google.com; s=arc-20160816; b=wOzGfcg0jc6WkNHYNIxiaLH5MaTQarFeSz7IxZjd2KA8qbVqpUeZxDZW4y/Vw5fok2 k7gdOUa2WKr7hH3vBjvi6bHexfjIeNgmsTdSqNwPuCTNcnWQFwGVnysWxJGCe6ZiHSa3 +lSvcTCzMdl40HfB3+DpJoSmUn7MGUG019SKSAExn85/ta4156eXEShldMttIYa80uB0 AF+fuFZptTc8lrHSA7f666P1ExeZi/ez0anxeAqmaoWqFgf8ylvm5s3O0PQp8bukmeRD FrxoBXgUpqjSMC7nBYfXxsLEW4qi4G58P4FgW/VkKSbnuOb4fXI9wnQ9KyzwQO+6woUD UFYA== 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=n5tjnU1I00v4K6nq8clWuZBzgs/nOD7l2E8N0fjNfC4=; b=ZefEu0AubWb6Ens8hWOlK+mXLcZ7ByLDVkoRuSM+NvNCOh72QJbx9jCgyJPUMRmQQe Zo5rqhXwla38z0qAMGaUf5XNPF6b4m00I+7FHSzvJs/HGKtXNnMvV3URoQkDk34rqlOx FwQin/ugnLV3fbHg12lp6zU4EIWrJHkO+gWRA7KLTpRysan7FygkT7J6MttmLjSz2QLb AHEe2X8bsrKvxB908HqkdTBebHNFSVYnsEqcrC71FzKr2+Mwy3OJUskIjG1KMe1VOoHc Lan6Ud8BevGU4Sh1l9joosK0VQ3zdBZBDCmosB5lVLOnjKg7VPdsBjmrtZGyznPlCqj8 jYCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ix8nCYPN; 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 s16si1499485plp.21.2021.01.13.00.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:32 -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=Ix8nCYPN; 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 70B066E07F; Wed, 13 Jan 2021 08:08:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id EDA0189FF9 for ; Wed, 13 Jan 2021 08:08:20 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id c5so1067030wrp.6 for ; Wed, 13 Jan 2021 00:08:20 -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=r8/kdy25+oZx/uNDbhJDkZDT1TyOhQzo6tdoqzLeeYY=; b=Ix8nCYPNU/XT2iKvtKsMgQ6u2nvUKoXhtnv93uPzBrkS2d2uGV9+bwSpITZtp9gTQs 0eqF5B+SFLW4DK9OrR2pzTeYuDKm+kIBaAYJpZjEJ4Y60fTOnEA/W7vsFFF3JmS9GRXz A9o9oFjFuWv/yFFb0kdM7jhQQi9YR4MaeugPWUKowTlo0ntyIEa8DV4a1wcRqNptjmHz 5e2If+kl8VfjN/gxc9yfWSeHE1qug+jcQpHuWcM8USdkbvsDlYIeCK3bKtJgW5/FhYeJ HSLlIG1NpoNr7yhYIIrqePDccEjCRRt6lWY86cwGYSf8HUsXUIUxfNsun6Wxtf2b9ShN 4iHg== 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=r8/kdy25+oZx/uNDbhJDkZDT1TyOhQzo6tdoqzLeeYY=; b=PTZPxC/MFNpezIF60h4G9cUE0cj0xX3ySO3InXZNi097p0wXM3+KTIhKno2IjVZaw0 RWoIsuBv52qTg9OzX9AwSD0vDBNjPN/+Gom7xNbcaZ0KKdi7tYptu6VSXvsdCz5UMFCh 2JhSfB6UpmpnxRQ5ypbKj6L8BixxpqxN6xf1eRp3Iytt7cptnAWozFANSDHvljqK8OO2 9wa0ymbAaK37irtHS4Spwjyxzm6piOrqY9PFKmiYDaI4ZMMaill7mTOzHFxkCc3EgKdZ HcCwmsL37M7WzxilsFPfxgR2nx9n0ugvGV+08Mr8Z0nk6uC2ykpsGGLn2hVil364JPOu 41rQ== X-Gm-Message-State: AOAM531tQrPv9Jdr20OlDfPIw/COrBDVjpGpvwsMDy1m3HoL+MM4tApf 7wrWT9ggvNfotLzInlgle1j/A092D8bRdRsD X-Received: by 2002:a5d:4905:: with SMTP id x5mr1178774wrq.75.1610525299664; Wed, 13 Jan 2021 00:08:19 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/30] drm/amd/display/dc/core/dc_link_dp: Mark 'result_write_min_hblank' as __maybe_unused Date: Wed, 13 Jan 2021 08:07:41 +0000 Message-Id: <20210113080752.1003793-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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" It looks like it could be used inside the DC_TRACE_LEVEL_MESSAGE() macro. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function ‘dpcd_set_source_specific_data’: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4403:18: warning: variable ‘result_write_min_hblank’ 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/dc/core/dc_link_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 3c33b8fe218e5..b9e5e0eee3d24 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -4400,7 +4400,7 @@ void dp_set_fec_enable(struct dc_link *link, bool enable) void dpcd_set_source_specific_data(struct dc_link *link) { if (!link->dc->vendor_signature.is_valid) { - enum dc_status result_write_min_hblank = DC_NOT_SUPPORTED; + enum dc_status __maybe_unused result_write_min_hblank = DC_NOT_SUPPORTED; struct dpcd_amd_signature amd_signature; amd_signature.AMD_IEEE_TxSignature_byte1 = 0x0; amd_signature.AMD_IEEE_TxSignature_byte2 = 0x0;