inline: comment about creating node of node on variadics
commitfd3f7de6113aebe927d9bfff0f485e48a6edf68e
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sat, 25 Jun 2022 09:34:21 +0000 (25 11:34 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 27 Jun 2022 10:09:55 +0000 (27 12:09 +0200)
tree65233a6f0e9fad30e37546e3554e6f8e083930c8
parent102baa11391d48e5da57519df53b7b8d7d751887
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>
inline.c