lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <152261533587.30503.7461802756178219198.stgit@warthog.procyon.org.uk> Date: Sun, 01 Apr 2018 21:42:15 +0100 From: David Howells <dhowells@...hat.com> To: linux-kernel@...r.kernel.org Subject: [PATCH 20/45] C++: init/main: Constify pointers ramdisk_execute_command and initcall_level_names should be const char * pointers. Signed-off-by: David Howells <dhowells@...hat.com> --- init/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index 969eaf140ef0..642e917387db 100644 --- a/init/main.c +++ b/init/main.c @@ -135,7 +135,7 @@ static char *static_command_line; static char *initcall_command_line; static char *execute_command; -static char *ramdisk_execute_command; +static const char *ramdisk_execute_command; /* * Used to generate warnings if static_key manipulation functions are used @@ -873,7 +873,7 @@ static initcall_t *initcall_levels[] __initdata = { }; /* Keep these in sync with initcalls in include/linux/init.h */ -static char *initcall_level_names[] __initdata = { +static const char *initcall_level_names[] __initconst = { "early", "core", "postcore",
Powered by blists - more mailing lists