On 9/29/25 22:52, Dev Jain wrote:
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:
--
Sidharth,
Make sure to not use "---" in your commit logs. Everything after
this line gets thrown away. I had to go fix it manually.
-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 <[email protected]>
---
Reviewed-by: Dev Jain <[email protected]>
Applied to linux-kselftest fixes branch for next rc.
thanks,
-- Shuah