#1147959 lttng-modules-dkms: fails to build module for Linux >= 6.12.91

#1147959#5
Date:
2026-09-15 17:59:19 UTC
From:
To:
Installation fails during the dkms build phase on kernels >= 6.12.91
with the following error:

In file included from /var/lib/dkms/lttng-modules/2.13.18/build/src/probes/../../include/lttng/define_trace.h:87,
                 from /var/lib/dkms/lttng-modules/2.13.18/build/src/probes/../../include/instrumentation/events/timer.h:422,
                 from /var/lib/dkms/lttng-modules/2.13.18/build/src/probes/lttng-probe-timer.c:30:
/var/lib/dkms/lttng-modules/2.13.18/build/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_hrtimer_start’; have ‘void(struct hrtimer *, enum hrtimer_mode)’
  133 | void trace_##_name(_proto);
      |      ^~~~~~
/var/lib/dkms/lttng-modules/2.13.18/build/src/probes/../../include/lttng/tracepoint-event-impl.h:45:9: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
   45 |         LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lttng-modules/2.13.18/build/src/probes/../../include/instrumentation/events/timer.h:214:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
  214 | LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.12.107+deb13-common/include/trace/events/timer.h:8,
                 from /var/lib/dkms/lttng-modules/2.13.18/build/src/probes/lttng-probe-timer.c:19:
/usr/src/linux-headers-6.12.107+deb13-common/include/linux/tracepoint.h:275:28: note: previous definition of ‘trace_hrtimer_start’ with type ‘void(struct hrtimer *, enum hrtimer_mode,  bool)’ {aka ‘void(struct hrtimer *, enum hrtimer_mode,  _Bool)’}
  275 |         static inline void trace_##name(proto)                          \
      |                            ^~~~~~
/usr/src/linux-headers-6.12.107+deb13-common/include/linux/tracepoint.h:453:9: note: in expansion of macro ‘__DECLARE_TRACE’
  453 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
      |         ^~~~~~~~~~~~~~~
/usr/src/linux-headers-6.12.107+deb13-common/include/linux/tracepoint.h:587:9: note: in expansion of macro ‘DECLARE_TRACE’
  587 |         DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
      |         ^~~~~~~~~~~~~
/usr/src/linux-headers-6.12.107+deb13-common/include/trace/events/timer.h:223:1: note: in expansion of macro ‘TRACE_EVENT’
  223 | TRACE_EVENT(hrtimer_start,
      | ^~~~~~~~~~~