mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
irqchip/s3c24xx: Mark init_eint as __maybe_unused
The init_eint array in the s3c24xx irqchip driver is used by every individual chip variant, but Kconfig allows building the driver when they are all disabled, and that leads to a harmless compile-time warning: drivers/irqchip/irq-s3c24xx.c:608:28: error: 'init_eint' defined but not used [-Werror=unused-variable] This marks the array as __maybe_unused to avoid the warning. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Marc Zyngier <[email protected]> Cc: [email protected] Cc: Jason Cooper <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
570540d507
commit
eb249a1191
1 changed files with 1 additions and 1 deletions
|
|
@ -605,7 +605,7 @@ err:
|
|||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
static struct s3c_irq_data init_eint[32] = {
|
||||
static struct s3c_irq_data __maybe_unused init_eint[32] = {
|
||||
{ .type = S3C_IRQTYPE_NONE, }, /* reserved */
|
||||
{ .type = S3C_IRQTYPE_NONE, }, /* reserved */
|
||||
{ .type = S3C_IRQTYPE_NONE, }, /* reserved */
|
||||
|
|
|
|||
Loading…
Reference in a new issue