functions with empty body in file /kernel/events/core
Valdis Kl=?utf-8?Q?=c4=93?=tnieks
valdis.kletnieks at vt.edu
Sat Aug 8 15:56:49 EDT 2020
On Sat, 08 Aug 2020 12:48:08 -0500, cristian andres vargas gonzalez said:
> Who have an empty body,
Which is a reasonable thing to have, if the function doesn't do anything on a given
architecture or configuration.
> I understand that they are inside a conditional created by the preprocessor
> directives and also that they are called in some parts of the code , but would
> it really be necessary that when the directive is not true to leave the
> function with the body empty, would it be a solution?
I admit being confoozled here - would leaving a function with an empty body be
a solution? Obviously it *would* be one, because the kernel currently does
that.
> Or is it just missing to eliminate those functions without a body?
Feel free to try it and see what happens. :) (Make sure to try two different
configs, one that includes the version that has the non-empty body, and
one that tries to call the eliminated function without a body).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200808/6f54150c/attachment.sig>
More information about the Kernelnewbies
mailing list