Linux kbuild/kconfig development
 help / color / mirror / Atom feed
* [PATCH 0/4] kbuild: lto: documentation fixes
@ 2022-07-16  9:32 Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 1/4] Documentation: lto: add blank line padding before single requirement list Bagas Sanjaya
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-16  9:32 UTC (permalink / raw)
  To: linux-doc
  Cc: linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers,
	Jonathan Corbet, Martin Liska, Andi Kleen, Jiri Slaby,
	linux-kbuild, Bagas Sanjaya

Here is documentation fixes for kbuild LTO feature tree [1]. Two patches
fixes warnings reported by kernel test robot, the others are formatting
improvements.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git

Bagas Sanjaya (4):
  Documentation: lto: add blank line padding before single requirement
    list
  Documentation: lto: use bullet list for FAQ
  Documentation: lto: use bullet lists for external link references list
  Documentation: lto: add LTO documentation to toc index

 Documentation/kbuild/index.rst     |  2 ++
 Documentation/kbuild/lto-build.rst | 36 +++++++++++++++++-------------
 2 files changed, 23 insertions(+), 15 deletions(-)


base-commit: 79a278f10955da2801240f52efb828d158b2b36c
-- 
An old man doll... just what I always wanted! - Clara


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

* [PATCH 1/4] Documentation: lto: add blank line padding before single requirement list
  2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
@ 2022-07-16  9:32 ` Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 2/4] Documentation: lto: use bullet list for FAQ Bagas Sanjaya
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-16  9:32 UTC (permalink / raw)
  To: linux-doc
  Cc: linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers,
	Jonathan Corbet, Martin Liska, Andi Kleen, Jiri Slaby,
	linux-kbuild, Bagas Sanjaya, kernel test robot

kernel test robot reported a warning on LTO requirements list:

Documentation/kbuild/lto-build.rst:40: WARNING: Bullet list ends without a blank line; unexpected unindent.

The warning is caused by missing padding between the subheading and the list.

Add blank line padding to fix the warning.

Link: https://lore.kernel.org/linux-doc/202207161100.lCdR6Unx-lkp@intel.com/
Fixes: 0350b4dd55922f ("Kbuild, lto: Add Link Time Optimization support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/kbuild/lto-build.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/kbuild/lto-build.rst b/Documentation/kbuild/lto-build.rst
index e8a0f149e8ceaf..39cbdb12295051 100644
--- a/Documentation/kbuild/lto-build.rst
+++ b/Documentation/kbuild/lto-build.rst
@@ -36,9 +36,10 @@ the compiler version.
 
 Requirements:
 -------------
+
 - Enough memory: 4GB for a standard build, more for allyesconfig
-The peak memory usage happens single threaded (when lto-wpa merges types),
-so dialing back -j options will not help much.
+  The peak memory usage happens single threaded (when lto-wpa merges types),
+  so dialing back -j options will not help much.
 
 A 32bit hosted compiler is unlikely to work due to the memory requirements.
 You can however build a kernel targeted at 32bit on a 64bit host.
-- 
An old man doll... just what I always wanted! - Clara


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

* [PATCH 2/4] Documentation: lto: use bullet list for FAQ
  2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 1/4] Documentation: lto: add blank line padding before single requirement list Bagas Sanjaya
@ 2022-07-16  9:32 ` Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 3/4] Documentation: lto: use bullet lists for external link references list Bagas Sanjaya
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-16  9:32 UTC (permalink / raw)
  To: linux-doc
  Cc: linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers,
	Jonathan Corbet, Martin Liska, Andi Kleen, Jiri Slaby,
	linux-kbuild, Bagas Sanjaya

The only FAQ item is rendered as a continuous paragraph, although it is
formatted as Q&A field pair. Use bullet list instead, as in other FAQs
in kernel documentation.

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/kbuild/lto-build.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/kbuild/lto-build.rst b/Documentation/kbuild/lto-build.rst
index 39cbdb12295051..9e3e14042dda4c 100644
--- a/Documentation/kbuild/lto-build.rst
+++ b/Documentation/kbuild/lto-build.rst
@@ -46,10 +46,12 @@ You can however build a kernel targeted at 32bit on a 64bit host.
 
 FAQs:
 -----
-Q: I get a section type attribute conflict
-A: Usually because of someone doing
-const __initdata (should be const __initconst) or const __read_mostly
-(should be just const). Check both symbols reported by gcc.
+
+* I get a section type attribute conflict
+
+  Usually because of someone doing const __initdata (should be
+  const __initconst) or const __read_mostly (should be just const). Check
+  both symbols reported by gcc.
 
 References:
 -----------
-- 
An old man doll... just what I always wanted! - Clara


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

* [PATCH 3/4] Documentation: lto: use bullet lists for external link references list
  2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 1/4] Documentation: lto: add blank line padding before single requirement list Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 2/4] Documentation: lto: use bullet list for FAQ Bagas Sanjaya
@ 2022-07-16  9:32 ` Bagas Sanjaya
  2022-07-16  9:32 ` [PATCH 4/4] Documentation: lto: add LTO documentation to toc index Bagas Sanjaya
  2022-07-18  1:49 ` [PATCH 0/4] kbuild: lto: documentation fixes Masahiro Yamada
  4 siblings, 0 replies; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-16  9:32 UTC (permalink / raw)
  To: linux-doc
  Cc: linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers,
	Jonathan Corbet, Martin Liska, Andi Kleen, Jiri Slaby,
	linux-kbuild, Bagas Sanjaya

Similar to the FAQ, use bullet lists in References section since it
contains list of external reference links.

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/kbuild/lto-build.rst | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/Documentation/kbuild/lto-build.rst b/Documentation/kbuild/lto-build.rst
index 9e3e14042dda4c..3fb17342e72fd6 100644
--- a/Documentation/kbuild/lto-build.rst
+++ b/Documentation/kbuild/lto-build.rst
@@ -56,17 +56,20 @@ FAQs:
 References:
 -----------
 
-Presentation on Kernel LTO
-(note, performance numbers/details totally outdated.)
-http://halobates.de/kernel-lto.pdf
+* Presentation on Kernel LTO
+  (note, performance numbers/details totally outdated.)
 
-Generic gcc LTO:
-http://www.ucw.cz/~hubicka/slides/labs2013.pdf
-http://www.hipeac.net/system/files/barcelona.pdf
+  http://halobates.de/kernel-lto.pdf
 
-Somewhat outdated too:
-http://gcc.gnu.org/projects/lto/lto.pdf
-http://gcc.gnu.org/projects/lto/whopr.pdf
+* Generic gcc LTO:
+
+  * http://www.ucw.cz/~hubicka/slides/labs2013.pdf
+  * http://www.hipeac.net/system/files/barcelona.pdf
+
+* Somewhat outdated too (from GCC site):
+
+  * http://gcc.gnu.org/projects/lto/lto.pdf
+  * http://gcc.gnu.org/projects/lto/whopr.pdf
 
 Happy Link-Time-Optimizing!
 
-- 
An old man doll... just what I always wanted! - Clara


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

* [PATCH 4/4] Documentation: lto: add LTO documentation to toc index
  2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
                   ` (2 preceding siblings ...)
  2022-07-16  9:32 ` [PATCH 3/4] Documentation: lto: use bullet lists for external link references list Bagas Sanjaya
@ 2022-07-16  9:32 ` Bagas Sanjaya
  2022-07-18  1:49 ` [PATCH 0/4] kbuild: lto: documentation fixes Masahiro Yamada
  4 siblings, 0 replies; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-16  9:32 UTC (permalink / raw)
  To: linux-doc
  Cc: linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers,
	Jonathan Corbet, Martin Liska, Andi Kleen, Jiri Slaby,
	linux-kbuild, Bagas Sanjaya, kernel test robot

kernel test robot reported toctree warning:

Documentation/kbuild/lto-build.rst: WARNING: document isn't included in any toctree

Add LTO documentation (lto-build.rst) to kbuild table of contents.

Link: https://lore.kernel.org/linux-doc/202207161100.lCdR6Unx-lkp@intel.com/
Fixes: 0350b4dd55922f ("Kbuild, lto: Add Link Time Optimization support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/kbuild/index.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/kbuild/index.rst b/Documentation/kbuild/index.rst
index cee2f99f734b5a..1937eee7c43705 100644
--- a/Documentation/kbuild/index.rst
+++ b/Documentation/kbuild/index.rst
@@ -22,6 +22,8 @@ Kernel Build System
     gcc-plugins
     llvm
 
+    lto-build
+
 .. only::  subproject and html
 
    Indices
-- 
An old man doll... just what I always wanted! - Clara


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

* Re: [PATCH 0/4] kbuild: lto: documentation fixes
  2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
                   ` (3 preceding siblings ...)
  2022-07-16  9:32 ` [PATCH 4/4] Documentation: lto: add LTO documentation to toc index Bagas Sanjaya
@ 2022-07-18  1:49 ` Masahiro Yamada
  2022-07-18  7:17   ` Bagas Sanjaya
  4 siblings, 1 reply; 8+ messages in thread
From: Masahiro Yamada @ 2022-07-18  1:49 UTC (permalink / raw)
  To: Bagas Sanjaya
  Cc: open list:DOCUMENTATION, Linux Kernel Mailing List, Michal Marek,
	Nick Desaulniers, Jonathan Corbet, Martin Liska, Andi Kleen,
	Jiri Slaby, Linux Kbuild mailing list

On Sat, Jul 16, 2022 at 6:33 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>
> Here is documentation fixes for kbuild LTO feature tree [1]. Two patches
> fixes warnings reported by kernel test robot, the others are formatting
> improvements.


Please do not submit patches unrelated to the mainline.

This series applies to the individual repository of Jiri Slaby.









>
> [1]: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
>
> Bagas Sanjaya (4):
>   Documentation: lto: add blank line padding before single requirement
>     list
>   Documentation: lto: use bullet list for FAQ
>   Documentation: lto: use bullet lists for external link references list
>   Documentation: lto: add LTO documentation to toc index
>
>  Documentation/kbuild/index.rst     |  2 ++
>  Documentation/kbuild/lto-build.rst | 36 +++++++++++++++++-------------
>  2 files changed, 23 insertions(+), 15 deletions(-)
>
>
> base-commit: 79a278f10955da2801240f52efb828d158b2b36c
> --
> An old man doll... just what I always wanted! - Clara
>


-- 
Best Regards
Masahiro Yamada

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

* Re: [PATCH 0/4] kbuild: lto: documentation fixes
  2022-07-18  1:49 ` [PATCH 0/4] kbuild: lto: documentation fixes Masahiro Yamada
@ 2022-07-18  7:17   ` Bagas Sanjaya
  2022-07-19  7:29     ` Jiri Slaby
  0 siblings, 1 reply; 8+ messages in thread
From: Bagas Sanjaya @ 2022-07-18  7:17 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: open list:DOCUMENTATION, Linux Kernel Mailing List, Michal Marek,
	Nick Desaulniers, Jonathan Corbet, Martin Liska, Andi Kleen,
	Jiri Slaby, Linux Kbuild mailing list

On 7/18/22 08:49, Masahiro Yamada wrote:
> On Sat, Jul 16, 2022 at 6:33 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>>
>> Here is documentation fixes for kbuild LTO feature tree [1]. Two patches
>> fixes warnings reported by kernel test robot, the others are formatting
>> improvements.
> 
> 
> Please do not submit patches unrelated to the mainline.
> 
> This series applies to the individual repository of Jiri Slaby.
> 

Seems like you missed the wording on cover letter, which said:

> Here is documentation fixes for kbuild LTO feature tree [1]

with link to the target tree, which is another way to say "The
series is applied on top of this tree, not the mainline".

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

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

* Re: [PATCH 0/4] kbuild: lto: documentation fixes
  2022-07-18  7:17   ` Bagas Sanjaya
@ 2022-07-19  7:29     ` Jiri Slaby
  0 siblings, 0 replies; 8+ messages in thread
From: Jiri Slaby @ 2022-07-19  7:29 UTC (permalink / raw)
  To: Bagas Sanjaya, Masahiro Yamada
  Cc: open list:DOCUMENTATION, Linux Kernel Mailing List, Michal Marek,
	Nick Desaulniers, Jonathan Corbet, Martin Liska, Andi Kleen,
	Linux Kbuild mailing list

On 18. 07. 22, 9:17, Bagas Sanjaya wrote:
> On 7/18/22 08:49, Masahiro Yamada wrote:
>> On Sat, Jul 16, 2022 at 6:33 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>>>
>>> Here is documentation fixes for kbuild LTO feature tree [1]. Two patches
>>> fixes warnings reported by kernel test robot, the others are formatting
>>> improvements.
>>
>>
>> Please do not submit patches unrelated to the mainline.
>>
>> This series applies to the individual repository of Jiri Slaby.
>>
> 
> Seems like you missed the wording on cover letter, which said:
> 
>> Here is documentation fixes for kbuild LTO feature tree [1]
> 
> with link to the target tree, which is another way to say "The
> series is applied on top of this tree, not the mainline".

Yeah, but why to send the patches to all those people provided they have 
no idea such a tree and changes exist at all?

Anyway, applied to my tree.

thanks,
-- 
js

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

end of thread, other threads:[~2022-07-19  7:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-16  9:32 [PATCH 0/4] kbuild: lto: documentation fixes Bagas Sanjaya
2022-07-16  9:32 ` [PATCH 1/4] Documentation: lto: add blank line padding before single requirement list Bagas Sanjaya
2022-07-16  9:32 ` [PATCH 2/4] Documentation: lto: use bullet list for FAQ Bagas Sanjaya
2022-07-16  9:32 ` [PATCH 3/4] Documentation: lto: use bullet lists for external link references list Bagas Sanjaya
2022-07-16  9:32 ` [PATCH 4/4] Documentation: lto: add LTO documentation to toc index Bagas Sanjaya
2022-07-18  1:49 ` [PATCH 0/4] kbuild: lto: documentation fixes Masahiro Yamada
2022-07-18  7:17   ` Bagas Sanjaya
2022-07-19  7:29     ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox