Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp285881pxj; Wed, 26 May 2021 23:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy60fZ04wgAxqooIpNVzt7pgYGKkn8ZKTqM+sXG+GDvX9Sqs4MmAW7+Ekt6PQbG1j7fe3Ps X-Received: by 2002:a17:906:c010:: with SMTP id e16mr2183541ejz.214.1622096725347; Wed, 26 May 2021 23:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622096725; cv=none; d=google.com; s=arc-20160816; b=cWqOpP0c1DO6KHn5hcfcWJRWmm5kh0Tf3MZauSp/Abc5MGxelUnIbp2xzrQF1T712x 2tRcYPjn6KMQjqIMCicengM3ztC463jISo5uCNRKO50RxShyBPaET5c+XjEmwSlcoMCk EhqlRXsOQQm/Ou9/nP++6M8CTX5FNy/e3CA74jIrUYQHREFyZeYFw6YFkpd6msiJtJnL eoDOAXd5KfV0th1C85NHh0P4vtL+GVXGnxdJ4+3Hr1JXTUCz9Pd+0r7aN0C7h61kdBs+ 07siERINW4px1fRM0WeiIc8fny1IPZz6Ii37BI9Y3T8k0karts07205d5BWcGSd6IrIq weBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DX5LZ59j/U95L+mNk2w46JLq9y9MxosdgzOg6i0ZZ6E=; b=LON0dx4LxjS1wEWnMbH7WBUESk1Bi0jU4JbzeT3dzQ/TKAayC0TiZlcVwIOGaN9ka1 3poJ8I1ZUP4uCP0TznoJ5UUYo0acd0/rpfN+z1tcTqLkpFjbKURxlU1MgRTl4OdHQxCm OZDNTc174fq8qb5GBwDPEjkp5e/fW1b4MeehUZiVD/Jn7sjCLszUqv53AZasJmxjrv0y ZvpNC9to5a6x2Rkb+BhLL1gyD7xStRsVAKTRAHQAdzCHaQtImI6SkHPa8uODtzeKniSu FOi/msKsva+SLTByoNSJ0u4pvKbvZD1WdiM1Hz30qWxHHeG3+1Tyyd4w6SDUj8bfGc/Z 4KJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="u8DB9ze/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si1745785ejx.698.2021.05.26.23.25.01; Wed, 26 May 2021 23:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="u8DB9ze/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbhE0DvL (ORCPT + 99 others); Wed, 26 May 2021 23:51:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbhE0DvK (ORCPT ); Wed, 26 May 2021 23:51:10 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7776CC061574 for ; Wed, 26 May 2021 20:49:36 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id j75so3786183oih.10 for ; Wed, 26 May 2021 20:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DX5LZ59j/U95L+mNk2w46JLq9y9MxosdgzOg6i0ZZ6E=; b=u8DB9ze/Jw3EU/Y4+kWrZQ6Cw2+PcWjxFCoDTqyt4TeM+BZFS+KrGfLZhaEBSCoXpl dbTbZeMaDXuKOHyGSU0lPjSHx2ndTerJYw44ctn2yUTQaIfyXZB5TJwBjJth9OqkAEV6 x83RO7YGxNxPM/MaGdoq2HGnCY7nfNSzu9g1OahvUbuq5DRf4t1PJ6pebrxZ8TzsIms5 qKG9MaTmsOH59Nsk07lS+oksXQZ+1tdCjsbJoz63DHEUGIvQ2XXrTu2wor6Z3rjKLhL2 Twidj3FMOFJDlN43g/in2ikXjQo8WuW0AqC3nRnZ9OfrD9xn8oUMtfr19h62A7pbta5S hHTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DX5LZ59j/U95L+mNk2w46JLq9y9MxosdgzOg6i0ZZ6E=; b=E/BX8ccg3pmzIt0lIw1XmAs/+Y/Q5oZW5xr1PzwbpKMqalNHSUruaJai3DOmR9M3xn 4SmLU9LfwljuO2XKzAltJHFkNf5ArH8KjPdoTVoQ5lIFh4AjxEFW8+Ube/dWWA/7g3KA 1Ny0BhArqkJbXwNLP3LjAGiGAMCSdnrGIiyMaB9IJEWph4yzIBNce4pCDTIiVT9xqc0m Y1qh9bbFMEzkIFq3RnLDezoGDXaQH3EExENZ+SaIlRJUNrJy7rEMLV5ItJ09zZ8VA4xb Qd8Hh2Rr85L2H3WC0YOK4ai62ggHYkuvezdfv39UoBh/haFWpf5lSMJksTzADxtLmI2/ BDug== X-Gm-Message-State: AOAM533EARNjT4OjZfCXTf8lCQMFN/sSBiFbtiH/8bb8U7/MeooLBPsS GbuzkGQkwESPoxbeYQuADaIRFMmknbhY5ICJ78w= X-Received: by 2002:a05:6808:249:: with SMTP id m9mr1011124oie.120.1622087375887; Wed, 26 May 2021 20:49:35 -0700 (PDT) MIME-Version: 1.0 References: <20210526084726.552052-1-lee.jones@linaro.org> <20210526084726.552052-3-lee.jones@linaro.org> In-Reply-To: <20210526084726.552052-3-lee.jones@linaro.org> From: Alex Deucher Date: Wed, 26 May 2021 23:49:25 -0400 Message-ID: Subject: Re: [PATCH 02/34] drm/amd/pm/swsmu/smu13/aldebaran_ppt: Remove unused variable 'ret' To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This should be checked. Will send out a patch momentarily. Thanks, Alex On Wed, May 26, 2021 at 4:47 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c: In functio= n =E2=80=98aldebaran_is_dpm_running=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1260:6: war= ning: variable =E2=80=98ret=E2=80=99 set but not used [-Wunused-but-set-var= iable] > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > 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/swsmu/smu13/aldebaran_ppt.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers= /gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c > index d6ce665baaf3b..d077e211017a9 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c > +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c > @@ -1368,10 +1368,9 @@ static int aldebaran_usr_edit_dpm_table(struct smu= _context *smu, enum PP_OD_DPM_ > > static bool aldebaran_is_dpm_running(struct smu_context *smu) > { > - int ret =3D 0; > uint32_t feature_mask[2]; > unsigned long feature_enabled; > - ret =3D smu_cmn_get_enabled_mask(smu, feature_mask, 2); > + smu_cmn_get_enabled_mask(smu, feature_mask, 2); > feature_enabled =3D (unsigned long)((uint64_t)feature_mask[0] | > ((uint64_t)feature_mask[1] << 3= 2)); > return !!(feature_enabled & SMC_DPM_FEATURE); > -- > 2.31.1 >