From patchwork Thu Nov 26 13:42:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332992 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155956ejs; Thu, 26 Nov 2020 05:43:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2Ast1/bTu7J7yrXlQiFx44cPcCATNPgp15Qj8EoWCjxDH4aoHg8f8+qc/80QYoEYhSk7z X-Received: by 2002:a63:6882:: with SMTP id d124mr2563379pgc.197.1606398212706; Thu, 26 Nov 2020 05:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398212; cv=none; d=google.com; s=arc-20160816; b=P+3KmeKrmmVszX3gCAUpqa5/Fa96GJFtYz5wsQNgBkYu5MvH55j6D7Ckx6n5Jm2bij RMfQODCuEFICIb9Lhg6aCO8fv5ziw0hGcljEpcOXPlrijR7WPZVHDrP6KUgv/EOFLEmw xc/SAn0x0kjQ9qKwdts8gZjXQ3RmDCqCce7a1ADioMFrwdxjWtdkGchyZD5OS9/7B7F4 U4vVvx+noMf689TXXvPm8rQO1YxwaD4iy4S6zLNTLXZ/DiqbWja/nfo81v8//6XAwFt3 3MbkdWwY4lFzfI6n/veRPQ5oV+LqxlTUsHDUNL8Yj1fsmx1ezxKfhmASCKGtM1cE1P58 Lusg== 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=KnGhEwS+5Y+0MSmxZo9I6wRbADdKPRLnUWHMX2CU2Rk=; b=O84WNwFWBdIIEbFBrnfMypJebF8TY8TPP8ridIqYXHvyDCQw9MDfHSbocFzLfXZPW3 7qbaat//0aMXg0rS0xNJP4AEgSpsIFY+oNaakd42phRtB+b7w/Sv7e4O+oXoMvXfKRBn zb+K/dy1r/GuoH9U1td2RKB1Jl9yZOzT/L1ppNl02XTS03yXtzztL3WMZxGfWWTIyn2S br8lH56rPLHnFkhM2IkRhXCvWGcryQi0iLbzQCSNb9Mm2gsqRyq2qV+brVWcOq7f4960 CCmWyIg12Sy1ZYConcrr8qjEiYkt09dUNVBCSwaK7AiZpibotmg8CZ6Uvx2hIrOBnCnB vwLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="vvu/UfVh"; 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 o12si5735225plk.115.2020.11.26.05.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43: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="vvu/UfVh"; 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 85B056E964; Thu, 26 Nov 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id C28BF6E957 for ; Thu, 26 Nov 2020 13:43:02 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id 64so2173888wra.11 for ; Thu, 26 Nov 2020 05:43:02 -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=BcIKnQpZCXBlyLSzrwnOmG7IOwmHB9eXMhCgCsu56Io=; b=vvu/UfVh3sr3D9noct/cWTDN1mgiOnOg+oz22TAslEDpt+lPXAvTgH8gcxoZukTdnI Vnpm0xYCfE3rdiTsH5sOg/KSKJ3NMoqKZcaC7Be9cl+xfq1X2bU0YqiskJyOIufoynQu S4QArlHwAi+5WJOdFiqyKoH0JJt8nVKUprx6hv4CK132R6K80EdI77/nheAVXWsrASQp VVgAMybtmsm9QLSwb+amML5CCZvWtdhgEi+LX7LWIJrIiY6/AnsZqNwrtEEoq0B//9wa yFJjSe9lKZfAWlELH/KQ1DhxPTr+N2FUupYp84sW4gyLdH3uCnk77FFNdU5rMvEEybA3 5IqQ== 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=BcIKnQpZCXBlyLSzrwnOmG7IOwmHB9eXMhCgCsu56Io=; b=LSckWqMHMd1mqlrggA43UoFBd3UVI24ceQWKsAn4tIi5Jp1u1EzApkNVrE/U6f3X2F BP+jCYnoC/uc2thaBMNdQnE4Pc6PN5rMGlPkfiHIbw+T7OlF2es8A1gmZ6sPSLDBxbc+ 3EvQ761aFBmrzzbnj0nv3ehQ95iiXFafyOk/eBiSJuTL9N6Ubkedt/F9+qEH+lDpMSN2 yjZvVoc2NXO62fB8mFTbjUbsLatD6SxeDuezljQltEu9ChB9cDwhtMokIf0530mjNo6b shPsnLX04wv69/hPungh3Y+18pVUqjg94lMacv49A+WXKkOUZOMglka3JP3nhste8sU/ t3gQ== X-Gm-Message-State: AOAM531jevE/Mb94kwVHx8F3a+TcjKqaJ+d4EwpE7RLEJQupddg3U1K1 fhBCRFB7EDJxW2OrX4dqi+aVoQ== X-Received: by 2002:a5d:668d:: with SMTP id l13mr3838073wru.279.1606398181420; Thu, 26 Nov 2020 05:43:01 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/amd/pm/inc/pp_thermal: Mark 'SMU7Thermal{WithDelay}Policy' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:10 +0000 Message-Id: <20201126134240.3214176-11-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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" They are used by some source files which include pp_thermal.h, but not all. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: ‘SMU7ThermalWithDelayPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: ‘SMU7ThermalWithDelayPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: ‘SMU7ThermalPolicy’ defined but not used [-Wunused-const-variable=] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Evan Quan Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/inc/pp_thermal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h b/drivers/gpu/drm/amd/pm/inc/pp_thermal.h index 3e30768f9e1cc..f7c41185097e4 100644 --- a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h +++ b/drivers/gpu/drm/amd/pm/inc/pp_thermal.h @@ -25,13 +25,13 @@ #include "power_state.h" -static const struct PP_TemperatureRange SMU7ThermalWithDelayPolicy[] = +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDelayPolicy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, }; -static const struct PP_TemperatureRange SMU7ThermalPolicy[] = +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},