Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2491666imm; Sat, 29 Sep 2018 21:23:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV61I+UemMpe2nqHJIpQ0L1cGRgYMepYe4OX5qxT7z6jrYf7AkzB7ktmOGrOFkH7clTu+i+lb X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr5590856plr.242.1538281382201; Sat, 29 Sep 2018 21:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538281382; cv=none; d=google.com; s=arc-20160816; b=oSaxzJh1PrSqoU59mFkXdXc7YxnjR0JsacIclTXPt4F8HHSWi+7dbsZxLNBAt2+eSw vXwigGa2kvIb/4J/F5qYckeLScc3F4VWDZ0EsIdwbPSeHDCqEerk+1++OJ+eaFNk3Ya2 FZz0aZn2IKjMB9W+IzlcxJdMjT5+m2z4Wvmk+TNY6uaPoV6vSaxCu75fiHT9VvoQNwA4 7fFN6/XqEPP13i9mQeeDCpz2hZcnsrep94nfREq21J7hlfAcU7mYtj4bz/UPIw0NzN3q akKPk02YTt/dH3zPWKi8dZQlEhVVY9VniFEzFROTqsxESNSzrjunwU8W8RNX7/1kb/no kVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=RJ6VgXuLSJdLR6TAP7fPnYPdthfJkOUgwrk8o+Lmo0E=; b=cV942+9WmUI8igBd8YdgtrWBXDcn4FxiQeeN5ZJ5ytuRSPzUMARXBSGMkfjvmIJFSJ 7QxT+eexVJM5IYYLaDNeXAs0v0KQvMrFzeTxCvSx2ebf2RDeyWLpp3MazZUWnesxGy2b AkIzF/gQWswK3ixnjCY1LTVHngPwBrp4o7beXd4GpOFT4NPYLam8aznljlrZAZEaaJfZ Spw8sUuK1uZD87ejjMqzTiLrjUW7n2gI+wZBpA6W8rL0mb+MoBFdCS5aV4M3lVIZrB3/ qTwam56jcvy1vF/s/a5wk1ekNQMnjhq13/9ortb7W8WFh6CnjIQ/GrBvQ5EHkhFdccfM w8LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si8756973plk.379.2018.09.29.21.22.11; Sat, 29 Sep 2018 21:23:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbeI3KwQ (ORCPT + 99 others); Sun, 30 Sep 2018 06:52:16 -0400 Received: from smtprelay0177.hostedemail.com ([216.40.44.177]:33573 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727574AbeI3KwQ (ORCPT ); Sun, 30 Sep 2018 06:52:16 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id A94B9180A8130; Sun, 30 Sep 2018 04:20:54 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:2910:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4605:5007:6119:7903:8526:10004:10400:10848:11026:11232:11473:11658:11914:12043:12663:12740:12760:12895:13019:13069:13200:13229:13311:13357:13439:14181:14659:14721:21080:21324:21433:21627:30012:30054:30060:30075:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: town15_24a4223d21b1f X-Filterd-Recvd-Size: 3473 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Sun, 30 Sep 2018 04:20:51 +0000 (UTC) Message-ID: <8afdd3b1c51587708db6ae878eb0a7e9f8b5673a.camel@perches.com> Subject: Re: [PATCH net-next v6 01/23] asm: simd context helper API From: Joe Perches To: "Jason A. Donenfeld" , Ard Biesheuvel Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Thomas Gleixner , linux-arch@vger.kernel.org Date: Sat, 29 Sep 2018 21:20:50 -0700 In-Reply-To: References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-2-Jason@zx2c4.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-09-28 at 16:01 +0200, Jason A. Donenfeld wrote: > On Fri, Sep 28, 2018 at 4:00 PM Ard Biesheuvel > wrote: > > > > On 28 September 2018 at 15:59, Jason A. Donenfeld wrote: > > > On Fri, Sep 28, 2018 at 3:58 PM Ard Biesheuvel > > > wrote: > > > > > > > > On 28 September 2018 at 15:47, Jason A. Donenfeld wrote: > > > > > On Fri, Sep 28, 2018 at 10:49 AM Ard Biesheuvel > > > > > wrote: > > > > > > > > +typedef enum { > > > > > > > > + HAVE_NO_SIMD = 1 << 0, > > > > > > > > + HAVE_FULL_SIMD = 1 << 1, > > > > > > > > + HAVE_SIMD_IN_USE = 1 << 31 > > > > > > > > +} simd_context_t; > > > > > > > > + > > > > > > > > > > > > Oh, and another thing (and I'm surprised checkpatch.pl didn't complain > > > > > > about it): the use of typedef in new code is strongly discouraged. > > > > > > This policy predates my involvement, so perhaps Joe can elaborate on > > > > > > the rationale? > > > > > > > > > > In case it matters, the motivation for making this a typedef is I > > > > > could imagine this at some point turning into a more complicated > > > > > struct on certain platforms and that would make refactoring easier. I > > > > > could just make it `struct simd_context` now with 1 member though... > > > > > > > > Yes that makes sense > > > > > > The rationale for it being a typedef or moving to a struct now? > > > > Yes just switch to a struct. > > Okay. No problem with that, but will wait to hear from Joe first. Why do you need to hear from me again? As far as I know, the only info about typedef avoidance are in Documentation/process/coding-style.rst section 5.