- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OS:Debian11
KERNEL HEADER : /usr/src/linux-headers-5.10.0-9-amd64
gcc version 10.2.1 20210110 (Debian 10.2.1-6)
ablee@linux-ews:~/pcie-altera/an690$ sudo make
make -C /lib/modules/5.10.0-9-amd64/build M=/home/ablee/pcie-altera/an690
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-9-amd64'
CC [M] /home/ablee/pcie-altera/an690/altera_dma.o
In file included from /home/ablee/pcie-altera/an690/altera_dma.c:14:
/home/ablee/pcie-altera/an690/altera_dma_cmd.h:49:20: error: field ‘write_time’ has incomplete type
49 | struct timeval write_time;
| ^~~~~~~~~~
/home/ablee/pcie-altera/an690/altera_dma_cmd.h:50:20: error: field ‘read_time’ has incomplete type
50 | struct timeval read_time;
| ^~~~~~~~~
/home/ablee/pcie-altera/an690/altera_dma_cmd.h:51:20: error: field ‘simul_time’ has incomplete type
51 | struct timeval simul_time;
| ^~~~~~~~~~
/home/ablee/pcie-altera/an690/altera_dma.c: In function ‘rp_ep_compare’:
/home/ablee/pcie-altera/an690/altera_dma.c:311:3: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
311 | else
| ^~~~
/home/ablee/pcie-altera/an690/altera_dma.c:313:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
313 | printk(KERN_DEBUG "ep_tmp = %08x\n", ep_tmp);
| ^~~~~~
/home/ablee/pcie-altera/an690/altera_dma.c: In function ‘dma_test’:
/home/ablee/pcie-altera/an690/altera_dma.c:368:20: error: storage size of ‘tv1’ isn’t known
368 | struct timeval tv1;
| ^~~
/home/ablee/pcie-altera/an690/altera_dma.c:369:20: error: storage size of ‘tv2’ isn’t known
369 | struct timeval tv2;
| ^~~
/home/ablee/pcie-altera/an690/altera_dma.c:370:20: error: storage size of ‘diff’ isn’t known
370 | struct timeval diff;
| ^~~~
/home/ablee/pcie-altera/an690/altera_dma.c:436:2: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaratio ]
436 | do_gettimeofday(&tv1);
| ^~~~~~~~~~~~~~~
| do_settimeofday64
/home/ablee/pcie-altera/an690/altera_dma.c: In function ‘diff_timeval’:
/home/ablee/pcie-altera/an690/altera_dma.c:937:24: error: invalid use of undefined type ‘struct timeval’
937 | long int diff = (t2->tv_usec + 1000000 * t2->tv_sec) - (t1->tv_usec + 1000000 * t1->tv_sec);
| ^~
/home/ablee/pcie-altera/an690/altera_dma.c:937:48: error: invalid use of undefined type ‘struct timeval’
937 | long int diff = (t2->tv_usec + 1000000 * t2->tv_sec) - (t1->tv_usec + 1000000 * t1->tv_sec);
| ^~
/home/ablee/pcie-altera/an690/altera_dma.c:937:63: error: invalid use of undefined type ‘struct timeval’
937 | long int diff = (t2->tv_usec + 1000000 * t2->tv_sec) - (t1->tv_usec + 1000000 * t1->tv_sec);
| ^~
/home/ablee/pcie-altera/an690/altera_dma.c:937:87: error: invalid use of undefined type ‘struct timeval’
937 | long int diff = (t2->tv_usec + 1000000 * t2->tv_sec) - (t1->tv_usec + 1000000 * t1->tv_sec);
| ^~
/home/ablee/pcie-altera/an690/altera_dma.c:938:11: error: invalid use of undefined type ‘struct timeval’
938 | result->tv_sec = diff / 1000000;
| ^~
/home/ablee/pcie-altera/an690/altera_dma.c:939:11: error: invalid use of undefined type ‘struct timeval’
939 | result->tv_usec = diff % 1000000;
| ^~
In file included from /home/ablee/pcie-altera/an690/altera_dma.c:15:
/home/ablee/pcie-altera/an690/altera_dma.c: At top level:
/home/ablee/pcie-altera/an690/altera_dma.h:171:12: warning: ‘rp_compare’ declared ‘static’ but never defined [-Wunused-function]
171 | static int rp_compare(u8 *virt_addr1, u8 *virt_addr2, u32 num_dwords);
| ^~~~~~~~~~
/home/ablee/pcie-altera/an690/altera_dma.c: In function ‘altera_dma_ioctl’:
/home/ablee/pcie-altera/an690/altera_dma.c:25:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
25 | dma_test(bk_ptr, bk_ptr->pci_dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ablee/pcie-altera/an690/altera_dma.c:26:9: note: here
26 | case ALTERA_CMD_WAIT_DMA:
| ^~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.10.0-9-common/scripts/Makefile.build:285: /home/ablee/pcie-altera/an690/altera_dma.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:1846: /home/ablee/pcie-altera/an690] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-9-amd64'
make: *** [Makefile:13: all] Error 2
Link Copied

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page