2021-05-07 03:55:48

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] Documentation: drop optional BOMs

A few of the Documentation .rst files begin with a Unicode
byte order mark (BOM). The BOM may signify endianess for
16-bit or 32-bit encodings or indicate that the text stream
is indeed Unicode. We don't need it for either of those uses.
It may also interfere with (confuse) some software.

Since we don't need it and its use is optional, just delete
the uses of it in Documentation/.

https://en.wikipedia.org/wiki/Byte_order_mark

Fixes: 898bd37a9206 ("docs: block: convert to ReST")
Fixes: edba5eecfd6e ("doc:it_IT: add some process/* translations")
Fixes: 675aaf05d898 ("docs: xen-tpmfront.txt: convert it to .rstX")
Fixes: 458f69ef3665 ("docs: timers: convert docs to ReST and rename to *.rst")
Fixes: d80b5005c5dd ("docs: usb: convert documents to ReST")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: [email protected]
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Federico Vaga <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Matthew Wilcox <[email protected]>
---
Documentation/block/data-integrity.rst | 2 +-
Documentation/process/kernel-enforcement-statement.rst | 2 +-
Documentation/security/tpm/xen-tpmfront.rst | 2 +-
Documentation/timers/no_hz.rst | 2 +-
Documentation/usb/mtouchusb.rst | 2 +-
Documentation/usb/usb-serial.rst | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)

--- linux-next-20210506.orig/Documentation/block/data-integrity.rst
+++ linux-next-20210506/Documentation/block/data-integrity.rst
@@ -1,4 +1,4 @@
-==============
+==============
Data Integrity
==============

--- linux-next-20210506.orig/Documentation/process/kernel-enforcement-statement.rst
+++ linux-next-20210506/Documentation/process/kernel-enforcement-statement.rst
@@ -1,4 +1,4 @@
-.. _process_statement_kernel:
+.. _process_statement_kernel:

Linux Kernel Enforcement Statement
----------------------------------
--- linux-next-20210506.orig/Documentation/timers/no_hz.rst
+++ linux-next-20210506/Documentation/timers/no_hz.rst
@@ -1,4 +1,4 @@
-======================================
+======================================
NO_HZ: Reducing Scheduling-Clock Ticks
======================================

--- linux-next-20210506.orig/Documentation/usb/mtouchusb.rst
+++ linux-next-20210506/Documentation/usb/mtouchusb.rst
@@ -1,4 +1,4 @@
-================
+================
mtouchusb driver
================

--- linux-next-20210506.orig/Documentation/usb/usb-serial.rst
+++ linux-next-20210506/Documentation/usb/usb-serial.rst
@@ -1,4 +1,4 @@
-==========
+==========
USB serial
==========

--- linux-next-20210506.orig/Documentation/security/tpm/xen-tpmfront.rst
+++ linux-next-20210506/Documentation/security/tpm/xen-tpmfront.rst
@@ -1,4 +1,4 @@
-=============================
+=============================
Virtual TPM interface for Xen
=============================


2021-05-07 06:00:09

by Matthew Wilcox

[permalink] [raw]
Subject: Re: [PATCH] Documentation: drop optional BOMs

On Thu, May 06, 2021 at 04:19:07PM -0700, Randy Dunlap wrote:
> A few of the Documentation .rst files begin with a Unicode
> byte order mark (BOM). The BOM may signify endianess for
> 16-bit or 32-bit encodings or indicate that the text stream
> is indeed Unicode. We don't need it for either of those uses.
> It may also interfere with (confuse) some software.

Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>

2021-05-07 06:45:14

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] Documentation: drop optional BOMs

On Thu, May 06, 2021 at 04:19:07PM -0700, Randy Dunlap wrote:
> A few of the Documentation .rst files begin with a Unicode
> byte order mark (BOM). The BOM may signify endianess for
> 16-bit or 32-bit encodings or indicate that the text stream
> is indeed Unicode. We don't need it for either of those uses.
> It may also interfere with (confuse) some software.
>
> Since we don't need it and its use is optional, just delete
> the uses of it in Documentation/.
>
> https://en.wikipedia.org/wiki/Byte_order_mark
>
> Fixes: 898bd37a9206 ("docs: block: convert to ReST")
> Fixes: edba5eecfd6e ("doc:it_IT: add some process/* translations")
> Fixes: 675aaf05d898 ("docs: xen-tpmfront.txt: convert it to .rstX")
> Fixes: 458f69ef3665 ("docs: timers: convert docs to ReST and rename to *.rst")
> Fixes: d80b5005c5dd ("docs: usb: convert documents to ReST")
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: Jonathan Corbet <[email protected]>
> Cc: [email protected]
> Cc: Mauro Carvalho Chehab <[email protected]>
> Cc: Federico Vaga <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>
> Cc: Matthew Wilcox <[email protected]>
> ---
> Documentation/block/data-integrity.rst | 2 +-
> Documentation/process/kernel-enforcement-statement.rst | 2 +-
> Documentation/security/tpm/xen-tpmfront.rst | 2 +-
> Documentation/timers/no_hz.rst | 2 +-
> Documentation/usb/mtouchusb.rst | 2 +-
> Documentation/usb/usb-serial.rst | 2 +-
> 6 files changed, 6 insertions(+), 6 deletions(-)

That's crazy, nice catch!

Reviewed-by: Greg Kroah-Hartman <[email protected]>

>
> --- linux-next-20210506.orig/Documentation/block/data-integrity.rst
> +++ linux-next-20210506/Documentation/block/data-integrity.rst
> @@ -1,4 +1,4 @@
> -==============
> +==============
> Data Integrity
> ==============
>
> --- linux-next-20210506.orig/Documentation/process/kernel-enforcement-statement.rst
> +++ linux-next-20210506/Documentation/process/kernel-enforcement-statement.rst
> @@ -1,4 +1,4 @@
> -.. _process_statement_kernel:
> +.. _process_statement_kernel:
>
> Linux Kernel Enforcement Statement
> ----------------------------------
> --- linux-next-20210506.orig/Documentation/timers/no_hz.rst
> +++ linux-next-20210506/Documentation/timers/no_hz.rst
> @@ -1,4 +1,4 @@
> -======================================
> +======================================
> NO_HZ: Reducing Scheduling-Clock Ticks
> ======================================
>
> --- linux-next-20210506.orig/Documentation/usb/mtouchusb.rst
> +++ linux-next-20210506/Documentation/usb/mtouchusb.rst
> @@ -1,4 +1,4 @@
> -================
> +================
> mtouchusb driver
> ================
>
> --- linux-next-20210506.orig/Documentation/usb/usb-serial.rst
> +++ linux-next-20210506/Documentation/usb/usb-serial.rst
> @@ -1,4 +1,4 @@
> -==========
> +==========
> USB serial
> ==========
>
> --- linux-next-20210506.orig/Documentation/security/tpm/xen-tpmfront.rst
> +++ linux-next-20210506/Documentation/security/tpm/xen-tpmfront.rst
> @@ -1,4 +1,4 @@
> -=============================
> +=============================
> Virtual TPM interface for Xen
> =============================
>

2021-05-10 21:19:18

by Jonathan Corbet

[permalink] [raw]
Subject: Re: [PATCH] Documentation: drop optional BOMs

Randy Dunlap <[email protected]> writes:

> A few of the Documentation .rst files begin with a Unicode
> byte order mark (BOM). The BOM may signify endianess for
> 16-bit or 32-bit encodings or indicate that the text stream
> is indeed Unicode. We don't need it for either of those uses.
> It may also interfere with (confuse) some software.
>
> Since we don't need it and its use is optional, just delete
> the uses of it in Documentation/.
>
> https://en.wikipedia.org/wiki/Byte_order_mark
>
> Fixes: 898bd37a9206 ("docs: block: convert to ReST")
> Fixes: edba5eecfd6e ("doc:it_IT: add some process/* translations")
> Fixes: 675aaf05d898 ("docs: xen-tpmfront.txt: convert it to .rstX")
> Fixes: 458f69ef3665 ("docs: timers: convert docs to ReST and rename to *.rst")
> Fixes: d80b5005c5dd ("docs: usb: convert documents to ReST")
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: Jonathan Corbet <[email protected]>
> Cc: [email protected]
> Cc: Mauro Carvalho Chehab <[email protected]>
> Cc: Federico Vaga <[email protected]>
> Cc: Greg Kroah-Hartman <[email protected]>
> Cc: Matthew Wilcox <[email protected]>
> ---
> Documentation/block/data-integrity.rst | 2 +-
> Documentation/process/kernel-enforcement-statement.rst | 2 +-
> Documentation/security/tpm/xen-tpmfront.rst | 2 +-
> Documentation/timers/no_hz.rst | 2 +-
> Documentation/usb/mtouchusb.rst | 2 +-
> Documentation/usb/usb-serial.rst | 2 +-
> 6 files changed, 6 insertions(+), 6 deletions(-)

Applied, thanks.

jon