linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] jffs2: remove C++ style comments from uapi header
@ 2019-06-18  3:09 Masahiro Yamada
  2019-06-18  6:19 ` Richard Weinberger
  0 siblings, 1 reply; 10+ messages in thread
From: Masahiro Yamada @ 2019-06-18  3:09 UTC (permalink / raw)
  To: linux-mtd
  Cc: Vignesh Raghavendra, Masahiro Yamada, Richard Weinberger,
	Boris Brezillon, linux-kernel, Marek Vasut, Miquel Raynal,
	Brian Norris, David Woodhouse

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.

I simply dropped these lines instead of fixing the comment style.

This code has been always commented out since it was added around
Linux 2.4.9 (i.e. commented out for more than 17 years).

'Maybe later...' will never happen.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

Changes in v2:
  - Delete the comments entirely instead of fixing the comment style

 include/uapi/linux/jffs2.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/uapi/linux/jffs2.h b/include/uapi/linux/jffs2.h
index a18b719f49d4..784ba0b9690a 100644
--- a/include/uapi/linux/jffs2.h
+++ b/include/uapi/linux/jffs2.h
@@ -77,11 +77,6 @@
 
 #define JFFS2_ACL_VERSION		0x0001
 
-// Maybe later...
-//#define JFFS2_NODETYPE_CHECKPOINT (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
-//#define JFFS2_NODETYPE_OPTIONS (JFFS2_FEATURE_RWCOMPAT_COPY | JFFS2_NODE_ACCURATE | 4)
-
-
 #define JFFS2_INO_FLAG_PREREAD	  1	/* Do read_inode() for this one at
 					   mount time, don't wait for it to
 					   happen later */
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-06-18  3:09 [PATCH v2] jffs2: remove C++ style comments from uapi header Masahiro Yamada
@ 2019-06-18  6:19 ` Richard Weinberger
  2019-06-27  7:06   ` Masahiro Yamada
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Weinberger @ 2019-06-18  6:19 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

----- Ursprüngliche Mail -----
> Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
> An: "linux-mtd" <linux-mtd@lists.infradead.org>
> CC: "Boris Brezillon" <bbrezillon@kernel.org>, "Miquel Raynal" <miquel.raynal@bootlin.com>, "Brian Norris"
> <computersforpeace@gmail.com>, "Vignesh Raghavendra" <vigneshr@ti.com>, "Marek Vasut" <marek.vasut@gmail.com>,
> "Masahiro Yamada" <yamada.masahiro@socionext.com>, "richard" <richard@nod.at>, "David Woodhouse" <dwmw2@infradead.org>,
> "linux-kernel" <linux-kernel@vger.kernel.org>
> Gesendet: Dienstag, 18. Juni 2019 05:09:26
> Betreff: [PATCH v2] jffs2: remove C++ style comments from uapi header

> 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.
> 
> I simply dropped these lines instead of fixing the comment style.
> 
> This code has been always commented out since it was added around
> Linux 2.4.9 (i.e. commented out for more than 17 years).
> 
> 'Maybe later...' will never happen.

:-)
 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Acked-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-06-18  6:19 ` Richard Weinberger
@ 2019-06-27  7:06   ` Masahiro Yamada
  2019-06-27  7:39     ` Richard Weinberger
  0 siblings, 1 reply; 10+ messages in thread
From: Masahiro Yamada @ 2019-06-27  7:06 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

On Tue, Jun 18, 2019 at 3:20 PM Richard Weinberger <richard@nod.at> wrote:
>
> ----- Ursprüngliche Mail -----
> > Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
> > An: "linux-mtd" <linux-mtd@lists.infradead.org>
> > CC: "Boris Brezillon" <bbrezillon@kernel.org>, "Miquel Raynal" <miquel.raynal@bootlin.com>, "Brian Norris"
> > <computersforpeace@gmail.com>, "Vignesh Raghavendra" <vigneshr@ti.com>, "Marek Vasut" <marek.vasut@gmail.com>,
> > "Masahiro Yamada" <yamada.masahiro@socionext.com>, "richard" <richard@nod.at>, "David Woodhouse" <dwmw2@infradead.org>,
> > "linux-kernel" <linux-kernel@vger.kernel.org>
> > Gesendet: Dienstag, 18. Juni 2019 05:09:26
> > Betreff: [PATCH v2] jffs2: remove C++ style comments from uapi header
>
> > 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.
> >
> > I simply dropped these lines instead of fixing the comment style.
> >
> > This code has been always commented out since it was added around
> > Linux 2.4.9 (i.e. commented out for more than 17 years).
> >
> > 'Maybe later...' will never happen.
>
> :-)
>
> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Acked-by: Richard Weinberger <richard@nod.at>
>
> Thanks,
> //richard


Will this be picked up for v5.3-rc1 ?



-- 
Best Regards
Masahiro Yamada

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-06-27  7:06   ` Masahiro Yamada
@ 2019-06-27  7:39     ` Richard Weinberger
  2019-07-13 23:37       ` Masahiro Yamada
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Weinberger @ 2019-06-27  7:39 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

----- Ursprüngliche Mail -----
> Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
> An: "richard" <richard@nod.at>
> CC: "Vignesh Raghavendra" <vigneshr@ti.com>, "Boris Brezillon" <bbrezillon@kernel.org>, "linux-kernel"
> <linux-kernel@vger.kernel.org>, "Marek Vasut" <marek.vasut@gmail.com>, "linux-mtd" <linux-mtd@lists.infradead.org>,
> "Miquel Raynal" <miquel.raynal@bootlin.com>, "Brian Norris" <computersforpeace@gmail.com>, "David Woodhouse"
> <dwmw2@infradead.org>
> Gesendet: Donnerstag, 27. Juni 2019 09:06:31
> Betreff: Re: [PATCH v2] jffs2: remove C++ style comments from uapi header

> On Tue, Jun 18, 2019 at 3:20 PM Richard Weinberger <richard@nod.at> wrote:
>>
>> ----- Ursprüngliche Mail -----
>> > Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
>> > An: "linux-mtd" <linux-mtd@lists.infradead.org>
>> > CC: "Boris Brezillon" <bbrezillon@kernel.org>, "Miquel Raynal"
>> > <miquel.raynal@bootlin.com>, "Brian Norris"
>> > <computersforpeace@gmail.com>, "Vignesh Raghavendra" <vigneshr@ti.com>, "Marek
>> > Vasut" <marek.vasut@gmail.com>,
>> > "Masahiro Yamada" <yamada.masahiro@socionext.com>, "richard" <richard@nod.at>,
>> > "David Woodhouse" <dwmw2@infradead.org>,
>> > "linux-kernel" <linux-kernel@vger.kernel.org>
>> > Gesendet: Dienstag, 18. Juni 2019 05:09:26
>> > Betreff: [PATCH v2] jffs2: remove C++ style comments from uapi header
>>
>> > 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.
>> >
>> > I simply dropped these lines instead of fixing the comment style.
>> >
>> > This code has been always commented out since it was added around
>> > Linux 2.4.9 (i.e. commented out for more than 17 years).
>> >
>> > 'Maybe later...' will never happen.
>>
>> :-)
>>
>> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>>
>> Acked-by: Richard Weinberger <richard@nod.at>
>>
>> Thanks,
>> //richard
> 
> 
> Will this be picked up for v5.3-rc1 ?

Yes.

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-06-27  7:39     ` Richard Weinberger
@ 2019-07-13 23:37       ` Masahiro Yamada
  2019-07-14  8:08         ` Richard Weinberger
  0 siblings, 1 reply; 10+ messages in thread
From: Masahiro Yamada @ 2019-07-13 23:37 UTC (permalink / raw)
  To: Richard Weinberger, Miquel Raynal
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Brian Norris, David Woodhouse

On Thu, Jun 27, 2019 at 4:39 PM Richard Weinberger <richard@nod.at> wrote:
>
> ----- Ursprüngliche Mail -----
> > Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
> > An: "richard" <richard@nod.at>
> > CC: "Vignesh Raghavendra" <vigneshr@ti.com>, "Boris Brezillon" <bbrezillon@kernel.org>, "linux-kernel"
> > <linux-kernel@vger.kernel.org>, "Marek Vasut" <marek.vasut@gmail.com>, "linux-mtd" <linux-mtd@lists.infradead.org>,
> > "Miquel Raynal" <miquel.raynal@bootlin.com>, "Brian Norris" <computersforpeace@gmail.com>, "David Woodhouse"
> > <dwmw2@infradead.org>
> > Gesendet: Donnerstag, 27. Juni 2019 09:06:31
> > Betreff: Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
>
> > On Tue, Jun 18, 2019 at 3:20 PM Richard Weinberger <richard@nod.at> wrote:
> >>
> >> ----- Ursprüngliche Mail -----
> >> > Von: "Masahiro Yamada" <yamada.masahiro@socionext.com>
> >> > An: "linux-mtd" <linux-mtd@lists.infradead.org>
> >> > CC: "Boris Brezillon" <bbrezillon@kernel.org>, "Miquel Raynal"
> >> > <miquel.raynal@bootlin.com>, "Brian Norris"
> >> > <computersforpeace@gmail.com>, "Vignesh Raghavendra" <vigneshr@ti.com>, "Marek
> >> > Vasut" <marek.vasut@gmail.com>,
> >> > "Masahiro Yamada" <yamada.masahiro@socionext.com>, "richard" <richard@nod.at>,
> >> > "David Woodhouse" <dwmw2@infradead.org>,
> >> > "linux-kernel" <linux-kernel@vger.kernel.org>
> >> > Gesendet: Dienstag, 18. Juni 2019 05:09:26
> >> > Betreff: [PATCH v2] jffs2: remove C++ style comments from uapi header
> >>
> >> > 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.
> >> >
> >> > I simply dropped these lines instead of fixing the comment style.
> >> >
> >> > This code has been always commented out since it was added around
> >> > Linux 2.4.9 (i.e. commented out for more than 17 years).
> >> >
> >> > 'Maybe later...' will never happen.
> >>
> >> :-)
> >>
> >> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> >>
> >> Acked-by: Richard Weinberger <richard@nod.at>
> >>
> >> Thanks,
> >> //richard
> >
> >
> > Will this be picked up for v5.3-rc1 ?
>
> Yes.
>
> Thanks,
> //richard



Looks like this trivial patch missed the pull request.


My motivation is to make sure UAPI headers
are really compilable in user-space,
and now checked by the following commit:

commit d6fc9fcbaa655cff2d2be05e16867d1918f78b85
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date:   Mon Jul 1 09:58:40 2019 +0900

    kbuild: compile-test exported headers to ensure they are self-contained



Is there a chance for it being merged,
or must wait until v5.4-rc1 ?



-- 
Best Regards
Masahiro Yamada

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-07-13 23:37       ` Masahiro Yamada
@ 2019-07-14  8:08         ` Richard Weinberger
  2019-07-29  7:14           ` Richard Weinberger
  2019-08-19  4:11           ` Masahiro Yamada
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Weinberger @ 2019-07-14  8:08 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

----- Ursprüngliche Mail -----
> Looks like this trivial patch missed the pull request.
> 
> 
> My motivation is to make sure UAPI headers
> are really compilable in user-space,
> and now checked by the following commit:
> 
> commit d6fc9fcbaa655cff2d2be05e16867d1918f78b85
> Author: Masahiro Yamada <yamada.masahiro@socionext.com>
> Date:   Mon Jul 1 09:58:40 2019 +0900
> 
>    kbuild: compile-test exported headers to ensure they are self-contained
> 
> 
> 
> Is there a chance for it being merged,

Sure. I think it is okay to send it for -rc2.

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-07-14  8:08         ` Richard Weinberger
@ 2019-07-29  7:14           ` Richard Weinberger
  2019-08-19  4:12             ` Masahiro Yamada
  2019-08-19  4:11           ` Masahiro Yamada
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Weinberger @ 2019-07-29  7:14 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Vignesh Raghavendra, Marek Vasut, Boris Brezillon, linux-kernel,
	Masahiro Yamada, linux-mtd, Miquel Raynal, Brian Norris,
	David Woodhouse

On Sun, Jul 14, 2019 at 10:08 AM Richard Weinberger <richard@nod.at> wrote:
>
> ----- Ursprüngliche Mail -----
> > Looks like this trivial patch missed the pull request.
> >
> >
> > My motivation is to make sure UAPI headers
> > are really compilable in user-space,
> > and now checked by the following commit:
> >
> > commit d6fc9fcbaa655cff2d2be05e16867d1918f78b85
> > Author: Masahiro Yamada <yamada.masahiro@socionext.com>
> > Date:   Mon Jul 1 09:58:40 2019 +0900
> >
> >    kbuild: compile-test exported headers to ensure they are self-contained
> >
> >
> >
> > Is there a chance for it being merged,

Appled.

-- 
Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-07-14  8:08         ` Richard Weinberger
  2019-07-29  7:14           ` Richard Weinberger
@ 2019-08-19  4:11           ` Masahiro Yamada
  2019-08-19  6:41             ` Richard Weinberger
  1 sibling, 1 reply; 10+ messages in thread
From: Masahiro Yamada @ 2019-08-19  4:11 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

On Sun, Jul 14, 2019 at 5:08 PM Richard Weinberger <richard@nod.at> wrote:
>
> ----- Ursprüngliche Mail -----
> > Looks like this trivial patch missed the pull request.
> >
> >
> > My motivation is to make sure UAPI headers
> > are really compilable in user-space,
> > and now checked by the following commit:
> >
> > commit d6fc9fcbaa655cff2d2be05e16867d1918f78b85
> > Author: Masahiro Yamada <yamada.masahiro@socionext.com>
> > Date:   Mon Jul 1 09:58:40 2019 +0900
> >
> >    kbuild: compile-test exported headers to ensure they are self-contained
> >
> >
> >
> > Is there a chance for it being merged,
>
> Sure. I think it is okay to send it for -rc2.
>
> Thanks,
> //richard


This patch missed the fixes pull requests.
Which version is this targeting for?   v5.4-rc1 ?



-- 
Best Regards
Masahiro Yamada

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-07-29  7:14           ` Richard Weinberger
@ 2019-08-19  4:12             ` Masahiro Yamada
  0 siblings, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2019-08-19  4:12 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Vignesh Raghavendra, Boris Brezillon, Richard Weinberger,
	linux-kernel, Marek Vasut, linux-mtd, Miquel Raynal,
	Brian Norris, David Woodhouse

On Mon, Jul 29, 2019 at 4:14 PM Richard Weinberger
<richard.weinberger@gmail.com> wrote:
>
> On Sun, Jul 14, 2019 at 10:08 AM Richard Weinberger <richard@nod.at> wrote:
> >
> > ----- Ursprüngliche Mail -----
> > > Looks like this trivial patch missed the pull request.
> > >
> > >
> > > My motivation is to make sure UAPI headers
> > > are really compilable in user-space,
> > > and now checked by the following commit:
> > >
> > > commit d6fc9fcbaa655cff2d2be05e16867d1918f78b85
> > > Author: Masahiro Yamada <yamada.masahiro@socionext.com>
> > > Date:   Mon Jul 1 09:58:40 2019 +0900
> > >
> > >    kbuild: compile-test exported headers to ensure they are self-contained
> > >
> > >
> > >
> > > Is there a chance for it being merged,
>
> Appled.
>
> --
> Thanks,
> //richard


I checked next-20190819, but I still do not see this patch.
Where has this patch gone?



-- 
Best Regards
Masahiro Yamada

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2] jffs2: remove C++ style comments from uapi header
  2019-08-19  4:11           ` Masahiro Yamada
@ 2019-08-19  6:41             ` Richard Weinberger
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Weinberger @ 2019-08-19  6:41 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Vignesh Raghavendra, Boris Brezillon, linux-kernel, Marek Vasut,
	linux-mtd, Miquel Raynal, Brian Norris, David Woodhouse

----- Ursprüngliche Mail -----
> This patch missed the fixes pull requests.
> Which version is this targeting for?   v5.4-rc1 ?

Damn, I forgot about this one.
I'll do another fixes PR this week for UBI/UBIFS, so it will be
in tree before the next merge window opens.

Sorry for the delay!

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-08-19  6:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18  3:09 [PATCH v2] jffs2: remove C++ style comments from uapi header Masahiro Yamada
2019-06-18  6:19 ` Richard Weinberger
2019-06-27  7:06   ` Masahiro Yamada
2019-06-27  7:39     ` Richard Weinberger
2019-07-13 23:37       ` Masahiro Yamada
2019-07-14  8:08         ` Richard Weinberger
2019-07-29  7:14           ` Richard Weinberger
2019-08-19  4:12             ` Masahiro Yamada
2019-08-19  4:11           ` Masahiro Yamada
2019-08-19  6:41             ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).