mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 04/19] lib/halfmd4.c: Simplify includes
Date: Wed, 31 Dec 2014 02:21:39 +0100	[thread overview]
Message-ID: <1419988915-20730-5-git-send-email-linux@rasmusvillemoes.dk> (raw)
In-Reply-To: <1419988915-20730-1-git-send-email-linux@rasmusvillemoes.dk>

We only need EXPORT_SYMBOL, so compiler.h and export.h suffice. This
means linux/types.h is no longer implicitly included, so add an
include of uapi/linux/types.h to linux/cryptohash.h for __u32. Other
users of cryptohash.h cannot be affected, since they must already have
been including uapi/linux/types.h in order for gcc not to complain
about unknown types.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 include/linux/cryptohash.h | 2 ++
 lib/halfmd4.c              | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/cryptohash.h b/include/linux/cryptohash.h
index 2cd9f1cf9fa3..f4754282c9c2 100644
--- a/include/linux/cryptohash.h
+++ b/include/linux/cryptohash.h
@@ -1,6 +1,8 @@
 #ifndef __CRYPTOHASH_H
 #define __CRYPTOHASH_H
 
+#include <uapi/linux/types.h>
+
 #define SHA_DIGEST_WORDS 5
 #define SHA_MESSAGE_BYTES (512 /*bits*/ / 8)
 #define SHA_WORKSPACE_WORDS 16
diff --git a/lib/halfmd4.c b/lib/halfmd4.c
index 66d0ee8b7776..a8fe6274a13c 100644
--- a/lib/halfmd4.c
+++ b/lib/halfmd4.c
@@ -1,4 +1,4 @@
-#include <linux/kernel.h>
+#include <linux/compiler.h>
 #include <linux/export.h>
 #include <linux/cryptohash.h>
 
-- 
2.1.3


  parent reply	other threads:[~2014-12-31  1:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-31  1:21 [PATCH 00/19] lib: Some #include cleanups Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 01/19] lib/interval_tree.c: Simplify includes Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 02/19] lib/sort.c: Use simpler includes Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 03/19] lib/dynamic_queue_limits.c: Simplify includes Rasmus Villemoes
2014-12-31  1:21 ` Rasmus Villemoes [this message]
2014-12-31  1:21 ` [PATCH 05/19] lib/idr.c: Remove redundant include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 06/19] lib/genalloc.c: " Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 07/19] lib/list_sort.c: Rearrange includes Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 08/19] lib/md5.c: Simplify include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 09/19] lib/llist.c: Remove redundant include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 10/19] lib/kobject_uevent.c: " Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 11/19] lib/nlattr.c: " Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 12/19] lib/plist.c: " Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 13/19] lib/radix-tree.c: Change to simpler include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 14/19] lib/show_mem.c: Remove redundant include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 15/19] lib/sort.c: Move include inside #if 0 Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 16/19] lib/stmp_device.c: Replace module.h include Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 17/19] lib/strncpy_from_user.c: " Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 18/19] lib/percpu_ida.c: Remove redundant includes Rasmus Villemoes
2014-12-31  1:21 ` [PATCH 19/19] lib/lcm.c: Replace include Rasmus Villemoes

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=1419988915-20730-5-git-send-email-linux@rasmusvillemoes.dk \
    --to=linux@rasmusvillemoes.dk \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®