Commit 5979a91f authored by Linus Torvalds's avatar Linus Torvalds

ppc64: use "ASM_CONST()" to give proper C type to constants

that can also be used in assembly language context.

This one fixes the common CPU_FTR_COHERENT_ICACHE warning in
asm/cacheflush.h.
parent 2e0e3f8a
......@@ -40,7 +40,7 @@ extern void __flush_dcache_icache(void *page_va);
static inline void flush_icache_range(unsigned long start, unsigned long stop)
{
if (!(cur_cpu_spec->cpu_features & CPU_FTR_COHERENT_ICACHE))
if (!(cur_cpu_spec->cpu_features & ASM_CONST(CPU_FTR_COHERENT_ICACHE)))
__flush_icache_range(start, stop);
}
......
......@@ -15,7 +15,8 @@
#ifdef __ASSEMBLY__
#define ASM_CONST(x) x
#else
#define ASM_CONST(x) x##UL
#define __ASM_CONST(x) x##UL
#define ASM_CONST(x) __ASM_CONST(x)
#endif
/* PAGE_SHIFT determines the page size */
......
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