Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

error output when building the driver. #1

Open
MichielBruijn opened this issue Dec 10, 2022 · 0 comments
Open

error output when building the driver. #1

MichielBruijn opened this issue Dec 10, 2022 · 0 comments

Comments

@MichielBruijn
Copy link

Hi,

I try to follow your instructions to build the driver for my ubuntu 22.04 server.
When make all the changes and do 'make' I get the following error output:

michiel@unify:~/linux/drivers/net/ethernet/qlogic/qlcnic$ make
make -C /lib/modules/5.15.0-56-generic/build M=/home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'
CC [M] /home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.o
/home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:519:35: error: initialization of ‘int (*)(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char , u16)’ {aka ‘int ()(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char , short unsigned int)’} from incompatible pointer type ‘int ()(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, u16, struct netlink_ext_ack )’ {aka ‘int ()(struct ndmsg *, struct nlattr **, struct net_device *, const unsigned char *, short unsigned int, struct netlink_ext_ack *)’} [-Werror=incompatible-pointer-types]
519 | .ndo_fdb_del = qlcnic_fdb_del,
| ^~~~~~~~~~~~~~
/home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:519:35: note: (near initialization for ‘qlcnic_netdev_ops.ndo_fdb_del’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.o] Error 1
make[1]: *** [Makefile:1903: /home/michiel/linux/drivers/net/ethernet/qlogic/qlcnic] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-56-generic'
make: *** [Makefile:21: all] Error 2

I would love to use this cheap dual sfp nic in my home setup for experimentation.

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

No branches or pull requests

1 participant