From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966455AbcAZPEZ (ORCPT ); Tue, 26 Jan 2016 10:04:25 -0500 Received: from terminus.zytor.com ([198.137.202.10]:50096 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965184AbcAZPEV (ORCPT ); Tue, 26 Jan 2016 10:04:21 -0500 Date: Tue, 26 Jan 2016 07:03:47 -0800 From: tip-bot for Arnd Bergmann Message-ID: Cc: hpa@zytor.com, arnd@arndb.de, jason@lakedaemon.net, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de Reply-To: tglx@linutronix.de, marc.zyngier@arm.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, jason@lakedaemon.net, arnd@arndb.de In-Reply-To: <1453737499-1960073-1-git-send-email-arnd@arndb.de> References: <1453737499-1960073-1-git-send-email-arnd@arndb.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip/s3c24xx: Mark init_eint as __maybe_unused Git-Commit-ID: eb249a11913d316fc1a27dd07a1e1e43bda9199d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: eb249a11913d316fc1a27dd07a1e1e43bda9199d Gitweb: http://git.kernel.org/tip/eb249a11913d316fc1a27dd07a1e1e43bda9199d Author: Arnd Bergmann AuthorDate: Mon, 25 Jan 2016 16:58:08 +0100 Committer: Thomas Gleixner CommitDate: Tue, 26 Jan 2016 16:00:14 +0100 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 Acked-by: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org Cc: Jason Cooper Link: http://lkml.kernel.org/r/1453737499-1960073-1-git-send-email-arnd@arndb.de Signed-off-by: Thomas Gleixner --- drivers/irqchip/irq-s3c24xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c index c71914e..5dc5a76 100644 --- a/drivers/irqchip/irq-s3c24xx.c +++ b/drivers/irqchip/irq-s3c24xx.c @@ -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 */