Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6514721rwr; Mon, 24 Apr 2023 22:43:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vvXxq/6pApY0VUzD2eM9wIFply817sEy/fHIWcWT3vqcOQTwgur/blP3rYfHh74QHfD2Y X-Received: by 2002:a17:902:c946:b0:1a9:8907:ae51 with SMTP id i6-20020a170902c94600b001a98907ae51mr2396973pla.46.1682401391973; Mon, 24 Apr 2023 22:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682401391; cv=none; d=google.com; s=arc-20160816; b=0wPuSOL/F/tbnXdLj8G+P0VZ1Qg+SCLlGLTV0vXjN1TvqBAzs3Gj6X7qZp3yaG+jz5 MeEr8pgDoOx4qxvmE6OEPktINwQtbJmN1CXL8/lGuOdSETsTZ6isNFQwsShdKsv+X8ym gg6G+h0ZyYQfyAqe07ygR/lcMapueeOMU/O46l+RHPODqPgXwuX4vf7gJBqieaKdQCv1 ccSq+RE+cBc5j230hld+z8zocnfeebpF83Y6wywE7Lkf43oh4rew8T22Pu1tvn1nvePd cKvSmqop2P47dhbr2dFO+HADa5mDJvbX8cxrCj28ai0sQHYHecLKBWA+eCZWnE6roTND KMow== 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=TsSyOI8Yr/fLluczoqS4hUPJiYoZJBK3Sl+xdBoedjM=; b=oNgLwzl98LMIPBxuT1iYE4wj2jWJeLzMYc0/UmbuFCXtXcUNTOh/MQs5BlwMxN+tDj b9EIoCxSa1qXMfSMuo+QJe1A6bhvTdkGfR5vV9bRsaIvgHE6p0vzvhlr4pMKxr03Pd5f 9Y8UW5Y3uZu3lkX5kXaUxu9rkOMZDW6zj+CZOSsmvXXLboG4CiVBHffDR444NGongQpv 3nbqZ4LBwnK0gECryqfYdMaDGrKZ7lcewEkSC0V43qNFdagTu82PWUPSkO79PO27sHn0 4+o5FvoC59O7UeHrtjhH0RVhFU9ySkAV7QlnAeFTZ4Bw1idYT/bkP17aqdsY1a7u5cGy Ef+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx10-20020a17090b4b0a00b0024b9ac5462csi6940020pjb.94.2023.04.24.22.42.58; Mon, 24 Apr 2023 22:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232815AbjDYFkb (ORCPT + 99 others); Tue, 25 Apr 2023 01:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbjDYFka (ORCPT ); Tue, 25 Apr 2023 01:40:30 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D79769D; Mon, 24 Apr 2023 22:40:29 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1prBPT-001zsP-JI; Tue, 25 Apr 2023 13:40:17 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 25 Apr 2023 13:40:16 +0800 Date: Tue, 25 Apr 2023 13:40:16 +0800 From: Herbert Xu To: Danny Tsen Cc: linux-crypto@vger.kernel.org, leitao@debian.org, nayna@linux.ibm.com, appro@cryptogams.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, ltcgcw@linux.vnet.ibm.com, dtsen@us.ibm.com Subject: Re: [PATCH 2/5] Glue code for optmized Chacha20 implementation for ppc64le. Message-ID: References: <20230424184726.2091-1-dtsen@linux.ibm.com> <20230424184726.2091-3-dtsen@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 25, 2023 at 01:37:22PM +0800, Herbert Xu wrote: > On Mon, Apr 24, 2023 at 02:47:23PM -0400, Danny Tsen wrote: > > > > +static int __init chacha_p10_init(void) > > +{ > > + static_branch_enable(&have_p10); > > + > > + return IS_REACHABLE(CONFIG_CRYPTO_SKCIPHER) ? > > + crypto_register_skciphers(algs, ARRAY_SIZE(algs)) : 0; > > What is this for? The usual way is to select CRYPTO_SKCIPHER > rather than have a mysterious failure at run-time. Nevermind, I see that you also have non-Crypto API code in there. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt