Message ID | 20201110193112.988999-27-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500791ils; Tue, 10 Nov 2020 11:32:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwZVWRIJWQw0ECEnT+QImTQhz2uVrcodbBrPEuPwCJF57v2L4uJ5yHtQZSXthltjLhSuHQ X-Received: by 2002:a17:90a:1992:: with SMTP id 18mr710541pji.67.1605036735930; Tue, 10 Nov 2020 11:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036735; cv=none; d=google.com; s=arc-20160816; b=ZzKSBmjmOrxjeEX4tZIufBZt65CcJrjcTy6PmHAeOln+G/hhKCPzvbQF4AV78z2h6a Id9nRvqok0T493uoQ293NsgGDGM/VnuPHANYt2vmvDo0mEZuzG0+yNZkpnJefa1LX/8V 9AKqnKtB8YOLe9JIGqIznP0rzjc2KY+FPdn+8kROkClH7/Gnn3UBjub1pfh4P7SRmB4h da3UzEViWp5IvXg0XUGzQlunsekHeeTqyEX9iK67bxogyhJ2FlAgfneslSFt2w/ZeHlO LxY5MUyhuf/yfjP81Cmgljh78SowV+fvJxWlRmQ002jtUFd1I+1V2EgD7jgTSyNwfQV5 AJhQ== 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=bQScqeODawYLUcgT8gvyxSLPmWydgf8YV7nHlfzYAhc=; b=RGmkQeFwxankyhRfQZVpm7wg2vfAcftqFCGgksIUymI+0rgZneoYgVggCg89YZsHQG gna0HqX+BA2swA+ZCe5JURZl12tpQePFooYczAZEiQfYQOJOCAHDTtguHqhGLCoONWDs t7Ii3NXDjvV5tIqvw3r/IMBnFIjWf1BPx18SUddo/tyFhMD8AXqL4rtpZ1r2cYq+i6sa +egvwYKeE3z7eyq1i7y2P9eSP2jOnE0WfEGl3irEUL2zdAfJGnwr08hfLW8J/fT41RYo ZJtouTUWL4d9X5VWc7t/iJNIE5pvVuTF6ZYjarDOl0B8ON7nVveRrVIPhd+lf/TAn/my g4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fvWFmwsb; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 66si13095442pgi.68.2020.11.10.11.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:15 -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=fvWFmwsb; 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 736BE89BD4; Tue, 10 Nov 2020 19:32:08 +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 0199889C17 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 19:31:49 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id 23so14002902wrc.8 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 11:31:49 -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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=fvWFmwsbroPTBLuNSiqWL2C6ts7uBNUTAb85H5SQq/MGaMS1cangSJSSeVWp3XHAlm TSQnGisZL/NyszChhDltBHKvM3dyXcKX4vHlVYbByt+kOxb6EBSQp42dJY03Zam8JIPs QaOSrWVSI/8rL9nPM2sQ4O4ugLFkrQP9kKv78PsPcGbBsEn3GyQ/XWMy2LXergaa43Nx sBGNfZcE1U1Ip0vwO/MjqTFzwQEnKA0RhW3ZXRQigi9wnRgwVnzw11RhpsvhP0K+3ubm n/P+ilwrfzZiFMGnGZZzyqXTxW0Msd+N+e1W9SZsJJQJ8JHrgrCB8jRpRhMBvGuXZE9y j7oQ== 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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=FHHNpMi3vBMJLgEB9RtuL+h224R1I8zNvaT9kmLxgB1xZDxIGH4cBEcq6V082YWLQi GZQryqt+A+KaOgVzXpNAy2ryzmjLcAC4d7xVNgs82FH1XezOVol/pNPULuz8W84d3QKA XEql0NuUorPDUI+GAV/H5WLAit3LpJiq1VCt4Ho0CB6KRsvC+gtezpdLEL9pCOGSDp6l sx2RBkLV1LjiJqx5OWLXweFnrH6WbT/Eyoet1QSmchF/OP/omKj2RMTeNRLlWC3spBG0 qqNweLicuwoRgwQ8SICHcrDQC4GYfvlXd+0qE6pFoDeAWCVJldyJmm0Ug1Ri/RXzuLy/ GqRQ== X-Gm-Message-State: AOAM533LymaEbeW05F/ZF3vbuRWBARfMe65NrFB+ZJEo3mLg5t/r4AMo wjh4lsE5G52RFsfQCK6ls2X+oA== X-Received: by 2002:adf:f644:: with SMTP id x4mr26077443wrp.5.1605036708589; Tue, 10 Nov 2020 11:31:48 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:47 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 26/30] drm/radeon/ni_dpm: Move 'ni_get_{pi, ps}()'s into shared header Date: Tue, 10 Nov 2020 19:31:08 +0000 Message-Id: <20201110193112.988999-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= <christian.koenig@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/drm/radeon/ni_dpm.h index 6bbee9180909e..74e3019369063 100644 --- a/drivers/gpu/drm/radeon/ni_dpm.h +++ b/drivers/gpu/drm/radeon/ni_dpm.h @@ -247,4 +247,7 @@ void ni_set_uvd_clock_after_set_eng_clock(struct radeon_device *rdev, bool ni_dpm_vblank_too_short(struct radeon_device *rdev); +struct ni_power_info *ni_get_pi(struct radeon_device *rdev); +struct ni_ps *ni_get_ps(struct radeon_ps *rps); + #endif diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index a80a21447a76d..c68ab2fb1ac23 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -30,6 +30,7 @@ #include "rv770.h" #include "radeon.h" #include "radeon_asic.h" +#include "ni_dpm.h" #include "si_dpm.h" #include "sid.h" @@ -1719,8 +1720,6 @@ static const struct si_powertune_data powertune_data_hainan = }; struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); -struct ni_power_info *ni_get_pi(struct radeon_device *rdev); -struct ni_ps *ni_get_ps(struct radeon_ps *rps); extern int si_mc_load_microcode(struct radeon_device *rdev); extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable);
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni_dpm.c:727:23: warning: no previous prototype for ‘ni_get_pi’ [-Wmissing-prototypes] 727 | struct ni_power_info *ni_get_pi(struct radeon_device *rdev) | ^~~~~~~~~ drivers/gpu/drm/radeon/ni_dpm.c:734:15: warning: no previous prototype for ‘ni_get_ps’ [-Wmissing-prototypes] 734 | struct ni_ps *ni_get_ps(struct radeon_ps *rps) | ^~~~~~~~~ Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/radeon/ni_dpm.h | 3 +++ drivers/gpu/drm/radeon/si_dpm.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-)