From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933403AbdCJSWP (ORCPT ); Fri, 10 Mar 2017 13:22:15 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35190 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932678AbdCJSWF (ORCPT ); Fri, 10 Mar 2017 13:22:05 -0500 Date: Fri, 10 Mar 2017 10:22:01 -0800 From: Dmitry Torokhov To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, James Hogan , Ralf Baechle , Andrew Morton , Miguel Ojeda Sandonis , Paul Burton Subject: Re: [RESEND PATCH 1/2] auxdisplay: img-ascii-lcd: Add a sentinel entry to OF device ID table Message-ID: <20170310182201.GE21811@dtor-ws> References: <20170310133307.10254-1-javier@osg.samsung.com> <20170310133307.10254-2-javier@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170310133307.10254-2-javier@osg.samsung.com> 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 On Fri, Mar 10, 2017 at 10:33:06AM -0300, Javier Martinez Canillas wrote: > The OF device ID table doesn't have a sentinel NULL entry and so it > causes the following error: > > FATAL: drivers/auxdisplay/img-ascii-lcd: struct of_device_id is not terminated with a NULL entry! > scripts/Makefile.modpost:91: recipe for target '__modpost' failed > make[1]: *** [__modpost] Error 1 > Makefile:1493: recipe for target 'modules' failed > make: *** [modules] Error 2 > > Signed-off-by: Javier Martinez Canillas Reviewed-by: Dmitry Torokhov This was also causing issues with 0-day builder when driver is built into the kernel. > --- > > drivers/auxdisplay/img-ascii-lcd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c > index bf43b5d2aafc..73bc826144d4 100644 > --- a/drivers/auxdisplay/img-ascii-lcd.c > +++ b/drivers/auxdisplay/img-ascii-lcd.c > @@ -218,6 +218,7 @@ static const struct of_device_id img_ascii_lcd_matches[] = { > { .compatible = "img,boston-lcd", .data = &boston_config }, > { .compatible = "mti,malta-lcd", .data = &malta_config }, > { .compatible = "mti,sead3-lcd", .data = &sead3_config }, > + { /* sentinel */ }, > }; > > /** > -- > 2.9.3 > -- Dmitry