Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4710473pxb; Mon, 28 Mar 2022 01:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx2pQvWAaXOe3YzkdcyABoFhLyvhcdtLlOZfY2UDesv54YIZq5QFCs4XRo9TSOH7LosjJE X-Received: by 2002:aa7:c748:0:b0:418:f0fb:83a1 with SMTP id c8-20020aa7c748000000b00418f0fb83a1mr14804521eds.350.1648457347964; Mon, 28 Mar 2022 01:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648457347; cv=none; d=google.com; s=arc-20160816; b=SFYDhdQht3ifvmXT5JZ0adkY1IIq3MbMqq431Awm2b7aKQfqwkRHBH2WDaqJMtX6uU oAlI0t+3g6dNaLQy8M5m6gNTQyqBNWpftkYVSOpIwJJmvPV29lVo9GdozKxvVQ2gePtg rnO4kd5T8MZ6p4WvqLVjzLVQbgg3MwBNLoXLZ0gg/nibld68Lud7x+rrsSnieP+HkAh2 EucccbClJyDW6qUAfluzo8EXSnAzf3ZErA9yFk/KvcHqYHyeNNkT0eRzTn8TK1qshPLd pAKsXtCeMlrZwDiHfXIG+N8aOjNwjrBpkQMCKViswqGhNmbuBc9E0Cv3aTM3Jf/x8kir bMPw== 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=+2MJUW17z2Uy/y5VisHSiYOS5uWIoGzWhFvUkmPJhQc=; b=SeTWcWwiHuInwfJ32ix7mjrXJnbbecrSc4x+AFvo0RJizi+Ol1oAD5nRSIMO6Nz7rG uJxQwGsPce/ftZDrJrIv2zO6gFajbtuziEKreKGUIvnOqFimqFNPtp8ejCgCY2e6n+vE rpStn7C2nh/iQVLtCowAn7BKldaErytL2KhfQ960jYvhhcBc0DajPCG44MD9mWwJfBMn uMReHM83Eniklv0d0he6R+2lBicuh+DKhz5y6jkMgaN4/tMyVy3ZYcQl4HKHa9Uo5cjX RWZZR/QoPqY/oFbucAK4ONMZX3NO1DNb3wERBzUXscaEQa4DnAISJxofDX/7PYedNWQy gTWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sszPDGSg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020a170906280e00b006df76385bd8si12419900ejc.120.2022.03.28.01.48.36; Mon, 28 Mar 2022 01:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sszPDGSg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234976AbiC1HlM (ORCPT + 99 others); Mon, 28 Mar 2022 03:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238875AbiC1HlK (ORCPT ); Mon, 28 Mar 2022 03:41:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2822B52E1C; Mon, 28 Mar 2022 00:39:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D3428B80E67; Mon, 28 Mar 2022 07:39:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51D28C34100; Mon, 28 Mar 2022 07:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648453166; bh=Y3D0Y07G0RU3hYpbOKQsQlIhpGXe9fEsIt2tSvoMROQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sszPDGSg+zPRYwRHrekax9kkwFh7EIknbfoPAkDT5rE0ezdFWguwVHLUF4FTNLbUp aqhNQOrNivckgEQA/LTuF64CchTZoa/ZhCYM90v3FOkqaaqHx9KTC6LJUVRhorOGU9 i8Tzq4Vns59glvv7UQVg7LUTVCi713NhBGWcFv12cDTWAd4W+yqkU5t/RBPBe2wCaM fuz0pLa69M/OfccqsH1YiFxxglPbOI7vxp0bPViEGIrh9PCm1UPowsUaTi1Vl3knPR jygLaKKjBy+jUdSXOzZsQqpRMsdl99AGyFl0GEjP3Spw7ngso54Fr2A8q5SMoz1nVv z/fvulXQaFVZw== Received: by mail-ot1-f52.google.com with SMTP id i11-20020a9d4a8b000000b005cda3b9754aso10121001otf.12; Mon, 28 Mar 2022 00:39:26 -0700 (PDT) X-Gm-Message-State: AOAM531oPd6PEqGRDDs1Ne5t59kx6y6VrnAKdkgH0ZmhHUsBVozPGzja wWlWqRfPcuxzLSyPFZlUwoprkKLLcNFCczz69+A= X-Received: by 2002:a05:6830:1e9c:b0:5cd:8c15:5799 with SMTP id n28-20020a0568301e9c00b005cd8c155799mr9420603otr.265.1648453165431; Mon, 28 Mar 2022 00:39:25 -0700 (PDT) MIME-Version: 1.0 References: <20220326172051.14722-1-thepaulodoom@thepaulodoom.com> <20220327224009.2jotnczk67j4cfh2@hp-amd-paul> In-Reply-To: <20220327224009.2jotnczk67j4cfh2@hp-amd-paul> From: Ard Biesheuvel Date: Mon, 28 Mar 2022 09:39:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: aes_generic: fixed styling warnings To: Paul Lemmermann Cc: "David S. Miller" , Linux Crypto Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org (please keep the cc's) On Mon, 28 Mar 2022 at 00:46, Paul Lemmermann wrote: > > On Sun, Mar 27, 2022 at 01:41:19PM +0200, Ard Biesheuvel wrote: > > On Sat, 26 Mar 2022 at 18:48, Paul Lemmermann > > wrote: > > > > > > Fixed all styling warnings from the checkpatch.pl script. > > > > > > Signed-off-by: Paul Lemmermann > > > > Did you test this code after 'fixing' it? > > > No, I did not. Now that I scrutinized it a bit more, I realized the > kernel coding conventions. Sorry about that, this is my first patch. In that case, welcome! This is not about coding conventions. This is about correctness. For instance, > > > > > > -#define f_nround(bo, bi, k) do {\ > > > +#define f_nround(bo, bi, k) while (0) {\ > > > f_rn(bo, bi, 0, k); \ > > > f_rn(bo, bi, 1, k); \ > > > f_rn(bo, bi, 2, k); \ > > > f_rn(bo, bi, 3, k); \ > > > k += 4; \ > > > -} while (0) > > > +} > > > Why are you making this change, and why do you think it produces the same result? > Can you remove everything in the patch past the section with line > 1144, or do I have to resubit the patch? > checkpatch.pl is a useful tool for finding style issues, but please use it with care. And changing decades old code just to fix issues reported by checkpatch.pl is really just pointless churn. So let's just drop this patch altogether, shall we? If you're interested in helping out, please have a look at the staging/ tree - there is a lot of code there that needs cleaning up. Thanks, Ard.