Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941424AbcLWKCs (ORCPT ); Fri, 23 Dec 2016 05:02:48 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33290 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757812AbcLWKCq (ORCPT ); Fri, 23 Dec 2016 05:02:46 -0500 Subject: Re: [PATCH] mtd: nand: xway: fix build failure To: Sudip Mukherjee , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Cyrille Pitchen References: <1482481032-28043-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org From: Marek Vasut Message-ID: Date: Fri, 23 Dec 2016 10:07:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <1482481032-28043-1-git-send-email-sudipm.mukherjee@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 46 On 12/23/2016 09:17 AM, Sudip Mukherjee wrote: > The build of mips xway_defconfig was failing with the error: > > drivers/mtd/nand/xway_nand.c:235:1: warning: > data definition has no type or storage class > MODULE_DEVICE_TABLE(of, xway_nand_match); > ^~~~~~~~~~~~~~~~~~~ > drivers/mtd/nand/xway_nand.c:235:1: error: > type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' > [-Werror=implicit-int] > > It missed to include the header file. > > Signed-off-by: Sudip Mukherjee Acked-by: Marek Vasut > --- > > Build log of next-20161223 is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/186246753 > > This error will be fixed but it will now uncover the next error as the > build goes on. > > drivers/mtd/nand/xway_nand.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/xway_nand.c b/drivers/mtd/nand/xway_nand.c > index 1f2948c..00168d6 100644 > --- a/drivers/mtd/nand/xway_nand.c > +++ b/drivers/mtd/nand/xway_nand.c > @@ -7,6 +7,7 @@ > * Copyright © 2016 Hauke Mehrtens > */ > > +#include > #include > #include > #include > -- Best regards, Marek Vasut