Skip to content

Commit 31a79d1

Browse files
Add files via upload
configure.ac: modify timer_container_of check Since timer_container_of is defined as a macro, the checking process has been modified. Signed-off-by: Tatsunosuke Tobita <tatsunosuke.tobita@wacom.com>
1 parent c9e67d2 commit 31a79d1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

configure.ac

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,17 @@ dnl not. This is the case in Linux 6.16 and later.
308308
AC_MSG_CHECKING(timer_container_of)
309309
WACOM_LINUX_TRY_COMPILE([
310310
#include <linux/timer.h>
311-
bool timer_container_of() { return true; }
311+
#ifndef timer_container_of
312+
#error "timer_container_of is not defined"
313+
#endif
312314
],[
313-
],[
314-
HAVE_TIMER_CONTAINER_OF=no
315-
AC_MSG_RESULT([no])
316315
],[
317316
HAVE_TIMER_CONTAINER_OF=yes
318317
AC_MSG_RESULT([yes])
319318
AC_DEFINE([WACOM_TIMER_ADDR_CONTAINER_RENAME], [], [kernel defines timer_container_of from v6.16])
319+
],[
320+
HAVE_TIMER_CONTAINER_OF=no
321+
AC_MSG_RESULT([no])
320322
])
321323

322324
dnl Check which version of the driver we should compile

0 commit comments

Comments
 (0)