Re: [PATCH] Fix implicit cast warning in test_klp_state.c

From: Shresth Prasad
Date: Thu Feb 22 2024 - 03:13:31 EST


>Is the declaration of klp_get_state() visible at that >point, i.e. is
>there perhaps any warning about missing >declarations above that?
>
>Otherwise C rules would default to assume an 'int' >return type.

I wasn't aware it works like that. You're right I do see some warnings about implicit function declarations of klp_get_state.

Regards,
Shresth