Commit 2c70d67c authored by Miles Bader's avatar Miles Bader Committed by Arnaldo Carvalho de Melo

[PATCH] Add __KERNEL__ guard to nb85e_cache.h on v850

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.
parent 9d3fbb5d
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define L1_CACHE_BYTES NB85E_CACHE_LINE_SIZE #define L1_CACHE_BYTES NB85E_CACHE_LINE_SIZE
#ifndef __ASSEMBLY__ #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
/* Set caching params via the BHC and DCC registers. */ /* Set caching params via the BHC and DCC registers. */
void nb85e_cache_enable (u16 bhc, u16 dcc); void nb85e_cache_enable (u16 bhc, u16 dcc);
...@@ -73,6 +73,6 @@ extern void nb85e_cache_flush_sigtramp (unsigned long addr); ...@@ -73,6 +73,6 @@ extern void nb85e_cache_flush_sigtramp (unsigned long addr);
#define flush_icache_user_range nb85e_cache_flush_icache_user_range #define flush_icache_user_range nb85e_cache_flush_icache_user_range
#define flush_cache_sigtramp nb85e_cache_flush_sigtramp #define flush_cache_sigtramp nb85e_cache_flush_sigtramp
#endif /* !__ASSEMBLY__ */ #endif /* __KERNEL__ && !__ASSEMBLY__ */
#endif /* __V850_NB85E_CACHE_H__ */ #endif /* __V850_NB85E_CACHE_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment