public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux/mount.h: add atomic.h and spinlock.h #includes
@ 2004-11-17  4:54 Roland Dreier
  0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2004-11-17  4:54 UTC (permalink / raw)
  To: akpm, linux-kernel

I'm not sure what the current policy is on include files being
self-sufficient, so feel free to drop this if we don't want to do this
sort of cleanup...

<linux/mount.h> uses atomic_t and spinlock_t, but doesn't include
either <asm/atomic.h> or <linux/spinlock.h>, which means that any
users of <linux/mount.h> have to include them.  This patch adds the
necessary #includes to avoid this.

Signed-off-by: Roland Dreier <roland@topspin.com>

Index: linux-bk/include/linux/mount.h
===================================================================
--- linux-bk.orig/include/linux/mount.h	2004-11-16 20:50:34.000000000 -0800
+++ linux-bk/include/linux/mount.h	2004-11-16 20:51:30.000000000 -0800
@@ -13,6 +13,8 @@
 #ifdef __KERNEL__
 
 #include <linux/list.h>
+#include <linux/spinlock.h>
+#include <asm/atomic.h>
 
 #define MNT_NOSUID	1
 #define MNT_NODEV	2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-17  4:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-17  4:54 [PATCH] linux/mount.h: add atomic.h and spinlock.h #includes Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox