From patchwork Thu Dec 7 18:55:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10100871 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 71E1E60329 for ; Thu, 7 Dec 2017 18:56:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65E85285FC for ; Thu, 7 Dec 2017 18:56:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ADA0285FE; Thu, 7 Dec 2017 18:56:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F01A3285FC for ; Thu, 7 Dec 2017 18:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752512AbdLGS43 (ORCPT ); Thu, 7 Dec 2017 13:56:29 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:41143 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbdLGS41 (ORCPT ); Thu, 7 Dec 2017 13:56:27 -0500 Received: by mail-it0-f66.google.com with SMTP id x28so17191136ita.0 for ; Thu, 07 Dec 2017 10:56:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=btkCEr0txdRxIs35HHPuiGvnqy4zVpbNFCoNESKAE1c=; b=Xr5MDTjspCqIT56RJcYSsSZwIdTBLB133f0WxwiqM2MPv9E7kPyzecV6Y9PpIfzfw2 XVuFbt1JaQp8TauvsHQXkvvT8um1GoLnQ6YDAwP3d5VUmdEhbjXywDHwFRVr5q2K2Pye dOQCmIIhRVBB1z15He8XETMA1FLG1zQ4NrUxl0xuyVPPKwey736LxgA1yGDhxQ6TKaVL F5NoW+CyHr0XGecHQq0upWBd9+vfJX9Q9thVY72ryK/eWwzfxhDXJrU1xJznbilh1oeV 5bAHZDpFIxwL6yAhsVwfM6b/Nqs6ku0XtxrPqKHGBjizpA2660tsJIh9Aqj0Iq8mY4Uw pACg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=btkCEr0txdRxIs35HHPuiGvnqy4zVpbNFCoNESKAE1c=; b=M+5vOmmwKkde/izhXjHbhl42oeqG2U4A4b6qe/IfuRjgnO8yHvPHcg6zM3Lq3uqVzV McbMGTMPWYF+SjWaDVPtI2tUj/s00rTewJHQdQuVQoJywtnZtpM8g8VNfdB6Z6mYT9DL oByMZoBRr0Y7yxwRP6z/hk0ISWpJ9jJkDGyohJvUkFac0mDsNLtbC4vGxKhndA+3OAes uPtUpptTANaJ5O8nuUvMTuX5oOPlRf1AXWluHzbd7BmDStWRdUdIjRQLvsWpYIcYoU8z dJwIZrQHDrWjEy23fCJWnnXdZrCsRLBVPFhPeJRXSrQpuPuGFAwgogeLRyidqFjyojXN bD5g== X-Gm-Message-State: AKGB3mLqIYqKQr+xhWd7k7X7uEqJOJNI0Ku9JgmJdzC9+BgG94raB264 DQ3VApBXNtmP0NouM8r19Nrliy0K X-Google-Smtp-Source: AGs4zMbUcewG7PK+jE4PWQq8EGDALFK/sCwBheB1Cjc7KQGg6LaAdzzmEUeCkr+pdFVGhAMnvH1ogQ== X-Received: by 10.36.40.206 with SMTP id h197mr2439899ith.12.1512672986609; Thu, 07 Dec 2017 10:56:26 -0800 (PST) Received: from ebiggers-linuxstation.kir.corp.google.com ([100.66.175.88]) by smtp.gmail.com with ESMTPSA id u184sm1125158ioe.7.2017.12.07.10.56.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Dec 2017 10:56:26 -0800 (PST) From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: Eric Biggers Subject: [PATCH] crypto: api - Unexport crypto_larval_lookup() Date: Thu, 7 Dec 2017 10:55:59 -0800 Message-Id: <20171207185559.17087-1-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.1.424.g9478a66081-goog Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers crypto_larval_lookup() is not used outside of crypto/api.c, so unexport it and mark it 'static'. Signed-off-by: Eric Biggers --- crypto/api.c | 4 ++-- crypto/internal.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crypto/api.c b/crypto/api.c index 2a2479d168aa..6da802d7be67 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -205,7 +205,8 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) } EXPORT_SYMBOL_GPL(crypto_alg_lookup); -struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) +static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, + u32 mask) { struct crypto_alg *alg; @@ -231,7 +232,6 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) return crypto_larval_add(name, type, mask); } -EXPORT_SYMBOL_GPL(crypto_larval_lookup); int crypto_probing_notify(unsigned long val, void *v) { diff --git a/crypto/internal.h b/crypto/internal.h index f07320423191..ae65e5fcaa59 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -78,7 +78,6 @@ int crypto_init_compress_ops(struct crypto_tfm *tfm); struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); void crypto_larval_kill(struct crypto_alg *alg); -struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); void crypto_alg_tested(const char *name, int err); void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,