functions with empty body in file /kernel/events/core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list

In the /kernel /events /core.c file there are some functions like:
perf_event_free_filter  https://elixir.bootlin.com/linux/v5.8/A/ident/perf_event_free_filter
perf_tp_register   https://elixir.bootlin.com/linux/v5.8/A/ident/perf_tp_register


Who have an empty body,
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? Or is it just missing to eliminate those functions without a body?

very thanks!!.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux