From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 44AB13858D3C for ; Tue, 12 Sep 2023 09:52:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44AB13858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bc63e0d8cdso86243061fa.2 for ; Tue, 12 Sep 2023 02:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694512348; x=1695117148; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NTzHMfb2PMnB/WCXfRvRMCtM+zTQXX2oSM6n6ez9S90=; b=OiXPwi2EYR6+wsTkforwOspjmm6AU56gwk5ID305nKXnbleWnqHx3JFjRygX/ehnpl T8f+QGx4i6q+VwP8inUbjE3IqVcqUwbF1qFPsnD9oL1xK0Nz2mulvkfoA9THFAi07Rda hbkRX3d3ufytYeBmV1D2eyVruGg2792D2sb+7F9huBVVz3aQR0l4IcU1AyJVDu4Bq8iw nq9qp7wZKG5+MJe16HXt9KI2deB9rbUkj/QahIM60PfUFoUQhTcbjvXtrohfe6zuhWqR wiyV1gtN+AMDaogR8cwY0kyDERfxg8UldJ8TpeHKeh2ngt/TPkjx56HVfzOQA7BaeA2D QmQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694512348; x=1695117148; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NTzHMfb2PMnB/WCXfRvRMCtM+zTQXX2oSM6n6ez9S90=; b=vKmtZPkvJ/63pYFQiO/p8mA/AxubBnM/LYdUBLvLalgy5S7c0s3xpw108tqamEmNhS 8K1Augdf9MkRgCyEWvGIgrUauTN4COy/NWnauWAUsNngNWeTzHhYh6OYRn4v8JJUX2vs drOuqe/vNkPoyAO5Ntoth27BaQfDX0u83E+B0cuHKeavmUGIiPhl6uUrVYUNPWBUWfW/ VOCAf4fNlmWrJMiJ0lXQjG7VAjol+jPVxUkFdzzxDG2SyE6EwTGJbpXmCDoLbJRvRWMh hDU/+lJHVADf1bV7oqMohx3ALcoou03XhziR10EjaeRBaucf1nMI+ILBJ+/WC+ZWiaSk E3NQ== X-Gm-Message-State: AOJu0YySPhllzhhdf0nccZKEWPu/JK+FBFBYsEYbgG4cmMfRiE7we27l n0nD61y7JhfuupbaVeE82H7hplZym5TSXotz940= X-Google-Smtp-Source: AGHT+IHBnuM5cZEpJAoHuof7kfZvuMORzseShHCbegClIE/2GKz8q41K15Yj6S+g62o5jnsWxDG/cJnQ8ZWePMLgiNY= X-Received: by 2002:a2e:8194:0:b0:2b7:117:e54 with SMTP id e20-20020a2e8194000000b002b701170e54mr9901648ljg.4.1694512347465; Tue, 12 Sep 2023 02:52:27 -0700 (PDT) MIME-Version: 1.0 References: <8718a8a3-1e62-0e2b-09d0-7bce3155b045@roeck-us.net> <20230906215327.18a45c89@gandalf.local.home> <4af7c904-ac36-44c9-83c4-2cb30c732672@kadam.mountain> <20230907110409.GH19790@gate.crashing.org> <20230907123016.GJ19790@gate.crashing.org> In-Reply-To: <20230907123016.GJ19790@gate.crashing.org> From: Richard Biener Date: Tue, 12 Sep 2023 11:50:26 +0200 Message-ID: Subject: Re: [MAINTAINERS/KERNEL SUMMIT] Trust and maintenance of file systems To: Segher Boessenkool Cc: Dan Carpenter , Steven Rostedt , Dave Chinner , Guenter Roeck , Christoph Hellwig , ksummit@lists.linux.dev, linux-fsdevel@vger.kernel.org, gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Sep 7, 2023 at 2:32=E2=80=AFPM Segher Boessenkool wrote: > > On Thu, Sep 07, 2023 at 02:23:00PM +0300, Dan Carpenter wrote: > > On Thu, Sep 07, 2023 at 06:04:09AM -0500, Segher Boessenkool wrote: > > > On Thu, Sep 07, 2023 at 12:48:25PM +0300, Dan Carpenter via Gcc-patch= es wrote: > > > > I started to hunt > > > > down all the Makefile which add a -Werror but there are a lot and > > > > eventually I got bored and gave up. > > > > > > I have a patch stack for that, since 2014 or so. I build Linux with > > > unreleased GCC versions all the time, so pretty much any new warning = is > > > fatal if you unwisely use -Werror. > > > > > > > Someone should patch GCC so there it checks an environment variable= to > > > > ignore -Werror. Somethine like this? > > > > > > No. You should patch your program, instead. > > > > There are 2930 Makefiles in the kernel source. > > Yes. And you need patches to about thirty. Or a bit more, if you want > to do it more cleanly. This isn't a guess. > > > > One easy way is to add a > > > -Wno-error at the end of your command lines. Or even just -w if you > > > want or need a bigger hammer. > > > > I tried that. Some of the Makefiles check an environemnt variable as > > well if you want to turn off -Werror. It's not a complete solution at > > all. I have no idea what a complete solution looks like because I gave > > up. > > A solution can not involve changing the compiler. That is just saying > the kernel doesn't know how to fix its own problems, so let's give the > compiler some more unnecessary problems. You can change the compiler by replacing it with a script that appends -Wno-error for example. > > > Or nicer, put it all in Kconfig, like powerpc already has for example= . > > > There is a CONFIG_WERROR as well, so maybe use that in all places? > > > > That's a good idea but I'm trying to compile old kernels and not the > > current kernel. > > You can patch older kernels, too, you know :-) > > If you need to not make any changes to your source code for some crazy > reason (political perhaps?), just use a shell script or shell function > instead of invoking the compiler driver directly? > > > Segher > > Segher