From patchwork Thu Jun 27 07:07:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 167884 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1952210ilk; Thu, 27 Jun 2019 00:08:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzl4E6tSA5PDVRJ5/B6ly1LDMFyAN3gpn6AEIkXj8HviZU6hLW1vFh7us2pZXawhuYkoc8 X-Received: by 2002:a17:90a:216f:: with SMTP id a102mr4239785pje.29.1561619302905; Thu, 27 Jun 2019 00:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561619302; cv=none; d=google.com; s=arc-20160816; b=OKfYhNbjhn876iIiLCuHVaqqgOSA1Kg6FjE/q/ma9qvhXdq3ZmC8mXcbsHP77vQvGW JLw9KW1eNA0P+i7D7DRh8NM0RHkONA/KyfTrHeLQOxfJk9gn97d8dxTH1jddqyM6v+P/ 2gZSD7kGpm8IKjjuKDPOeWAdX0fd4DfJWsCXoz94lHeAb44aVC9ofK1FPBUTmCG+t6xb 5M52G7UqAy14GCrDuTgWCe/jwXBTDXaD1Yuijj6C6vgEWgf4BwI2EzPMa1IQAL7e8vTV bkq8lXHZHM0DBiLWQreis7qvizhY0uoAK3pVy6Tl925yrsRlZz+vhFae5KbwWdiMMXbk Q7bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter:dkim-signature; bh=0eOomSoHCG1fZjowy+AqPIDC4QqdjSbhpbJpbysmoTE=; b=lIR/BmpoA9XsaiaWcdtw8fUnkeMF1uFzVGuFTHEslignBmai159sU10+ya0h2bHG4L jRr4nc+I89diXOZkuzJAppVRMagle0LQAN2wsLxiwm+h2Dv2C+fJydJlafGm4LDw6d6E Q3mbpG05skXTiEvGxV4cO5HRWxlQy0LHGPRaLdrqaCZJGlfXvU32BUCaB7ZbbrbBI9RY 8JuAKUKL6edCDcMyO+kxrO8qoRgQ0AZxKpbCvM+pCmYTixOBA4/NrzCzFBVbDTn1dp1G WPO3z1O4rQHeqk+6r2zRhjldVG4oXmmrXKJ6fmmcwsiDyX8CDXnqmt8Kw6KQvFKx1szR vKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=O8llTrZg; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=NcyB7YTo; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id j2si1508181plt.171.2019.06.27.00.08.22 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 00:08:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=O8llTrZg; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=NcyB7YTo; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" 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=0eOomSoHCG1fZjowy+AqPIDC4QqdjSbhpbJpbysmoTE=; b=O8l lTrZgAOGn1r2ysj7Ki93KupcLuyGoSJd34VCgfhwvVSjPR9e+XfE5SdsOjBTF9uCyOmka5Y/Ahh+U l0nqBs2VjIYPidTAWvvUbwWf3FOdNET+ww5obSTlpeuBKI/7yze2dKP8/yXwJ/8s5NeJz8bnWKXq5 mBAKd7A9J3/LSfphgFqsVucEv71DBXJK1S8TnKeDpsqlv4gRuL/ei+bN7RzbNhYArvZtL1ennsPLY IUfXilu1a8MsIwvpEWQbsvqw7PPm4hvtAgKrTFrpKDYurfaIu4QlsnQP2XcH94jHpqsWfrd2HRzF8 78Bg/XrUzmGlS0wFv5b4uOBvybO81tg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgOW5-0000WI-Lq; Thu, 27 Jun 2019 07:08:21 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgOW3-0000VZ-1P for linux-mtd@lists.infradead.org; Thu, 27 Jun 2019 07:08:20 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x5R77uGW006669; Thu, 27 Jun 2019 16:07:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x5R77uGW006669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561619277; bh=Me6XZe6RMVm7ORc75tTq5ObpD2opR8ehVOvWvOAsKDQ=; h=From:To:Cc:Subject:Date:From; b=NcyB7YToht5y8f6ew+RnmCn5gizrkwen96RjPfFCTQOqi4+ATTfKHCl23WW1O2uPo IXanyXgvCXDOYXxJ9Rm6dBCnbk4m9SmyX5KY2DnxXHOJv0SOlJCeLa9GVdSa398Svo 0zHiLzxZHyw34702W52kp0ljjDP/6XP0wi6DBRNHZoXrBKoL5H6hz2t87CI0b6uQN3 +6l7Gb58nplN9j1DSwvny0f0vpsL8owYXbWtmogi6CupiuLmriqIuznVjw5HtJSjk7 QsZnkufaeC2dhSk6Hza29AD56DGnwIFNBsfBfaZrQ/e161cgnv6JgV3cqpapjN+u1q Qv2lqj7N0A+jA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: David Woodhouse , Brian Norris , Marek Vasut , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: abi: do not use C++ style comments in uapi header Date: Thu, 27 Jun 2019 16:07:45 +0900 Message-Id: <20190627070745.9561-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_000819_316332_921FE4A7 X-CRM114-Status: GOOD ( 10.42 ) X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.76 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Linux kernel tolerates C++ style comments these days. Actually, the SPDX License tags for .c files start with //. On the other hand, uapi headers are written in more strict C, where the C++ comment style is forbidden. Signed-off-by: Masahiro Yamada --- include/uapi/mtd/mtd-abi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h index aff5b5e59845..47ffe3208c27 100644 --- a/include/uapi/mtd/mtd-abi.h +++ b/include/uapi/mtd/mtd-abi.h @@ -113,11 +113,11 @@ struct mtd_write_req { #define MTD_CAP_NVRAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE) /* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */ -#define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended) -#define MTD_NANDECC_PLACE 1 // Use the given placement in the structure (YAFFS1 legacy mode) -#define MTD_NANDECC_AUTOPLACE 2 // Use the default placement scheme -#define MTD_NANDECC_PLACEONLY 3 // Use the given placement in the structure (Do not store ecc result on read) -#define MTD_NANDECC_AUTOPL_USR 4 // Use the given autoplacement scheme rather than using the default +#define MTD_NANDECC_OFF 0 /* Switch off ECC (Not recommended) */ +#define MTD_NANDECC_PLACE 1 /* Use the given placement in the structure (YAFFS1 legacy mode) */ +#define MTD_NANDECC_AUTOPLACE 2 /* Use the default placement scheme */ +#define MTD_NANDECC_PLACEONLY 3 /* Use the given placement in the structure (Do not store ecc result on read) */ +#define MTD_NANDECC_AUTOPL_USR 4 /* Use the given autoplacement scheme rather than using the default */ /* OTP mode selection */ #define MTD_OTP_OFF 0