Messages in this thread | | | Date | Tue, 11 Oct 2022 08:41:04 +0530 | From | Viresh Kumar <> | Subject | Re: [PATCH] clk: spear: Move prototype to accessible header |
| |
On 10-10-22, 18:01, Stephen Boyd wrote: > __init is meaningless in header files
Technically yes.
But then I grepped include/ and it is widely used, even by core kernel headers. Why is that ? Maybe just to keep prototype consistent ?
Also init.h says:
* If the function has a prototype somewhere, you can also add * __init between closing brace of the prototype and semicolon: * * extern int initialize_foobar_device(int, int, int) __init;
Hmm, I understand that it is just saying that __init can be used after function's name instead of just before, but isn't it also suggesting that headers may also have it (maybe just to keep it consistent) ?
-- viresh
| |