Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp659641pxu; Tue, 6 Oct 2020 16:11:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJM1uHMSwJGaUwBHfex81Q92s035dWSn16l/ITgaUXv5SKP9NuVLT6rRCoOR3I57hXW0Wy X-Received: by 2002:a17:906:30cf:: with SMTP id b15mr345732ejb.351.1602025869777; Tue, 06 Oct 2020 16:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602025869; cv=none; d=google.com; s=arc-20160816; b=bRlIre64JX8zw6Fu5o6EcSS91uLjn8b+/Mtb548OLVudLLqbV1RJ4u9z3f2yrhS/0g pKpPURc1IncLAq5vdewlcezOOfBzpgQBkbQhFjqi06Ud0QDMXvNaQaNX/U+nbvgLoqWH gnXkBaXCxAWNMYoOuB5PSeLQUlD2i+DTVaHIs6m10vob8io6oBv9O5CaJKLqVNYMPJVf gWnUmlX6E2QhK/9o95TqVCEOE/DDLRvpuRD89zvCknhkaA3KfklKbfnog8JyFbLP2/FY 8YHwWvU7kHTWfBtft8A/XlTBu6Epb7TiUJpqDgb7B1I07QCPAIaInijxsc2acr/0T28N QjKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DIhoEkw7QDnbqFkt4C/9ORTsJfEnPY9bxYmbo8CQgVc=; b=yG4GSOJQX5zpgppZV0IiBghTsVvFZZx48RRML6Y7QQ4WDHvZs81hyvnh1rn8Uh38ru Cl4myDumcPMR1t2XV/U45W2qGyoDOihAAG3/a4YTTi/vYPvz4sRYDmPGpMuBrgp2mxFs 8n32MWJuhmYLPuI4LDoHuVrpP3qB/bf184JyMiU8Nm4MPixFrCJADIKOKuNTF38QQSAK oybbyBaJ7Z4woKafjuZg3vEr5ahACPSy551YyQFs0FNIeT/6TjCC8xoQbhRrH3cSTWmF 0XsFo+cm0qa8elrt5N8nf94FFmEErvmgy5LMDWbCPi8b7MJ+Eh5rKDk1a+TIRmHWWArh Jhvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWXmY+d1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca16si19562edb.546.2020.10.06.16.10.33; Tue, 06 Oct 2020 16:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@chromium.org header.s=google header.b=AWXmY+d1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbgJFVf6 (ORCPT + 99 others); Tue, 6 Oct 2020 17:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgJFVf5 (ORCPT ); Tue, 6 Oct 2020 17:35:57 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B665EC061755 for ; Tue, 6 Oct 2020 14:35:57 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id c63so75319vkb.7 for ; Tue, 06 Oct 2020 14:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DIhoEkw7QDnbqFkt4C/9ORTsJfEnPY9bxYmbo8CQgVc=; b=AWXmY+d1jW5xLVG2U3KjH2+I/C9SAPMyWonGsFb/wqdX9qsJLV7BcxDMfPgm+XYkuq qW7X/XM4vvp58ZAGXnbJrxnOnQxHoYEjTqf8yi1DUMNER8y5ICvPGz2uHu9+x4k+CN67 kCEPT9uxDaiJizFsMIpDft7iGunXpB8baaDaY= 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; bh=DIhoEkw7QDnbqFkt4C/9ORTsJfEnPY9bxYmbo8CQgVc=; b=oVsdUy8wvSmVyUixglj81PRynlzGXFQd41qGGXrJrWUo7fzRFIz+cOUoY7YDivbILP V0bU6rmX42+ksLy6fHQt8KHLS+IEr9AN3Zjy2LKkqvvwPQs/6ykFeHKrL+1/iFWjs/Zb /BdeU62BarqYwwV3NFQk0gGIuKdrA/GePdP2nH//zMa3x1GUHW2IzrWFpD/M5iIm56eG CFp4kn8Zhwy7iPLFfscO0bzmhNuDPKPOCRAeE9FWJ6d9bHxDKA5/vJvphZunTn0Je7wU CkVlJ1OT6BfDdQgV0hECTQTU0kRYOwuPTD7g/yOei7GvzJWcO3mijxnd7tQs6bWcwCIw aygQ== X-Gm-Message-State: AOAM532jCmWl6r8WZAnIbcqOCGroCGXlMVZFOCa7RWd4uWYngZPHcsYi moWMj8np30aUj6AB8qqwz02EfwiKcArQfg== X-Received: by 2002:a1f:a655:: with SMTP id p82mr146468vke.23.1602020156803; Tue, 06 Oct 2020 14:35:56 -0700 (PDT) Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com. [209.85.217.45]) by smtp.gmail.com with ESMTPSA id r14sm645031uao.14.2020.10.06.14.35.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Oct 2020 14:35:56 -0700 (PDT) Received: by mail-vs1-f45.google.com with SMTP id f8so50367vsl.3 for ; Tue, 06 Oct 2020 14:35:55 -0700 (PDT) X-Received: by 2002:a67:ec9a:: with SMTP id h26mr17365vsp.34.1602020155557; Tue, 06 Oct 2020 14:35:55 -0700 (PDT) MIME-Version: 1.0 References: <20201006195848.707504-1-natechancellor@gmail.com> In-Reply-To: <20201006195848.707504-1-natechancellor@gmail.com> From: Doug Anderson Date: Tue, 6 Oct 2020 14:35:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: xor - Remove unused variable count in do_xor_speed To: Nathan Chancellor Cc: Herbert Xu , "David S. Miller" , Ard Biesheuvel , Linux Crypto Mailing List , LKML , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, On Tue, Oct 6, 2020 at 12:59 PM Nathan Chancellor wrote: > > Clang warns: > > crypto/xor.c:101:4: warning: variable 'count' is uninitialized when used > here [-Wuninitialized] > count++; > ^~~~~ > crypto/xor.c:86:17: note: initialize the variable 'count' to silence > this warning > int i, j, count; > ^ > = 0 > 1 warning generated. > > After the refactoring to use ktime that happened in this function, count > is only assigned, never read. Just remove the variable to get rid of the > warning. > > Fixes: c055e3eae0f1 ("crypto: xor - use ktime for template benchmarking") > Link: https://github.com/ClangBuiltLinux/linux/issues/1171 > Signed-off-by: Nathan Chancellor > --- > crypto/xor.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Whoops! Sorry for missing this in my review. Reviewed-by: Douglas Anderson