From patchwork Thu Nov 26 13:42:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333004 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156157ejs; Thu, 26 Nov 2020 05:43:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+Am9TFqvHSleejUfk98whGLQqvqegJcKWIsN5kv6XGtci7g2Rb+xX7DmFiFdJi/qNDtM2 X-Received: by 2002:a63:385e:: with SMTP id h30mr2612390pgn.181.1606398232366; Thu, 26 Nov 2020 05:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398232; cv=none; d=google.com; s=arc-20160816; b=x5wSgZEhRb4w6fVZHPMG705fF7o3kK8pVkqmhwz8X8CfjbZOftxUkAg6/+IqjnjebE hvOE1zgNY1gormP85FpHiaqR4zQnrpIutSPrUkiA8F2M4kp5uZSlPFKcKMj76n0XzM5q 3t9Z99uJR4gaN73+9p5BsYABR5asXS1bPIs9Nhq66FNCQ4z9lPzVV2PpvV+IJvBqkJIA cI6hsUsR/UqJThjrRu5HjKUjIIbZETmGQ8tnqUumNyjNfQ55w5ZihHyzjfQBURiy3PQQ g+OP4ZvHNZPTt0ohOeQKETZsrAvuBzBIVYW2H7v2iRyFE1H8gj2xPUC6HSorzi0PFv80 Sehw== 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=FWlPQ8e2vwFj7oSwPiOYry72C4/rQnKkuTxLejWHriw=; b=Xh6lVWtOMHVvaf15WzAnLhi3mTBYGgupGtjkZsGes03ZsAbdrd6MtHHDeiDZEZoDJk g4LZB9nFRzS9EIPQ9CEZuo9kaf21lx9tWETFWXcyOYrTPA+kY+cOSCKCYLNDG8KgTdsU Of/4oarOCIVrfBApZsiKkB5wuP93qLGJY1giZCrZozW5gAt3+Gad03piBsRFdxuWKMjt +XuxJgC/WXilWENU5uaZ3FWwQWMYdFDpqCh733PjbUoWP2KFlhtATngN65z4FytQLiF/ 2bkjaKOREjADGduTExGVW/GKw+iQkDxVEhK8A3Y0kB9eI9cuzJ3N3SYh2sKUBHgPgifC TeQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GEo2EsSt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id d21si5851859pls.140.2020.11.26.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GEo2EsSt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 2B8CE6E96F; Thu, 26 Nov 2020 13:43:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBA266E985 for ; Thu, 26 Nov 2020 13:43:27 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id s13so2449522wmh.4 for ; Thu, 26 Nov 2020 05:43:27 -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=FHee2zrW6mojQNSNJ9XRSA5F6LyijJ6hVMNlAaUjhbE=; b=GEo2EsStv13X9m/Tsj4m2jpkSmdMGO2t7vaRwB28WuHahv54Zru6Pq30ubqib2P4Wo ACkQZ7JrvpNLHUTv7oTvmgoVXkEwYckfsZQspiFUVlp0XajeT9CoQQt5Pbjf5EwuEN6D RlYoNlJrzOwYqErn8RfUXGMijS+BwjtOgRMnpYRx++o5YM0H4367xMtK7gzs82IAyos5 iQrBA233rIoyolzxOWOhFFUdnZ47L8NZq895xrRKd/hnWU6S8SAmr3Z2aFFCOAD2/Q/A iIGzRYPc2j1MBqeQwJD72uHh7Zlv5BPbVr/AwjD8oNGEh+cgL9os1KYP2ICPL66LEMrc 4jcg== 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=FHee2zrW6mojQNSNJ9XRSA5F6LyijJ6hVMNlAaUjhbE=; b=rjrVC8xFm0LvvE3o6WhojVfBphlvgAtJVjRBEWHfR+GsQr429aLgFyRLFJGrdkf9jQ WrHEbvL6Bgo/QURWQHeJeDqXRqUCHIvov7a8uFScCPrI8GayEDh6ETAz/LloQSlDqkYo ZzNwSGqQfYmVGf/ledm00XV13tZhKrQUvIGkIBZop+Muwnd2QR0+F2UmcKam4Eqihsgz c3ELCHhXrVzhbOygiurp5wR1zrd4ZWqoSpUuztckgBdhVzp8OX8BBh5dyHz/BYiGWM7F yW5ysJ2gXtS6JTflJIt9XJ+fnzHRoRGg6LCPbLbTu8RUjzVK98Q2H45SmAOzwacMF6dq i1/g== X-Gm-Message-State: AOAM531IeJtkOy+yIXJxBlYSI/HB9McaQ2HpbNlABpPGdT5f2MSHbk1K p9OT7zHYiSr3ee8Hbj+GaVEV6Q== X-Received: by 2002:a1c:2001:: with SMTP id g1mr3488686wmg.179.1606398205360; Thu, 26 Nov 2020 05:43:25 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'vega20_hwmgr_init()'s prototype to shared header Date: Thu, 26 Nov 2020 13:42:27 +0000 Message-Id: <20201126134240.3214176-28-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/vega20_hwmgr.c:4403:5: warning: no previous prototype for ‘vega20_hwmgr_init’ [-Wmissing-prototypes] 4403 | int vega20_hwmgr_init(struct pp_hwmgr *hwmgr) | ^~~~~~~~~~~~~~~~~ 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 --- drivers/gpu/drm/amd/pm/inc/hwmgr.h | 1 + drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/hwmgr.h b/drivers/gpu/drm/amd/pm/inc/hwmgr.h index 499f2520b1aa3..490371bd25201 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -831,5 +831,6 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); +int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); #endif /* _HWMGR_H_ */ diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index 49f8a331eb02e..6a7de8b898faf 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -47,7 +47,6 @@ extern const struct pp_smumgr_func smu10_smu_funcs; extern const struct pp_smumgr_func vega20_smu_funcs; extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); -extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr); static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr);