[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251031142100.GEaQTFzKD-nV3kQkhj@fat_crate.local>
Date: Fri, 31 Oct 2025 15:21:00 +0100
From: Borislav Petkov <bp@...en8.de>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Josh Poimboeuf <jpoimboe@...nel.org>, linux-kernel@...r.kernel.org,
linux-tip-commits@...r.kernel.org, Petr Mladek <pmladek@...e.com>,
Joe Lawrence <joe.lawrence@...hat.com>, x86@...nel.org
Subject: Re: [tip: objtool/core] objtool/klp: Add --debug option to show
cloning decisions
On Fri, Oct 31, 2025 at 10:09:44AM -0400, Nathan Chancellor wrote:
> Yeah, that looks good to me and matches the workaround that Peter did in
> include/linux/compiler-clang.h. If cleanup is going to be used more in
> objtool, it might be worth taking that approach there too like:
>
> #ifdef __clang__
> #define __cleanup(func) __maybe_unused __attribute__((__cleanup__(func)))
> #else
> #define __cleanup(func) __attribute__((__cleanup__(func)))
> #endif
LGTM.
I'll wait for the objool-er folks to lemme know what they want before
I productize it.
Thx Nathan!
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists