From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbbLIUqg (ORCPT ); Wed, 9 Dec 2015 15:46:36 -0500 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:33828 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbbLIUqf (ORCPT ); Wed, 9 Dec 2015 15:46:35 -0500 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Wed, 09 Dec 2015 21:46:31 +0100 X-ME-IP: 92.156.1.80 From: Robert Jarzmik To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Mack , Haojian Zhuang Subject: Re: [PATCH] ARM: pxa: mark ezx structures as __maybe_unused References: <7455848.ygDvrz6r6S@wuerfel> X-URL: http://belgarath.falguerolles.org/ Date: Wed, 09 Dec 2015 21:46:30 +0100 In-Reply-To: <7455848.ygDvrz6r6S@wuerfel> (Arnd Bergmann's message of "Wed, 09 Dec 2015 17:36:03 +0100") Message-ID: <8737vbl595.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > The ezx platform contains multiple machine descriptors, but not all > of them use all of the data structures, and it's possible to disable > all of the machines, which produces some harmless warnings: > > mach-pxa/ezx.c:53:26: warning: 'ezx_pwm_lookup' defined but not used [-Wunused-variable] > mach-pxa/ezx.c:86:31: warning: 'ezx_fb_info_1' defined but not used [-Wunused-variable] > mach-pxa/ezx.c:107:31: warning: 'ezx_fb_info_2' defined but not used [-Wunused-variable] > mach-pxa/ezx.c:113:32: warning: 'ezx_devices' defined but not used [-Wunused-variable] > mach-pxa/ezx.c:117:22: warning: 'ezx_pin_config' defined but not used [-Wunused-variable] > > This marks all those structures as __maybe_unused to avoid the warnings. > Obviously a configuration that contains the ezx platform but no specific > model is a bit silly, but it should not cause compile-time warnings. > > Signed-off-by: Arnd Bergmann Acked-by: Robert Jarzmik I think you'll take that through your tree, as I'm passing the v4.5 pull. If you want me to take them, just tell me, but I think v4.5 is already prepared on your side as I've seen a mail from Boris talking about pxa patches going through mtd tree for v4.5. Cheers. -- Robert