Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5625466pxb; Mon, 28 Mar 2022 15:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6PfrakMiemZr58u/u6TUR9oPg7bhYtxon3O2hPCWs3o9FbA/VTNWdyX+iyPKoRrO+ITcc X-Received: by 2002:a05:6102:6cd:b0:325:66cf:ddc9 with SMTP id m13-20020a05610206cd00b0032566cfddc9mr11229565vsg.27.1648505315299; Mon, 28 Mar 2022 15:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648505315; cv=none; d=google.com; s=arc-20160816; b=Ew2CDlNSnWDaSTZJCEiSFnTaCHx5lt7o9LWvrpkcgzslclPJPz97yOD92emrrGe0JQ qMyfABOYVfVLO5Ce822wuMsFq5y16BDaqTVe6gcYPZLume/4Gm9Pwk0omiUmg221j5/B x/GLucY6YfVOU5iK0kUGkLrv1sVod7sL1YgqDAZ6/Chjj+sYGi/tWB2Pdl43zpXE2mwU U53SfL4HrLQCfglkaOWk41NM0EeVEzJV43DEH/1bqDPSYAAz3D0ite7XZx+pDRqj22Bu Hxv8HFkrdAK6wgje9rKcY+eKKT8ZkBkUquFS8nY0qgd44hNZMonLxex++lV8gQMGjNmD mnuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PBWifiwbmktjGeo80vuIhRCxCDp+riZDbVe+ScyGgWI=; b=hmXJUV5fs05ZybVjkawYjUu40VhQCuEhJyYkI2WdoMoqXYT7KyaInxMKtz0JrFlhe+ x1g08Vcbgq++iock8e8XjDUD4VZVP9SCCA/ZFZbxqkfoTPwD4BVj++5oViaWFZZLhaYI dqmlD7LOl5N8SxHFUT4CBjGute/bc82AKZtN3btOOzH0/M2cuE8MRvLdfzLQkTxnvaA9 UuVqHVwvx/inxPanu7m/qKZ6kdZMpupAYcGaNENMwWT4Mp3FTK9DmKILAgxMUAYolFtb t/ejpVXxfVSYcru3+/DGnk6hPBBxqUV1btta8Cn/84+SfKuYPP/y2ry6VKt4Twnj8rqT quUw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t129-20020a672d87000000b0032559482b66si3101412vst.576.2022.03.28.15.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:08:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C768F14FBBC; Mon, 28 Mar 2022 14:29:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242658AbiC1Mxf (ORCPT + 99 others); Mon, 28 Mar 2022 08:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242688AbiC1Mxd (ORCPT ); Mon, 28 Mar 2022 08:53:33 -0400 Received: from mail.thepaulodoom.com (www.thepaulodoom.com [45.77.108.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFB3C5D19F; Mon, 28 Mar 2022 05:51:43 -0700 (PDT) Received: from hp-amd-paul (c-98-240-189-147.hsd1.mn.comcast.net [98.240.189.147]) by vultr.guest (OpenSMTPD) with ESMTPSA id 6629f991 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 28 Mar 2022 12:51:41 +0000 (UTC) Date: Mon, 28 Mar 2022 07:51:37 -0500 From: Paul Lemmermann To: Ard Biesheuvel Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: aes_generic: fixed styling warnings Message-ID: <20220328125137.bsbvroyxcjw6rl5m@hp-amd-paul> References: <20220326172051.14722-1-thepaulodoom@thepaulodoom.com> <20220327224009.2jotnczk67j4cfh2@hp-amd-paul> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Mon, Mar 28, 2022 at 09:39:14AM +0200, Ard Biesheuvel wrote: > (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. > Yes, we can drop the patch. Thank you so much for your help and support. Looking forward to contributing more to the Linux kernel. Thanks, Paul