From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Sun, 4 Mar 2012 16:50:52 +0000 Subject: [PATCH 4/5 v2] ARM: kirkwood: convert rtc-mv to fdt. In-Reply-To: <201203041612.44966.michael@walle.cc> References: <4de611961e8210a0a2c3b56fe72b40dba638752a.1330709314.git.jason@lakedaemon.net> <201203041612.44966.michael@walle.cc> Message-ID: <201203041650.52217.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sunday 04 March 2012, Michael Walle wrote: > > @@ -294,11 +295,17 @@ static int __exit mv_rtc_remove(struct > > platform_device *pdev) return 0; > > } > > > > +static struct of_device_id rtc_mv_of_match_table[] = { > > + { .compatible = "marvell,rtc", }, > > + {} > > +}; > > + > Isn't here an ifdef CONFIG_OF missing to prevent compiler warnings? > Yes, I guess so. I keep thinking that an __unused attribute would actually be more helpful here because it lets the compiler automatically discard the symbol when it's not used, but we still get potential compiler errors and warnings if something inside of the unused data is broken. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 4/5 v2] ARM: kirkwood: convert rtc-mv to fdt. Date: Sun, 4 Mar 2012 16:50:52 +0000 Message-ID: <201203041650.52217.arnd@arndb.de> References: <4de611961e8210a0a2c3b56fe72b40dba638752a.1330709314.git.jason@lakedaemon.net> <201203041612.44966.michael@walle.cc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201203041612.44966.michael@walle.cc> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Michael Walle Cc: grant.likely@secretlab.ca, devicetree-discuss@lists.ozlabs.org, Jason Cooper , linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On Sunday 04 March 2012, Michael Walle wrote: > > @@ -294,11 +295,17 @@ static int __exit mv_rtc_remove(struct > > platform_device *pdev) return 0; > > } > > > > +static struct of_device_id rtc_mv_of_match_table[] = { > > + { .compatible = "marvell,rtc", }, > > + {} > > +}; > > + > Isn't here an ifdef CONFIG_OF missing to prevent compiler warnings? > Yes, I guess so. I keep thinking that an __unused attribute would actually be more helpful here because it lets the compiler automatically discard the symbol when it's not used, but we still get potential compiler errors and warnings if something inside of the unused data is broken. Arnd