* [PATCH] kconfig: constify long_opts
@ 2021-05-28 17:13 Masahiro Yamada
2021-06-05 14:50 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2021-05-28 17:13 UTC (permalink / raw)
To: linux-kbuild; +Cc: Masahiro Yamada, linux-kernel
getopt_long() does not modify the logopts structure.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/kconfig/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index bfa1ea8f5f98..5d84b44a2a2a 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -678,7 +678,7 @@ static void check_conf(struct menu *menu)
check_conf(child);
}
-static struct option long_opts[] = {
+static const struct option long_opts[] = {
{"help", no_argument, NULL, 'h'},
{"silent", no_argument, NULL, 's'},
{"oldaskconfig", no_argument, &input_mode_opt, oldaskconfig},
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kconfig: constify long_opts
2021-05-28 17:13 [PATCH] kconfig: constify long_opts Masahiro Yamada
@ 2021-06-05 14:50 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2021-06-05 14:50 UTC (permalink / raw)
To: Linux Kbuild mailing list; +Cc: Linux Kernel Mailing List
On Sat, May 29, 2021 at 2:13 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> getopt_long() does not modify the logopts structure.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
Applied to linux-kbuild.
> scripts/kconfig/conf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
> index bfa1ea8f5f98..5d84b44a2a2a 100644
> --- a/scripts/kconfig/conf.c
> +++ b/scripts/kconfig/conf.c
> @@ -678,7 +678,7 @@ static void check_conf(struct menu *menu)
> check_conf(child);
> }
>
> -static struct option long_opts[] = {
> +static const struct option long_opts[] = {
> {"help", no_argument, NULL, 'h'},
> {"silent", no_argument, NULL, 's'},
> {"oldaskconfig", no_argument, &input_mode_opt, oldaskconfig},
> --
> 2.27.0
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-05 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 17:13 [PATCH] kconfig: constify long_opts Masahiro Yamada
2021-06-05 14:50 ` Masahiro Yamada
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.