Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp987215rwd; Thu, 18 May 2023 06:38:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5irObyeVz22vMABX8KP1M1sF/NOtBT/fQGttMaByDuu3jZ6D5hkoyfSY5M+l1v8fBbVvfZ X-Received: by 2002:a05:6a21:3987:b0:f5:8681:14c3 with SMTP id ad7-20020a056a21398700b000f5868114c3mr2495903pzc.46.1684417088399; Thu, 18 May 2023 06:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684417088; cv=none; d=google.com; s=arc-20160816; b=hxtD7sqOCl/Wrp2psQkICisZVQMc8Ulx2+TLFJ8ciX3EsyDK2dqYN3zeEzYeiahlJr XXn7vfAfCb4hiXnlUvbgfwWuvKhPp52F9Hol1lWrgHSVlvCppr9T8d+PLY9NcZ5eKad8 43P2DudhUu/QWfXWpcTTjJWzGghAhAMBUeCBZRtyziE9QQihGJ5c4kF8WZbdtV/6IbTA OLxuEJdSLJEnD+5CDCgbkyLITzjdMTe7kL7vFYS0EsBZymXJK5ezdjX+v/NR/zVcdfm4 kPgSgXnUV+Bn/m44aGtNk0iCMZhoI+GX6LzAayA5x/lT7/nrR9szdH3g9cSA2EWpjA+/ DDfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=BVWv0vhTr9e+qvYRpUKo9xFRPGdkIupwe9tb3nd2QZk=; b=fvqMis/oMwSzBaFj+YGit7HcSbd9J/khd/sEKlr9x/mfsNldceZ1TlrmkmD9mB+Z9S D74KC2kenZ0fjZMnVGTiuMzFtsPBbAHKFsoOge4kuCVeGykNH5oHMukCb4moNENwIfBN L75J4xKFvnhFs3mb69ibVpC8v9l2krkbPVP8L9cVmkIGgki48PM9+6OSwr6s3GeBEFYA dhuNEh8RHAN0VbTebiZwUbRXjxQfmbHpRefEkL5xHw/Gpt5lwqBK65B4/yDAkWm4JUsg xtS5Do8NdMQpK8Bc8/15iTadsgF2MAgI8na+BrYwD+DH4PsIfP3dWFHIb25CdUPkjp7J U1Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=j22+C4YH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DGPofMjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a63704f000000b005302f7ebd3esi1460358pgn.800.2023.05.18.06.37.53; Thu, 18 May 2023 06:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=j22+C4YH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DGPofMjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbjERNYH (ORCPT + 99 others); Thu, 18 May 2023 09:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbjERNYD (ORCPT ); Thu, 18 May 2023 09:24:03 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 647E6BB for ; Thu, 18 May 2023 06:24:02 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id DD4115C00D3; Thu, 18 May 2023 09:23:59 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 18 May 2023 09:23:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684416239; x=1684502639; bh=BV Wv0vhTr9e+qvYRpUKo9xFRPGdkIupwe9tb3nd2QZk=; b=j22+C4YH2NfN7pcO5q EvH8R/qlYzffsaTS6kO7cVnJ4AVmHbZPbGE2dDxXpoxwBZ5URqdNTKYEnWVIn7km YkbRtD6h/CiykyW2awg2rjGfKAKJZOaFnLiZUV3jM/FfhgtKHy+ROjEdPREMsSbn oCLSdBfU3VjIzII5lXIwcwmox0dTse5XtH2zYyy6a/F2rBcGAkqUYgZTMyXIumpk IXrl4zcNsufrnkzLvNWcZmgkv9brPROr6yaypqKlHruyjEvTLUMMZKDvzxAum1bo qVfWH4/99FPqUvIcTsDx054AnQCPgYAT8EOeGtSHoWOmugrfp1mILHQ9sSH18N0T rlIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684416239; x=1684502639; bh=BVWv0vhTr9e+q vYRpUKo9xFRPGdkIupwe9tb3nd2QZk=; b=DGPofMjnUL82B7LEdK8TSw2AGvWqH WzyG5IF269ImbZJRyKEPguTVuTHOM0/v4RkiuW6ZTvDtfoXKTyVco3g4J8yjealz lZ0fGsV0Y9Ii7ig08wr3qLAmetjKZsXT9U5pMGQweIfhXY1F+EcobxR79WdpHq0f rztUZrpg7ui7ehaTK/9RC5XtupFoi/+2oNbQADD2vwiv+mI/BGQj813pOue41A38 zOPZdQWtcWRsHLUsh8P+ZfLhL13qDb0NPeo1QTeLVRK4MTy7lA+Qh95ORwTWFMgo 6aTAx+i+es8b+wXBOUmBTMxJUVHzr8RW3BXsqVe0o0wboFplQ0HsyNXZw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeifedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepvefhffeltdegheeffffhtdegvdehjedtgfekueevgfduffettedtkeekueef hedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8F209B60086; Thu, 18 May 2023 09:23:59 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-431-g1d6a3ebb56-fm-20230511.001-g1d6a3ebb Mime-Version: 1.0 Message-Id: In-Reply-To: <20230517134916.717bdcc4ba26e10462157ee9@linux-foundation.org> References: <20230517131936.936840-1-arnd@kernel.org> <20230517134916.717bdcc4ba26e10462157ee9@linux-foundation.org> Date: Thu, 18 May 2023 15:23:39 +0200 From: "Arnd Bergmann" To: "Andrew Morton" , "Arnd Bergmann" Cc: "Nick Terrell" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] decompressor: provide missing prototypes Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023, at 22:49, Andrew Morton wrote: > On Wed, 17 May 2023 15:19:31 +0200 Arnd Bergmann wrote: > >> From: Arnd Bergmann >> >> The entry points for the decompressor don't always have a prototype >> included in the .c file: >> >> lib/decompress_inflate.c:42:17: error: no previous prototype for '__gunzip' [-Werror=missing-prototypes] >> lib/decompress_unxz.c:251:17: error: no previous prototype for 'unxz' [-Werror=missing-prototypes] >> lib/decompress_unzstd.c:331:17: error: no previous prototype for 'unzstd' [-Werror=missing-prototypes] >> >> include the correct headers for unxz and unzstd, and mark the >> inflate function above as unconditionally 'static' to avoid >> these warnings. > > These are errors, not warnings? > > Under what circumstances do they occur? Running "make W=1" turns these errors on as warnings, enabling CONFIG_WERROR turns all warnings into errors. > Shouldn't we cc:stable? If so, do we have a suitable Fixes: target? I have sent 140 patches for these, there is probably no point in backporting them all. My hope is that we can enable -Wmissing-prototypes by default after these are all merged, but that patch would not get backported either. I meant to include a link with the explanations to https://people.kernel.org/arnd/missing-prototype-warnings-in-the-kernel in my series but didn't have that in the separate patches. Arnd