From patchwork Thu Nov 26 13:42:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332989 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp155879ejs; Thu, 26 Nov 2020 05:43:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2vtJSgWzwXC1qjRYH6NUOIA/tT6qjhv4u9jaPUVKjjIGr43rL8AO38okfbu4aI6W+0yMR X-Received: by 2002:a17:90a:1bcb:: with SMTP id r11mr3647649pjr.27.1606398207224; Thu, 26 Nov 2020 05:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398207; cv=none; d=google.com; s=arc-20160816; b=YsvNfU1/lWshBlV7SI1cQhT77/whXp6s9lgtRA8JCUVrfs3fTO9xQkeKTOKVtce5qy SxHcSJvzb18zAItSaUwYKhXUH2nJFYNsB9Y3kNT85vSf6PMGNJ0hWX+MufmB0nWieLYK 014i+p0u4kXpMzvVgm8pVoLpVq/9VUL2H4LQUiWQ4EwbWY2BmOcP9k2eW+AKX19PUEL6 NTZLvb+fy+r4BYFyAGetZ6y4vJlKjAnCGAlBQAYarhZNZ30Ddi8wavr98wPAQt2E/B6Q JIgm3IyqUGqnr9RYGZ8HhuKpEqpPZykhHe4ixhB8utuUPVtv09TqusjoZRUEIaUArpvT S0mQ== 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=E5Jvj/RUOcmzUchzebi7wFsYoh9e4uExoFmkm+B6uMA=; b=Nt9DnDNDKo215Y5jB+Sa9/KgwLQVuWB0L0QOU6ajsdmrUkOKSyBLNAYtEKeRznaKNH cGSxDolHYy2S6gvbvvzs417CZco+xu+Uho9HnHD//dnR06FZNiNYMTNN1Hn48cjAj/N8 9fzk/qyK0iSbgb3FZdW97meVSQiAYU1+FV7j7+KXHt1eqHoAvMLFloKyp0+hnU82ba7b lcNzQNHXbTZ5p1tsSIIJVWxHhjK8mn9l4jIH/nFcJVIMPFkDoBOukj4E5kkrLqh9GrWV aGdtnacLoZ1OCtUQa7Voena//UFlIzIwTGX6vLdGcIr5j5iW8s5a4j8EsOO/T6eC5VDi EAcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UD3E9VdW; 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 j1si5139463pjt.47.2020.11.26.05.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:27 -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=UD3E9VdW; 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 C74276E96A; Thu, 26 Nov 2020 13:43:18 +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 451946E95A for ; Thu, 26 Nov 2020 13:43:10 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id i2so2193854wrs.4 for ; Thu, 26 Nov 2020 05:43:10 -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=5FFGLkzHxg+N+3tJLNsR8x54qcIEfrnjhf2NeR7gfvQ=; b=UD3E9VdWiOH8HHc3mcXJWQ6FheicN8TOMXfJTzBr2/uw6O3ZHKp7O+vhFI7xhmTbti PnCNSdhJn0Nnc9gsst8K+q9FHVakkCUBsYBTIZDxQI1iRVwNJhMeCqLm7QrAGKIb9fFU KrJZopwnbKHCGVB3l7KeG+zh3mX0fEzcPov/agJqwxK1ZEyhvsllFm7vtv/3L9X/vAhh U48twSGTnWelRLeaexz1rVrP6PtvVjEH77mOmVuoJTvbqHrK4EUafXvnNmMEPV6hZVoX 360i4ts/gFwfRc6WawpK3hDLBA6+Ujppx2dH005gklhp6n8F5EIwagA+XJa/SRuGEOQB ZSfA== 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=5FFGLkzHxg+N+3tJLNsR8x54qcIEfrnjhf2NeR7gfvQ=; b=S/vtyk0Zj5zDN77LYkAi2Zp1kwaozzryZBdWbV+7R8UMAjQ/IEaLcE5JH12MH50uf3 hIi2ba5kM6fGMLG7fWQKwWcAkx7694pPCWMcX6h9zu3WP8smbfn08Bbg8y4oaYQMnhAo q1tQNM6yEAyvXtvqK5yM63fkDFwCpKXpLuIQKm9hIycZZNh2FR9JV++22zYAKwBLFaJ/ nI49vhpPODZw8LGZj2P+/Ar/CB9aUGJw0TKNhrXazqGGxDD40hAkotErKrXWBxfjb2Nv 8WIIOEA11pBDcwY7LyaLeqIplS2pLRwvZeI8GyXyrhn/I2jXw1reQEJmIEawC7VF/7qM 4jVQ== X-Gm-Message-State: AOAM530ZRdwo/HbOWTqO9R5nlIE14cWdOPTkcnN41gg8AOnR2e53WUiy qxE7Fe7gb2ok9D2bgDnIZg+Xog== X-Received: by 2002:a5d:4d86:: with SMTP id b6mr3883469wru.369.1606398188990; Thu, 26 Nov 2020 05:43:08 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:08 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Remove unused variable 'res' Date: Thu, 26 Nov 2020 13:42:16 +0000 Message-Id: <20201126134240.3214176-17-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: 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 6a0f581de999b..2da5225eafbb8 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c @@ -2090,7 +2090,6 @@ static int iceland_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)) @@ -2154,7 +2153,7 @@ static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) /* fan_table.FanControl_GL_Flag = 1; */ - res = smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); + smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END); return 0; }