You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install device driver to use PCIe-0400-TSN card in Ubuntu 5.6.19-050619-generic.
I run make and expect .ko file but get errors.
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c: In function‘edgx_get_mem_res’:
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c:110:10: error: implicit declaration of function‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
110 |*base = ioremap_nocache(mem->start, resource_size(mem));| ^~~~~~~~~~~~~~~
| ioremap_cache
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c:110:8: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
110 |*base = ioremap_nocache(mem->start, resource_size(mem));| ^
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c: In function‘edgx_sw_pfm_probe’:
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c:221:8: error: too few arguments to function‘edgx_br_probe_one’
221 | ret = edgx_br_probe_one(bridge_id, &pdev->dev, base, &sw_pfm_drv->irq,
| ^~~~~~~~~~~~~~~~~
In file included from /home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.c:31:
/home/tsnlab1/Desktop/kmod-edge-lkm/edge_bridge.h:66:5: note: declared here
66 | int edgx_br_probe_one(unsigned int br_id, struct device *dev,
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:268: /home/tsnlab1/Desktop/kmod-edge-lkm/edge_platform.o] Error 1
make[1]: *** [Makefile:1695: /home/tsnlab1/Desktop/kmod-edge-lkm] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.19-050619-generic'
I tried to install device driver to use PCIe-0400-TSN card in Ubuntu 5.6.19-050619-generic.
I run
make
and expect .ko file but get errors.Environment:
OS: Ubuntu 5.6.19-050619-generic x86_64
make: GNU Make 4.2.1
gcc: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
commit: b00025a
I think edge_pcie_c10.c and edge_platform.c are missed in f467053.
The text was updated successfully, but these errors were encountered: