From patchwork Thu Nov 26 13:42:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332980 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155568ejs; Thu, 26 Nov 2020 05:42:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwYRzipPl+YckNFwVTEHk963G6NrXfwABMpBnrVmSOOFZhMe7av/kntz4TRE44535aqCCK X-Received: by 2002:a17:902:446:b029:d7:cdda:87 with SMTP id 64-20020a1709020446b02900d7cdda0087mr2772038ple.11.1606398178650; Thu, 26 Nov 2020 05:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398178; cv=none; d=google.com; s=arc-20160816; b=jAbcZT+v1aYv8PmYOgbtZ7hHP0P5KUamvOmiedquEtWvP3YEbsVETduClrNBmzYqcw p6Z7cesL+/va327MXN6KvpwawDo10+dHMuhypFrTdSYTjeVQ1tnota0TU0EF438SjhJk ADi+DdIMHBbEid5KJGbzjTjd7p7C+Kk8nQgbJptFyFcnHOhvjhS3vsQj02K9VXU4BA5m +8LCN/DUY3QcN11TjqMVaY+VkRe2AK4W2KKYBRV7/qloPmug34Bi9nP282kgF9CXZW/k S8Ot75Wqx4YaJakXwX+wXhwPClFpxCP617HtFBl+506EO79nZQUNjXni+5OzHpcLUdf4 iakQ== 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=4we8ASPZFJektW28Y27yLip5wBnOSqjQV0NS828KRRM=; b=J6fWqd6MlcXwMSU1MvuCupmjzNhOFD0pS7i52KV5vxCFbLA63D0ICg4xJ6uXeaWhXM yn15tchnfzjSKlNiNKuoWKOMX5wo9eJZrla9KAu4AbsaP5RLBrSt4MmC7MqjqUHk9iEP UPiZwGI5nQFhDAl6/8WNKHyiNXPdRHjrntdCACNiUHPCV6RuikZ5Wnn5h5nAlcOgArm1 wvwzAhaNigKQI/vLvd/CMIxSSO6TPlU4fH/mVfC9V5dWWxxwAPQP/UhLyXCQ+/LjvtUN 8NXZ1BIaZOqVmqQSY8F29KjmqtSWFof3kIG/z82z5pQN8BFO9cOsY/y+/1jllLn6eX/F 7ZJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="DCQv/x0D"; 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 w5si5483692pff.127.2020.11.26.05.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:58 -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="DCQv/x0D"; 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 16F476E954; 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-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 64A296E954 for ; Thu, 26 Nov 2020 13:42:49 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id p22so2193666wmg.3 for ; Thu, 26 Nov 2020 05:42:49 -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=L9lgGUDlM7py1bAmh0K2ReeB9Skou96C92LhLu83qxQ=; b=DCQv/x0DIszjvscBb36cxqtG1a0DErbfJW+KXTrIqfTU1euX2kddV9clliTxjLQ4QX CD9TG8I+DosTGJG8D8N6ITX1PgUIu1NNdKrtsutaSvoyePqg8JbRQtVEY/dT/ovpu65t m6Wn/oUGmKqJn4umqIpSlSHZNCi07Aw+LXEtTQ0R/XvZGz+K80m0H6JehoZQ7H3Ucckl FT3aGJnooxLNS+dmiqnxCC9awsK0OogkN/9pXro1UI8E6Pn7I/o4YH9Iy3wDxEApnVcF 5tCKExUMh1kXY3VsC5me7/hwHWsKOBNMPrbQVb25mW4mrCOcKmyvOHf9poBgNzBY0Orr HE3g== 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=L9lgGUDlM7py1bAmh0K2ReeB9Skou96C92LhLu83qxQ=; b=H0tiFjHEjEThrdtn5+Df2Wo2ZmGSEplLWJZXck6KcLXnOYQgggtgDGmYkEVnjBPGNB +IoizXhQjn8/ggn/kBT4RRm0CIEdGOrT9Vcs4VC4yaV7itcu8djulRwAuJW5m+CDKOFs 1z5JzJzd/8PAT2OrguhM91nf+/9xRccTupmNIMFbkU2b6IjfSeBwxN3CljpeoUbH43/H vjQTe/eFWCkX9CWdaXSSKrruA4c+Is11qoOsA13jSgdm49RQWLMUupnpgdX1r0GOnFhZ LQNruEI2R+/IFW8jFRiqaWyQyCjjbhZ9Eg+aKU1I6Cye07aEFp/QBcO7kEFHme+Ma7nB QP3Q== X-Gm-Message-State: AOAM530ahs6yhEP5eJoxbHxPwzxjB0GlVao6g4jiQE9IkSj5NsDjdOoK W6iedXAQK/xgfWYf0XIiqSfJdQ== X-Received: by 2002:a7b:cd10:: with SMTP id f16mr3526378wmj.69.1606398168126; Thu, 26 Nov 2020 05:42:48 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/40] drm/amd/pm/powerplay/smumgr/ci_smumgr: Remove set but unused variable 'res' Date: Thu, 26 Nov 2020 13:42:03 +0000 Message-Id: <20201126134240.3214176-4-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/ci_smumgr.c: In function ‘ci_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:2132: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: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c index 329bf4d44bbce..c1d869b4c7a42 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c @@ -2129,7 +2129,6 @@ static int ci_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) uint32_t t_diff1, t_diff2, pwm_diff1, pwm_diff2; uint16_t fdo_min, slope1, slope2; uint32_t reference_clock; - int res; uint64_t tmp64; if (!phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_MicrocodeFanControl)) @@ -2191,7 +2190,7 @@ static int ci_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) fan_table.TempSrc = (uint8_t)PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, CG_MULT_THERMAL_CTRL, TEMP_SEL); - res = ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); + ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; }