Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3522509pxx; Mon, 2 Nov 2020 11:06:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoYoCHjruexgj0TwuyGeC2v5P+Ex/hypDV8HXgkIMyZ5wQD2F6DJlwkXWIEIqDP0So/9k1 X-Received: by 2002:a05:6402:195:: with SMTP id r21mr17646058edv.164.1604344000696; Mon, 02 Nov 2020 11:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604344000; cv=none; d=google.com; s=arc-20160816; b=YsaCtYEyw1zwPl0yzVMq+qDrI3wSTmZ7J9ow/lHIYrywrP+w28aDr1nc4ULr7Uwvo/ p6O8m9ZL7lQF/RxITbQccNHFie5hk8e4DEuSTq1X+V4euP2TtnVZiWBFa4ofchI7ac6o TdTHcUPs1Zy+lOcNgVPyup490ULQHoeEd5R59eUzpdnREe5YYaE6sApcgm7x1/W3iTjo 3FHjxIEVI4IblNFJqOTqSpLSj3q3BAL1YFnLo0utYhR6QwBIlv35VaE40WNuTDt5j1jT ikQjQaDAgue1gO3Jruu5jKmoWp35EWwXpZ0SOcsMjdeviibwla6h0t6mvuz76t62WXfi JFmQ== 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=Tf+lyKd6cxKdsDnu3FRIUy9U8nKGczUdtHTnDfNA6uk=; b=zNvz+8EmUJQMsIXCCoB5d6t7J5qsBHh53Qa1v8LdRNEN9jwrIeqklny6fP1o03qLNW BQe/VFysINiQf3Jh1lHap+TVCpdPs9oUqu16Bazu8V0/OoMTjEiW7MujBlqPdzsT/PDR GApPOMPBij0exdeS6ZNwZ2HI6lVwrVWsnSz0c5K9LzxC+WKrR7QthcxbAse3QK+PCPJ6 7D+7pymYVuS7r1HX6ylF72XaLu6WAJgZL25vs+EPfQpPVDC7kdEI2UfGYT0/MkKJ0MJK /Nsm4NMBzen+9MWrG2j6nkp8RI7lHu7j7MDRfG2x/G/MG78EZBbJ47E/E+H1Ob8P3BSs pByg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N88QPtjK; 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 t6si1099223ejo.473.2020.11.02.11.06.17; Mon, 02 Nov 2020 11:06:40 -0800 (PST) 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=N88QPtjK; 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 S1726648AbgKBTEp (ORCPT + 99 others); Mon, 2 Nov 2020 14:04:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbgKBTEm (ORCPT ); Mon, 2 Nov 2020 14:04:42 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1ADEC0617A6 for ; Mon, 2 Nov 2020 11:04:41 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id y12so15865066wrp.6 for ; Mon, 02 Nov 2020 11:04:41 -0800 (PST) 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=Tf+lyKd6cxKdsDnu3FRIUy9U8nKGczUdtHTnDfNA6uk=; b=N88QPtjKr3lnoHDVn2ua8QmK+rTC4K1TDQ/67elgh7OvoyWwbfTLhBzeBR5rTpatH1 v6v77w7acB2WFkVXtjdS7JXSqvbobWCYDMLW64nI3L2ClZ53hMTzpqxxYznu0S54Pl4r 2EQWY+jZ4K4eEJ5ibYmRLuFe0EsSbFv8o03orKXY3NogDsoREZumC/abc6mpLHYbTCyy K3w7Skdcf/jdS9yl6fyZwp4dwmJyGUoTXRc+gylIzKnTKNaXrPpBHTiiLccZ8XzRwweU cRpB2FFk/SetlnTkO501C5ffSMH99MXWZg5ZYC3luCSRrgrlFLJ7+bHtEJ5GOQPmrx2T Flww== 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=Tf+lyKd6cxKdsDnu3FRIUy9U8nKGczUdtHTnDfNA6uk=; b=chWvq6rnY97st7Tzbe0W4kwKiK8lSCoRKAv8bFDxKwsTOjAx6rF4C5o5CPfrXcQzBS v8VbI7I0p4DCuKjU1ratARPNzfmyTihPmgZc4TfXGFpsohqr+EBXfVNPWkx+SRpkkWdx S0M26/0VjO0mWqPgZtRBl3Xo1PBPEkuSCKKu2MmoJdrCu5O3gUntOJvCi65kDp98L0CT Yugvxowx/7mQ6nxr/sTxXw3TNO3NTU71xzCrN8dKGsZg/4cAOngTf5UaWX395b5gCY5B baqeqwX5CGirwEZUDN/Rzz7Nw9/IT6C96Z8DHVIL+5tUETmQ9fYZyy3NrhFK8TsbFnqv lCOA== X-Gm-Message-State: AOAM530m3zVDaP/awDPakTLlDAq6QqLN2iay+awWfclM7ElzsaRtiV3F MRITTc4M86AGI/wO+c2vP0AzF/lg8iFyVEpaC5E= X-Received: by 2002:adf:dd8f:: with SMTP id x15mr23289868wrl.124.1604343880677; Mon, 02 Nov 2020 11:04:40 -0800 (PST) MIME-Version: 1.0 References: <1604318927-11896-1-git-send-email-zou_wei@huawei.com> In-Reply-To: <1604318927-11896-1-git-send-email-zou_wei@huawei.com> From: Alex Deucher Date: Mon, 2 Nov 2020 14:04:29 -0500 Message-ID: Subject: Re: [PATCH -next] drm/amd/pm: remove unused variable To: Zou Wei Cc: "Deucher, Alexander" , Christian Koenig , Dave Airlie , Daniel Vetter , Maling list - DRI developers , amd-gfx list , Xiaojian Du , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 2, 2020 at 8:44 AM Zou Wei wrote: > > Fix variable set but not used compilation warning: > > ./vangogh_ppt.c:397:6: warning: variable =E2=80=98ret=E2=80=99 set but no= t used [-Wunused-but-set-variable] > int ret =3D 0; > ^~~ > Maybe you have an older version of the code? It's currently used. Alex > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/g= pu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c > index 6e26025..355ade5 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c > +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c > @@ -394,8 +394,6 @@ static int vangogh_get_current_activity_percent(struc= t smu_context *smu, > enum amd_pp_sensors sensor= , > uint32_t *value) > { > - int ret =3D 0; > - > if (!value) > return -EINVAL; > > -- > 2.6.2 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel