Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6515895rwr; Mon, 24 Apr 2023 22:44:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bT4RfBIvJAGaptPwfazfzzLIeAPt37yGTZestQwWHCfxKhCB2vz6skT82DU+jrIVdA9rEO X-Received: by 2002:a17:903:28f:b0:1a9:281c:4522 with SMTP id j15-20020a170903028f00b001a9281c4522mr16733145plr.52.1682401498335; Mon, 24 Apr 2023 22:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682401498; cv=none; d=google.com; s=arc-20160816; b=AeBe08dHqXP7vDcI73Anh+7UOUMfDe9HorffLUv64McyiEMPEVTftZzm/cFPhp2Aqh u1C9gtqyBLbsyr6mPVcvfIbLyAp3zdv5JAo2G5Y0+gzi2s1LglPINsAZTz9/VFv1TgYp kBvJV7AFsoxFS7EvhpMW9W/tUz4MZ/NlMhCUuT5VNRklF5LNqB/qzGpTbDQZp1h7edBy d383Ba7xuFk03TbKFJEQx8AgWRLLVy9xuzKgYgLlnLjKyqrP+2G3OypxtwGhunUyKV9s rHBuHxOvhwPRjAcseWkJqEinXUOWlMGQNGpZ+o8XVHWs2BryDVi0IESqZ2No9JNlnn2R 1k7A== 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=/xjmPIsQJdpbQbcWjQOBuh4pzyExKvc/Kf4XE+9XMsg=; b=ATeh3M6ognWW3Hr8MtcoQ3BYT+HwFxQPLBIyWDbzFf0tMD2BqQ65Y0PopSBfLdFFaJ gJl+QHQ9UTdZHY+gvZc+fFHf7LSU96gG680uECimTCjQa9sTbglqBIIhdpimxp6Sz2gc J86zeML2DKWoSutxKSZXzVV/RhfWC4Jnwdh5I4dsYaNX/4nDhAP5RFlnaSVAXSmEqKzX EntarpNPWeBQb7Bzxy5tjvDXE4qdU2cpskgbC4URwOlEOvBC0fe48Km+QQ6inkRynGYN NbPkUvA3tw4GgnjwmInZsnJTUpbbN9keV62piWQq5wNGSV10yZFf/LbtK4QpE5rlt8v/ W3bw== 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 t7-20020a17090a3e4700b00247074f8281si12911928pjm.90.2023.04.24.22.44.44; Mon, 24 Apr 2023 22:44:58 -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 S233300AbjDYFhs (ORCPT + 99 others); Tue, 25 Apr 2023 01:37:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbjDYFhr (ORCPT ); Tue, 25 Apr 2023 01:37:47 -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 D0D9583EC; Mon, 24 Apr 2023 22:37:45 -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 1prBMf-001zo8-Np; Tue, 25 Apr 2023 13:37:23 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 25 Apr 2023 13:37:22 +0800 Date: Tue, 25 Apr 2023 13:37:22 +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: <20230424184726.2091-3-dtsen@linux.ibm.com> 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 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. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt