2021-05-17 10:02:45

by Juerg Haefliger

[permalink] [raw]
Subject: [PATCH] init: Remove leading spaces in Kconfig

Remove leading spaces before tabs in Kconfig file(s) by running the
following command:

$ find init -name 'Kconfig*' | xargs sed -r -i 's/^[ ]+\t/\t/'

Signed-off-by: Juerg Haefliger <[email protected]>
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/Kconfig b/init/Kconfig
index 1ea12c64e4c9..9f1cde503739 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2149,7 +2149,7 @@ config MODULE_SRCVERSION_ALL
help
Modules which contain a MODULE_VERSION get an extra "srcversion"
field inserted into their modinfo section, which contains a
- sum of the source files which made it. This helps maintainers
+ sum of the source files which made it. This helps maintainers
see exactly which source was used to build a module (since
others sometimes change the module source without updating
the version). With this option, such a "srcversion" field
--
2.27.0



2021-05-24 19:20:05

by Kees Cook

[permalink] [raw]
Subject: Re: [PATCH] init: Remove leading spaces in Kconfig

On Mon, May 17, 2021 at 11:58:48AM +0200, Juerg Haefliger wrote:
> Remove leading spaces before tabs in Kconfig file(s) by running the
> following command:
>
> $ find init -name 'Kconfig*' | xargs sed -r -i 's/^[ ]+\t/\t/'
>
> Signed-off-by: Juerg Haefliger <[email protected]>

I'm impressed this is the only one! :) (And it's been there a long
time.)

Reviewed-by: Kees Cook <[email protected]>

-Kees

> ---
> init/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/init/Kconfig b/init/Kconfig
> index 1ea12c64e4c9..9f1cde503739 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -2149,7 +2149,7 @@ config MODULE_SRCVERSION_ALL
> help
> Modules which contain a MODULE_VERSION get an extra "srcversion"
> field inserted into their modinfo section, which contains a
> - sum of the source files which made it. This helps maintainers
> + sum of the source files which made it. This helps maintainers
> see exactly which source was used to build a module (since
> others sometimes change the module source without updating
> the version). With this option, such a "srcversion" field
> --
> 2.27.0
>

--
Kees Cook