From patchwork Tue Nov 24 19:38:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 331435 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp795962ilb; Tue, 24 Nov 2020 11:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+VZWVmMnaa5S5NU37jC2q69p7EML3Wmohsw16EwXb9MYBQmc76HTrQ0rH3xpZ7xYR+mmy X-Received: by 2002:a17:90a:c695:: with SMTP id n21mr223531pjt.86.1606247112745; Tue, 24 Nov 2020 11:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606247112; cv=none; d=google.com; s=arc-20160816; b=P0MeziV3cEQaueUwaVnBl0rMFUnvLDxU4XbAfsrpy08o6W0BB1j5bwtMhzRLVviSv/ 2KsaKmM2EPQSV8hPWGMO+n15DZLC3nR1YoSkC4cINiY1v9eQdJF9KdQwU8k26YRCrnnd 1GHjJAtkISVuld1wqxavuoN6o89Uf3dTFGuFhdWDDZF37aSZz4P1SqOF/8JIeMeXR77v aiHH8Hycx84xoZlvYUojM+fg+2PvK5+Lfq86R9mqYMsjAMtNekXpzh2oZAyxJDEsq1Us GTTLU7bEa2EaA0LM2+0IntSn8OCF1PfgmDHfyKgC4wKpVJ6s2xwxda9FP2dV0AOIwgAb RMsg== 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=wIm4CjjsS6yhbHW2FQ4vcwahykOz91+pGf1hvLbSves=; b=q9dsuaWXC4uugr8Tq4zZgI9Y7oTttviGrKrWQcpEPOBTfYCbVpnykCEtYSdJGxqCQu 1EKnBo343lVGfs5ruBKElC9SApewHgDv5mjtAAguEfbHZVLc0YuXfgf0Ii20k0FLeJrx LU4Z5EA04Js+WLtTeFBbJYG5ICzyp6OEf2PjMf46oJpMoIL309j+cq6Ernn+oL+44qLA ufCgWAIOp1Y92AJiSXTAtsyBa3HRYPtrTTg53qVOR8OprYqs44w0/ZHdyTy3kjAs0ZjT RXg9e0xqXVT3hK8P/Fo93e6QusYJK8jVmZu88YdHnqP4U9n6MS3x9uGxhpXVKcEA7aYM FyTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QK9K5fe9; 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 z9si11899065pgc.375.2020.11.24.11.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:45:12 -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=QK9K5fe9; 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 692226E575; Tue, 24 Nov 2020 19:44:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 507756E54C for ; Tue, 24 Nov 2020 19:44:45 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id m6so23531261wrg.7 for ; Tue, 24 Nov 2020 11:44:45 -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=NyGlFqixaiqzHeNjep6qOwxxLQG3LHz2EsMbdYbo/ho=; b=QK9K5fe96I7qEbtSo01TjZGeTEFHCALFSW9gDK734tMa58wkL9VHsxuCvdEj884V0g gr7nA7du2QcSx4jOuXXCOWtHAWqZxsxxWsGyo+J/3stsNw5sk7DLhs72Iu8ePe23R5nP WRVXWrRtyhwsmkxvhmAd+2n1rAmriJ00bHAhvU1PoLoCnWobAGx7R30VNBpkCV2SDJnX aauIFEnwpTJGIqj2G09SxsETcOM8nmQXD6LRYp7AgzuZPzdO7FN1kUknbTZIp0e3o6V/ ZKh4oAvb4vKZvkRAgMcmM7EBwi06kVzTy3IR1gu3mA3UjyGY7pmqvI+PoHrUf5ZOz1s0 xh7Q== 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=NyGlFqixaiqzHeNjep6qOwxxLQG3LHz2EsMbdYbo/ho=; b=C5IT0mM9sVwiNZ0lNuC5fEgIxsJTzwJ+oUkKLyz8jcmKsIzjiAT67/ApasyNBT3T/O 9+VysGR1TjSwKYjpxErhyBQ+9fN2zlzlebjtfT14+pxJzJjRlC22jvzcKUxcA0DNKoft 4tF3xrlvdNEVNWRAyiRrZIrL7xhT9defYFT2cqmiWYIZ3mXOeVStLWauZ4nmkA9bi97q fla7n1edxwODSW1l+45x8UZuTDIkY0FQuoOlZ+XM7JPEpii8E42KdJB+FU40L3ufe2Vp WTNciNe9HLdY6JQJ57/cRwopLOhIvhfkkU+aDRObAI/R34MVIsI4X9oonSDAzA2s78EL na6g== X-Gm-Message-State: AOAM533n0ftl/CS68dPE8/VHNyJE2/PUqnrzbj7KNQAfCAjKveW8v43S D9iV9LSrJ5D2rAL+BQv+H+rE3Q== X-Received: by 2002:adf:ee12:: with SMTP id y18mr59620wrn.231.1606247084047; Tue, 24 Nov 2020 11:44:44 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id d134sm200511wmd.8.2020.11.24.11.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:44:43 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 36/40] drm/amd/pm/inc/smu_v11_0: Mark 'smu11_thermal_policy' as __maybe_unused Date: Tue, 24 Nov 2020 19:38:20 +0000 Message-Id: <20201124193824.1118741-37-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201124193824.1118741-1-lee.jones@linaro.org> References: <20201124193824.1118741-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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" It's used in some, but not all source files which include 'smu_v11_0.h'. Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/smu_v11_0.c:36: drivers/gpu/drm/amd/amdgpu/../pm/inc/smu_v11_0.h:61:43: warning: ‘smu11_thermal_policy’ defined but not used [-Wunused-const-variable=] 61 | static const struct smu_temperature_range smu11_thermal_policy[] = | ^~~~~~~~~~~~~~~~~~~~ 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/pm/inc/smu_v11_0.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h b/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h index eff396c7a281f..9742a02e7b16b 100644 --- a/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h +++ b/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h @@ -58,7 +58,8 @@ #define CTF_OFFSET_HOTSPOT 5 #define CTF_OFFSET_MEM 5 -static const struct smu_temperature_range smu11_thermal_policy[] = +static const +struct smu_temperature_range __maybe_unused smu11_thermal_policy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},