No need to guess all the wildcards to remove the intermediate files from module build - we can just use the kernel module build system to clean them up for us. Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> --- tests/module_load/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/module_load/Makefile b/tests/module_load/Makefile index b6eba25..ce34241 100644 --- a/tests/module_load/Makefile +++ b/tests/module_load/Makefile @@ -9,4 +9,4 @@ all: $(TARGETS) clean: rm -f $(TARGETS) - rm -f *.a *.o *.ko *.cmd *.mod *.mod.c .*.cmd Module.symvers modules.order + $(MAKE) -C $(KDIR) M=$(PWD) clean -- 2.31.1