Skip to content

Commit

Permalink
crypto: user - forward declare crypto_nlsk
Browse files Browse the repository at this point in the history
Move the declaration of crypto_nlsk into internal/cryptouser.h.  This
fixes the following sparse warning:

    crypto/crypto_user_base.c:41:13: warning: symbol 'crypto_nlsk' was not declared. Should it be static?

Cc: Corentin Labbe <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ebiggers authored and herbertx committed Jan 18, 2019
1 parent cb9dde8 commit e17568e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crypto/crypto_user_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

static DEFINE_MUTEX(crypto_cfg_mutex);

extern struct sock *crypto_nlsk;

struct crypto_dump_info {
struct sk_buff *in_skb;
struct sk_buff *out_skb;
Expand Down
2 changes: 2 additions & 0 deletions include/crypto/internal/cryptouser.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
#include <net/netlink.h>

extern struct sock *crypto_nlsk;

struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact);

#ifdef CONFIG_CRYPTO_STATS
Expand Down

0 comments on commit e17568e

Please sign in to comment.