[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aSEpNYgrYRGOihxy@gondor.apana.org.au>
Date: Sat, 22 Nov 2025 11:08:37 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: "Jason A. Donenfeld" <Jason@...c4.com>
Cc: torvalds@...ux-foundation.org, ebiggers@...nel.org, ardb@...nel.org,
kees@...nel.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH libcrypto v2 2/3] compiler: introduce at_least parameter
decoration pseudo keyword
On Sat, Nov 22, 2025 at 03:46:38AM +0100, Jason A. Donenfeld wrote:
>
> Saw your reply to v1 and was thinking about that. Will do. Thanks for
> pointing this out.
It seems that we need to bring the brackets back, because sparse
won't take this either:
int foo(int n, int a[n])
{
return a[0]++;
}
But this seems to work:
#ifdef __CHECKER__
#define at_least(x)
#else
#define at_least(x) static x
#endif
int foo(int n, int a[at_least(n)])
{
return a[0]++;
}
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists