linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kconfig: constify long_opts
Date: Sat, 5 Jun 2021 23:50:11 +0900	[thread overview]
Message-ID: <CAK7LNAQdUtUwuZdx6PfxVtnwZ9Yzde24xv2d7C_xjuYMUmRQxg@mail.gmail.com> (raw)
In-Reply-To: <20210528171321.158586-1-masahiroy@kernel.org>

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

      reply	other threads:[~2021-06-05 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 17:13 [PATCH] kconfig: constify long_opts Masahiro Yamada
2021-06-05 14:50 ` Masahiro Yamada [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK7LNAQdUtUwuZdx6PfxVtnwZ9Yzde24xv2d7C_xjuYMUmRQxg@mail.gmail.com \
    --to=masahiroy@kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).