[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAP4=nvQp4J_PRbbNNxy6FErcgFF4Qmn3ty0N2HcDSQG5isLiKA@mail.gmail.com>
Date: Wed, 11 Feb 2026 12:15:54 +0100
From: Tomas Glozar <tglozar@...hat.com>
To: Wander Lairson Costa <wander@...hat.com>
Cc: Costa Shulyupin <costa.shul@...hat.com>, Steven Rostedt <rostedt@...dmis.org>,
Crystal Wood <crwood@...hat.com>, Ivan Pravdin <ipravdin.official@...il.com>,
John Kacur <jkacur@...hat.com>, Tiezhu Yang <yangtiezhu@...ngson.cn>,
linux-trace-kernel@...r.kernel.org, linux-kernel@...r.kernel.org,
bpf@...r.kernel.org
Subject: Re: [PATCH v2 1/4] tools/rtla: Consolidate nr_cpus usage across all tools
st 11. 2. 2026 v 12:03 odesÃlatel Wander Lairson Costa
<wander@...hat.com> napsal:
> > `#pragma once` in timerlat_u.h is needed for pre-C23 compilers to avoid
> > redefinition errors.
>
> Isn't it necessary for C23 compilers?
>
C23 allowed struct redefinition [1] to enable template-like macros. As
a side effect, including timerlat_u.h twice does not break anything,
in C23 only. But the Linux kernel supports building with lower
standards of C, so it has to work there, too.
Tomas
[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3003.pdf
Powered by blists - more mailing lists