* Re: treewide: replace '---help---' in Kconfig files with 'help'
[not found] <git-mailbomb-linux-master-a7f7f6248d9740d710fd6bd190293fe5e16410ac@kernel.org>
@ 2020-06-15 8:06 ` Geert Uytterhoeven
2020-06-19 4:36 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-06-15 8:06 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: linux-kernel
Hi Yamada-san,
On Sat, 13 Jun 2020, Linux Kernel Mailing List wrote:
> Commit: a7f7f6248d9740d710fd6bd190293fe5e16410ac
> Parent: e4a42c82e943b97ce124539fcd7a47445b43fa0d
> Refname: refs/heads/master
> Web: https://git.kernel.org/torvalds/c/a7f7f6248d9740d710fd6bd190293fe5e16410ac
> Author: Masahiro Yamada <masahiroy@kernel.org>
> AuthorDate: Sun Jun 14 01:50:22 2020 +0900
> Committer: Masahiro Yamada <masahiroy@kernel.org>
> CommitDate: Sun Jun 14 01:57:21 2020 +0900
>
> treewide: replace '---help---' in Kconfig files with 'help'
>
> Since commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
> '---help---'"), the number of '---help---' has been gradually
> decreasing, but there are still more than 2400 instances.
>
> This commit finishes the conversion. While I touched the lines,
> I also fixed the indentation.
>
> There are a variety of indentation styles found.
>
> a) 4 spaces + '---help---'
> b) 7 spaces + '---help---'
> c) 8 spaces + '---help---'
> d) 1 space + 1 tab + '---help---'
> e) 1 tab + '---help---' (correct indentation)
> f) 1 tab + 1 space + '---help---'
> g) 1 tab + 2 spaces + '---help---'
>
> In order to convert all of them to 1 tab + 'help', I ran the
> following commend:
>
> $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
> index 88b05b5256a9..1fa2fe2ef053 100644
> --- a/arch/ia64/Kconfig
> +++ b/arch/ia64/Kconfig
> @@ -266,7 +266,7 @@ config PERMIT_BSP_REMOVE
> bool "Support removal of Bootstrap Processor"
> depends on HOTPLUG_CPU
> default n
> - ---help---
> + help
> Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
> support.
>
> @@ -274,7 +274,7 @@ config FORCE_CPEI_RETARGET
> bool "Force assumption that CPEI can be re-targeted"
> depends on PERMIT_BSP_REMOVE
> default n
> - ---help---
> + help
> Say Y if you need to force the assumption that CPEI can be re-targeted to
> any cpu in the system. This hint is available via ACPI 3.0 specifications.
> Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
I guess help text blocks like the above should be indented?
Unfortunately there are many of them.
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: treewide: replace '---help---' in Kconfig files with 'help'
2020-06-15 8:06 ` treewide: replace '---help---' in Kconfig files with 'help' Geert Uytterhoeven
@ 2020-06-19 4:36 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2020-06-19 4:36 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux Kernel Mailing List
On Mon, Jun 15, 2020 at 5:06 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Yamada-san,
>
> On Sat, 13 Jun 2020, Linux Kernel Mailing List wrote:
> > Commit: a7f7f6248d9740d710fd6bd190293fe5e16410ac
> > Parent: e4a42c82e943b97ce124539fcd7a47445b43fa0d
> > Refname: refs/heads/master
> > Web: https://git.kernel.org/torvalds/c/a7f7f6248d9740d710fd6bd190293fe5e16410ac
> > Author: Masahiro Yamada <masahiroy@kernel.org>
> > AuthorDate: Sun Jun 14 01:50:22 2020 +0900
> > Committer: Masahiro Yamada <masahiroy@kernel.org>
> > CommitDate: Sun Jun 14 01:57:21 2020 +0900
> >
> > treewide: replace '---help---' in Kconfig files with 'help'
> >
> > Since commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
> > '---help---'"), the number of '---help---' has been gradually
> > decreasing, but there are still more than 2400 instances.
> >
> > This commit finishes the conversion. While I touched the lines,
> > I also fixed the indentation.
> >
> > There are a variety of indentation styles found.
> >
> > a) 4 spaces + '---help---'
> > b) 7 spaces + '---help---'
> > c) 8 spaces + '---help---'
> > d) 1 space + 1 tab + '---help---'
> > e) 1 tab + '---help---' (correct indentation)
> > f) 1 tab + 1 space + '---help---'
> > g) 1 tab + 2 spaces + '---help---'
> >
> > In order to convert all of them to 1 tab + 'help', I ran the
> > following commend:
> >
> > $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
> >
> > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> > diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
> > index 88b05b5256a9..1fa2fe2ef053 100644
> > --- a/arch/ia64/Kconfig
> > +++ b/arch/ia64/Kconfig
> > @@ -266,7 +266,7 @@ config PERMIT_BSP_REMOVE
> > bool "Support removal of Bootstrap Processor"
> > depends on HOTPLUG_CPU
> > default n
> > - ---help---
> > + help
> > Say Y here if your platform SAL will support removal of BSP with HOTPLUG_CPU
> > support.
> >
> > @@ -274,7 +274,7 @@ config FORCE_CPEI_RETARGET
> > bool "Force assumption that CPEI can be re-targeted"
> > depends on PERMIT_BSP_REMOVE
> > default n
> > - ---help---
> > + help
> > Say Y if you need to force the assumption that CPEI can be re-targeted to
> > any cpu in the system. This hint is available via ACPI 3.0 specifications.
> > Tiger4 systems are capable of re-directing CPEI to any CPU other than BSP.
>
> I guess help text blocks like the above should be indented?
> Unfortunately there are many of them.
Yes, the help body should be indented by 1 tab + 2 spaces,
which is documented in
Documentation/process/coding-style.rst
Since there are too many, I cannot fix them all.
> Thanks!
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-19 4:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <git-mailbomb-linux-master-a7f7f6248d9740d710fd6bd190293fe5e16410ac@kernel.org>
2020-06-15 8:06 ` treewide: replace '---help---' in Kconfig files with 'help' Geert Uytterhoeven
2020-06-19 4:36 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®