Skip to contentSkip to conversation

docs/filesystems:fixes two build warnings

PATCH In review Yanteng Si 2 participants 8 messages Mar 18, 2021 – Mar 21, 2021 Documentation

lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

cover docs/filesystems:fixes two build warnings

This series of patches fix some warnings:

linux-next/Documentation/filesystems/cifs/cifsd.rst:3: WARNING: Title overline too short.

=========================
CIFSD - SMB3 Kernel Server
=========================

linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING: document isn't included in any toctree

Yanteng Si(2):

docs: filesystems: cifsd: fix document title markup
docs: filesystems: add cifs to the index file

---

Documentation/filesystems/cifs/cifsd.rst |  4 ++--
Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
Documentation/filesystems/index.rst      |  2 +-
3 files changed, 15 insertions(+), 3 deletions(-)
author
#1 lore raw

PATCH 1/2 docs: filesystems: cifsd: fix document title markup

As warned by sphinx:

linux-next/Documentation/filesystems/cifs/cifsd.rst:3: WARNING:
Title overline too short.

=========================
CIFSD - SMB3 Kernel Server
=========================

so,just increase it!

---
 Documentation/filesystems/cifs/cifsd.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/filesystems/cifs/cifsd.rst +2 -2
index e0c33d03f290..af3589da6923 100644
@@ -1,8 +1,8 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-=========================
+==========================
 CIFSD - SMB3 Kernel Server
-=========================
+==========================
 
 CIFSD is a linux kernel server which implements SMB3 protocol in kernel space
 for sharing files over network.
Signature · 1 line
2.25.1
#2 lore raw

RE: [PATCH 1/2] docs: filesystems: cifsd: fix document title markup

Hi Yanteng,

Thanks for your patch.
I have already applied the patch to fix this warning to steve's tree.

https://github.com/smfrench/smb3-kernel/commit/801019d874df84f5fa8d21148c2a82edc80785da

Thanks!

Quoted 31 lines

As warned by sphinx:

linux-next/Documentation/filesystems/cifs/cifsd.rst:3: WARNING:
Title overline too short.

=========================
CIFSD - SMB3 Kernel Server
=========================

so,just increase it!

---
 Documentation/filesystems/cifs/cifsd.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/filesystems/cifs/cifsd.rst +2 -2
index e0c33d03f290..af3589da6923 100644
@@ -1,8 +1,8 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-=========================
+==========================
 CIFSD - SMB3 Kernel Server
-=========================
+==========================
 
 CIFSD is a linux kernel server which implements SMB3 protocol in kernel space  for sharing files over

network.
--
2.25.1

author
#3 lore raw

PATCH 2/2 docs: filesystems: add cifs to the index file

In reply to Yanteng Si

Filesystems has a new cifs folder. Add it to the index file. Should address this warning:

linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING:
document isn't included in any toctree

---
 Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
 Documentation/filesystems/index.rst      |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/filesystems/cifs/index.rst
Documentation/filesystems/cifs/index.rst new file +12 -0
new file mode 100644
index 000000000000..b4a487e9adff
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+====
+CIFS
+====
+
+.. toctree::
+   :maxdepth: 2
+   :numbered:
+
+   cifsd
+   cifsroot
Documentation/filesystems/index.rst +1 -1
index d4853cb919d2..bdba80ae2bb1 100644
@@ -72,7 +72,7 @@ Documentation for filesystem implementations.
    befs
    bfs
    btrfs
-   cifs/cifsroot
+   cifs/index
    ceph
    coda
    configfs
Signature · 1 line
2.25.1
#4 lore raw

RE: [PATCH 2/2] docs: filesystems: add cifs to the index file

Quoted 17 lines

Filesystems has a new cifs folder. Add it to the index file. Should address this warning:

linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING:
document isn't included in any toctree

---
 Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
 Documentation/filesystems/index.rst      |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)  create mode 100644

Documentation/filesystems/cifs/index.rst

Documentation/filesystems/cifs/index.rst new file +0 -0
new file mode 100644
index 000000000000..b4a487e9adff

Documentation/filesystems/cifs/index.rst line 9

Quoted 9 lines
Documentation/filesystems/cifs/index.rst new file +9 -0
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+====
+CIFS
+====
+
+.. toctree::
+   :maxdepth: 2
+   :numbered:

Could you please explain what :maxdepth and :numbered are ?

Thanks!

Quoted 18 lines
Documentation/filesystems/cifs/index.rst new file +3 -0
+
+   cifsd
+   cifsroot
Documentation/filesystems/index.rst +1 -2
index d4853cb919d2..bdba80ae2bb1 100644
@@ -72,7 +72,7 @@ Documentation for filesystem implementations.
    befs
    bfs
    btrfs
-   cifs/cifsroot
+   cifs/index
    ceph
    coda
    configfs
--

2.25.1

author
#5 lore raw

Re: RE: [PATCH 2/2] docs: filesystems: add cifs to the index file

Sorry, I copied an index as a base from somewhere else and modified it, obviously I didn't do a very nice job and this will cause problems for future developers. Just keep the defaults, can I delete them in v2? Thanks!

Yanteng

"Namjae Jeon" <[email protected]>写道:
&gt; &gt; Filesystems has a new cifs folder. Add it to the index file.
&gt; &gt; Should address this warning:
&gt; &gt;
&gt; &gt; linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING:
&gt; &gt; document isn't included in any toctree
&gt; &gt; ---

&gt; &gt;  Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
&gt; &gt;  Documentation/filesystems/index.rst      |  2 +-
&gt; &gt;  2 files changed, 13 insertions(+), 1 deletion(-)  create mode 100644

&gt; &gt; Documentation/filesystems/cifs/index.rst
&gt; &gt;
&gt; &gt; diff --git a/Documentation/filesystems/cifs/index.rst b/Documentation/filesystems/cifs/index.rst &gt; &gt; new file mode 100644
&gt; &gt; index 000000000000..b4a487e9adff
&gt; &gt; --- /dev/null
&gt; &gt; +++ b/Documentation/filesystems/cifs/index.rst
&gt; &gt; @@ -0,0 +1,12 @@
&gt; &gt; +.. SPDX-License-Identifier: GPL-2.0
&gt; &gt; +
&gt; &gt; +====
&gt; &gt; +CIFS
&gt; &gt; +====
&gt; &gt; +
&gt; &gt; +.. toctree::
&gt; &gt; + :maxdepth: 2
&gt; &gt; + :numbered:
&gt; Could you please explain what :maxdepth and :numbered are ?
&gt;
&gt; Thanks!
&gt; &gt; +
&gt; &gt; + cifsd
&gt; &gt; + cifsroot
&gt; &gt; diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst &gt; &gt; index d4853cb919d2..bdba80ae2bb1 100644
&gt; &gt; --- a/Documentation/filesystems/index.rst
&gt; &gt; +++ b/Documentation/filesystems/index.rst
&gt; &gt; @@ -72,7 +72,7 @@ Documentation for filesystem implementations.

&gt; &gt;     befs
&gt; &gt;     bfs
&gt; &gt;     btrfs
&gt; &gt; -   cifs/cifsroot
&gt; &gt; +   cifs/index
&gt; &gt;     ceph
&gt; &gt;     coda
&gt; &gt;     configfs

&gt; &gt; --
&gt; &gt; 2.25.1
&gt;

</[email protected]>

#6 lore raw

RE: RE: [PATCH 2/2] docs: filesystems: add cifs to the index file

Quoted 3 lines

Sorry, I copied an index as a base from somewhere else and modified it, obviously I didn't do a very nice job and this will cause problems for future developers. Just keep the defaults, can I delete them in v2?

Is it really right to delete them? First we have to know what they mean. When I see Documentation/filesystems/nfs/index.st, :maxdepth is set to 1. Can you take a look more ?

Quoted 49 lines

Thanks!

Yanteng

"Namjae Jeon" <[email protected]>写道:
&gt; &gt; Filesystems has a new cifs folder. Add it to the index file.
&gt; &gt; Should address this warning:
&gt; &gt;
&gt; &gt; linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING:
&gt; &gt; document isn't included in any toctree &gt; &gt; --- &gt; &gt; Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
&gt; &gt; Documentation/filesystems/index.rst | 2 +-
&gt; &gt; 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 &gt; &gt; Documentation/filesystems/cifs/index.rst
&gt; &gt;
&gt; &gt; diff --git a/Documentation/filesystems/cifs/index.rst b/Documentation/filesystems/cifs/index.rst
&gt; &gt; new file mode 100644
&gt; &gt; index 000000000000..b4a487e9adff &gt; &gt; --- /dev/null &gt; &gt; +++ b/Documentation/filesystems/cifs/index.rst
&gt; &gt; @@ -0,0 +1,12 @@
&gt; &gt; +.. SPDX-License-Identifier: GPL-2.0 &gt; &gt; + &gt; &gt; +==== &gt; &gt; +CIFS &gt; &gt;

+==== &gt; &gt; + &gt; &gt; +.. toctree::
&gt; &gt; +   :maxdepth: 2
&gt; &gt; +   :numbered:

&gt; Could you please explain what :maxdepth and :numbered are ?
&gt;
&gt; Thanks!
&gt; &gt; +
&gt; &gt; + cifsd
&gt; &gt; + cifsroot
&gt; &gt; diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst &gt; &gt; index d4853cb919d2..bdba80ae2bb1 100644 &gt; &gt; --- a/Documentation/filesystems/index.rst &gt; &gt; +++ b/Documentation/filesystems/index.rst
&gt; &gt; @@ -72,7 +72,7 @@ Documentation for filesystem implementations.

&gt; &gt;     befs
&gt; &gt;     bfs
&gt; &gt;     btrfs
&gt; &gt; -   cifs/cifsroot
&gt; &gt; +   cifs/index
&gt; &gt;     ceph
&gt; &gt;     coda
&gt; &gt;     configfs

&gt; &gt; --
&gt; &gt; 2.25.1
&gt;

</[email protected]>

author
#7 lore raw

Re: RE: RE: [PATCH 2/2] docs: filesystems: add cifs to the index file

Thank you! In the past two days I have consulted not only other indexes, but also the Sphinx manual. In the meantime I have done a lot of experimentation. Now I am convinced that: ":maxdepth:1" is appropriate; ":numbered" is not needed. Thanks!

Yanteng
&gt; -----原始邮件-----
&gt; 发件人: "Namjae Jeon" <[email protected]>
&gt; 发送时间: 2021-03-19 11:35:39 (星期五)
&gt; 收件人: "'司延腾'" <[email protected]>
&gt; 抄送: [email protected], "'Steve French'" <[email protected]>, "'Gibeom Kim'" <[email protected]>, [email protected], "'Huacai chen'" <[email protected]>, [email protected], "'Jonathan &gt; Corbet'" <[email protected]>
&gt; 主题: RE: RE: [PATCH 2/2] docs: filesystems: add cifs to the index file
&gt;
&gt; &gt; Sorry, I copied an index as a base from somewhere else and modified it, obviously I didn't do a very
&gt; &gt; nice job and this will cause problems for future developers. Just keep the defaults, can I delete them
&gt; &gt; in v2?
&gt; Is it really right to delete them? First we have to know what they mean.
&gt; When I see Documentation/filesystems/nfs/index.st, :maxdepth is set to 1.
&gt; Can you take a look more ?
&gt;
&gt; &gt; Thanks!
&gt; &gt;
&gt; &gt; Yanteng
&gt; &gt;
&gt; &gt; "Namjae Jeon" <[email protected]>写道:
&gt; &gt; &gt; &gt; Filesystems has a new cifs folder. Add it to the index file.
&gt; &gt; &gt; &gt; Should address this warning:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; linux-next/Documentation/filesystems/cifs/cifsd.rst: WARNING:
&gt; &gt; &gt; &gt; document isn't included in any toctree &gt; &gt; --- &gt; &gt;
&gt; &gt; Documentation/filesystems/cifs/index.rst | 12 ++++++++++++
&gt; &gt; &gt; &gt; Documentation/filesystems/index.rst | 2 +-
&gt; &gt; &gt; &gt; 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 &gt; &gt;
&gt; &gt; Documentation/filesystems/cifs/index.rst
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; diff --git a/Documentation/filesystems/cifs/index.rst
&gt; &gt; b/Documentation/filesystems/cifs/index.rst
&gt; &gt; &gt; &gt; new file mode 100644
&gt; &gt; &gt; &gt; index 000000000000..b4a487e9adff &gt; &gt; --- /dev/null &gt; &gt; +++
&gt; &gt; b/Documentation/filesystems/cifs/index.rst
&gt; &gt; &gt; &gt; @@ -0,0 +1,12 @@
&gt; &gt; &gt; &gt; +.. SPDX-License-Identifier: GPL-2.0 &gt; &gt; + &gt; &gt; +==== &gt; &gt; +CIFS &gt; &gt;
&gt; &gt; +==== &gt; &gt; + &gt; &gt; +.. toctree::
&gt; &gt; &gt; &gt; + :maxdepth: 2
&gt; &gt; &gt; &gt; + :numbered:
&gt; &gt; &gt; Could you please explain what :maxdepth and :numbered are ?
&gt; &gt; &gt;
&gt; &gt; &gt; Thanks!
&gt; &gt; &gt; &gt; +
&gt; &gt; &gt; &gt; + cifsd
&gt; &gt; &gt; &gt; + cifsroot
&gt; &gt; &gt; &gt; diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst
&gt; &gt; &gt; &gt; index d4853cb919d2..bdba80ae2bb1 100644 &gt; &gt; --- a/Documentation/filesystems/index.rst
&gt; &gt; &gt; &gt; +++ b/Documentation/filesystems/index.rst
&gt; &gt; &gt; &gt; @@ -72,7 +72,7 @@ Documentation for filesystem implementations.

&gt; &gt; &gt; &gt;     befs
&gt; &gt; &gt; &gt;     bfs
&gt; &gt; &gt; &gt;     btrfs
&gt; &gt; &gt; &gt; -   cifs/cifsroot
&gt; &gt; &gt; &gt; +   cifs/index
&gt; &gt; &gt; &gt;     ceph
&gt; &gt; &gt; &gt;     coda
&gt; &gt; &gt; &gt;     configfs

&gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; 2.25.1
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; </[email protected]>
&gt;
&gt;

</[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]>