diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2022-06-25 11:34:21 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2022-06-27 12:09:55 +0200 |
| commit | fd3f7de6113aebe927d9bfff0f485e48a6edf68e (patch) | |
| tree | 65233a6f0e9fad30e37546e3554e6f8e083930c8 /compat-linux.c | |
| parent | 102baa11391d48e5da57519df53b7b8d7d751887 (diff) | |
| download | sparse-dev-fd3f7de6113aebe927d9bfff0f485e48a6edf68e.tar.gz | |
inline: comment about creating node of node on variadics
When inlining a variadic function the extra arguments are
added in the declaration list as SYM_NODE but these arguments
can already be SYM_NODEs.
Sparse doesn't support everywhere such nested nodes (they must
be merged) but in this case it's fine as the node will be merged
when evaluated.
Add a comment telling the situation is fine.
Also, move the code to where the variadic arguments are handled
since the fixed one will be anyway directly overwritten.
Note: Sparse doesn't really support inlining of variadic functions
but is fine when the arguments are not used (and such cases
occur in the kernel).
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'compat-linux.c')
0 files changed, 0 insertions, 0 deletions
