From patchwork Fri Jan 8 20:14:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359037 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855659jai; Fri, 8 Jan 2021 12:15:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz16GbVLjWjkhns16Ccz4G/Tterk53S2YEpZD0Gbd90mXfdqDGVf4olrLxekIj4YNxVSbeT X-Received: by 2002:a62:1506:0:b029:19e:aca2:4ed8 with SMTP id 6-20020a6215060000b029019eaca24ed8mr5317081pfv.27.1610136930892; Fri, 08 Jan 2021 12:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136930; cv=none; d=google.com; s=arc-20160816; b=T5nY31fd439BpjMZpA7gcwgHkO/7UB96VRTp9+wcCPVh4wE09WJLlijihHp+YNPUMv 9H7YgW/oNG1iLod3RCa347OhWIS9iIy5hk9rF6yMBjFJDoLf7R6FP1SlrINKhN7v11OF fz3MyWwcvA6BqPGnSN27N0pC1u0orRGjfuHgOB9WAvgtUUN9aS3atgD3N/HM5FAi6pdF y+YO8+iArrG9QgzXVXCOFkzH9OgGvbCeUghkafJuRiM68+qXr5FFoHR26racP3bW+RSp u2ESZ4cJIM2Y+TvR1JOd9aJTB79CZfmabZuuWDAYURr3R10pCbw2+C/ch7izmeknLT4P vnYQ== 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=lqG+5A1wvsAbClNE2Vd/g9S9kgHsnIGH/aMpp3kUkdo=; b=pp923wefBO7n+cd8Hu+8agldajBLOjDk9vk0hjbDEoxw6nubNC0if3FeembRTIK+sV NyfaXG05m5RVHZRCic8yCJGnarASVsuy9kAmZbj5Hg8oc3+pe6Dpi/k47uxrz458hbS2 YW2ykJYC0MQVRzjbx7AUkdKYR5jUnx1gu+0uAEm3ITmbISdEPoDvkv8LK0ZjYdGfIxGn DhlrosZyt+Sk5dj1MDBiMIUFW0Xq7pjI2miYJr/qQacqgKa0JQJiNQZP1Pj9X1IGSkgW T+ZRCyQjUV7fydj+JF0pIWjldqcfxRTPtx2AC81h2x5ZEBwLakuX2J/5P+RK35EstZ3o Y5jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=k7hMmuN9; 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 q1si9760909pgt.173.2021.01.08.12.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:30 -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=k7hMmuN9; 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 D61436E8BF; Fri, 8 Jan 2021 20:15:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id 958266E8D2 for ; Fri, 8 Jan 2021 20:15:20 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id e25so9469095wme.0 for ; Fri, 08 Jan 2021 12:15:20 -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=k4SPpSIEaIrZDfJcedbk8KPV+52H3SX44Cb4d3Gm68s=; b=k7hMmuN9Mb+20/4OO7wQuc1oKHtEPsh/19e+lUDbPYvmWJu/srmWM995pmehzaT1Nt ng+E2Mkj79EDdVAn6pxmRY36XYlU15z00rRXqJsXSGOgkEI2km/GkIE1xJUqPHf2TF2n mX90IH/olI2G7GcXXszjf7zSuhid43l7s0KKKFO92GGL4LmtgDn8yS3tn5xNAcqG9BQU B08ApRr5fNmTgp8gxDyf3n8qWDXBIp1pmHBUv7s6ICuqnPOSsSxxJb0yGvYmA84qXuGP JQuKUN4IrFvyrkCI8n0O90r2WgluMSsVuRVWSyMmle7TrSzhSUdGEhT+URBE3mZyj7r+ YM4w== 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=k4SPpSIEaIrZDfJcedbk8KPV+52H3SX44Cb4d3Gm68s=; b=Xlq/NjSZylDcahm7zWh2aD4HRvp6ag4hiaD3Sqb35K+X11+ZBKFAQkMM1NWhOGHlTc J1ULa9XcnO2kufGuPRXNYtAtcUh0Hqu1ki8Y0vJk5y/3daVwDGgNe7X4bIPZjNtdr97Q Svkbg05DR9l19pGA3NnhZv1j4+FoT4RjYwIqNEgMzHB1pbHMFCkhWHZFN4GzHZNqS+mW weDd3NBxk4jKV8APSN7EikgvX6LLtqoUNSaCFye9FwZO71g34Ah1oBuP7CyP+w6Dfs0U kuVQyoI7OSJgxbFbRp49QVJ5aPwDERyOrq/E+wk0GSFsinoyWSAMipDzBiBtPp4k/pmJ D2Hg== X-Gm-Message-State: AOAM531l4mzzUkl2O/3wCbNvTnE2xJD3OPyoUfNw+drh0vLzkbCaGDI9 9UYfDCQo0LpuRt0jBv1cTVLtCg== X-Received: by 2002:a7b:c45a:: with SMTP id l26mr4501753wmi.91.1610136919275; Fri, 08 Jan 2021 12:15:19 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 11/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move prototype into shared header Date: Fri, 8 Jan 2021 20:14:28 +0000 Message-Id: <20210108201457.3078600-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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/vega10_hwmgr.c:5474:5: warning: no previous prototype for ‘vega10_hwmgr_init’ [-Wmissing-prototypes] 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/powerplay/hwmgr/hwmgr.c | 2 +- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index 6a7de8b898faf..f2cef0930aa96 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -33,6 +33,7 @@ #include "ppsmc.h" #include "amd_acpi.h" #include "pp_psm.h" +#include "vega10_hwmgr.h" extern const struct pp_smumgr_func ci_smu_funcs; extern const struct pp_smumgr_func smu8_smu_funcs; @@ -46,7 +47,6 @@ extern const struct pp_smumgr_func vega12_smu_funcs; 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 smu10_init_function_pointers(struct pp_hwmgr *hwmgr); static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr); diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h index f752b4ad0c8ae..07c06f8c90b09 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h @@ -442,5 +442,6 @@ int vega10_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate); int vega10_update_samu_dpm(struct pp_hwmgr *hwmgr, bool bgate); int vega10_update_acp_dpm(struct pp_hwmgr *hwmgr, bool bgate); int vega10_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable); +int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); #endif /* _VEGA10_HWMGR_H_ */