Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3461289pxb; Mon, 25 Jan 2021 17:32:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFceSWv6ie0wXgflZzFQQ5oUcoJYSifFSFyIz0uuu2Wi5qaH9HZXrWaRovfLSpleVg7Q/y X-Received: by 2002:a50:acc1:: with SMTP id x59mr2669796edc.43.1611624770760; Mon, 25 Jan 2021 17:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611624770; cv=none; d=google.com; s=arc-20160816; b=pXdMlZJ6M/7j5L5AWwpNlj81T5zJoqc91RPsQNtXAmYuwY/myV8R0Svm9KVfPVdRcg wjuGBZSKBSg4/avGKzOg0xuRnhpfhezzCW0pr4x2d8HoWHeue+7Z7LhicxfU4B6SSGo9 ptRet0BDSKOvy2NbYA0/3C2OTCZsJfi3Oc3fS1+opmyA/DPmgZGH8k0+/X06YoHCFP3t 6PlXZoHgXFED0Qu5KOl+bzXJQs6MyYmw2wDiOM4dc7w5pCWDsaag1uU6iYRZl4sHBjGV yNPdKOWThdvDunNtfHkkILuTVYasCn9MB0dqT1IS2VE981rTE/rZiad896uSKVjNtnMH xkgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AFwhk+ea1uwhNmjMAl70HZfz8Oxu0sxVZ8Joof9I4qQ=; b=kNZswQ+QSFRw3qfL+0KnHHgna8pMwwnm4t+qxUOCijyNRVOWZLsKIXDZdztDVrnhKb gSn4U8s2OLEwSFqq6f3QVJDTonaN8nihNYNA2Mjj3lM09IggibXeDnzU4jEZ30D0R+B7 lL1Vw0yVwU5sIh2kqkWbu5Qt5vFmUgiVlrRKDSkTzSsgBP6tY2YkiJw6BGf/DiMOeunX IJkZ6lrateczFVMSqhYbV+MLylpwXJDQ0pvjKdEqp1n3rSW+M2zCW6ZuXspwi9gVDYqS LCulgO7tRBKkedMig9pZG3vh7ye9rINh2CqSyvb7u8VnYMHuDj5bgH6p+DCXQNQuL6Pc 1Mgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOVJ4eqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si8097089edy.514.2021.01.25.17.32.26; Mon, 25 Jan 2021 17:32:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOVJ4eqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728478AbhAYMyB (ORCPT + 99 others); Mon, 25 Jan 2021 07:54:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:39976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728368AbhAYMtg (ORCPT ); Mon, 25 Jan 2021 07:49:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CA5022242; Mon, 25 Jan 2021 12:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611578935; bh=se/FbQzcYysZD1EUhPOo2TaDIwNovBNtkDv0eXU7IjM=; h=From:To:Cc:Subject:Date:From; b=tOVJ4eqUv2zP/nYVpAo9hE/5oML2JQ3sukeCtcxh2TFGxUbLiVgsQdjAStlse5uIv y20U37xqi0PqnPh2CdB85vTeLa20ONJ7Whj2l6ieJ2uBMe5+oxfAIKAzaXuKuMUBf7 eG+JSnIIcfRMb6yGebqoOK6xPXZmVMEUlPAzxzzO1l1htyPbRp0y2ew9cCUq98002O 8gRoNVY00FEOFcryKke37/qp9ZTVnA76pUmeDBucC2iWB/7tgIIYdyjFjXdWe5elhD cAxnue7V35+6PoW5nYtatrPwXYGcowhky+3NWK9V6n9+dldGZCre4xKaaBHsn780EE EDVr/k2qcqpHA== From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Bhawanpreet Lakha , Nicholas Kazlauskas Cc: Arnd Bergmann , Rodrigo Siqueira , Aurabindo Pillai , Stylon Wang , Simon Ser , Bas Nieuwenhuizen , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: fix unused variable warning Date: Mon, 25 Jan 2021 13:48:43 +0100 Message-Id: <20210125124849.102037-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann After all users of the 'dm' warnings got hidden in an #ifdef, the compiler started warning about it being unused: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: error: unused variable 'dm' [-Werror,-Wunused-variable] Add another such #ifdef. Fixes: 98ab5f3513f9 ("drm/amd/display: Fix deadlock during gpu reset v3") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+) 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 a90dc4d31c32..37bf2dd87e1e 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5377,7 +5377,9 @@ static inline int dm_set_vblank(struct drm_crtc *crtc, bool enable) struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); struct amdgpu_device *adev = drm_to_adev(crtc->dev); struct dm_crtc_state *acrtc_state = to_dm_crtc_state(crtc->state); +#if defined(CONFIG_DRM_AMD_DC_DCN) struct amdgpu_display_manager *dm = &adev->dm; +#endif int rc = 0; if (enable) { -- 2.29.2