On 8/10/22 15:01, neutrino network wrote:
> How to update linux-headers for kernel (6.0.0) compiled from source in centos?
> 
> System has kernel 4.18 headers while kernel is 6.0, however userspace program 
> generates  error e.g*fatal error: linux/mutex.h: No such file or directory*

linux/mutex.h is a kernel header.  User-space programs don't use those.

Are you trying to compile an out-of-tree module by any chance?  If so, you 
should
probably install the kernel development headers packaged by your distribution,
and point your makefile to those (or you can just point it to the directory 
where
you built your kernel).

Hope that helps.

Scott.

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to