mirror of
https://github.com/KastnerRG/riffa.git
synced 2024-12-24 22:58:54 +08:00
Fix compilation of Linux driver (#64)
* Fix typo in #elif * Fix Makefile to compile the Linux kernel module
This commit is contained in:
parent
c2e5b280b4
commit
326c7105ca
@ -98,7 +98,7 @@ $(NAME).ko: *.c *.h
|
||||
sed -i 's/#define VENDOR_ID1 [^\n]*/#define VENDOR_ID1 0x$(VENDOR_ID1)/g' $(DRVR_HDR)
|
||||
sed -i 's/#define DEBUG [^\n]*/#define DBUG 1/g' $(DRVR_HDR)
|
||||
sed -i 's/#define DBUG [^\n]*/#define $(DBUGVAL) 1/g' $(DRVR_HDR)
|
||||
make -C $(KDIR) SUBDIRS=`pwd` modules
|
||||
make -C $(KDIR) M=$(shell pwd) modules
|
||||
rm -rf $(LIB_OBJS)
|
||||
|
||||
$(NAME).so.$(LIB_VER): $(LIB_OBJS)
|
||||
|
@ -463,7 +463,7 @@ static inline struct sg_mapping * fill_sg_buf(struct fpga_state * sc, int chnl,
|
||||
num_pages = get_user_pages(current, current->mm, udata, num_pages_reqd, 1, 0, pages, NULL);
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0)
|
||||
num_pages = get_user_pages(udata, num_pages_reqd, 1, 0, pages, NULL);
|
||||
#elsif LINUX_VERSION_CODE < KERNEL_VERSION(6,5,0)
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,5,0)
|
||||
num_pages = get_user_pages(udata, num_pages_reqd, FOLL_WRITE, pages, NULL);
|
||||
#else
|
||||
num_pages = get_user_pages(udata, num_pages_reqd, FOLL_WRITE, pages);
|
||||
|
Loading…
x
Reference in New Issue
Block a user