Re: [PATCH bpf-next] bpf: Remove unused BTF_FMODEL_STRUCT_ARG

Leon Hwang <[email protected]> Mon, 3 Aug 2026 13:37:30 +0800
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
On 3/8/26 13:27, Yonghong Song wrote:
> Commit 814cba835ef6 ("bpf, x86: Fix trampoline stack size for 128-bit
> arguments") changed the x86 trampoline to compute the number of
> registers from arg_size for every argument, which removed the last user
> of BTF_FMODEL_STRUCT_ARG. No other architecture or verifier code looks
> at the flag, so remove the macro and the code in __get_type_fmodel_flags()
> which sets it.
> 
> Keep BTF_FMODEL_SIGNED_ARG at BIT(1) rather than renumbering it to
> BIT(0), so BIT(0) is available for a future flag.
> 
> No functional change.
> 
> Signed-off-by: Yonghong Song <[email protected]>


Acked-by: Leon Hwang <[email protected]>

> [...]