From patchwork Thu Nov 26 13:42:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332984 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155655ejs; Thu, 26 Nov 2020 05:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVSVYwJK2Kx/ZJgnJnzWaZjYFHMZGvNWVJSlR7+QOOozlo1Ddm0pmbDyclbeNQKY9Xi1hj X-Received: by 2002:a17:90a:f288:: with SMTP id fs8mr867545pjb.184.1606398186344; Thu, 26 Nov 2020 05:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398186; cv=none; d=google.com; s=arc-20160816; b=hn8cK4Blw9Dbv/ANxy7+p5BmNN8DMJnDgDKb9hEUfmPTyRfMk9GAl7HJYRLJTHEENw O1wKibpRtO45oDMhEvf/TZOrmB64wvySiDkNBlQhOK/ocN5n4j1328ayxO4rOQLJSzlM GL9F/AhVp4k2GDTBggtagrp9MFTHii8mmMOCh2CTYOg625uoopPB3cd+zgjDh4vTkXvw o5qx77ee1mrnkB8yZCJIiqYjIoar9jF8jW7e9j/xS9xui/r9VCeWJWxngeNfDJxOWqoI 6OKfKOyPv4OEK6tZ1h20/0+74lS0L5M10SFHKgSLpMXXuHi1LQsGkVPGIPNW/NSu2bsc 7N5Q== 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=7u+g7HV82PWj0TE5NV7TgVpTfTwpTZ9hJMCVF71OWLE=; b=iiJBPRpc2F8I8sNlQpRlT+CxhEMdJx1FKAsAMxzJ57SKjQk4cGlsY4tLrrkP6kw/RA RIYJ1FxRej9XJKBsNfYrDjly1U2wEpt+4CZZppgRa8YZC2S92IFvfrY5HMmXL9bBibVw +ZpHKWsB+HzyoBpY5bK6tHUCL7LSux7zHochkdGEBxsZ1jPzPSzjJ4LSjMi17Loc1PnF s8bHWqH88QFEyrseRuFEBu0SO6VyTu2hFhI68N5W/l7gkNmaD7aawfFyWgT10gkqLbx9 ZeA1SC9LrEAWxOsdpMTF3mdACc9JCV1u1E/xVohsfR8noNDkg+qcOJ1aZ+UJllUsFDn6 Mjwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nReHHg4y; 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 q4si5682455pjq.94.2020.11.26.05.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:06 -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=nReHHg4y; 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 5BF116E95E; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 40FD96E954 for ; Thu, 26 Nov 2020 13:42:54 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l1so2189117wrb.9 for ; Thu, 26 Nov 2020 05:42:54 -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=ldsB1ybseYMp8ZBJ12vzzY4XQciSVJ5HSbnDxd3OzfI=; b=nReHHg4y2GwBg+ELtmf6FKwwwAdv6FVyF8TSlch4nRCGTQIlzqgbmoe8jOy65PUNtC QZA85Hl+za8IH3wCN1maDRJBzWHgekSGAWVe1ujb9l0mJ381TiuS7MAOxETiefpPaXal 9KUA/uc82NsiO5ek53XTMgL87wJZNqP4j9zolH/e0trnLg8vMZAdBBQ60k5vrk2DVMTi pIHLlgDKi+Tirc5Ix9rsVwi/D+KCuXckmZQ8l9Lmqw8WRADwOMXChgsKEm8RyaVVTuzl /LpSYMLRqRuuddUIUGJ1zrrqYv5ymqV1+9f3PEdlgwfMFp0IvAjV7Vw32h1noxdmD2v/ rVRQ== 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=ldsB1ybseYMp8ZBJ12vzzY4XQciSVJ5HSbnDxd3OzfI=; b=DCqQvlH4u7w7TnnhP/AXJmI0AD5EHaI+9RGFeu/QZFVz2AwG1RZRf1LgrxQhvDdCwW YDPthlpBrfNdNXTWw5mR4J0k7DSzYecqd5x8EG6v6/q+NUo8qeeW8X0TnYaoxphV4M8n pFNWH2AEb/0onxTrG0OXdFze6FCG7fLh+Mgj7husjjZVRBSgUoC1+6wFPmSa/bbtK4Qv fw7eYbWmzyRJvGjcYAT3VQSFYB5PzZyEKVxdg8lnE0o3ZYluN1kkdj6HuE5izeCogEjx ycD7r1a0rtymu+oFOZa7V4Yva3vDbp3opTgDHIrWS9XENq4HBusHOf7VN1y73kek3hqo 2jQg== X-Gm-Message-State: AOAM533R3k67KfrgI9yK14/nOG2w92WaDky4MtMAFjivUheoA5HBIimW VbfNq47lhDEBu+wzKDrbYAjSww== X-Received: by 2002:a5d:4586:: with SMTP id p6mr4114461wrq.308.1606398171231; Thu, 26 Nov 2020 05:42:51 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:50 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/40] drm/amd/pm/powerplay/smumgr/vegam_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:05 +0000 Message-Id: <20201126134240.3214176-6-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/vegam_smumgr.c:2249:5: warning: no previous prototype for ‘vegam_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/vegam_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c index 38a5cdcf58967..7d024d3facef0 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c @@ -2246,7 +2246,7 @@ static int vegam_update_sclk_threshold(struct pp_hwmgr *hwmgr) return result; } -int vegam_thermal_avfs_enable(struct pp_hwmgr *hwmgr) +static int vegam_thermal_avfs_enable(struct pp_hwmgr *hwmgr) { struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); int ret;