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: 168630 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp6509251ock; Mon, 8 Jul 2019 05:50:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+Tr0Q9sZo0m/NYjr9th5lYuo87WEtzBHYplkhuX3gwsA7CWxoMBmmWuF463aVAeEC6hRf X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr24497596plb.283.1562590208798; Mon, 08 Jul 2019 05:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562590208; cv=none; d=google.com; s=arc-20160816; b=ze1w3XunuXVJHHZwBKULkUvc+W9pQFOPZvnt4Kp87pUyHVTRdQbEv3igo4Edw1Y9id mZ/8Mn+5GY/NAlytGS+WS39l3ZCCNqilfunDvzuDe0sACCbF/6jkInqTStktZzTXZ/xU a2sZp6A3MpxpdX3EJb179AN5AlciZrf/65mmtG3PwTmXhvulgGbE8qE1HUYE3E3CwojM FJ4kq+eJuLfO/bQKDg1w+wcMeyO0drxXcdwm9HKuxsTUR4ScOrU2oh9k6XGMqE8yfwxs oZTYwi9576FX03AfRoDsBflLy+bPiHLJmzNbF1K9LQbtwzGW6ElJWGFPPWX5LkVkt0st QmjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=ULAh5Y6qxnOTYcNpkbkaTQ8C6B/VemCgnfACVo+vpjI=; b=ed/REKLuhTV9E1aejLf78FjkiKKO3Op+7snr7aEhUc8XYM9Pd5XXkCuIaHE3rzUXZZ N49GLPRMffW6W4It6JqWqMZdBAn48W6gdOIMIGcBqwpBQBINo0a2J/xahZVbzBbr/sFG R52jn7dUVEREGB54AChZFnEATeDl4rLCuVJf7hRmEQdz5s2S79tkR4X8MNP0iJpDijDl FGY54MMeC5xi2PqnV1VM7+s0SNpZZ04P2GHhxDf7a7/N3kgC0NYTlhZ6FMg20tIxEzX1 0M8psJi/nUXDKtIcZdjR90vAJpezQKadSyspArb90kYaiBPqBoLUFYgN/G4BKn/emaln uNlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=q+ydQ8f8; 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 v16si19398241pfe.39.2019.07.08.05.50.08 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 05:50:08 -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=q+ydQ8f8; 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: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-GE; 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+patch=linaro.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(-) -- 2.20.0 ______________________________________________________ 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