Re: [PATCH] mtd: mtd-abi: Don't use C++ comments

From: Nick Desaulniers
Date: Thu Jun 20 2019 - 15:57:12 EST


On Thu, Jun 20, 2019 at 8:55 AM Nathan Chancellor
<natechancellor@xxxxxxxxx> wrote:
>
> When compiled standalone after commit b91976b7c0e3 ("kbuild:
> compile-test UAPI headers to ensure they are self-contained"),
> a warning about the C++ comments appears:
>
> In file included from usr/include/mtd/mtd-user.hdrtest.c:1:
> In file included from ./usr/include/mtd/mtd-user.h:25:
> ./usr/include/mtd/mtd-abi.h:116:28: warning: // comments are not
> allowed in this language [-Wcomment]
> #define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended)
> ^
> 1 warning generated.
>
> Replace them with standard C comments so this warning no longer occurs.

Should there be a fixes by tag?
--
Thanks,
~Nick Desaulniers