From patchwork Thu Nov 26 13:42:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333003 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156148ejs; Thu, 26 Nov 2020 05:43:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6rdsmwGcErWlVcPz3sRFx5fkBl72IndZ/vthSH+jGx7QYt1Qp+6Gt4FlbFl+q8oK1Hs0b X-Received: by 2002:a17:902:6b8c:b029:d6:d32e:4a8c with SMTP id p12-20020a1709026b8cb02900d6d32e4a8cmr2875682plk.28.1606398231112; Thu, 26 Nov 2020 05:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398231; cv=none; d=google.com; s=arc-20160816; b=oxcOvsK9bCHNIT/IlotVSdQj5Hw0o+6K7u+lWOutT3wrSz5Xo61Xc1ORqpRmM0rQ03 9JWDssSknRObd/JZMzRRC5QeeBInPreLUESMUls19gHykHyPLiCjh/Vn3aKSxDq2IRTW 2iHK3tceAWe/lDwaTyqLb7jyOIdm1BIrMRwtvuCYJjoxeMnSRc2EZrMScGpRxRHOuBo3 pQQF+LSdNqFqh+41NGs65/1cwpwrRSnR+eYK6bD9e1Onrs/DthTptyjky91dht4LZULj IVs1QzRV+1wuCIyzlwYdJARnC1Irx7Wh9djlNQCg0hhNKJiP0d6MQBcq5iTMgUGqhEFZ y4lw== 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=sELqM/vU44uAVzuIGrBs8V4dD30a2fllX+yUmhovGbI=; b=ac+NDRn7xatxnnjbXv5bM59nLngnRg2DR0huBVynzF0vSwhZxweW+/yhB4L5HQkLvo wCslTCUY0Sx+9LCTd7nSxfvRclIY6PMJFAZWFsHdHqLPjrOrOqK3FxSOhrPKluCUGUGX M9P4bwFWeX3oNBts5mr5HPU9TWnXbl3ij9aXDHtaNzEkT7moy4+00bvKybqDWR9HHlim awDGpCont6MGjvCSPp9Tym5WcHg76jIAnHRseoNvmArPp9Q/bKlJJeH6yLS3JTgojyRw LFogr6Avkfm/5kF0cNeMErMN6WO7CEJhiruw6g0MJfzvKOYK0x1IR6zQlSAvw36VWCZ5 YP7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YVnwZsrr; 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 f10si4923084pjq.5.2020.11.26.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:51 -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=YVnwZsrr; 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 813416E95A; Thu, 26 Nov 2020 13:43:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 67AC36E976 for ; Thu, 26 Nov 2020 13:43:25 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id 1so2457077wme.3 for ; Thu, 26 Nov 2020 05:43:25 -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=zMzTR5vhzo4BdnrJCmrInB6ds6XJwPsog3Z9fF6R2ds=; b=YVnwZsrr7sG3BHYwtr4MQW0aFJrpyD1AMT0vIyWvKcE71Md7uD7/R1HGxpYrZ+mLGc LeFTtH/ouu+XRI7m5k3wKbRSAWdT5hheLq1/QuRnxmNDiTlgIFJrrhudBnl8EV/RLAMr wWnX0ysGFBkhWiW/dGtbfC21e0xIXHmByq6e5otpAD420wMf+55cFJRcDnp6qajBpAZ4 n87ywLwxtWbV8AiwIdfNBlpxykEfpASJ5MNiA0hqqd4t602Rt0Xo//VKfwTDbymFhPd0 1144Nr5rim3Iu8GIBe+FjKnKVgabvyK9pIRGoq0tYp4NYkA5aZApC60sSMGcrkzNUDuU TKoA== 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=zMzTR5vhzo4BdnrJCmrInB6ds6XJwPsog3Z9fF6R2ds=; b=TWEFFbtESZh2oivRni/OQgE3Lw+HVb3H2VG6ukiNiHfX5OSq8QgfNEwEVSn3MTCc4V +PU1WPwcMGvKumvqX82pnzFAVq9HO2eJPVh1fLPJpttbAV4O38KtlZa7GN5tgwvJiWL4 jCtjfltnjT/VaSWhrV7ZMu/osEvIgbw3YRi9hcqlKDbXnFDlrvvjJtuujHO9Ty40+xeW yBieOxLD+55BxPshGJBdwFlIWGpzJQj5pxJ1U3cVN/rme/UselLBQMh/H/ucsGb4SoDt t8Efhl8f+/UiMSAuBo6gwfXKBqd00GfS1h+mb1YZ4jbUosqldnKJwZFX+EgCC+PncMZj Kx/g== X-Gm-Message-State: AOAM532S+6tD8M3zsOgpzuW3Vhqjk0tRktb7JVvhhoLWE5K/iwaV1qH3 lDIhOGduQEUBsg+A40tsodIW5g== X-Received: by 2002:a7b:c950:: with SMTP id i16mr3536392wml.136.1606398204018; Thu, 26 Nov 2020 05:43:24 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:23 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'vega12_hwmgr_init()'s prototype to shared header Date: Thu, 26 Nov 2020 13:42:26 +0000 Message-Id: <20201126134240.3214176-27-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/vega12_hwmgr.c:2862:5: warning: no previous prototype for ‘vega12_hwmgr_init’ [-Wmissing-prototypes] 2862 | int vega12_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 393e4e76a8961..499f2520b1aa3 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -830,5 +830,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); #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 7999091cca16e..49f8a331eb02e 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 vega12_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);