From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: herbert@gondor.apana.org.au
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
Eric Biggers <ebiggers@kernel.org>,
"Theodore Y. Ts'o" <tytso@mit.edu>,
Jaegeuk Kim <jaegeuk@kernel.org>,
linux-fscrypt@vger.kernel.org,
Richard Weinberger <richard@nod.at>,
linux-mtd@lists.infradead.org,
Marcel Holtmann <marcel@holtmann.org>,
Johan Hedberg <johan.hedberg@gmail.com>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
linux-bluetooth@vger.kernel.org,
Ilya Dryomov <idryomov@gmail.com>, Xiubo Li <xiubli@redhat.com>,
Jeff Layton <jlayton@kernel.org>,
ceph-devel@vger.kernel.org,
Steffen Klassert <steffen.klassert@secunet.com>,
"David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org,
Matthieu Baerts <matthieu.baerts@tessares.net>,
Mat Martineau <martineau@kernel.org>,
Chuck Lever <chuck.lever@oracle.com>, Neil Brown <neilb@suse.de>,
linux-nfs@vger.kernel.org, Mimi Zohar <zohar@linux.ibm.com>,
linux-integrity@vger.kernel.org,
Ayush Sawal <ayush.sawal@chelsio.com>
Subject: Re: [PATCH 11/12] wireguard: Do not include crypto/algapi.h
Date: Wed, 23 Aug 2023 13:48:47 +0200 [thread overview]
Message-ID: <CAHmME9qwYhM55he7WyWQZXwSg9Ri6-9K31tHHqaKcMYFEJYxTw@mail.gmail.com> (raw)
In-Reply-To: <E1qYlAB-006vJI-Cv@formenos.hmeau.com>
On Wed, Aug 23, 2023 at 12:33 PM Herbert Xu <herbert@gondor.apana.org.au> wrote:
>
> The header file crypto/algapi.h is for internal use only. Use the
> header file crypto/utils.h instead.
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
> ---
>
> drivers/net/wireguard/cookie.c | 2 +-
> drivers/net/wireguard/netlink.c | 2 +-
> drivers/net/wireguard/noise.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireguard/cookie.c b/drivers/net/wireguard/cookie.c
> index 4956f0499c19..f89581b5e8cb 100644
> --- a/drivers/net/wireguard/cookie.c
> +++ b/drivers/net/wireguard/cookie.c
> @@ -12,9 +12,9 @@
>
> #include <crypto/blake2s.h>
> #include <crypto/chacha20poly1305.h>
> +#include <crypto/utils.h>
>
> #include <net/ipv6.h>
> -#include <crypto/algapi.h>
>
> void wg_cookie_checker_init(struct cookie_checker *checker,
> struct wg_device *wg)
> diff --git a/drivers/net/wireguard/netlink.c b/drivers/net/wireguard/netlink.c
> index 6d1bd9f52d02..0a1502100e8b 100644
> --- a/drivers/net/wireguard/netlink.c
> +++ b/drivers/net/wireguard/netlink.c
> @@ -12,10 +12,10 @@
>
> #include <uapi/linux/wireguard.h>
>
> +#include <crypto/utils.h>
> #include <linux/if.h>
> #include <net/genetlink.h>
> #include <net/sock.h>
> -#include <crypto/algapi.h>
>
> static struct genl_family genl_family;
>
> diff --git a/drivers/net/wireguard/noise.c b/drivers/net/wireguard/noise.c
> index 720952b92e78..e7ad81ca4a36 100644
> --- a/drivers/net/wireguard/noise.c
> +++ b/drivers/net/wireguard/noise.c
> @@ -10,12 +10,12 @@
> #include "queueing.h"
> #include "peerlookup.h"
>
> +#include <crypto/utils.h>
> #include <linux/rcupdate.h>
> #include <linux/slab.h>
> #include <linux/bitmap.h>
> #include <linux/scatterlist.h>
> #include <linux/highmem.h>
> -#include <crypto/algapi.h>
>
> /* This implements Noise_IKpsk2:
> *
Small nit - with the exception of the cookie.c reordering, could you
maintain the existing #include ordering of the other files? No need to
send a v2 for that if you don't want. And please make the entire
commit subject lowercase. With those done,
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
As a side note, you may want to eventually do something to make sure
people don't add back algapi.h, like move it to internal/ or out of
include/ all together. I figure you've already thought about this, and
this series is just the first step.
Jason
next prev parent reply other threads:[~2023-08-23 11:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 10:30 [PATCH 0/12] Do not include crypto/algapi.h Herbert Xu
[not found] ` <E1qYlA0-006vFr-Ts@formenos.hmeau.com>
2023-08-23 10:34 ` [PATCH 6/12] wifi: mac80211: " Johannes Berg
2023-08-24 5:10 ` Herbert Xu
2023-08-24 6:59 ` Johannes Berg
2023-08-24 8:45 ` Herbert Xu
[not found] ` <E1qYlAB-006vJI-Cv@formenos.hmeau.com>
2023-08-23 11:48 ` Jason A. Donenfeld [this message]
[not found] ` <E1qYlA3-006vGH-1L@formenos.hmeau.com>
2023-08-23 12:53 ` [PATCH 7/12] mptcp: " Matthieu Baerts
[not found] ` <E1qYlA5-006vH0-3U@formenos.hmeau.com>
2023-08-23 13:44 ` [PATCH 8/12] SUNRPC: " Chuck Lever
[not found] ` <E1qYl9w-006vEX-O3@formenos.hmeau.com>
2023-08-23 20:53 ` [PATCH 4/12] ceph: " Ilya Dryomov
[not found] ` <E1qYlA7-006vHq-8B@formenos.hmeau.com>
2023-08-24 23:57 ` [PATCH 9/12] evm: " Mimi Zohar
[not found] ` <E1qYlA9-006vIz-Am@formenos.hmeau.com>
2023-08-24 23:57 ` [PATCH 10/12] KEYS: encrypted: " Mimi Zohar
[not found] ` <E1qYl9q-006vDd-FJ@formenos.hmeau.com>
2023-08-25 21:13 ` [PATCH 1/12] fscrypt: " Eric Biggers
[not found] ` <E1qYl9u-006vE6-L2@formenos.hmeau.com>
2023-08-25 21:23 ` [PATCH 3/12] Bluetooth: " Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHmME9qwYhM55he7WyWQZXwSg9Ri6-9K31tHHqaKcMYFEJYxTw@mail.gmail.com \
--to=jason@zx2c4.com \
--cc=ayush.sawal@chelsio.com \
--cc=ceph-devel@vger.kernel.org \
--cc=chuck.lever@oracle.com \
--cc=davem@davemloft.net \
--cc=ebiggers@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=idryomov@gmail.com \
--cc=jaegeuk@kernel.org \
--cc=jlayton@kernel.org \
--cc=johan.hedberg@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-fscrypt@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=martineau@kernel.org \
--cc=matthieu.baerts@tessares.net \
--cc=neilb@suse.de \
--cc=netdev@vger.kernel.org \
--cc=richard@nod.at \
--cc=steffen.klassert@secunet.com \
--cc=tytso@mit.edu \
--cc=xiubli@redhat.com \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).