Skip to content

Commit

Permalink
irqchip: gic-v3: Tag all low level accessors __maybe_unused
Browse files Browse the repository at this point in the history
This is only really needed for gic_write_sgi1r in the !SMP case since it
is only referenced in the SMP initialisation code but it seems better to
have these functions all next to each other and declared consistently.

Signed-off-by: Mark Brown <broonie@linaro.org>
Link: https://lkml.kernel.org/r/1406748194-21094-1-git-send-email-broonie@kernel.org
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Mark Brown authored and Jason Cooper committed Aug 18, 2014
1 parent ddc8682 commit c44e9d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/irqchip/irq-gic-v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,32 +104,32 @@ static void gic_redist_wait_for_rwp(void)
}

/* Low level accessors */
static u64 gic_read_iar(void)
static u64 __maybe_unused gic_read_iar(void)
{
u64 irqstat;

asm volatile("mrs_s %0, " __stringify(ICC_IAR1_EL1) : "=r" (irqstat));
return irqstat;
}

static void gic_write_pmr(u64 val)
static void __maybe_unused gic_write_pmr(u64 val)
{
asm volatile("msr_s " __stringify(ICC_PMR_EL1) ", %0" : : "r" (val));
}

static void gic_write_ctlr(u64 val)
static void __maybe_unused gic_write_ctlr(u64 val)
{
asm volatile("msr_s " __stringify(ICC_CTLR_EL1) ", %0" : : "r" (val));
isb();
}

static void gic_write_grpen1(u64 val)
static void __maybe_unused gic_write_grpen1(u64 val)
{
asm volatile("msr_s " __stringify(ICC_GRPEN1_EL1) ", %0" : : "r" (val));
isb();
}

static void gic_write_sgi1r(u64 val)
static void __maybe_unused gic_write_sgi1r(u64 val)
{
asm volatile("msr_s " __stringify(ICC_SGI1R_EL1) ", %0" : : "r" (val));
}
Expand Down

0 comments on commit c44e9d7

Please sign in to comment.