lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250930033111.63465-1-lianux@lianux.local>
Date: Tue, 30 Sep 2025 11:31:11 +0800
From: lianux <lianux.mm@...il.com>
To: sj@...nel.org
Cc: david.hunter.linux@...il.com,
	hannes@...xchg.org,
	justinstitt@...gle.com,
	linux-kernel@...r.kernel.org,
	linux-kselftest@...r.kernel.org,
	linux-mm@...ck.org,
	llvm@...ts.linux.dev,
	morbo@...gle.com,
	nathan@...nel.org,
	nick.desaulniers+lkml@...il.com,
	nphamcs@...il.com,
	shuah@...nel.org,
	sidharthseela@...il.com,
	wang lian <lianux.mm@...il.com>
Subject: Re: [PATCH v1] selftests: cachestat: Fix warning on declaration under label

From: wang lian <lianux.mm@...il.com>

Reviewed-by: wang lian <lianux.mm@...il.com>

> 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>

Best regards,
wang lian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ