From patchwork Fri Mar 9 13:03:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 883607 X-Patchwork-Delegate: boris.brezillon@free-electrons.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=socionext.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sxz9nchX"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="skdq2XWb"; 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 3zySJk2vRTz9sby for ; Sat, 10 Mar 2018 00:04:38 +1100 (AEDT) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From: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=gcz/zU4WdQb9ldd3ylEYagCRPy2zFxuslVYqd86kTJI=; b=sxz 9nchXDo7BVTonNW4bonsOqE2vWlzxoDBInEICeRou2kCzAVTkjrA7x/R39dfKcneEJZjB7JHKDek3 22BxhcEJwErCvnWEb2h3qj/1NT+6CAxlRtCcWkEFAimAN2pxd1sCayYvHxJIdppLQqH3OGCS5yo+U 0lRiqlCKG4/Ik7CewcCom5bodwUyAcAmWTG+0aAzcHHuQC5Mvc1FKFBoXgzWX3Ii0m958hrb1FjR/ jWS5cOwnPR0JRTkd6ruy+3oXkibI5UEyECIldngY23JO4XEsT3QmfUiZM1d0wQeZ/Rbs9p8wdIhFM ZdpfUWDDTrkUL/cEBafWkAOf8xKZB1Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1euHhK-0005kB-0w; Fri, 09 Mar 2018 13:04:34 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euHhF-0005h2-BH for linux-mtd@lists.infradead.org; Fri, 09 Mar 2018 13:04:31 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w29D40EA010886; Fri, 9 Mar 2018 22:04:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w29D40EA010886 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520600643; bh=jZ2+8pSTRrzBt7fCD0OmYoo6yAmSCESJSF5e6I0J2fA=; h=From:To:Cc:Subject:Date:From; b=skdq2XWbMAylJijj3mg6EI8kzFDrqdsTlmmj1a6g9rNNQhqBB03Zo9pCuwkgXKAuh b6QVeUkUQnbxSlUvFdwURS3bbRUpAC1dCTKK12LC2Tu307lluCBOJT/45gb61+1Mnk d8zJzyFHegNk0LJ9q/fy7u2O4BS+7w1cDIIv/iw4+XnyMinT0cI0WAebtMH5MCnbId 6I28Fu9LQXyIxmw752zwbOI1DROuUda5UdAytxYwB2O+1HMAS+dl6W99GFr/7M/fW9 7ar/WZdgS39rW+8hsgeF+kiLunaOMlefimht66Qut/pObrEYL3syEi2u4559s0UJCH DQP4GJQtA8NOg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Boris Brezillon Subject: [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc Date: Fri, 9 Mar 2018 22:03:52 +0900 Message-Id: <1520600632-24955-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_050429_946779_F1332426 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: Marek Vasut , Tony Lindgren , Richard Weinberger , Boris Brezillon , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse , Peter Pan MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This file can not be built independently any more. We would have to bring in more to resolve mtd_to_nand(mtd)->ecc.size, for example. It is difficult to notice a breakage since nobody compiles this mode. It is not worth fixing or maintaining in my opinion. Remove. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/nand_ecc.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_ecc.c b/drivers/mtd/nand/raw/nand_ecc.c index 3630f0f..8e132ed 100644 --- a/drivers/mtd/nand/raw/nand_ecc.c +++ b/drivers/mtd/nand/raw/nand_ecc.c @@ -28,15 +28,6 @@ * */ -/* - * The STANDALONE macro is useful when running the code outside the kernel - * e.g. when running the code in a testbed or a benchmark program. - * When STANDALONE is used, the module related macros are commented out - * as well as the linux include files. - * Instead a private definition of mtd_info is given to satisfy the compiler - * (the code does not use mtd_info, so the code does not care) - */ -#ifndef STANDALONE #include #include #include @@ -44,17 +35,6 @@ #include #include #include -#else -#include -struct mtd_info; -#define EXPORT_SYMBOL(x) /* x */ - -#define MODULE_LICENSE(x) /* x */ -#define MODULE_AUTHOR(x) /* x */ -#define MODULE_DESCRIPTION(x) /* x */ - -#define pr_err printf -#endif /* * invparity is a 256 byte table that contains the odd parity