From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbdB1W5V (ORCPT ); Tue, 28 Feb 2017 17:57:21 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35092 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbdB1W5Q (ORCPT ); Tue, 28 Feb 2017 17:57:16 -0500 Date: Tue, 28 Feb 2017 14:47:43 -0800 From: Dmitry Torokhov To: Arnd Bergmann Cc: Michael Hennerich , Stefan Agner , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] touchscreen: ad7879: include linux/property.h Message-ID: <20170228224743.GM20776@dtor-ws> References: <20170227203954.3489470-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170227203954.3489470-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Mon, Feb 27, 2017 at 09:39:40PM +0100, Arnd Bergmann wrote: > I ran into this build failure during randconfig testing: > > drivers/input/touchscreen/ad7879.c: In function 'ad7879_parse_dt': > drivers/input/touchscreen/ad7879.c:505:8: error: implicit declaration of function 'device_property_read_u32' > drivers/input/touchscreen/ad7879.c:512:2: error: implicit declaration of function 'device_property_read_u8' > drivers/input/touchscreen/ad7879.c:521:16: error: implicit declaration of function 'device_property_read_bool' > > I could not figure out when this was introduced, as the code doesn't > appear to have changed recently, but the fix of including the header > with the declaration is obvious. > > The calls that require the extra header were introduced a year ago in > commit fa6e3ca27442 ("Input: ad7879 - add device tree support"). Randy Dunlap already sent a patch like this one. Thanks. > > Signed-off-by: Arnd Bergmann > --- > drivers/input/touchscreen/ad7879.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c > index 53ab689305ac..1bd870277e1a 100644 > --- a/drivers/input/touchscreen/ad7879.c > +++ b/drivers/input/touchscreen/ad7879.c > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > #include > #include > #include > -- > 2.9.0 > -- Dmitry