[Banana Pi BPI-M5] Need help compiling watchdog driver

Hello, I installed watchdog, but whenever I try to start service I get modprobe: FATAL: Module softdog not found in directory /lib/modules/4.9.241-BPI-M5

Tried to follow these steps : https://github.com/ayufan-rock64/linux-build/issues/191#issuecomment-460211682 , but whenever I run “make”, I get the following error

/home/myhome/amlogic-linux/drivers/watchdog/watchdog_core.c:29:21: error: expected ‘)’ before ‘KBUILD_MODNAME’