From patchwork Wed Jun 3 02:18:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 28027 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 14315B6F35 for ; Wed, 3 Jun 2009 12:22:12 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MBg47-00005k-EQ; Wed, 03 Jun 2009 02:18:55 +0000 Received: from relais.videotron.ca ([24.201.245.36]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MBg3y-0007zH-DX for linux-mtd@lists.infradead.org; Wed, 03 Jun 2009 02:18:52 +0000 MIME-version: 1.0 Received: from xanadu.home ([66.131.194.97]) by VL-MH-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KKN0073O52X4FC0@VL-MH-MR001.ip.videotron.ca> for linux-mtd@lists.infradead.org; Tue, 02 Jun 2009 22:18:33 -0400 (EDT) Date: Tue, 02 Jun 2009 22:18:33 -0400 (EDT) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: linux-mtd@lists.infradead.org Subject: [PATCH] let include/linux/mtd/partitions.h stand on its own Message-id: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.4 SUBJECT_FUZZY_TION Attempt to obfuscate words in Subject: X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org When declaring static MTD partitions in board specific code, only including include/linux/mtd/partitions.h should suffice without gcc nagging us. Signed-off-by: Nicolas Pitre --- This is also queued on top of git://git.marvell.com/orion mtd for which a pull request was sent already. diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index af6dcb9..b70313d 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h @@ -47,6 +47,8 @@ struct mtd_partition { #define MTDPART_SIZ_FULL (0) +struct mtd_info; + int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); int del_mtd_partitions(struct mtd_info *);