Skip to content

the drivers fail to build on RH 9.6 #103

@ykulik-rbc

Description

@ykulik-rbc

On kernel 5.14.0-570.17.1.el9_6 the driver build fails with the error below. Kernel structure ethtool_ts_info was renamed to kernel_ethtool_ts_info . Changing the structure name fixes the issue.

make[2]: Entering directory '/usr/src/kernels/5.14.0-570.17.1.el9_6.x86_64'
CC [M] /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-main.o
CC [M] /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-filter.o
CC [M] /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-ctx.o
CC [M] /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-dev.o
CC [M] /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-netdev.o
/data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-netdev.c:1668:31: error: initialization of ‘int (*)(struct net_device *, struct kernel_ethtool_ts_info )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_ts_info *)’ [-Werror=incompatible-pointer-types]
1668 | .get_ts_info = exanic_netdev_get_ts_info,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-netdev.c:1668:31: note: (near initialization for ‘exanic_ethtool_ops.get_ts_info’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:249: /data1/home/ykulik/exanic-software-2.7.5/modules/exanic/exanic-netdev.o] Error 1
make[2]: *** [Makefile:1947: /data1/home/ykulik/exanic-software-2.7.5/modules/exanic] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-570.17.1.el9_6.x86_64'
make[1]: *** [Makefile:27: default] Error 2
make[1]: Leaving directory '/data1/home/ykulik/exanic-software-2.7.5/modules/exanic'
make: *** [Makefile:9: modules] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions