From patchwork Thu Nov 26 13:42:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332981 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155596ejs; Thu, 26 Nov 2020 05:43:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrVku6sMrOmxk8W/gDb01dFT6/3Tx0Fqz5z/Re85ipkCaDeuGXWqCQJbCJSC9Ie6vS58Mu X-Received: by 2002:aa7:93cc:0:b029:19a:8aba:97d5 with SMTP id y12-20020aa793cc0000b029019a8aba97d5mr2743182pff.66.1606398181288; Thu, 26 Nov 2020 05:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398181; cv=none; d=google.com; s=arc-20160816; b=SHZuEP8zDQqINRRoCFJsfvgRf4ovl8MJweIs3fJGuD9ZlV09BLcBWxDoJyBWQxSZtp iJX/4N24WX4jlCdML33ujVKXo/q8jHV9gEyW1kSCzfNhfmJpUztu6W7O1i3m8EI65SCA qN45TM/tMeZ9FHxxwJWCjZhSmwaQKVlR3fW3L4RM7o7M2Frt/HiPKhTYXGUui2asy79T teMpC+Sbsgg1KsFlrIV04Y0zLBxHyOX/2O6abjzWxvDy2bDqZdzb7Je8CTO5na+4RqdQ cbjLDffc9aAG19Jz6yEpuX75bOp0j0V+zEqKTjf0WiKIec0bbPFopq0LfitXalAZi/ye zyyw== 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=TYYHxdUFO4qbc+ZkUAiF46SbismHtZf/G95SK4lgeMc=; b=Ks8Q6p4vWpE8WuRT/e4MbNzYSygoYHpj95FS4YWZ//O+fN8+etmsLk+2AbA/cV+9Ck Mly6WM8n8vS6rAmyNh0GNtIpbx/hNR96SyrWK0MAtUi0dZEcF85WXwgb69VUhYb01gY1 BDO32J0lCl5xNiqdq8aEXk0l3g8XXMzk5OUsIDm5fjrHVMmrAKo8wP8MmC1xPkvhsZSk IVzzZdRLy+JMp6bZOYbRmpaeOlEQ0WwEpslwHxG1exqgg7pBpWr3awT9sI8cKnbwbaKU 9S3PqiYJ7EHnMAo7YxFvGE4jQuJDzPva7Pw8GNU7igk1+MFNHzDiYGNCAjm/WzhAkhQy 7lHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=xos3Z235; 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 b7si5532397pjz.9.2020.11.26.05.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:01 -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=xos3Z235; 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 7A98E6E959; Thu, 26 Nov 2020 13:42:57 +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 4601B6E959 for ; Thu, 26 Nov 2020 13:42:51 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id s8so2175572wrw.10 for ; Thu, 26 Nov 2020 05:42:51 -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=vyYJASeUbOt9Oc/Vofw1C6Y2+olsU2h1O7WPPXgsjDg=; b=xos3Z235V+VsqrBuBxOR03HMkZts5GlDVhKuNYxI9eBaJOP4w0ktVn+uMzH1tBWjfk byRyaOCDL1JFpJGS8bPQ3Gi6wNGWUzMFVyKehbMjLq4XZbqs0e6Vm283fuy449VUhHzq uabcAfhlVvxLBGKuT0/noqU+UrE4hDCD5pYzsf2zGRAsSLuMznc4lmRy/MobItxFEMZ+ c1yY6TvwQIkDcdCBuzNLnwbBm8Jafkhc2/BZcHMSVM+q8ReotyLF/vK9d2kPxvHNr41B N1ShZuoFxfdbMqOlyNx1t5DBsHrpLTTri54fYcWjr8GYnNnmxXQKBiip9id1VtEJySel XTYw== 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=vyYJASeUbOt9Oc/Vofw1C6Y2+olsU2h1O7WPPXgsjDg=; b=AldbEpxDUM+DADZOe3J2d69/YsEVyaat/+MOHqq1LEQVzh0RIOEJjqYvSWdik5/Cem HtTpIMFh71wcijpMbh3+Fmb8250gltTTywPXWojskA5tsNF+mJTPQpQa7MVFMZEukMVU CA2qsNl2xWpRiVe970XFQy/FMhQrv8wIgVkjx6Q0plAyUSh8CDNgC1aKx2rskuHjlgtG gi8k6q10l3o574+BpZned1jHJ/X68QBQsvhuytveAueZDXnJY3wMlxk4Pid+3PaifybD uuzXk4OLnwBSqgpOlf9tpY+FyLKMyXE08gP7Y6v37wyvRRs4TwXJb4Rq/3EALWbS/03w rLGg== X-Gm-Message-State: AOAM531HsDiCGenVOW+oXGdAOiX/QEMEgiljeJacECOhYYgiV1HrEELb xRcx6Ntz7tLMRNYEFRIaWbxAyQ== X-Received: by 2002:adf:902d:: with SMTP id h42mr3878260wrh.175.1606398169992; Thu, 26 Nov 2020 05:42:49 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Make function called by reference static Date: Thu, 26 Nov 2020 13:42:04 +0000 Message-Id: <20201126134240.3214176-5-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, Huang Rui , 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/iceland_smumgr.c:2085:5: warning: no previous prototype for ‘iceland_thermal_setup_fan_table’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In function ‘iceland_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:6: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] Cc: Evan Quan Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Huang Rui Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c index 431ad2fd38df1..6a0f581de999b 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c @@ -2082,7 +2082,7 @@ static int iceland_init_smc_table(struct pp_hwmgr *hwmgr) return 0; } -int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) +static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) { struct smu7_smumgr *smu7_data = (struct smu7_smumgr *)(hwmgr->smu_backend); SMU71_Discrete_FanTable fan_table = { FDO_MODE_HARDWARE };