Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp556702pxu; Thu, 26 Nov 2020 05:46:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfzSUnRwPmJPUnml9p4894kjk25uppniNmDs+O0PH+c/MFeGVpLRgiX2zIjLp10UY7a+Av X-Received: by 2002:a50:9f2b:: with SMTP id b40mr2712805edf.20.1606398412312; Thu, 26 Nov 2020 05:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398412; cv=none; d=google.com; s=arc-20160816; b=jM3RuPUV94j4bNtaepLiRlfg1OxSfqKV3wkVs+A1lk+YLsYyrvH8Mmh6EXdX8zqojg UIzTULpRn8+gOCx6XpCy46iXnEIW74nwA6nCgm679nOIIfpIzU5ADm/BZrBvUUSIsEiE hN3rO5LuzXpZyapfHUMoSITKxiZdg4wp7mNb8sH4h8+K/jEe2Wm7ms2syIB293NPKe+1 +8DsI4x+QP+SgoRCFhyOmyF4yS+NnLpmOWA0EyauQW+3KeAI3z0TWcBnWOuZbK0y/4RU o90UXJNwozf/3FulKsMFGiA/R5Qx66+kRyUPTRD6PbeFL4SM9qp17UYWo2byIm9bvk2j 8zhg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=SvA/s/c1UoVwlTOIVHKTZRCS14+G4wf/CI4gWUDL2Gr6piPOBe3ePGEs5GO2jXrahU iqqZGjlAfn1F0piHALhxPpoI2pr/m6mB30Q9mT8400Mj+q+uz+CZSaGLKydNhF3rR33a WR8JBIjhlRWMeSNrQQYJlQRdLAPkLGbtVsjJafyxjhQMZLtYfz1cVAIyJWoJ/R4GUugG f7rRrvQ3v6UgZlZ+IFi3cbuDnP0PZxSusef+UNidaWhpFS90xFMlj08Ilcgi8OlPLcM6 wU1QeVYQh6iBw3F6bwaj011B/gtasRecJNMeT2wR3GtGdcx4wBC+M5Ks/n5RloNYxfFG yHkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rz+Vn8n1; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z41si3313662ede.375.2020.11.26.05.46.29; Thu, 26 Nov 2020 05:46:52 -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=@linaro.org header.s=google header.b=Rz+Vn8n1; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390943AbgKZNnz (ORCPT + 99 others); Thu, 26 Nov 2020 08:43:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389954AbgKZNnm (ORCPT ); Thu, 26 Nov 2020 08:43:42 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B650FC0617A7 for ; Thu, 26 Nov 2020 05:43:40 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id l1so2191609wrb.9 for ; Thu, 26 Nov 2020 05:43:40 -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=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=Rz+Vn8n1GJmQ/rxsl/asCB4OMfEleQg7MQ7bd6+UCqkmm74BIESn/bQbICzXd8MhjA QuNQ4O4dVDJ6LSLLa5dkqVQvWlr9KRQbjeT2N3rOGGVAxe1qZjzmiu/Ix+dTg0/srPE0 kzde8m10jLEIPnZeUuIQv4H+GX0bSwc3iQGh8KHXvAP6sOp+abDZeHDY+eOa7Fqy1vJd WvIxy4ElqE4NzC45RHvb+UftFhN8PtHHYGLc5UKM76FNhLdb7CRbZbUQuq4IoMxMmS5R Jda+Kc6IQMS3qx3X0gNu4CDnxZlLrVVplJsduhtZzyo6uI1PfQ6E23pRQdT9Rg4WMhO3 5xLw== 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=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=qomrai8Q+78s1YxgRkFtCLmfklqSoYxuw3A8ymEbrAt2GhaQIGJ62/uSg0jplTZRSX DyXr1AY38bgwnuomeYGx+lywSbwAzsLFjF69+AhWmNgH17Mg+OJZlropP3+jThchkJBF bF3Au8yLhwHOFFhjHocI8HlqC5eESaLcT3UZJezALB9IYL35cb0LEz8eHPYplKCZWL3n /UBm0QSgEOcLGjPDSVoV2RGXia3KWtrbkKQOqYRewJaOFI46bS3rFHUZHL/NWm+Ji4kU j5rux0885T1lyXeDeD99ADMkpfZ3jsAeaDvDqjwSMN4vq1T+tS56iZHnBTVxfRNCL7w+ +tyw== X-Gm-Message-State: AOAM531N3Z5Go9Tg4B0mlql0KxqneudOKHDzmWvcDn9jBpiN4KUucVz7 0PATRB61b0sguoAyParAHEKQ8g== X-Received: by 2002:a5d:6186:: with SMTP id j6mr4005475wru.359.1606398219495; Thu, 26 Nov 2020 05:43:39 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 37/40] drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu: Remove unused function 'pp_nv_set_pme_wa_enable()' Date: Thu, 26 Nov 2020 13:42:37 +0000 Message-Id: <20201126134240.3214176-38-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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:664:20: warning: no previous prototype for ‘pp_nv_set_pme_wa_enable’ [-Wmissing-prototypes] 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 --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index ac0a0539854ef..607ec09994456 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -661,22 +661,6 @@ static enum pp_smu_status pp_nv_set_wm_ranges(struct pp_smu *pp, return PP_SMU_RESULT_OK; } -static enum pp_smu_status pp_nv_set_pme_wa_enable(struct pp_smu *pp) -{ - const struct dc_context *ctx = pp->dm; - struct amdgpu_device *adev = ctx->driver_context; - struct smu_context *smu = &adev->smu; - - if (!smu->ppt_funcs) - return PP_SMU_RESULT_UNSUPPORTED; - - /* 0: successful or smu.ppt_funcs->set_azalia_d3_pme = NULL; 1: fail */ - if (smu_set_azalia_d3_pme(smu)) - return PP_SMU_RESULT_FAIL; - - return PP_SMU_RESULT_OK; -} - static enum pp_smu_status pp_nv_set_display_count(struct pp_smu *pp, int count) { const struct dc_context *ctx = pp->dm; -- 2.25.1