Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error: too few arguments to function ‘edgx_br_probe_one’ #1

Open
MichelleJin12 opened this issue Jun 17, 2022 · 0 comments

Comments

@MichelleJin12
Copy link

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'

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant