linuxkpi: Use modern function declarations
This is a direct commit to stable/13.
Reported by: Jenkins