aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-09-15 22:50:33 +0100
committerJames Hogan <james.hogan@imgtec.com>2015-09-15 22:52:47 +0100
commit3dce23eb887800e19cc18b389a13290dd12c5905 (patch)
treec69d51043eae96c77b03240f3927399cbc573520 /arch/metag
parentmetag: SMP: Fix 4KiB stack setup on secondary CPUs (diff)
downloadlinux-dev-3dce23eb887800e19cc18b389a13290dd12c5905.tar.xz
linux-dev-3dce23eb887800e19cc18b389a13290dd12c5905.zip
metag: Turn irq_ctx_* macros into static inlines
The irq_ctx_init()/irq_ctx_exit() functions are only used for 4KiB stacks, otherwise they are implemented as an empty macro. To prevent future bit rottage due to the cpu argument not being type checked, convert the macros to empty static inline functions. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-metag@vger.kernel.org
Diffstat (limited to 'arch/metag')
-rw-r--r--arch/metag/include/asm/irq.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/metag/include/asm/irq.h b/arch/metag/include/asm/irq.h
index ad6bd0edbc3b..6ac6d4a051dd 100644
--- a/arch/metag/include/asm/irq.h
+++ b/arch/metag/include/asm/irq.h
@@ -6,8 +6,12 @@ extern void irq_ctx_init(int cpu);
extern void irq_ctx_exit(int cpu);
# define __ARCH_HAS_DO_SOFTIRQ
#else
-# define irq_ctx_init(cpu) do { } while (0)
-# define irq_ctx_exit(cpu) do { } while (0)
+static inline void irq_ctx_init(int cpu)
+{
+}
+static inline void irq_ctx_exit(int cpu)
+{
+}
#endif
void tbi_startup_interrupt(int);