summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-07-04 17:05:28 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-07-05 09:50:55 +0100
commit82401bf105495c593544375b4748f48fce70d9c4 (patch)
tree608a5625c8c9d9961aa6e7ac1c466f527e134bd9 /arch/arm/include
parent32e1eb59f7042c03cb8dbb598e7c97fddbb62ac2 (diff)
downloadlinux-3.10-82401bf105495c593544375b4748f48fce70d9c4.tar.gz
linux-3.10-82401bf105495c593544375b4748f48fce70d9c4.tar.bz2
linux-3.10-82401bf105495c593544375b4748f48fce70d9c4.zip
ARM: fix set_domain() macro
Avoid polluting drivers with a set_domain() macro, which interferes with structure member names: drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c:294:33: error: macro "set_domain" passed 2 arguments, but takes just 1 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/domain.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/include/asm/domain.h b/arch/arm/include/asm/domain.h
index 3d2220498ab..6ddbe446425 100644
--- a/arch/arm/include/asm/domain.h
+++ b/arch/arm/include/asm/domain.h
@@ -60,13 +60,13 @@
#ifndef __ASSEMBLY__
#ifdef CONFIG_CPU_USE_DOMAINS
-#define set_domain(x) \
- do { \
- __asm__ __volatile__( \
- "mcr p15, 0, %0, c3, c0 @ set domain" \
- : : "r" (x)); \
- isb(); \
- } while (0)
+static inline void set_domain(unsigned val)
+{
+ asm volatile(
+ "mcr p15, 0, %0, c3, c0 @ set domain"
+ : : "r" (val));
+ isb();
+}
#define modify_domain(dom,type) \
do { \
@@ -78,8 +78,8 @@
} while (0)
#else
-#define set_domain(x) do { } while (0)
-#define modify_domain(dom,type) do { } while (0)
+static inline void set_domain(unsigned val) { }
+static inline void modify_domain(unsigned dom, unsigned type) { }
#endif
/*