From patchwork Thu Nov 26 13:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332993 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155968ejs; Thu, 26 Nov 2020 05:43:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXq8x7nGd3wC/dilr0fys9UBic/BHEPVMB6vqdP3+YKvYq04BiXs3L7Umisgj2xyvmx/F/ X-Received: by 2002:a63:1b46:: with SMTP id b6mr2657776pgm.92.1606398214054; Thu, 26 Nov 2020 05:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398214; cv=none; d=google.com; s=arc-20160816; b=Yavi7cA1OJG6n+Izyvh8RWjXoyXg8j0HhBVNMcM9HTE94C9ODqWydq0GfAGnzYHZUE NxwS/h5S2OXmnhf5AOzYw43pkF/zHVlhQH2pVqB1eYTmWYl6H+zWYlvwuZ6sbCXrPGjl Xyo/U3/wqeAUsDjJ3m1GnfoYjB4fBg3mfTQ6o66F/drpy/BFrgXdPckqJTp7LbeWbpus 3rgJvWolxrKR0WFT2oQF6fnxsPP81cB82xcJAWBiHpb4CrkcWWR68ll3zX0WAK6qc0Oz 5vz0eNSjYC2/I/qgkKhq+WDK4ltagF5BeSqOKQytoYiW62uUrxd7pdk0W6WACsJ2QdjE QOnQ== 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=973T7/wwLyJonktLY3mKe+ZHnjAVNQu3NHpNIAnC/F0=; b=CadV7vZVKFl2DFIENOQuiZja3AK4s1q/QnW5hfZ1zACUcQy1wzSKvMZqh9fhM6ON9v Ale0DwYM0JrHRld3D5KCPUmcf3yHxZcZpwanRWcvd1G9vWqp1lV0YpztLqjefyswvTDL byROL9zz7QgGO7qWAUgg3pdf1Wgdv4KzARra1b1bhBdL6Z/VKHNGd2h1OeX89w6+7hXu RPv9FhipuTho6UdYtAfYW8NoFtOAZnaPOayQppm66ytqpvgb4i+aOYGlJCsn+uEIqZqz GaPfQHkOwTH2mXDy0ccn2BDIpqH9SIAZdHdyY10MZm8nhJSRhE9RYKUzj49QdMAiRuRA QmPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pDltQRsb; 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 e188si5035240pfa.347.2020.11.26.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:34 -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=pDltQRsb; 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 421C96E971; Thu, 26 Nov 2020 13:43:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BF046E95D for ; Thu, 26 Nov 2020 13:43:06 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id t4so2167643wrr.12 for ; Thu, 26 Nov 2020 05:43:06 -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=zctwnJbPr/3TheGemqq6daAKnhm6ZrMfRQU0PGJhDOc=; b=pDltQRsbWl/HhtFyKynIgVHjgGqhl8RyOCVAoakl6T2/8wQPLspSu3Oa1tiDcnfopy e9D3OF04dD82YCqF5viq37JgLD1HapAh5shN7dH6FVZnGYgYbc0Nr9n5wp71x9uyA763 hyVzYQIDCSKZ3qg7AUYKz2AUUOxhJCBcdKTAPiiEogEBCt6VifYy3y7fiWtoAvYKOqMI Tfc9eqOdOIM9Zu537WK38RgCB3nxr4F7F7MLFjrUEbq0WGiUq2ArU1o8ynd243lFu6vm Q1F4RwWUGcFs24XS6hUYjYtSpz/1ARAh6nm2izEluG7BUhlkfK9Eh6L/d7/JnUIEHLN2 FxBQ== 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=zctwnJbPr/3TheGemqq6daAKnhm6ZrMfRQU0PGJhDOc=; b=ATqLxmU4g+cLopCuIhK2dWywUCWHk03Yd4+1Bf2ROARO+yhgqcQrTtIbPlz4BxF88k Nso7epVOSF+rAKMs2sz/fENPtPAK5pPhqsnCX7XIwj2zLu8fbCZkGQcFJC32gGBJ1fDL o2ZNiSOzLmIA88bDpfsSl0cepddFY2cr/h7G7L8NdfNdmWeeKRXlEiwHbWzZpAlpT5cG BSsOWSspXOo/3VqD7jdH55Mn7lQNrKd7jEcnMDotZAStjrULK8yhGz2PvnQlqo52Do3C AuS8dB9N1wZtWAaCk0RL3ioUNNRvjas1OPRK5B2cV7mw7pTYZaD7kd225fYITnochJ3t Yhsg== X-Gm-Message-State: AOAM531g4P1qBfReNo8p+pNuEPArUr+adTnSIo1W722wuFTG/txIDE6R yyg36yZfza/lmcP3fvU8H54beQ== X-Received: by 2002:adf:ec8a:: with SMTP id z10mr4054719wrn.113.1606398185299; Thu, 26 Nov 2020 05:43:05 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'smu7_init_function_pointers()'s prototype to header Date: Thu, 26 Nov 2020 13:42:13 +0000 Message-Id: <20201126134240.3214176-14-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/smu7_hwmgr.c:5696:5: warning: no previous prototype for ‘smu7_init_function_pointers’ [-Wmissing-prototypes] 5696 | int smu7_init_function_pointers(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 0e22cba3ce3a6..393e4e76a8961 100644 --- a/drivers/gpu/drm/amd/pm/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/pm/inc/hwmgr.h @@ -828,6 +828,7 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, #define PHM_ENTIRE_REGISTER_MASK 0xFFFFFFFFU +int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); int smu8_init_function_pointers(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 ec17a3e63ea02..7999091cca16e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -46,7 +46,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 smu7_init_function_pointers(struct pp_hwmgr *hwmgr); 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);