]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
objtool: Rename --Werror to --werror
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:42 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:46:48 +0000 (14:46 -0700)
The objtool --Werror option name is stylistically inconsistent: halfway
between GCC's single-dash capitalized -Werror and objtool's double-dash
--lowercase convention, making it unnecessarily hard to remember.

Make the 'W' lower case (--werror) for consistency with objtool's other
options.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
scripts/Makefile.lib
scripts/Makefile.vmlinux_o
tools/objtool/builtin-check.c

index b95560266124058b3b1bb224cdda3398e5e9a847..15fee73e9289554e2f6896d5edd283c8837ff733 100644 (file)
@@ -191,7 +191,7 @@ objtool-args-$(CONFIG_HAVE_STATIC_CALL_INLINE)              += --static-call
 objtool-args-$(CONFIG_HAVE_UACCESS_VALIDATION)         += --uaccess
 objtool-args-$(or $(CONFIG_GCOV_KERNEL),$(CONFIG_KCOV))        += --no-unreachable
 objtool-args-$(CONFIG_PREFIX_SYMBOLS)                  += --prefix=$(CONFIG_FUNCTION_PADDING_BYTES)
-objtool-args-$(CONFIG_OBJTOOL_WERROR)                  += --Werror
+objtool-args-$(CONFIG_OBJTOOL_WERROR)                  += --werror
 
 objtool-args = $(objtool-args-y)                                       \
        $(if $(delay-objtool), --link)                                  \
index 23c8751285d790bd5c76c78f07f47426da7922a8..20533cc0b1eed71d412d6183b544c40f5cd74e3d 100644 (file)
@@ -41,7 +41,7 @@ objtool-enabled := $(or $(delay-objtool),$(CONFIG_NOINSTR_VALIDATION))
 ifeq ($(delay-objtool),y)
 vmlinux-objtool-args-y                                 += $(objtool-args-y)
 else
-vmlinux-objtool-args-$(CONFIG_OBJTOOL_WERROR)          += --Werror
+vmlinux-objtool-args-$(CONFIG_OBJTOOL_WERROR)          += --werror
 endif
 
 vmlinux-objtool-args-$(CONFIG_NOINSTR_VALIDATION)      += --noinstr \
index fcd4a651789693842ef9c1e7cafd92a2f71db927..2aa28af8fb09ee5fd949c1a72e5fbd6f93cc913d 100644 (file)
@@ -101,7 +101,7 @@ static const struct option check_options[] = {
        OPT_BOOLEAN(0,   "sec-address", &opts.sec_address, "print section addresses in warnings"),
        OPT_BOOLEAN(0,   "stats", &opts.stats, "print statistics"),
        OPT_BOOLEAN('v', "verbose", &opts.verbose, "verbose warnings"),
-       OPT_BOOLEAN(0,   "Werror", &opts.werror, "return error on warnings"),
+       OPT_BOOLEAN(0,   "werror", &opts.werror, "return error on warnings"),
 
        OPT_END(),
 };