From patchwork Thu Nov 26 13:42:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332979 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155538ejs; Thu, 26 Nov 2020 05:42:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwow58ohnenOJHl0P5/iM4eWosRUO3of0Qgh2MBn3k5i7XrGEOkDYaWF1dvE0MTE77Nzrhb X-Received: by 2002:a65:6649:: with SMTP id z9mr2684363pgv.156.1606398176067; Thu, 26 Nov 2020 05:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398176; cv=none; d=google.com; s=arc-20160816; b=F1myrv3fgqlCJhNwQEPrIw7rTUtTUPw1eKoxKHjpcIoSCog9qHMCxMMQFKRQ/j1zyo RqjxBmdjs74ceLjyMIUUu5J0vjL8ujijLCwxDoDSGMv1kgmJuCIy/AhvF8jvDmQxAcHI ESBVp0lKbWaAG5RE187WJawKp3hxbEQyDjbPnTyYmQJFM3TIJQB7X4yjD5cCskFtP4gI Xt3eZcskdsboT8BgMYfcxTzbpP+FnpQwFZstgUSsZGU/djkaQn6ca5jiN8Y4guK4nFTv GpzHTbVA3w9FQgCT9AKHxUzyYqh0a45+xSzpEjMyoF+q6bMIC49fzKAd7IhDbt7SGQKG Z/Aw== 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=u8uWJeorcuGeG2B7zRf8qsSTyJE+Eh3ZzdepcU/JOCY=; b=RQsjWL/aLQ08JkA+ItP3Dc97Z5R5nS1YY3V5hK9aGkv8A16jx8wJErdqRLjl91STLn GL0wBw6Zz54L8rAQUHunYKYeagQMcwe09tEml6hSp5Vn2WI0sV/Bay6XNZWK5LHu7y/X UI+KUPgoi+Wo3x5SL3221lPgPOudtNP19EPryjoAcrTp/23MNmZNQYPJDMN9Z9K9MOVV u9rtxpoezHUZsaaZSfa1RNLeOn3SQl8Zcc2tJPBpYvmPZDfkwTjqzUSgzZp05c/JJbZ+ Ij9bhDB1ocSNgM2KIZj46hK+g1+A7HJm9WQyBH6ADmtX297ErEN2DysSoHiB0Ls1P5ky BccQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e1rVMTz6; 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 y7si5220788pfq.154.2020.11.26.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:56 -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=e1rVMTz6; 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 5E1E26E951; Thu, 26 Nov 2020 13:42:50 +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 E76996E951 for ; Thu, 26 Nov 2020 13:42:47 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id r3so2213394wrt.2 for ; Thu, 26 Nov 2020 05:42:47 -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=dmY41ceyc6chYcpESZmZP3QGDnanFIcluGLqchr029A=; b=e1rVMTz6bLbCWASJmqUfDpitRKv9ISCBYaTNCD0SsSAd2EevlEBxrDdSKB+rQAYuFU 8rr0oxy3WkZj1teuHpAo7OhQRMfaVPWERVifkADPWDCscLCwxlhpbpAl2LORsJ9Ui0rg OObbVbb/IohqBdFI9IFOxkjXusCH1fFfn4hLae9Cnj+rpHn0caLy1qwtkD2LImtKrn8v 6tA0xY4l+ViFaqf7bT6YmrhuJQiz/rwJyTU8lb6/112ic37dwpE9bXfBwZeB9WBS9kIl hZIA2MDWZJQC0Hp2Lh0GAUnYFNRGY2M6211dL4sn+pPH9Jk9PvbofcF7LWhBFxx9C5BD /UTg== 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=dmY41ceyc6chYcpESZmZP3QGDnanFIcluGLqchr029A=; b=W/GSdSI5eux5i0My62PyIkhFWy3cNFMiYdDRr/G3Ur27FdIHBI7B4kSUPa+InBrooY ZpTg7GanKkbc0J6flNeMRxYGos/4uCR8GohRY2l2JaYzrKlNMkIDTfnYlgUMMxOihzSl wq1H69hNyWVS7VThxGWW4Tuflre/P0Q67fh7K9cGv1ElqkKMsnHLmas5y+Sn7XUCyQEQ xVvxoXPkCVfAN9vEGUSJhNE3MCPVKrk7mbGz4EhJHPOj+ZZdzHhpvWX1Oue+eiwn+iXp BqEB54OKL5bLgZcKisl8EwV7Vk8/Fzte4kCfwKW+x6qEwCM+/teWpUA+sRJPs2ufDmlL f2uw== X-Gm-Message-State: AOAM530FRTE3kvSqVnEZJLobQWBwWQ0Uh5rpmXk9DQEew8u4dk4j6N7L gvdC60wr2d+zU9NMMMF6q+TCCw== X-Received: by 2002:adf:f2c7:: with SMTP id d7mr3870152wrp.142.1606398166640; Thu, 26 Nov 2020 05:42:46 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/amd/pm/powerplay/smumgr/polaris10_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:02 +0000 Message-Id: <20201126134240.3214176-3-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/smumgr/polaris10_smumgr.c:2145:5: warning: no previous prototype for ‘polaris10_thermal_avfs_enable’ [-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/smumgr/polaris10_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c index 052bc88cf33c9..45214a364baa9 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c @@ -2142,7 +2142,7 @@ static int polaris10_program_mem_timing_parameters(struct pp_hwmgr *hwmgr) return 0; } -int polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr) +static int polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);