From patchwork Wed Nov 28 23:07:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1004930 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 434xWD067Mz9s3l for ; Thu, 29 Nov 2018 10:21:59 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id AE539C22366; Wed, 28 Nov 2018 23:17:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8AC73C223BF; Wed, 28 Nov 2018 23:08:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 40F9BC2236E; Wed, 28 Nov 2018 23:08:52 +0000 (UTC) Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 29884C22351 for ; Wed, 28 Nov 2018 23:08:21 +0000 (UTC) Received: by mail.bootlin.com (Postfix, from userid 110) id A479220D31; Thu, 29 Nov 2018 00:08:20 +0100 (CET) Received: from localhost.localdomain (unknown [91.224.148.103]) by mail.bootlin.com (Postfix) with ESMTPSA id F343E206FF; Thu, 29 Nov 2018 00:08:19 +0100 (CET) From: Miquel Raynal To: u-boot@lists.denx.de Date: Thu, 29 Nov 2018 00:07:53 +0100 Message-Id: <20181128230800.13292-18-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128230800.13292-1-miquel.raynal@bootlin.com> References: <20181128230800.13292-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Cc: Tom Rini , Kyungmin Park , Boris Brezillon , Miquel Raynal , Steve Rae , TsiChung Liew Subject: [U-Boot] [PATCH v2 17/24] mtd: nand: add includes in NAND core to avoid warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Because of the include's game, when some files are compiled for a SPI NAND device, no warning appears. But when it is for a raw NAND device, GCC complains. Fix these warning by including . Signed-off-by: Miquel Raynal --- drivers/mtd/nand/bbt.c | 1 + drivers/mtd/nand/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 7e0ad3190c..f3d05e6757 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "nand-bbt: " fmt +#include #include #ifndef __UBOOT__ #include diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index 0b793695cc..3abaef23c5 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "nand: " fmt +#include #ifndef __UBOOT__ #include #endif