[BUG] topology.c fails to build with clang-24

From: Marc Kleine-Budde

Date: Sat Nov 21 2026 - 13:41:34 EST


Hello,

current Linus master commit c44104f3642d ("Merge tag
'drm-fixes-2026-11-21' of https://gitlab.freedesktop.org/drm/kernel";)
fails to build with Debian's clang-24 from experimental:

| $ clang-24 --version
| Debian clang version 24.0.0 (++20261119065354+16721c9d8e82-1~exp1)
| Target: x86_64-pc-linux-gnu
| Thread model: posix
| InstalledDir: /usr/lib/llvm-24/bin

Standard x86-64 defconfig compilation, with LLVM=-24.

| In file included from kernel/sched/build_utility.c:86:
| kernel/sched/topology.c:2008:29: error: unsequenced accesses to volatile qualified 'jiffies' [-Werror,-Wunsequenced-volatile]
| 1998 | .last_balance = jiffies,
| | ~~~~~~~
| 1999 | .balance_interval = sd_weight,
| 2000 |
| 2001 | /* 50% success rate */
| 2002 | .newidle_call = 512,
| 2003 | .newidle_success = 256,
| 2004 | .newidle_ratio = 512,
| 2005 | .newidle_stamp = now,
| 2006 |
| 2007 | .max_newidle_lb_cost = 0,
| 2008 | .last_decay_max_lb_cost = jiffies,
| | ^
| 1 error generated.

regards,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |

Attachment: signature.asc
Description: PGP signature