[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+icZUXGQpf5n-x2uR9FyiugrFigcaYxaLsdSfKRVpfruVwbJQ@mail.gmail.com>
Date: Mon, 10 Nov 2025 13:55:34 +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: Re: tools/lib: Use -std=gnu11
On Sun, Nov 2, 2025 at 5:09 PM Sedat Dilek <sedat.dilek@...il.com> wrote:
>
> 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
Friendly Ping.
-sed@-
Powered by blists - more mailing lists