From: miles@lsi.nec.co.jp (Miles Bader)
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][v850] Add __KERNEL__ guard to nb85e_cache.h on v850
Date: Tue, 27 May 2003 18:21:32 +0900 (JST) [thread overview]
Message-ID: <20030527092132.EA0CD372D@mcspd15.ucom.lsi.nec.co.jp> (raw)
This header ends up getting included by uClibc (though nothing in it is
used), so this protection is necessary to avoid problems with kernel-only
typedefs.
diff -ruN -X../cludes linux-2.5.70/include/asm-v850/nb85e_cache.h linux-2.5.70-v850-20030527/include/asm-v850/nb85e_cache.h
--- linux-2.5.70/include/asm-v850/nb85e_cache.h 2003-04-21 10:53:17.000000000 +0900
+++ linux-2.5.70-v850-20030527/include/asm-v850/nb85e_cache.h 2003-05-27 16:09:43.000000000 +0900
@@ -35,7 +35,7 @@
#define L1_CACHE_BYTES NB85E_CACHE_LINE_SIZE
-#ifndef __ASSEMBLY__
+#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
/* Set caching params via the BHC and DCC registers. */
void nb85e_cache_enable (u16 bhc, u16 dcc);
@@ -73,6 +74,6 @@
#define flush_icache_user_range nb85e_cache_flush_icache_user_range
#define flush_cache_sigtramp nb85e_cache_flush_sigtramp
-#endif /* !__ASSEMBLY__ */
+#endif /* __KERNEL__ && !__ASSEMBLY__ */
#endif /* __V850_NB85E_CACHE_H__ */
next reply other threads:[~2003-05-27 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-27 9:21 Miles Bader [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-06 3:09 [PATCH][v850] Add __KERNEL__ guard to nb85e_cache.h on v850 Miles Bader
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=20030527092132.EA0CD372D@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.org \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).