Closed andrejpodzimek closed 2 years ago
I'm getting the same issue.
/var/build_aq_drv/1664641587/Linux/aq_pci_func.c:133:15: error: implicit declaration of function ‘pci_set_dma_mask’ [-Werror=implicit-function-declaration]
133 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
Please check v2.5.5 - should be fixed.
I'm able to make now but I can't load the module.
joshu@server:~/AQtion$ sudo make
[sudo] password for joshu:
make -j4 -C /lib/modules/5.19.11-051911-generic/build M="/home/joshu/AQtion" modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.11-051911-generic'
CC [M] /home/joshu/AQtion/aq_main.o
CC [M] /home/joshu/AQtion/aq_nic.o
CC [M] /home/joshu/AQtion/aq_pci_func.o
CC [M] /home/joshu/AQtion/aq_vec.o
CC [M] /home/joshu/AQtion/aq_ring.o
CC [M] /home/joshu/AQtion/aq_ptp.o
CC [M] /home/joshu/AQtion/aq_filters.o
CC [M] /home/joshu/AQtion/aq_hw_utils.o
CC [M] /home/joshu/AQtion/aq_ethtool.o
CC [M] /home/joshu/AQtion/aq_drvinfo.o
CC [M] /home/joshu/AQtion/aq_trace.o
CC [M] /home/joshu/AQtion/aq_phy.o
CC [M] /home/joshu/AQtion/aq_compat.o
CC [M] /home/joshu/AQtion/aq_tsn.o
CC [M] /home/joshu/AQtion/aq_sysfs.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_a0.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_b0.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_utils.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_utils_fw2x.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_llh.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_fw_hostboot.o
CC [M] /home/joshu/AQtion/hw_atl/hw_atl_fw_image.o
CC [M] /home/joshu/AQtion/hw_atl2/hw_atl2_llh.o
CC [M] /home/joshu/AQtion/hw_atl2/hw_atl2.o
CC [M] /home/joshu/AQtion/hw_atl2/hw_atl2_utils.o
CC [M] /home/joshu/AQtion/hw_atl2/hw_atl2_utils_fw.o
CC [M] /home/joshu/AQtion/hw_atl2/hw_atl2_fw_hostboot.o
CC [M] /home/joshu/AQtion/macsec/macsec_api.o
CC [M] /home/joshu/AQtion/aq_dash.o
CC [M] /home/joshu/AQtion/aq_macsec.o
LD [M] /home/joshu/AQtion/atlantic.o
MODPOST /home/joshu/AQtion/Module.symvers
CC [M] /home/joshu/AQtion/atlantic.mod.o
LD [M] /home/joshu/AQtion/atlantic.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.19.11-051911-generic'
joshu@server:~/AQtion$ sudo rmmod atlantic
rmmod: ERROR: Module atlantic is not currently loaded
joshu@server:~/AQtion$ sudo make load
modprobe ptp
modprobe crc_itu_t
modprobe -q macsec || true
insmod ./atlantic.ko
insmod: ERROR: could not insert module ./atlantic.ko: Invalid module format
make: *** [Makefile:49: load] Error 1
joshu@server:~/AQtion$
Something is wrong with your build or your kernel config. please check dmesg for any other errors/hints. I'm closing this ticket.
There are (at least) two errors: