From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 7BD623855587 for ; Thu, 7 Sep 2023 11:23:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BD623855587 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-401f503b529so9731665e9.0 for ; Thu, 07 Sep 2023 04:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694085783; x=1694690583; darn=gcc.gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WfXAsmoB4WfS+F7T1nJonWeYIccVQBht5j3GC7Xo5VQ=; b=nZZGHXwSOVzNEB3XwDBdfShVbWbK1dYczk6SW9SHGqgPUJzcJQE+FgouObjOtmFfPO 3pE2qd/vjZN7fNT4VBCpJkPNk426BaPcpVGHB5WotNu2YWIRyi8AAz6t61RmMlyp6Obp BY9bwN2MdV0tf/JExILGz6oLSyBJeBWnRuttRwPAQk8JCrHVVAcxOVWD20DbmlrF75tk FQ4lUYx6KK5dmLqm1c9mz7E2RlAXJiLsOPTCM+x/clgYXHhAyijCLEXEyL3a8qUEQkAu 2C+5nLtC4GPLX3GTlZsuSHXBcTAkgyNSYZUO02EcOXCiZf+wpbxIQ/F5pahyo3UQhXwP 97tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694085783; x=1694690583; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WfXAsmoB4WfS+F7T1nJonWeYIccVQBht5j3GC7Xo5VQ=; b=j3ENy9OTRndeorOmxP8aya5PChr1zFIlW41cyjw7AFyDUP8QYocvSibK14dxs1iidE uOEux3Y0RmWI/HmyUKcYXqUOwHNXecfMmkN+Lz/icDf0yupm8fbeyX3dkzyvgEuSv1/U w2BPpiRZzZHEyzoYFlUFfUybPsZiLbABRoWejYfu/mp4YT/f4TA8IZRy7ApcVwfeuG9S /WuHKifzFMxDRL3wuVOSJXWWxpRHASleQIcEBcEaVpm1jnYrH71rH67ReXr7EA6WIwXG 8jwBDNYCiBUEFjDjXzCOjoiUl8UiMgDvI35T8tFZE6aBX9770rijrYysvvDv8kr4gmHq U99A== X-Gm-Message-State: AOJu0Yw3omcBEGctsNFdu8LqRTNZzzj6FO7LwmxKK2f6wOLUwrA/oB6S Nle5ZyCC+Wv6ICWFaEUHETfSwg== X-Google-Smtp-Source: AGHT+IG5FsrtNwEQuNvPmbB9vmAGew+7DEruqR4J6dlaEKAvYhDUHjzzZrxVYkb/967NrsZmUgv7Jw== X-Received: by 2002:a05:600c:1d09:b0:402:eaae:e6e0 with SMTP id l9-20020a05600c1d0900b00402eaaee6e0mr2224356wms.8.1694085783074; Thu, 07 Sep 2023 04:23:03 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id y25-20020a7bcd99000000b0040210a27e29sm2221206wmj.32.2023.09.07.04.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 04:23:02 -0700 (PDT) Date: Thu, 7 Sep 2023 14:23:00 +0300 From: Dan Carpenter To: Segher Boessenkool Cc: Steven Rostedt , Dave Chinner , Guenter Roeck , Christoph Hellwig , ksummit@lists.linux.dev, linux-fsdevel@vger.kernel.org, gcc-patches@gcc.gnu.org Subject: Re: [MAINTAINERS/KERNEL SUMMIT] Trust and maintenance of file systems Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230907110409.GH19790@gate.crashing.org> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 07, 2023 at 06:04:09AM -0500, Segher Boessenkool wrote: > On Thu, Sep 07, 2023 at 12:48:25PM +0300, Dan Carpenter via Gcc-patches 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. > 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. > > 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. regards, dan carpenter