Bug#1081372: dahdi-dkms: module fails to build with gcc-14: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type

Andreas Beckmann anbe at debian.org
Wed Sep 11 09:04:02 BST 2024


Package: dahdi-dkms
Version: 1:3.1.0+git20230717~dfsg-7
Severity: important

Hi,

dahdi-dkms fails to build a module for Linux 6.11 in experimental.
I haven't looked in detail, but this is probably caused by the switch
from gcc-13 to gcc-14 (and not a kernel interface change).
gcc-14 enabled -Werror=incompatible-pointer-types etc. by default.

DKMS make.log for dahdi-3.1.0+git20230717 for kernel 6.11-rc5-amd64 (x86_64)
Wed Sep 11 07:52:45 UTC 2024
make -C /lib/modules/6.11-rc5-amd64/build KBUILD_EXTMOD=/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/3.1.0+git20230717/build/include DAHDI_MODULES_EXTRA="dahdi_dummy.o dahdi_echocan_oslec.o " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/linux-headers-6.11-rc5-amd64'
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/icE1usb/icE1usb.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/apilib/bt/octapi_bt0.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/apilib/largmath/octapi_largmath.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/apilib/llman/octapi_llman.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/oct612x-user.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/oct612x/oct612x.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.o
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.c:1157:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
 1157 | static void inline t4_hdlc_xmit_fifo(struct t4 *wc, unsigned int span, struct t4_span *ts)
      | ^~~~~~
In file included from /usr/src/linux-headers-6.11-rc5-common/include/linux/srcu.h:21,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/notifier.h:16,
                 from /usr/src/linux-headers-6.11-rc5-common/arch/x86/include/asm/uprobes.h:13,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/uprobes.h:49,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/mm_types.h:16,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/mmzone.h:22,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/gfp.h:7,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/kmod.h:9,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/module.h:17,
                 from /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.c:32:
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.c: In function 'free_wc':
/usr/src/linux-headers-6.11-rc5-common/include/linux/workqueue.h:724:9: warning: call to '__warn_flushing_systemwide_wq' declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  724 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.c:2016:9: note: in expansion of macro 'flush_scheduled_work'
 2016 |         flush_scheduled_work();
      |         ^~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/vpm450m.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/wct4xxp.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctc4xxp/base.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctc4xxp/wctc4xxp.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.o
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c: In function 'wait_access':
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:1504:17: warning: "MAX" redefined
 1504 |         #define MAX 10 /* attempts */
      |                 ^~~
In file included from /usr/src/linux-headers-6.11-rc5-common/include/linux/kernel.h:28,
                 from /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:41:
/usr/src/linux-headers-6.11-rc5-common/include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
In file included from /usr/src/linux-headers-6.11-rc5-common/include/linux/srcu.h:21,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/notifier.h:16,
                 from /usr/src/linux-headers-6.11-rc5-common/arch/x86/include/asm/uprobes.h:13,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/uprobes.h:49,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/mm_types.h:16,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/mmzone.h:22,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/gfp.h:7,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/kmod.h:9,
                 from /usr/src/linux-headers-6.11-rc5-common/include/linux/module.h:17,
                 from /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:43:
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c: In function 'wctdm_remove_one':
/usr/src/linux-headers-6.11-rc5-common/include/linux/workqueue.h:724:9: warning: call to '__warn_flushing_systemwide_wq' declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  724 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:5999:9: note: in expansion of macro 'flush_scheduled_work'
 5999 |         flush_scheduled_work();
      |         ^~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-6.11-rc5-common/include/linux/workqueue.h:724:9: warning: call to '__warn_flushing_systemwide_wq' declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  724 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:5999:9: note: in expansion of macro 'flush_scheduled_work'
 5999 |         flush_scheduled_work();
      |         ^~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-6.11-rc5-common/include/linux/workqueue.h:724:9: warning: call to '__warn_flushing_systemwide_wq' declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  724 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/base.c:5999:9: note: in expansion of macro 'flush_scheduled_work'
 5999 |         flush_scheduled_work();
      |         ^~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/xhfc.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wctdm24xxp/wctdm24xxp.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wcte12xp/base.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wcte12xp/wcte12xp.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/voicebus.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/GpakCust.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/GpakApi.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/voicebus_net.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/vpmoct.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/voicebus/dahdi_voicebus.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wcb4xxp/base.o
  LD [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wcb4xxp/wcb4xxp.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-core.o
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.o
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:469:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
  469 |         .match = astribank_match,
      |                  ^~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:469:18: note: (near initialization for 'toplevel_bus_type.match')
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:825:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
  825 |         .match = xpd_match,
      |                  ^~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:825:18: note: (near initialization for 'xpd_type.match')
make[4]: *** [/usr/src/linux-headers-6.11-rc5-common/scripts/Makefile.build:249: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.11-rc5-common/scripts/Makefile.build:490: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp] Error 2
make[2]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:1950: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi] Error 2
make[1]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.11-rc5-amd64'
make: *** [Makefile:74: modules] Error 2
make -C /lib/modules/6.11-rc5-amd64/build KBUILD_EXTMOD=/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/3.1.0+git20230717/build/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/linux-headers-6.11-rc5-amd64'
  CC [M]  /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.o
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:469:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
  469 |         .match = astribank_match,
      |                  ^~~~~~~~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:469:18: note: (near initialization for 'toplevel_bus_type.match')
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:825:18: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
  825 |         .match = xpd_match,
      |                  ^~~~~~~~~
/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.c:825:18: note: (near initialization for 'xpd_type.match')
make[4]: *** [/usr/src/linux-headers-6.11-rc5-common/scripts/Makefile.build:249: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp/xbus-sysfs.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.11-rc5-common/scripts/Makefile.build:490: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/xpp] Error 2
make[2]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:1950: /var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi] Error 2
make[1]: *** [/usr/src/linux-headers-6.11-rc5-common/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.11-rc5-amd64'
make: *** [Makefile:74: modules] Error 2

Andreas



More information about the Pkg-voip-maintainers mailing list