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: 11934025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E2CDC56202 for ; Thu, 26 Nov 2020 13:42:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 22C24206F7 for ; Thu, 26 Nov 2020 13:42:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DCQv/x0D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22C24206F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.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) 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-Google-Smtp-Source: ABdhPJzvwkDW0s2vxiNf5+aK/oS+gcALiJrv7eq8sae3U4oQh/q0CF/GyjEm5e+T0OwBp2um+s9Ugg== 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; }