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

From: Shresth Prasad
Date: Tue Feb 20 2024 - 06:54:06 EST


Looking at the function definition now, I do see that the function returns a struct pointer but for me the compiler still complains about an implicit conversion from int to struct pointer.

Is there any particular reason why this might be happening? I couldn't quite figure it out myself as I am very new to working with the kernel.

Regards,
Shresth