mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jessica Yu <jeyu@redhat.com>
To: "Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: rusty@rustcorp.com.au, keescook@chromium.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] module: make the modinfo name const
Date: Thu, 29 Jun 2017 14:23:12 +0200	[thread overview]
Message-ID: <20170629122310.auawf7adi6p3i47r@redbean> (raw)
In-Reply-To: <20170629013231.28075-1-mcgrof@kernel.org>

+++ Luis R. Rodriguez [28/06/17 18:32 -0700]:
>This can be accomplished by makine blacklisted() also accept const.
>
>Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>

Applied, thanks!

>---
> kernel/module.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/kernel/module.c b/kernel/module.c
>index 5ebe3ae2519a..7d679f3bb892 100644
>--- a/kernel/module.c
>+++ b/kernel/module.c
>@@ -302,7 +302,7 @@ int unregister_module_notifier(struct notifier_block *nb)
> EXPORT_SYMBOL(unregister_module_notifier);
>
> struct load_info {
>-	char *name;
>+	const char *name;
> 	Elf_Ehdr *hdr;
> 	unsigned long len;
> 	Elf_Shdr *sechdrs;
>@@ -3382,7 +3382,7 @@ int __weak module_frob_arch_sections(Elf_Ehdr *hdr,
>
> /* module_blacklist is a comma-separated list of module names */
> static char *module_blacklist;
>-static bool blacklisted(char *module_name)
>+static bool blacklisted(const char *module_name)
> {
> 	const char *p;
> 	size_t len;
>-- 
>2.10.2
>

      parent reply	other threads:[~2017-06-29 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29  1:32 Luis R. Rodriguez
2017-06-29  1:34 ` Kees Cook
2017-06-29 12:23 ` Jessica Yu [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=20170629122310.auawf7adi6p3i47r@redbean \
    --to=jeyu@redhat.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=rusty@rustcorp.com.au \
    /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

all inboxes | Powered by JetHome®