hi @FranciscoD, The sceenshot of the dnf whatprovides. I am attaching here. The package that are shown in whatprovides is kernel-devel and kernel-debug-devel well I tried to install it again, it show that I installed already [ I installed these in mid october], the simple kernel program that I have wrote run fine in other linux(in kali I have tried).
I have seen an article in bugzilla.redhat which does not make much sense to me I am new to linux. I tried make oldconfig && make prepare in /usr/src/kernels/$(uname -r) but that also not worked
The most common issue when a header cannot be found is that the compilation command does not know where to find them, so that’s the -I flag generally. So you need to see where in your compilation scripts this is set and correctly set it to point where the kernel headers are placed by the kernel-devel package.