Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932665Ab3FMJZj (ORCPT ); Thu, 13 Jun 2013 05:25:39 -0400 Received: from www.linutronix.de ([62.245.132.108]:48017 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756168Ab3FMJZc (ORCPT ); Thu, 13 Jun 2013 05:25:32 -0400 Message-ID: <51B99006.2060103@linutronix.de> Date: Thu, 13 Jun 2013 11:25:26 +0200 From: Sebastian Andrzej Siewior User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Samuel Ortiz CC: =?ISO-8859-1?Q?Beno=EEt_Cousson?= , Tony Lindgren , Jonathan Cameron , Dmitry Torokhov , Felipe Balbi , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: am335x: TSC & ADC reworking including DT pieces, take 5 References: <1371056302-12714-1-git-send-email-bigeasy@linutronix.de> <20130613090719.GB7998@zurbaran> In-Reply-To: <20130613090719.GB7998@zurbaran> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 42 On 06/13/2013 11:07 AM, Samuel Ortiz wrote: > Hi Sebastian, Hi Samuel, > Pulled and pushed back to mfd-next, thanks. Thank you. > I fixed a couple of unused variable warnings on top of it. I saw your patch at git.k.o and I am asking you not to taking it :) The code is: of_property_for_each_u32(node, "ti,adc-channels", prop, cur, val) { adc_channels++; if (val > 7) { dev_err(&pdev->dev, " PIN numbers are 0..7 (not %d)\n", val); return -EINVAL; } } and without CONFIG_OF of_property_for_each_u32() becomes most likely empty. That is why I haven't seen it. So either the macro should be changed to tell the compiler that the variables are used (so the warning does not show up) or let the driver depend on CONFIG_OF. I will look at the former and can prepare a patch for the latter if you want. > > Cheers, > Samuel. > Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/