Skip to contentSkip to conversation

ARM: fix dummy set/modify_domain() to be inline

PATCH New Stephen Warren 2 participants 2 messages Jul 5, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: fix dummy set/modify_domain() to be inline

From: Stephen Warren <[email protected]>

Commit 8026dbe "ARM: fix set_domain() macro" converted some macros to functions, but forgot to make some of the functions inline. This causes:

arch/arm/include/asm/domain.h:81:13: warning: 'set_domain' defined but not used arch/arm/include/asm/domain.h:82:13: warning: 'modify_domain' defined but not used

Make the functions inline to avoid this.

---
 arch/arm/include/asm/domain.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/domain.h +2 -2
index 75bd43f..6ddbe44 100644
@@ -78,8 +78,8 @@ static inline void set_domain(unsigned val)
 	} while (0)
 
 #else
-static void set_domain(unsigned val) { }
-static void modify_domain(unsigned dom, unsigned type)	{ }
+static inline void set_domain(unsigned val) { }
+static inline void modify_domain(unsigned dom, unsigned type)	{ }
 #endif
 
 /*
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 ARM: fix dummy set/modify_domain() to be inline

Quoted 9 lines · Stephen Warren

From: Stephen Warren <[email protected]>

Commit 8026dbe "ARM: fix set_domain() macro" converted some macros to functions, but forgot to make some of the functions inline. This causes:

arch/arm/include/asm/domain.h:81:13: warning: 'set_domain' defined but not used arch/arm/include/asm/domain.h:82:13: warning: 'modify_domain' defined but not used

Make the functions inline to avoid this.

Already fixed.