linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: fix dummy set/modify_domain() to be inline
@ 2012-07-05 20:08 Stephen Warren
  2012-07-05 20:10 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2012-07-05 20:08 UTC (permalink / raw)
  To: linux-arm-kernel

From: Stephen Warren <swarren@nvidia.com>

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.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/include/asm/domain.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/domain.h b/arch/arm/include/asm/domain.h
index 75bd43f..6ddbe44 100644
--- a/arch/arm/include/asm/domain.h
+++ b/arch/arm/include/asm/domain.h
@@ -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
 
 /*
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: fix dummy set/modify_domain() to be inline
  2012-07-05 20:08 [PATCH] ARM: fix dummy set/modify_domain() to be inline Stephen Warren
@ 2012-07-05 20:10 ` Russell King - ARM Linux
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2012-07-05 20:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 05, 2012 at 02:08:43PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-05 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-05 20:08 [PATCH] ARM: fix dummy set/modify_domain() to be inline Stephen Warren
2012-07-05 20:10 ` Russell King - ARM Linux

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).