Nvidia-fs build error

I’m getting the following error while building nvidia-fs(master branch).

 sudo make
Picking NVIDIA driver sources from NVIDIA_SRC_DIR=/usr/src/nvidia-510.47.03/nvidia-peermem. If that does not meet your expectation, you might have a stale driver still around and that might cause problems.
Getting symbol versions from /lib/modules/5.4.0-42-generic/updates/dkms/nvidia.ko ...
Created: /home/ubuntu/e00693/gds-nvidia-fs/src/nv.symvers
checking if uaccess.h access_ok has 3 parameters... no
checking if uaccess.h access_ok has 2 parameters... yes
Checking if blkdev.h has blk_rq_payload_bytes... yes
Checking if fs.h has call_read_iter and call_write_iter... yes
Checking if fs.h has filemap_range_has_page... yes
Checking if security_file_permission API exist... yes
Checking if kiocb structue has ki_complete field... yes
Checking if vm_fault_t exist in mm_types.h... yes
Checking if IOCB_HIPRI flag exists in fs.h... yes
Checking if enum PCIE_SPEED_32_0GT exists in pci.h... yes
Checking if atomic64_t counter is of type long... no
Checking if RQF_COPY_USER is present or not... yes
Checking if dma_drain_size and dma_drain_needed are present in struct request_queue... yes
Checking if struct proc_ops is present or not ... no
Checking if split is present in vm_operations_struct or not ... yes
Checking if mremap in vm_operations_struct has one parameter... yes
Checking if mremap in vm_operations_struct has two parameters... no
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
Makefile:1731: warning: overriding recipe for target '/'
Makefile:1664: warning: ignoring old recipe for target '/'
scripts/Makefile.build:42: //Makefile: No such file or directory
make[2]: *** No rule to make target '//Makefile'.  Stop.
make[1]: *** [Makefile:1731: /] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
make: *** [Makefile:115: module] Error 2

I’m using MLNX_OFED_LINUX-5.4-, ubuntu 20.04.3 with kernel 5.4.0-42, cuda toolkit 11.6.112 and cuda display driver 510.47.03


root caused, no PWD defined in makefile