From patchwork Mon Jan 25 15:58:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101113 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1440342lbb; Mon, 25 Jan 2016 07:59:21 -0800 (PST) X-Received: by 10.66.140.39 with SMTP id rd7mr26648276pab.86.1453737561061; Mon, 25 Jan 2016 07:59:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si34489856pfd.89.2016.01.25.07.59.20; Mon, 25 Jan 2016 07:59:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933269AbcAYP7S (ORCPT + 30 others); Mon, 25 Jan 2016 10:59:18 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:51807 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932853AbcAYP7K (ORCPT ); Mon, 25 Jan 2016 10:59:10 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MOU8z-1aRK2h1Yhh-005nbk; Mon, 25 Jan 2016 16:58:34 +0100 From: Arnd Bergmann To: Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH] irqchip: s3c24xx: mark init_eint as __maybe_unused Date: Mon, 25 Jan 2016 16:58:08 +0100 Message-Id: <1453737499-1960073-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:XBYNXFYObGZloUQhb01w53ibv9AX5i1j6vIVHif6zAFxwphvoXm lfYmsKTYks8nrEcCDQrebV5IWNvQ/zweXt5xxPEw4lfiN0bLFrZkCRNR+DTzfSJkqy1BgxI je8ZxfGk+N5lpWbDhvDMqkN1RAashTjTw8s2Xth9wIS2EKjPltPBuLGCq9tjFNQOH8zdnLR QVKz8r9Gfn8RidtzHILtQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:ILCBPOl53+4=:tlxS5uJerbqf0BJ6s/NhJl /9NDEFmyTVh7raIl+PF1DPXx/QTlHdcBLWOJjnRlE8QbQ4ujHQ+KsEFdAoydFEazgOwctxDZp ouCSaYA05sqYo1P8h1l5sISm+NfgiTDgrHsEXncf69z82r5Y9yZ1OZAm5rqkxkFHDt/hm5ONG g3ZnmBQHNxPbEMJ5UKVb8afiB1cqgzkLFPoVp7psAPheyhL2mptRVkFy55wRmzdewEJqlY8HH sIGibqYfGZeEcrFXvIGDdaQAWxDnKElQJv1aw686WpSeBgK4NeFAF3lzoxBoxbT4a6UpFPrsm VFudvG0yH2rDP55JpAGT6eM5uNRQPkD17urjyl0HPEO0smGYzey3+V5ktqO0Vua4d8imdHlwT FYOX/HBfnyRfXUVRF4slUBo/YB3FJ9TNU3qcXPXpdtbFEOEO6pu0AsfEFZxlkj8rV9kcn8HYt w/UxhVbnSqiEPXVBwev+qf8QM706DEcU7wtvLpTjF3amPRbtlLZCu1mKlPCu0nh/CfoWpdqrC xuGBt6wH9YOW384+Rztz92vQaD6JKzdBxkpFZl4QlsBQX+BZsDECLWRqgB0yPEb+jn3uAnixH C/9DliLmCn1LIVHTwr8jBO6jUOXWbiv2qz6v+hl6aw+d8R53C7c9DREQRQ4vikoYzctwxRtyX jUjHxXjYeNRre2bUafXgExEIkJhYCJklH6VBr9wgFjEPWaaDqB3WJZ/16jxnmhNsiMo8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/irqchip/irq-s3c24xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 Acked-by: Marc Zyngier diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c index c71914e8f596..5dc5a760c723 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 */