Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2050030pxu; Tue, 24 Nov 2020 15:53:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY8FpYV+8W9CRecx8d10SJxLH04tBAWQ3Q6kulypP1Uk0qVk8NO5oxKZSv2Pyh5OE4uyFH X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr826894ejk.490.1606262021878; Tue, 24 Nov 2020 15:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262021; cv=none; d=google.com; s=arc-20160816; b=V3CUX93e111W4UbBwwUZVMgqKwCZ59hbnBSm+gYMwHBgsYWeOiwiiyTYJxF5vjwr9e PTU/zDfAXpSYL0acwU5nvgPKYvtiwe4tdIF4haTXeSUnkB98AUvbTLHcM8rGbiAa5Z/e TBuBsRta2y7k/6kNw5U7lVFWw7ZLj9dQd6ANHzbvg1173Ip61gg+7ViI9khHNxaeH7Et fa1vyK3ujkAwntk7OgiZkSKTLEmjDAfOItHaIgvTE2l7TdqWUiWgpsJJf5VH3c406mho 1czrWrL+o3meJSDGCtq52xuY36XNcO2E1fPAzVSvpvalkd8ulmAIZtV2FDkfR2Gth88j 0GXg== 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=GsDkEPnukv2Vdk6eKkCyxgdzq1nylzzKySTODP9qfuE=; b=ccriq+mbV0LyGYfooxcxzuADK2JlGuFlQhkkp5U/frn7acb7CB78mSWpOeFo55mXVr jO+6NplADndk8teJvCJD4uZ9VFEebxIxIo3MFIjgWyCm2ib3cDiI3d6ZkYFFQc6mGuQW yNRN6y0x1vcU9/OSOTa+fXnIpaC9iLRDAIW1n69KsfY6rkW4XCShGni2gnv3Eqwo3ngb 9+WUjztLbKbboOtZTZBgoypFVePc4kW+A8neXgj3/j9vHu+9zhL1wfJ8oew9H763LBB0 ITQangL0BVqJJ1CxExaUtx6PxeAv86fIajsbLNpJyanfbwwS57cQHsAHttEr0UUacEmz S1Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAzGYM8m; 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 u11si142365edr.4.2020.11.24.15.53.19; Tue, 24 Nov 2020 15:53:41 -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=BAzGYM8m; 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 S1727328AbgKXTpB (ORCPT + 99 others); Tue, 24 Nov 2020 14:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbgKXTop (ORCPT ); Tue, 24 Nov 2020 14:44:45 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FEECC08C5F2 for ; Tue, 24 Nov 2020 11:44:44 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id i2so4502969wrs.4 for ; Tue, 24 Nov 2020 11:44:43 -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=GsDkEPnukv2Vdk6eKkCyxgdzq1nylzzKySTODP9qfuE=; b=BAzGYM8m8GiMon4ZVqoLqEtdGvasSHBbWulfMGj2/kmgVvLHY2Rhl2KZKgRIERzWE1 BdXkFVPeLYvZIifdk7PlzvY5sIWsjqU3Lm5Dt70+S0azALV57w7AEZP9vK/R9OQ2Av+0 6Z3mXbbY2COkJyj1Ps15qLjrSbwM+mX0ffmHMS6/TP4dztACdQQ6w9Vf3HY2UTkokz8E +3xH5bu9VkDBLkv3j5W+t0GnC1F+Hb6aYldFKAIklSW/ThL9zmDhagmo5sme/1HEG5km E7hqzRbM+uqPILwHWsmZokfHxkKygB+MxUNebCXFX6V9q3d7vFdPNppSGnG+UPjZSwDh Hsbw== 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=GsDkEPnukv2Vdk6eKkCyxgdzq1nylzzKySTODP9qfuE=; b=IEK3TmbC4+KzyeKtM4wmHb3k/vbQVq7CbR9bFvS1bN/B0RXjzIqivtodppfiDURJ2n 8aGqmuc2dc8v/S8BFH5QWugMd9nyLZLo/95tyUtlbEWkZwG93nMlVtCSak8QTrDdyh6I s1x8d6+IpgEv8ej4k1oYiePdxGxoOmqwJQVUjXya3zJA9w5EUq0F8qOGYo0m+uJyB3cJ UtnC7adU8Ei+9iyVL/basVE2D635on+/fqKD8VMI+3efHiixzOCV+yAGxXuZ5dYiSpmU wGvSzF2TN8M0302mSiBCxmSbUcHNPMreRS3cp9I4kWkYD2HMg/xOeaecX8N2XmCZlWvn +sRw== X-Gm-Message-State: AOAM532tUrYbGXszkEpjV3d6xh5BTOLHOLiicFf6cSByK+HlKkbE71cD 692uge3ieYUy6UYH6RqqNxwO8Q== X-Received: by 2002:adf:e5c4:: with SMTP id a4mr127799wrn.56.1606247082781; Tue, 24 Nov 2020 11:44:42 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id d134sm200511wmd.8.2020.11.24.11.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:44:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Xiaojian Du , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 35/40] drm/amd/pm/swsmu/smu11/vangogh_ppt: Make local function 'vangogh_set_default_dpm_tables()' static Date: Tue, 24 Nov 2020 19:38:19 +0000 Message-Id: <20201124193824.1118741-36-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 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/../pm/swsmu/smu11/vangogh_ppt.c: At top level: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for ‘vangogh_set_default_dpm_tables’ [-Wmissing-prototypes] 764 | int vangogh_set_default_dpm_tables(struct smu_context *smu) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Xiaojian Du Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c index 9a2f72f21ed86..05c32be3a7496 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c @@ -400,16 +400,13 @@ static int vangogh_get_current_activity_percent(struct smu_context *smu, enum amd_pp_sensors sensor, uint32_t *value) { - int ret = 0; - if (!value) return -EINVAL; switch (sensor) { case AMDGPU_PP_SENSOR_GPU_LOAD: - ret = vangogh_get_smu_metrics_data(smu, - METRICS_AVERAGE_GFXACTIVITY, - value); + vangogh_get_smu_metrics_data(smu, METRICS_AVERAGE_GFXACTIVITY, + value); break; default: dev_err(smu->adev->dev, "Invalid sensor for retrieving clock activity\n"); @@ -761,7 +758,7 @@ static int vangogh_od_edit_dpm_table(struct smu_context *smu, enum PP_OD_DPM_TAB return ret; } -int vangogh_set_default_dpm_tables(struct smu_context *smu) +static int vangogh_set_default_dpm_tables(struct smu_context *smu) { struct smu_table_context *smu_table = &smu->smu_table; -- 2.25.1