I am having problems getting any kernel modules to build on my machine. Whenever I build a module, modpost always says there are zero modules:
MODPOST 0 modu
Try to remove modules string from the Makefile:
modules
obj-m = hello.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(shell pwd) # <-- clean: make -C /lib/modules/$(KVERSION)/build M=$(shell pwd) clean