Re: [PATCH bpf-next v2 1/2] bpf, arm64: Support up to 12 function arguments

From: Xu Kuohai
Date: Tue May 27 2025 - 05:10:19 EST


On 5/27/2025 4:45 PM, Alexis Lothoré wrote:

[...]

+ /* We can not know for sure about exact alignment needs for
+ * struct passed on stack, so deny those
+ */
+ if (m->arg_flags[i] & BTF_FMODEL_STRUCT_ARG)
+ return -EOPNOTSUPP;
leave the error code as is, namely, return -ENOTSUPP?
Actually this change follows a complaint from checkpatch:

"WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP"

Seems we can just ignore this warning, as ENOTSUPP is already used
throughout bpf, and the actual value -524 is well recognized.

[...]