- 
                Notifications
    You must be signed in to change notification settings 
- Fork 94
Description
Hello,
I have problem compiling on Arch linux on sewest kernel 6.15.4-arch2-1
make -C /lib/modules/6.15.4-arch2-1/build M=/home/user/Downloads/xmm7360-pci modules
make[1]: Entering directory '/usr/lib/modules/6.15.4-arch2-1/build'
make[2]: Entering directory '/home/user/Downloads/xmm7360-pci'
CC [M]  xmm7360.o
xmm7360.c:656:5: warning: no previous prototype for ‘xmm7360_cdev_open’ [-Wmissing-prototypes]
656 | int xmm7360_cdev_open(struct inode *inode, struct file *file)
|     ^~~~~~~~~~~~~~~~~
xmm7360.c:664:5: warning: no previous prototype for ‘xmm7360_cdev_release’ [-Wmissing-prototypes]
664 | int xmm7360_cdev_release(struct inode *inode, struct file *file)
|     ^~~~~~~~~~~~~~~~~~~~
xmm7360.c:670:9: warning: no previous prototype for ‘xmm7360_cdev_write’ [-Wmissing-prototypes]
670 | ssize_t xmm7360_cdev_write(struct file *file, const char __user *buf,
|         ^~~~~~~~~~~~~~~~~~
xmm7360.c:684:9: warning: no previous prototype for ‘xmm7360_cdev_read’ [-Wmissing-prototypes]
684 | ssize_t xmm7360_cdev_read(struct file *file, char __user *buf, size_t size,
|         ^~~~~~~~~~~~~~~~~
xmm7360.c: In function ‘xmm7360_net_setup’:
xmm7360.c:1114:9: error: implicit declaration of function ‘hrtimer_init’; did you mean ‘hrtimers_init’? [-Wimplicit-function-declaration] 1114 |         hrtimer_init(&xn->deadline, CLOCK_MONOTONIC, HRTIMER_MODE_REL); |         ^~~~~~~~~~~~ |         hrtimers_init
xmm7360.c: In function ‘xmm7360_irq0’:
xmm7360.c:1191:13: warning: the comparison will always evaluate as ‘true’ for the address of ‘td_ring’ will never be NULL [-Waddress]
1191 |         if (xmm->td_ring) {
|             ^~~
xmm7360.c:225:24: note: ‘td_ring’ declared here
225 |         struct td_ring td_ring[16];
|                        ^~~~~~~
xmm7360.c: At top level:
xmm7360.c:1445:6: warning: no previous prototype for ‘xmm7360_dev_init_work’ [-Wmissing-prototypes]
1445 | void xmm7360_dev_init_work(struct work_struct *work)
|      ^~~~~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/lib/modules/6.15.4-arch2-1/build/scripts/Makefile.build:203: xmm7360.o] Error 1
make[3]: *** [/usr/lib/modules/6.15.4-arch2-1/build/Makefile:2003: .] Error 2
make[2]: *** [/usr/lib/modules/6.15.4-arch2-1/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/home/user/Downloads/xmm7360-pci'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.15.4-arch2-1/build'
make: *** [Makefile:9: default] Error 2