From patchwork Tue Nov 21 17:38:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 119372 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5566921qgn; Tue, 21 Nov 2017 09:40:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ6YRVb+6ksoC8KwCJj9GXfevDd5CQA802yrmAm4Ik9zXy9zB9eIKzgz1qbdDReTCk4xZXj X-Received: by 10.80.138.99 with SMTP id i90mr26359382edi.207.1511286002960; Tue, 21 Nov 2017 09:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511286002; cv=none; d=google.com; s=arc-20160816; b=uiOZiSr1O/1u9aWC2NGSQiPqwFNo2u4qCPaE/95TubSzYmUcp1qzsw9bTFyr/R5BAY CL8uyC6GScprzVVMfTa8wAaFip0c90tBe5WZIGVFopRvGjQOY0HAqJPuGdrhNYgzBiv0 hGcBVTjtlsfbQuEfHEbGgpJQa3CStzuFzpF3lwDmeO3QXMnzZcrNn9v0XGbw6O25reUu UPRVZFqUsXWjA9FBR7M+/JHlvwiPT7oA4P6foMcskt8Oc9Xj1A9olH9u/hPmqIgWdJ+2 VhtpQGbzfiVs3mqKknYDqilIuNFm/YvK6mmsviWlBQeqWw5N0WeKbnmQz9JWn2uVcObI tdFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=dLd3orQdL2Xdi+8m7Ghql8y/NzPMn1C3JEO5+r7Ld5E=; b=IcMSk7flDYCLMenZut2qe6XHtbx7z6zZ9IcZD7ULfvA162z2DqVGTV/vJB4jpfs3AV Z1I6+jP3PAVw3x/ZJ+oNkkKQEZXuqW7MY2iWoLnvq8Y6Kn3xUFA3reUFNgUHpwmrr8zu 9i2vAr5WDaFI0qiJgMZXiVEM4dTqStveC/KyFfoAkV+Rloti8SDskYKIytULsTEhuEV5 +7VhANgh6EerRyExX26q+POcLO5kQtAVJ67rLHWSpKeh3VPkOjIoTC6sYmmjzG4Kbe/Z bDtINdCIXO5iz2E7GczPbKNCWWeaKp+c3L+xt2bEeANGbw0+4bOVatlTb6hfCWaXmUXt ZHuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qrjrePSZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 92si11010186edh.311.2017.11.21.09.40.02; Tue, 21 Nov 2017 09:40:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qrjrePSZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 6D880C21F73; Tue, 21 Nov 2017 17:39:15 +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=T_DKIM_INVALID 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 5C711C21F47; Tue, 21 Nov 2017 17:39:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7864AC21C29; Tue, 21 Nov 2017 17:39:07 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id 409E3C21F00 for ; Tue, 21 Nov 2017 17:39:03 +0000 (UTC) Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id vALHcbts001225; Wed, 22 Nov 2017 02:38:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com vALHcbts001225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511285920; bh=siIrfW7skdxFxLXsSQa0hBVhmkDUp3kichovhOYUuBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qrjrePSZyB6v+tAbT3NDz1vqo9YhWis6UAKKhG63apUrxUuYnVe6ohsuZAoAPRHdE AzH9fceEC4Nf86zTARvumTMVe4PH6aMcu9z/ObWArgohrFs45+X79E8YLazoQx4zty 63pztriovMzJ4QftkrEpgN74XG6tHMSxraC+h5FU+MylKe7LSa3KFSP2Dchw+nxsOh TdaltLw8Q9FXQin16zcJlZqE0s/0/zC3asMb6hGcBuyCx0kTnAgoJXsAqAy4qsZOco pegkeolbrbSYEMlMEH8qeTno9f8FUGbc1D6rD6s8aOKTg0JNE+jF3OEajN/UYzIjFU dTahs2oQF8ibw== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 22 Nov 2017 02:38:14 +0900 Message-Id: <1511285912-12452-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511285912-12452-1-git-send-email-yamada.masahiro@socionext.com> References: <1511285912-12452-1-git-send-email-yamada.masahiro@socionext.com> Cc: Scott Wood Subject: [U-Boot] [PATCH 04/22] mtd: nand: remove unnecessary 'extern' from function declarations 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Sascha Hauer 'extern' is not necessary for function declarations. To prevent people from adding the keyword to new declarations remove the existing ones. Signed-off-by: Sascha Hauer Signed-off-by: Boris Brezillon [Linux commit: 79022591839f110f465cac0223e117b91d47d5db] Signed-off-by: Masahiro Yamada --- include/linux/mtd/nand.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index eebfb13..3facbbd 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -28,20 +28,20 @@ struct nand_flash_dev; struct device_node; /* Scan and identify a NAND device */ -extern int nand_scan(struct mtd_info *mtd, int max_chips); +int nand_scan(struct mtd_info *mtd, int max_chips); /* * Separate phases of nand_scan(), allowing board driver to intervene * and override command or ECC setup according to flash type. */ -extern int nand_scan_ident(struct mtd_info *mtd, int max_chips, +int nand_scan_ident(struct mtd_info *mtd, int max_chips, struct nand_flash_dev *table); -extern int nand_scan_tail(struct mtd_info *mtd); +int nand_scan_tail(struct mtd_info *mtd); /* Free resources held by the NAND device */ -extern void nand_release(struct mtd_info *mtd); +void nand_release(struct mtd_info *mtd); /* Internal helper for board drivers which need to override command function */ -extern void nand_wait_ready(struct mtd_info *mtd); +void nand_wait_ready(struct mtd_info *mtd); /* * This constant declares the max. oobsize / page, which @@ -899,13 +899,13 @@ struct nand_manufacturers { extern struct nand_flash_dev nand_flash_ids[]; extern struct nand_manufacturers nand_manuf_ids[]; -extern int nand_default_bbt(struct mtd_info *mtd); -extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs); -extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs); -extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt); -extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, +int nand_default_bbt(struct mtd_info *mtd); +int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs); +int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs); +int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt); +int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, int allowbbt); -extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len, +int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, uint8_t *buf); /*