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>] [day] [month] [year] [list]
Message-ID: <CA+icZUUUZScSvNzqgBDyLCEGL0a4cz+EdeKHq3Rdu0QG21=XPQ@mail.gmail.com>
Date: Sun, 2 Nov 2025 17:09:48 +0100
From: Sedat Dilek <sedat.dilek@...il.com>
To: Arnd Bergmann <arnd@...db.de>, Linus Torvalds <torvalds@...ux-foundation.org>, 
	Nathan Chancellor <nathan@...nel.org>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>
Subject: tools/lib: Use -std=gnu11

Hi,

I am carrying these patches since Arnd made the switch-over to -std=gnu11.

Background was building perf with -std=gnu11.

Refreshed to fit Linux v6.17 and patch-series attached:

0001-tools-libapi-Use-std-gnu11.patch
4:Subject: [PATCH 1/3] tools: libapi: Use -std=gnu11

0002-tools-libbpf-Use-std-gnu11.patch
4:Subject: [PATCH 2/3] tools: libbpf: Use -std=gnu11

0003-tools-libsubcmd-Use-std-gnu11.patch
4:Subject: [PATCH 3/3] tools: libsubcmd: Use -std=gnu11

perf below changed to -std=gnu11 sometimes - that was my 4th patch in series.

OK, tools build-eco-system is different...

We have other places below tools/ directory not using -std=gnu11.

What do you think - comments?

Best thanks and regards,
-Sedat-

P.S.: It looks like there should be an agreement also for -std=gnu++X
(we have X=11 and X=17) in tools-dir.

$ git checkout Linux-v6.17.6

$ head -5 Makefile
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 17
SUBLEVEL = 6
EXTRAVERSION =

$ git grep std=gnu tools/ | grep -v 'std=gnu\+\+|std=gnu11' | grep -v
testing | grep -v usbip
tools/lib/api/Makefile:CFLAGS += -ggdb3 -Wall -Wextra -std=gnu99
-U_FORTIFY_SOURCE -fPIC
tools/lib/bpf/Makefile:override CFLAGS += -std=gnu89
tools/lib/subcmd/Makefile:CFLAGS := -ggdb3 -Wall -Wextra -std=gnu99 -fPIC

View attachment "0001-tools-libapi-Use-std-gnu11.patch" of type "text/x-patch" (816 bytes)

View attachment "0002-tools-libbpf-Use-std-gnu11.patch" of type "text/x-patch" (748 bytes)

View attachment "0003-tools-libsubcmd-Use-std-gnu11.patch" of type "text/x-patch" (779 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ