Skip to content

Compilation error in Debian Unstable #3

@N-Mi

Description

@N-Mi

Hi,

I'm trying to compile this driver in order to read/write eFuse from a AX88772A dongle, but I have this output :

$ LANG=C make
make -C /lib/modules/6.12.32-amd64/build M=/tmp/ax-usb-nic modules
make[1]: Entering directory '/usr/src/linux-headers-6.12.32-amd64'
  CC [M]  /tmp/ax-usb-nic/ax88179a_772d.o
/tmp/ax-usb-nic/ax88179a_772d.c:301:27: error: initialization of 'int (*)(struct net_device *, struct ethtool_keee *)' from incompatible pointer type 'int (*)(struct net_device *, struct ethtool_eee *)' [-Wincompatible-pointer-types]
  301 |         .get_eee        = ax88179a_get_eee,
      |                           ^~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:301:27: note: (near initialization for 'ax88179a_ethtool_ops.get_eee')
/tmp/ax-usb-nic/ax88179a_772d.c:302:27: error: initialization of 'int (*)(struct net_device *, struct ethtool_keee *)' from incompatible pointer type 'int (*)(struct net_device *, struct ethtool_eee *)' [-Wincompatible-pointer-types]
  302 |         .set_eee        = ax88179a_set_eee,
      |                           ^~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:302:27: note: (near initialization for 'ax88179a_ethtool_ops.set_eee')
/tmp/ax-usb-nic/ax88179a_772d.c:355:6: warning: no previous prototype for 'ax88179a_get_fw_version' [-Wmissing-prototypes]
  355 | void ax88179a_get_fw_version(struct ax_device *axdev)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:373:5: warning: no previous prototype for 'ax88179a_signature' [-Wmissing-prototypes]
  373 | int ax88179a_signature(struct ax_device *axdev, struct _ax_ioctl_command *info)
      |     ^~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:379:5: warning: no previous prototype for 'ax88179a_read_version' [-Wmissing-prototypes]
  379 | int ax88179a_read_version(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:395:5: warning: no previous prototype for 'ax88179a_write_flash' [-Wmissing-prototypes]
  395 | int ax88179a_write_flash(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:450:5: warning: no previous prototype for 'ax88179a_read_flash' [-Wmissing-prototypes]
  450 | int ax88179a_read_flash(struct ax_device *axdev, struct _ax_ioctl_command *info)
      |     ^~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:490:5: warning: no previous prototype for 'ax88179a_program_efuse' [-Wmissing-prototypes]
  490 | int ax88179a_program_efuse(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:517:5: warning: no previous prototype for 'ax88179a_dump_efuse' [-Wmissing-prototypes]
  517 | int ax88179a_dump_efuse(struct ax_device *axdev, struct _ax_ioctl_command *info)
      |     ^~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:543:5: warning: no previous prototype for 'ax88179a_boot_to_rom' [-Wmissing-prototypes]
  543 | int ax88179a_boot_to_rom(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:566:5: warning: no previous prototype for 'ax88179a_erase_flash' [-Wmissing-prototypes]
  566 | int ax88179a_erase_flash(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:600:5: warning: no previous prototype for 'ax88179a_erase_sector_flash' [-Wmissing-prototypes]
  600 | int ax88179a_erase_sector_flash(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:634:5: warning: no previous prototype for 'ax88179a_sw_reset' [-Wmissing-prototypes]
  634 | int ax88179a_sw_reset(struct ax_device *axdev, struct _ax_ioctl_command *info)
      |     ^~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:662:5: warning: no previous prototype for 'ax88179a_ieee_test' [-Wmissing-prototypes]
  662 | int ax88179a_ieee_test(struct ax_device *axdev, struct _ax_ioctl_command *info)
      |     ^~~~~~~~~~~~~~~~~~
/tmp/ax-usb-nic/ax88179a_772d.c:806:5: warning: no previous prototype for 'ax88179a_autosuspend_en' [-Wmissing-prototypes]
  806 | int ax88179a_autosuspend_en(struct ax_device *axdev,
      |     ^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-6.12.32-common/scripts/Makefile.build:234: /tmp/ax-usb-nic/ax88179a_772d.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.12.32-common/Makefile:1970: /tmp/ax-usb-nic] Error 2
make[1]: *** [/usr/src/linux-headers-6.12.32-common/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.12.32-amd64'
make: *** [Makefile:81: all] Error 2

Current kernel is 6.12.32-1 on Debian Unstable.

Any idea ?

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