From patchwork Thu Nov 26 13:42:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332978 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155509ejs; Thu, 26 Nov 2020 05:42:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdVfkF9n+4FDnY5wX9ZTWGhbnIXaXKshe4GTUF/kxX5ZylZPKS/Ix/E9UFtW5TuUsXKJE/ X-Received: by 2002:a63:6341:: with SMTP id x62mr2614487pgb.93.1606398173547; Thu, 26 Nov 2020 05:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398173; cv=none; d=google.com; s=arc-20160816; b=nRrNGsd5LZuMuDhLGV39ADAEzIhmarxeIWbM6CZSBfPuXy5jYtcS080MiFScUJAFjR 43hMppcxnQ2mx2yV+dG+wdzl9ur4tQxnudS7K/ouG1fskTYoS7nmDGH+mXEwQW3xnZSb g2dVhI7D6WNzXnwWvmS2zeZqPC4EKjPLALGVjhjspD75Aj/KRvRkeDAJfqm0gUSoEQIZ D5i9hEbxC8DqEYlutg6Gw5R3euWRZ0joV1MTf/VHF/vkY/uXqCg+3gKRMtf36em171sq s2o9pC4zYHd9o4sMuexJstPWyrKfzjHF60gR3eK+mZvfl8Lyy3Pia+T1YVuAhPYCuZpb tpCQ== 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=TXB6+YXH3sAoBcPdXACbAqPeUBg347ZVdY6AV8HAiG4=; b=JB/szTPty1yY3vYFpkWZ8V0G1xvmqvL3a2RFf+SkiKh5dIL/bl2yvusvJkyecuxOHV ibkeskbjzkhUAiQssXGyvImDuxIuntk6jhF8yol2H7mNkPM01qb1G54dqh5Jk5jyXlhs 6Yc2HO3I9VvwzV8mJiQmZxYBU/Gm9lE5RzSCCqOAL/UHBdLNX6A4JBDefOvmhzFyq44E 6mSrwm0HPFdez7zSlmYMRl4oT1QRd5b+fpamIB5Rn/60c/YCfTkcI0XeYiz6Gcm/fVs1 dbesBymiZs7TcNrCjPIkTm8LN+gDvlbF1O+XqGtnV0gSMN3i/9rkRnMd3ge/G/bTFPpz 7gBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sRGeaUQG; 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 c5si2057232pjn.84.2020.11.26.05.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:53 -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=sRGeaUQG; 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 54B7B6E950; 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-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4A186E950 for ; Thu, 26 Nov 2020 13:42:47 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 1so2455285wme.3 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=YuzX4IvswDkJ8SA2+BkBhvbot5/c2/3wXnFFxZJ8VHQ=; b=sRGeaUQGfXY/xtrrAXDFNvJrX3YKVvXloSsB437HHje8kVce4ACPjCwY2I+mqD4Ntn R36M0zwVsj+jWH9K0pApQNqSDZXF9SNbtgkJiBPwo3+1Dp3oZew2onO4cF/ygdNH90i8 vLGPicCNcRFzYM5NkLCrj9rNXGTUnwxHYq+xeG56NMLOUvGZOgFBKSOL9m3DDDgQPQ3L zYo+cQnG6BEMvVyiquM9HL9I+WDDvXSJka74EwuqIxRA862k9s377J9nWHyMRAS2Zr+a cwVBb8x9aH+3e1v5ss4W8ZsDENgF0tKInWFDh3TT08apWnP+5+hfO3XmYMY/gaefgXdB NWsg== 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=YuzX4IvswDkJ8SA2+BkBhvbot5/c2/3wXnFFxZJ8VHQ=; b=Yq9d0zYTlpQiHMluG3vKozo8oUl93jFtXVRDeBSK+3ooGj6CiEHPmJic+2BxokuBXv 87fofDNmkxPBSjGcGqHKp0SCyyYiZmQwBPpcQV2+MxAOliT0/V6ADCM1nR7ayH4Euz72 JZPEB+r9uLpjM0qjxghJq7HnBxsNXlg6aggOIQlTRWoIgfMlx5mBUx3zRguwcavpqGVS 6rkYmLSPgMBCD5u3mwDG/EKFSYNbqDFXfyPCq4pdLXsDrpE6M+BfTczgW2kNhv6k9knY DfHdPtLu+LFdcrgbC4WgY2B21Ud2RVrroTLo69tripeGSc+bpChlCk959i80nOfHZS0z yJhg== X-Gm-Message-State: AOAM530tOJVxsc5bC66/9sRG7hmjVL9nmoJJwTsPkFH8onoJUkZPVwcc vmNVmWOyOkduAfxwJhSngTjkng== X-Received: by 2002:a1c:2284:: with SMTP id i126mr3459973wmi.43.1606398165341; Thu, 26 Nov 2020 05:42:45 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:42:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/40] drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res' Date: Thu, 26 Nov 2020 13:42:01 +0000 Message-Id: <20201126134240.3214176-2-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/tonga_smumgr.c: In function ‘tonga_thermal_setup_fan_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2469: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/tonga_smumgr.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c index 4bfadb49521bc..c28f3e1299701 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c @@ -2466,7 +2466,6 @@ static int tonga_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, @@ -2539,11 +2538,9 @@ static int tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) fan_table.FanControl_GL_Flag = 1; - res = smu7_copy_bytes_to_smc(hwmgr, - smu_data->smu7_data.fan_table_start, - (uint8_t *)&fan_table, - (uint32_t)sizeof(fan_table), - SMC_RAM_END); + smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start, + (uint8_t *)&fan_table, + (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; }