Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4011081pxu; Mon, 30 Nov 2020 15:36:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyD52msrDLU0hNWlCqM1pUEIo3f+s9WZNjHTUEO4pYfXf1bvjjZ8pYOa++M7c/lpr9yT6bU X-Received: by 2002:a17:906:7b82:: with SMTP id s2mr199377ejo.435.1606779362510; Mon, 30 Nov 2020 15:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606779362; cv=none; d=google.com; s=arc-20160816; b=vDc//5w9/cP5ZoD1EMKngVrsWqUCo785AUaULbCmRqPJm5BqFL/i7wzIqpV6Fbd7r2 yz9R/SPHpBzmM8PSrdAbC9R6P3cX1b3UbPNqSsDIpkwKdIsZ2Q8tdoQGjjxa5ZYAcVoA jvzVeAD/+vXaZ1i8clV2maqX+KcaaTwmdLpsryqu+g4O44lRM/fVwpb0vr/M59sBNEBZ ccULj4eyEys950dmWAdzR0MM9u658Z9Qu9siagI2wE5ZJ0sDEwBaezXyfFlUUjP7H8uz fr8/GvJhyYrNB0RMKuJn9Oq0wOef8rNS0Ofj+FyaWSg0/7tQJcOHMel/6Tp6ygH8Q1zQ V5Gg== 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=+4SG1W6ZYxr21uP2r2HXOaj3oH3XrFM1o5qmgSoZzy0=; b=TsJOh8ZW82Vy85EqrnhfMp1rqAG6H5HURCjKV64cmhkrOMwS79+cwj6At8IMC9tGRS WyxEuX8arMWw/z73jue1KAILxw2gGVMK5/9Ht+vrnN2MFWb1sqhBGs6aUaVe+VKWDd+w dIx2GuD5SneZPW+5A9lqks8C82DfYepBL0Tll05zF3YZvRl62M2Mts6Lc7uZYaCuS5Yo MCqc9880fxOGBbuYUmoXy7lrrYoVC0PORiD/RlKnIkvQk/7Nzn1Z9A3vHdmMGfI6od4l fOVN+NxRtIEEqrFBdk34I1UswlcRb6IYM0uIy472al83xHIpqZz0n6OmFCVMbwk394OY dNew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W8P4tc7l; 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 i8si10084304edv.236.2020.11.30.15.35.40; Mon, 30 Nov 2020 15:36:02 -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=W8P4tc7l; 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 S2388321AbgK3Xcm (ORCPT + 99 others); Mon, 30 Nov 2020 18:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387524AbgK3Xcm (ORCPT ); Mon, 30 Nov 2020 18:32:42 -0500 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FEE2C0613CF for ; Mon, 30 Nov 2020 15:32:02 -0800 (PST) Received: by mail-oo1-xc43.google.com with SMTP id l20so3107203oot.3 for ; Mon, 30 Nov 2020 15:32:02 -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=+4SG1W6ZYxr21uP2r2HXOaj3oH3XrFM1o5qmgSoZzy0=; b=W8P4tc7lqvKcl6a682oVHo8LIL7zrF3HorAGO901QT9xJcv+mt4nN6VQuV2x4Rkm6P 5b2nR8Gq0AuFtzHQ+rAWlF5X11SU9FxyROTtoCzkoVeuvvY67NwM0PBkjJ6vk85K7KcK 0PQtSIW0lMXYzvjVSnrwqjs25P1AePYUzeHdR2zH2NLv1qWEQIhZ3HhKmD53wUrQ8sVh 0JmwnwIvO/Qh1BQY9NsckOckCjyV8nSmw/pATYJKdwYj0PkRG3vgCvW5LacqrCGEkkMX FAathHy1+jxH6hZC073PN9FW88OKd3xgfpG8URkJsfSKLabb6vlqMbE56iDB68Lj7c4m t1jQ== 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=+4SG1W6ZYxr21uP2r2HXOaj3oH3XrFM1o5qmgSoZzy0=; b=B+uLH5n1rwBvKO1MosZqWcDPeTG/8xkoohKG42c0lxGT+rjmkBslPCAcuaQ4d8UayL fC60U5RIpAj9FgIlHMKj8KZRjOPuuAutU6vULVLzOSyg4GHD3Y5DfOuT2q55KpmJbf2V 25hBWCfvJ6QKkQp+SRQ0bAvbdVfTJfWLiY4MIQ6H1SPD4cGnFjCmbXd/PqRqgpeUSAu9 FmMVzvHf497JLqCio0RvNMWe3g3TT3m8ZKSi0rM6g7oSDLt7YJoGQTEj/0HklOsuL0ES s3W632Qnjyr2c1jKKTpKABxJaKJWyOB9gt4ACArQq29snpR7tDt3TnvgHLRMxmK9g8Bz tVFw== X-Gm-Message-State: AOAM533Hb1YPKV0XRvcN6+Qtwa+li5Vkf/sMmuLgusL5MP4hlQ1BnYMk olFGla1n+Vz+uzU+zx9ZtWAfsR2inscZ1cGOmC4= X-Received: by 2002:a4a:e0ce:: with SMTP id e14mr6193oot.72.1606779121408; Mon, 30 Nov 2020 15:32:01 -0800 (PST) MIME-Version: 1.0 References: <20201126134240.3214176-1-lee.jones@linaro.org> <20201126134240.3214176-12-lee.jones@linaro.org> In-Reply-To: <20201126134240.3214176-12-lee.jones@linaro.org> From: Alex Deucher Date: Mon, 30 Nov 2020 18:31:50 -0500 Message-ID: Subject: Re: [PATCH 11/40] drm/amd/pm/powerplay/hwmgr/ppevvmath: Place variable declaration under same clause as its use To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , Evan Quan , =?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 On Thu, Nov 26, 2020 at 8:43 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h: In functio= n =E2=80=98fMultiply=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: war= ning: variable =E2=80=98Y_LessThanOne=E2=80=99 set but not used [-Wunused-b= ut-set-variable] > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:7: warn= ing: variable =E2=80=98X_LessThanOne=E2=80=99 set but not used [-Wunused-bu= t-set-variable] > > Cc: Evan Quan > 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 Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h b/drivers= /gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h > index 8f50a038396ce..dac29fe6cfc6f 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h > @@ -333,14 +333,14 @@ static fInt fMultiply (fInt X, fInt Y) /* Uses 64-b= it integers (int64_t) */ > { > fInt Product; > int64_t tempProduct; > + > + /*The following is for a very specific common case: Non-zero numb= er with ONLY fractional portion*/ > + /* TEMPORARILY DISABLED - CAN BE USED TO IMPROVE PRECISION > bool X_LessThanOne, Y_LessThanOne; > > X_LessThanOne =3D (X.partial.real =3D=3D 0 && X.partial.decimal != =3D 0 && X.full >=3D 0); > Y_LessThanOne =3D (Y.partial.real =3D=3D 0 && Y.partial.decimal != =3D 0 && Y.full >=3D 0); > > - /*The following is for a very specific common case: Non-zero numb= er with ONLY fractional portion*/ > - /* TEMPORARILY DISABLED - CAN BE USED TO IMPROVE PRECISION > - > if (X_LessThanOne && Y_LessThanOne) { > Product.full =3D X.full * Y.full; > return Product > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel