LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Cc: Michal Marek <michal.lkml@markovi.net>,
Nick Desaulniers <ndesaulniers@google.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/5] kbuild: clean up objtool_args slightly
Date: Tue, 31 Aug 2021 10:41:21 +0900 [thread overview]
Message-ID: <CAK7LNASJZkKVHtFyPDT_aZsZPDwrgU7iaVV6LRg+x2e_bJs2PA@mail.gmail.com> (raw)
In-Reply-To: <20210828095103.2617393-3-masahiroy@kernel.org>
On Sat, Aug 28, 2021 at 6:51 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> The code:
>
> $(if $(or $(CONFIG_GCOV_KERNEL),$(CONFIG_LTO_CLANG)), ...)
>
> ... can be simpled to:
>
> $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), ...)
>
> Also, remove meaningless commas at the end of $(if ...).
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
Applied this to linux-kbuild.
(only 1/5 and 3/5)
> scripts/Makefile.lib | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index af1c920a585c..cd011f3f6f78 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -236,13 +236,12 @@ endif
> # then here to avoid duplication.
> objtool_args = \
> $(if $(CONFIG_UNWINDER_ORC),orc generate,check) \
> - $(if $(part-of-module), --module,) \
> + $(if $(part-of-module), --module) \
> $(if $(CONFIG_FRAME_POINTER),, --no-fp) \
> - $(if $(or $(CONFIG_GCOV_KERNEL),$(CONFIG_LTO_CLANG)), \
> - --no-unreachable,) \
> - $(if $(CONFIG_RETPOLINE), --retpoline,) \
> - $(if $(CONFIG_X86_SMAP), --uaccess,) \
> - $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount,)
> + $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), --no-unreachable)\
> + $(if $(CONFIG_RETPOLINE), --retpoline) \
> + $(if $(CONFIG_X86_SMAP), --uaccess) \
> + $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)
>
> # Useful for describing the dependency of composite objects
> # Usage:
> --
> 2.30.2
>
--
Best Regards
Masahiro Yamada
next prev parent reply other threads:[~2021-08-31 1:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-28 9:50 [PATCH 1/5] modpost: get the *.mod file path more simply Masahiro Yamada
2021-08-28 9:51 ` [PATCH 2/5] kbuild: detect objtool changes correctly without .SECONDEXPANSION Masahiro Yamada
2021-08-31 1:43 ` Masahiro Yamada
2021-08-28 9:51 ` [PATCH 3/5] kbuild: clean up objtool_args slightly Masahiro Yamada
2021-08-31 1:41 ` Masahiro Yamada [this message]
2021-08-28 9:51 ` [PATCH 4/5] kbuild: merge objtool_args into objtool in scripts/Makefile.build Masahiro Yamada
2021-08-28 9:51 ` [PATCH 5/5] kbuild: rebuild *.lto.o when objtool is changed Masahiro Yamada
2021-08-31 1:41 ` [PATCH 1/5] modpost: get the *.mod file path more simply Masahiro Yamada
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=CAK7LNASJZkKVHtFyPDT_aZsZPDwrgU7iaVV6LRg+x2e_bJs2PA@mail.gmail.com \
--to=masahiroy@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=ndesaulniers@google.com \
--subject='Re: [PATCH 3/5] kbuild: clean up objtool_args slightly' \
/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
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).