[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <486e0d6b-799e-4fec-9e6d-3ddfdd64418c@arm.com>
Date: Tue, 30 Sep 2025 10:22:59 +0530
From: Dev Jain <dev.jain@....com>
To: Sidharth Seela <sidharthseela@...il.com>, nphamcs@...il.com,
hannes@...xchg.org, nathan@...nel.org, shuah@...nel.org, morbo@...gle.com,
justinstitt@...gle.com, nick.desaulniers+lkml@...il.com
Cc: linux-mm@...ck.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
david.hunter.linux@...il.com
Subject: Re: [PATCH v1] selftests: cachestat: Fix warning on declaration under
label
On 29/09/25 5:24 pm, Sidharth Seela wrote:
> Fix warning caused from declaration under a case label. The proper way
> is to declare variable at the beginning of the function. The warning
> came from running clang using LLVM=1; and is as follows:
> --
> -test_cachestat.c:260:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
> 260 | char *map = mmap(NULL, filesize, PROT_READ | PROT_WRITE,
> |
>
> Signed-off-by: Sidharth Seela <sidharthseela@...il.com>
> ---
>
Reviewed-by: Dev Jain <dev.jain@....com>
Powered by blists - more mailing lists