Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dce23eb authored by James Hogan's avatar James Hogan
Browse files

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: default avatarJames Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
parent 928df02b
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -6,8 +6,12 @@ extern void irq_ctx_init(int cpu);
extern void irq_ctx_exit(int cpu);
extern void irq_ctx_exit(int cpu);
# define __ARCH_HAS_DO_SOFTIRQ
# define __ARCH_HAS_DO_SOFTIRQ
#else
#else
# define irq_ctx_init(cpu) do { } while (0)
static inline void irq_ctx_init(int cpu)
# define irq_ctx_exit(cpu) do { } while (0)
{
}
static inline void irq_ctx_exit(int cpu)
{
}
#endif
#endif


void tbi_startup_interrupt(int);
void tbi_startup_interrupt(int);