From patchwork Thu Nov 26 13:42:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332985 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155669ejs; Thu, 26 Nov 2020 05:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJz23BY6w42ceow/tvfoHzD+p4oSPRB3sNccimAy08yNoVg4Z6bjP82oI2ByG/3Br8CyC3ne X-Received: by 2002:a62:7cc8:0:b029:198:5ab4:4fb9 with SMTP id x191-20020a627cc80000b02901985ab44fb9mr2775927pfc.63.1606398187785; Thu, 26 Nov 2020 05:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398187; cv=none; d=google.com; s=arc-20160816; b=ZITt/zaz5pRj8mK3wf6IOiiSrHp2bijfnA3oEfwcG0u1ldp8qyJFu7z2ntmM4h7HQC aWLt03NX5rJKZomMYl7APFmGCJKOLfgNBTTrAUPQ4f2F1Nl1SL3DUEfw9aq4OlBuNkHX RPQVdW/ZaGLTzDbregPVosx18sXKHUU9LW1rmfniYV+Vi7gsAAZz4B9/9cxJ25qQfN7n trDt6dgmXJV2otBgMsS1USoTHtBgKYGLvpb4nkT2V+uAXgEhWi5LoLipxuem6bAkhBq7 fqfdQ7sxUmja32r5BRSWo4UEwYAh5P1pFDjd45gm/W7Ab8aTTqB7pwLY/cE2ax9MlI3l vsTA== 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=H+8GaKQ+DXkncxzybfOMjxhi8YqqXMH+jQZ6OUof53U=; b=cann57QDE9oPKz9XtGD31ux7yfab+3PoGJcVa/TcEQH0Am66bET8rqGSIWhOmcum1o DaWHX/ce+98Zd+lefnNNiUA9+JTl/FAYPPaDbetodAfDynhuy5SCOm2gA1wzMjwtjzbR JiQiPk0FwAd77lowswkhopaI+I+FSohQTk4ux4zm+07vjlD78daUrZm7HPWHy5uO8u0n 14umz0uwHCllgpgOisvMWGkQ6IRNDWWRLG8yd3bWj217cIEeaMXI0sLh7yZ8WzxUMuWi wqDcRgjZ1ep9M++WtIoftoskY5MX8IUEZSVZE4oxAj8ZbPwvlVusd6NiwSUEimdMVFCj qXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZrrrsDoz; 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 bg10si5692516plb.427.2020.11.26.05.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:07 -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=ZrrrsDoz; 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 601546E963; Thu, 26 Nov 2020 13:42:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AAEF6E95D for ; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id p19so3692162wmg.0 for ; Thu, 26 Nov 2020 05:42:58 -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=NHPe3Mn8cbArsPPQt69rySCnIbjXwyEYsPDbwO3FTTg=; b=ZrrrsDoz87EZgy+M2aL51jy5fVNnRT9Ooj/mOazxarq50HhmO8uE9haPCFapX0NTg9 x6bITVxxMy2ceyMIwwlvVmfWhLohKVIHaifZYvD564ABfgOPiHpkcZAbNCqT3gCiBxRH imzJ74y7rbX2hhwcFh9PdH9ckSdhgs9smHWe8Tx/tFs4BfKX7eww65fmFdde3p7JFBTQ ry69c8PoPC0zzTqFcvuG7NWha5f4adD59UdUYcyH7Yn6EZ8wG8/T5Smq0V+PfDRSZvlZ Z2SczZBNrlqd51wVoJ/qGri9TQGx9wCE+/ihHS3qMxVbsFChNME1JW6ADJCox2oValvD 4kYw== 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=NHPe3Mn8cbArsPPQt69rySCnIbjXwyEYsPDbwO3FTTg=; b=uE+pd0BmC5M2AIFQ/ul+naQ8hym0IvQMYltzCt2fdxP5krO2oruM1fPKRbN5cWwGkf HRKuE6dn9OPjmvbeIEl1/5dRNccm80mZcc0ns5FUIgE1sjZMfP9DHc9xiwQ5Do47WAgi QMrqFrC+CIh+46OwHlBKtKBDi/xbgM7m4OwrGInxv/v6dujTpKxo1UXKD79Nxks6NISC yQYXDHDd0VJ5f4IjPCzKyce5a4sdte8/RQS/fgxvrQ+85AoVKREAA50Cuy6bk+PHn+6P A8T5Sf9dCidRzACssOHz5R4ISeroQcciHFZgRhiOzpdp83yXeCgPbpQ1cwqI3q5/eSe7 pK5A== X-Gm-Message-State: AOAM53158SKF9eoWGOH2PAYeiwJBbU3w9HOhQmHtkn+Z29Z7GdOOGyl7 yBPvshVUEa2Xcb/VfFwrw2H5DQ== X-Received: by 2002:a7b:c055:: with SMTP id u21mr3512224wmc.130.1606398176747; Thu, 26 Nov 2020 05:42:56 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/40] drm/amd/pm/powerplay/hwmgr/hardwaremanager: Remove unused 'phm_set_*()' functions Date: Thu, 26 Nov 2020 13:42:08 +0000 Message-Id: <20201126134240.3214176-9-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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:518:5: warning: no previous prototype for ‘phm_set_min_deep_sleep_dcefclk’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:528:5: warning: no previous prototype for ‘phm_set_hard_min_dcefclk_by_freq’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:538:5: warning: no previous prototype for ‘phm_set_hard_min_fclk_by_freq’ [-Wmissing-prototypes] Cc: Evan Quan 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 --- .../amd/pm/powerplay/hwmgr/hardwaremanager.c | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c index 1f9b9facdf1f4..45dde3e74b578 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c @@ -514,34 +514,3 @@ int phm_set_active_display_count(struct pp_hwmgr *hwmgr, uint32_t count) return hwmgr->hwmgr_func->set_active_display_count(hwmgr, count); } - -int phm_set_min_deep_sleep_dcefclk(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk) - return -EINVAL; - - return hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk(hwmgr, clock); -} - -int phm_set_hard_min_dcefclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq) - return -EINVAL; - - return hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq(hwmgr, clock); -} - -int phm_set_hard_min_fclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t clock) -{ - PHM_FUNC_CHECK(hwmgr); - - if (!hwmgr->hwmgr_func->set_hard_min_fclk_by_freq) - return -EINVAL; - - return hwmgr->hwmgr_func->set_hard_min_fclk_by_freq(hwmgr, clock); -} -