From: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: [Patch 2.6.13-rc4-mm1] mips: build fix for spinlock consolidation
Date: Wed, 3 Aug 2005 21:00:47 +0200 [thread overview]
Message-ID: <20050803190047.GC13680@ens-lyon.fr> (raw)
The following patch is needed for mips to compile with
the spinlock consolidation patch (the include of asm-mips/atomic.h
is moved down to avoid circular dependencies).
Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
--- linux/include/linux/spinlock.h.orig 2005-08-03 20:49:26.000000000 +0200
+++ linux/include/linux/spinlock.h 2005-08-03 20:54:40.000000000 +0200
@@ -55,7 +55,6 @@
#include <linux/stringify.h>
#include <asm/system.h>
-#include <asm/atomic.h>
/*
* Must define these before including other files, inline functions need them
@@ -207,6 +206,11 @@ extern int __lockfunc generic__raw_read_
1 : ({ local_irq_restore(flags); 0; }); \
})
+/*
+ * Pull the atomic_t declaration:
+ * (asm-mips/atomic.h needs above definitions)
+ */
+#include <asm/atomic.h>
/**
* atomic_dec_and_lock - lock on reaching reference count zero
* @atomic: the atomic counter
reply other threads:[~2005-08-03 18:59 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=20050803190047.GC13680@ens-lyon.fr \
--to=benoit.boissinot@ens-lyon.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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