From patchwork Mon Sep 3 19:32:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 965578 X-Patchwork-Delegate: miquel.raynal@bootlin.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.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k18vjohb"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="TWJrvu16"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4242hW5SXsz9tjv for ; Tue, 4 Sep 2018 07:11:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YkZc9LcRVoDr3VyS+wmTDxvngy4/nQQ8Fp55UBJnoww=; b=k18vjohbsd+7st Lf15PmBrgUF+e6UD9DRLlJKxxKb77gzgelg0ZURba/vTeZsqu2TkIsYXMTCHa0AbCyYASCFASY6mb tgaadFVSWCWo5NvM8Vr3h8Wl/jnHJ9rcPxwgRYw529WiGSe0Ta36xtffH6dAy4CtkqrG687s18Mnx hEh+AOZbWaOaxjeOYosvBxAk4qWxT6J1Z0+X7Pjj8PTCQ+cr83mTQbU8AtXCS+UZ8KzRxY8exQQOT VqZj+vMT7nep/v+v2CdXDA/vE0XgtRNOhuX48PMeZkk9kTJwwUnEKv21HBEJKBsLjAir4DxFpSg6p KhldRy85Ra9PBSS4d5zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwua9-00017Q-Dp; Mon, 03 Sep 2018 19:32:17 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwua7-00017D-Iu for linux-mtd@bombadil.infradead.org; Mon, 03 Sep 2018 19:32:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GPJKwL9o8SnsfEPUsZRC7NJzfe+zKXMFlISAXDvWV9Q=; b=TWJrvu163aowdxHUD/dwP7HIUQ 4LtAPeqDxGIsitRp4AZisziNe5Z4mYQpFG4Zn4oLsFAu6deuJGwlnqt1Wnb2hn3G9UIvvEeRl6izt 3dPk1aHaic+1KbIHNwha3Y7RMKbT/dFBGsZqMkU/DgyQRBYLOp59Yv54Iz3AGFZr65jel0NxI0mXW EF1JPdo5a+ddwm8a7grkNTkW4gFU2r8oElBf3W+r+KbxM5gL0vMxEacfqf7yjdv3RiJ6lFCsCYpeq PI8fbnlJ+isT9Bx8zw1S5Lf+x3vCJVS5atP5EDHl3MlzdXT5DqhGRasmOzzVuyNxj1e6ASp5Ol4YQ VQtrHd5g==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwuZz-0001tV-QW; Mon, 03 Sep 2018 19:32:09 +0000 To: LKML From: Randy Dunlap Subject: [PATCH] mtd: onenand: fix parameter list build warning Message-ID: <03e45afe-c4f8-e69b-9cba-6a8863296ad4@infradead.org> Date: Mon, 3 Sep 2018 12:32:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adrian Bunk , Marek Vasut , Richard Weinberger , Adrian Bunk , Boris Brezillon , Kyungmin Park , linux-mtd@lists.infradead.org, Geert Uytterhoeven , Brian Norris , David Woodhouse Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Randy Dunlap Fix build warning in by adding a "stub" struct for mtd_oob_ops: include/linux/mtd/onenand.h: warning: 'struct mtd_oob_ops' declared inside parameter list [enabled by default] include/linux/mtd/onenand.h: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Fixes: 607d1cb10426 ("[MTD] [OneNAND] proper onenand_bbt_read_oob() prototype") Reported-by: Geert Uytterhoeven Signed-off-by: Randy Dunlap Cc: Kyungmin Park Cc: linux-mtd@lists.infradead.org Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Adrian Bunk Cc: Adrian Bunk --- include/linux/mtd/onenand.h | 1 + 1 file changed, 1 insertion(+) --- lnx-419-rc2.orig/include/linux/mtd/onenand.h +++ lnx-419-rc2/include/linux/mtd/onenand.h @@ -221,6 +221,7 @@ struct onenand_manufacturers { char *name; }; +struct mtd_oob_ops; int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops); unsigned onenand_block(struct onenand_chip *this, loff_t addr);