All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <roland@topspin.com>
To: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] linux/mount.h: add atomic.h and spinlock.h #includes
Date: Tue, 16 Nov 2004 20:54:54 -0800	[thread overview]
Message-ID: <52fz39f529.fsf@topspin.com> (raw)

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

                 reply	other threads:[~2004-11-17  4:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=52fz39f529.fsf@topspin.com \
    --to=roland@topspin.com \
    --cc=akpm@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.