Re: [BUG] topology.c fails to build with clang-24
From: Nathan Chancellor
Date: Sun Nov 22 2026 - 17:04:23 EST
On Sat, Nov 21, 2026 at 07:41:20PM +0100, Marc Kleine-Budde wrote:
> 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.
I sent
https://lore.kernel.org/20261116-topology-wunsequenced-v2-1-54611119172b@xxxxxxxxxx/
for this but I am still waiting for it to be picked up (or told how to
make it acceptable if it is truly rejected).
--
Cheers,
Nathan