Thread (3 messages) 3 messages, 3 authors, 2020-11-24

Re: violating function pointer signature

From: Florian Weimer <hidden>
Date: 2020-11-18 14:18:40
Also in: bpf, linux-toolchains, lkml

Possibly related (same subject, not in this thread)

* Peter Zijlstra:
quoted
The default Linux calling conventions are all of the cdecl family,
where the caller pops the argument off the stack.  You didn't quote
enough to context to tell whether other calling conventions matter in
your case.
This is strictly in-kernel, and I think we're all cdecl, of which the
important part is caller-cleanup. The function compiles to:

	RET

so whatever the arguments are is irrelevant.
Yes, then the stub is ABI-compatible, as far as I know.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help