Getting errors while compiling kernel module for 6.2.0

I am compiling the kernel module for Kernel version 6.2.0, i am getting lots of error from the kernel headers. Can anyone help me on this ?

Error : /usr/src/linux-headers-6.2.0-37-generic/include/linux/mm.h:2414:58: error: ‘struct mm_struct’ has no member named ‘pgtables_bytes’

like this i am getting so many error.
Compilation_log.txt (66.4 KB)

Hi @Tamil ,
Can you share the steps you are following and at what steps you are getting errors.