From patchwork Mon Jul 8 12:49:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1129069 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=arndb.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q+ydQ8f8"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45j4zr2Lg1z9sNF for ; Mon, 8 Jul 2019 22:50:14 +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: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=ULAh5Y6qxnOTYcNpkbkaTQ8C6B/VemCgnfACVo+vpjI=; b=q+ydQ8f8M7e2tJ EAxsmDHNgXcqHsnCP8rGO7SaMz36rM0IvJXu7rC+e0eJ23oOnHLb/NiMnMVpWDGAw9HtoAjWmHGZA zl3x6NCd4SgFf/oR16jFYXCnTBAJZcXAuCFWjY7i2oRio7E5kyVOU2QXCbMlDqB3tUcOqHCyiUP0r cVxW1jGRgRgmzax9tt4HdwGwB+qYXqFLo9Es1FRgCyzCrRIMFfsWGcu6pVJgRQOWGC7MwfYbx0o82 ogmBVi3G7dG31fyqcu1TqKdN4nBCqGW5B8FtnAhYxZHwODHsSBoYp/dG7VH0bqq3fpxwzu/3obibG oRaNZDdSBcTIif/670iw==; 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 1hkT5r-0001fY-KN; Mon, 08 Jul 2019 12:50:07 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkT5o-00011D-FL for linux-mtd@lists.infradead.org; Mon, 08 Jul 2019 12:50:06 +0000 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MiJEc-1iOjn82v7G-00fPdg; Mon, 08 Jul 2019 14:49:48 +0200 From: Arnd Bergmann To: David Woodhouse , Brian Norris , Marek Vasut , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Subject: [PATCH] mtd: remove c++ comments from uapi header Date: Mon, 8 Jul 2019 14:49:39 +0200 Message-Id: <20190708124946.3679242-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:+uOHU+4UEMIQVvG6sZZ0WG9SxeOsI22+BEimc3g+pGD2B7re0/y LDaqKR2IuOWj4qaciN49K2yV/BwkXGGzw2fEcb4B/VJkusXCDXCI0o4Jvf8COGeLWjtcpkX rN0ddo2ar0utLTm5EkXhvD+bzBHGHRFuyBdmQCs7Fo9TG4ECUyA0ISNsOhufuk51zaOR4CA iiIG0TvMEo/22HxZEoBcg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:w6QPbdb0Tmo=:BkMCVwQoKFaKbeBRhtHXJH AcbU8Nh+P4l4ZqIrqnKTXrus6PNlSMQWfPUjpuSPAjQRLKz45Ph02n3v8yokNTgW8FZBKtSQK iPLHpZPKNnB9TgBF3hBuEc3GSYV52N831Zg4Wpc/BaUXSdNdZGBHnvoivcFwDpt3KrxCIK1Hp z2WYG1lbYj0G/AaUBBOkE8Nw3LqSrhaIf12rY8iDfzcW+83GpaCgix6RX/rjkFOIYC8cTZEUI m1bJ2SChv53q0tnKLzRSLsokXfO3Ik6ZaniUkdMXe5A8s4S9xM+bEuFo4ZLdkoakc4hX8WSKH b9r06yCbMlUv+dFvxVhwm8tegCUslJhz004VrMbeuxtjh3+yfbth1Uc65mFv1n82mKuIqBZSA 1diHk3ZJDZuqxSK9pPlPTBf92iyj7jycyrYX9UhmoH6mbkhBAU3ldpGQNV+YV7yHgzDCdFtAg cPQlXfC5qkqwB72n7ndLj884P2Le/dkeD8K1qoXHQXiNanxGCbn2kW8Kkk/gNeZZeuFRby7uB Ww8z95kzX2JJpJ6HmIT6w3TJADjQt19tWwP1g8PrsJCYX/IyXqq5dJEWWkRDODeQFtThQkVy1 aJnnXiB4emR+DctDntBUNj1lkWJ5hMjpaqyGbcRSTgnkBJjJ2IlUWxRr4gYBDutJFAuH1GZ9j LJlrLat+jQLCbZpLgj0qJwRN63GqMFRkM/TdwkLe5f/+rnolWa+v/1vTWAgq4+68GrXAXY5Bs MbkiuvX3I1IB926e16ysoVBPezIKSJrE0BOuQQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190708_055004_817323_8416D446 X-CRM114-Status: GOOD ( 12.60 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [212.227.126.187 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.187 listed in wl.mailspike.net] 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-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , clang-built-linux@googlegroups.com Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Checking the uapi headers now produces a warning with clang: ./usr/include/mtd/mtd-abi.h:116:28: error: // comments are not allowed in this language [-Werror,-Wcomment] Change these into standard C comments here. Signed-off-by: Arnd Bergmann --- include/uapi/mtd/mtd-abi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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