]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
crypto: api - Prune inclusions in crypto.h
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jun 2020 07:00:22 +0000 (17:00 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jun 2020 04:46:43 +0000 (14:46 +1000)
We haven't used string.h since the memcpy calls were removed so
this patch removes its inclusion.  The file uaccess.h isn't needed
at all.  However, removing it reveals that we do need to add an
inclusion for refcount.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/crypto.h

index 763863dbc079a8c2befad111819fab54b19930a9..bc5d2d4bfc3df272ffa206876e5fbf91617da104 100644 (file)
@@ -16,9 +16,8 @@
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/bug.h>
+#include <linux/refcount.h>
 #include <linux/slab.h>
-#include <linux/string.h>
-#include <linux/uaccess.h>
 #include <linux/completion.h>
 
 /*