Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp616841qtq; Thu, 10 Aug 2023 10:37:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaRB0VR9dR3/wq/D/uHZJPfO7azvWhRpEdMP73DtPDWlpUhLzoJ8nr3kGtgMeuy6Ye0PdU X-Received: by 2002:a05:6a20:14f:b0:13b:a261:5cfe with SMTP id 15-20020a056a20014f00b0013ba2615cfemr3524599pzs.32.1691689076529; Thu, 10 Aug 2023 10:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691689076; cv=none; d=google.com; s=arc-20160816; b=Ln9yNUpZ1KRfcu9vefUr7jTKut1ikIWtBlfS72KEvL3YB5qiX2ZzPHXMM45VDobjOU HDxdPB8DlowP8OlLk8XhQH47bcvPWVl8VcxHfVgEQ6qLFEfoqGQENZ1HEIZUkDBSRWti g9Ju7iNrvviivjA/RsJyCo6iC2qae+0qKQdj0fduUFRFH4SY4mSo+gZ4r5Wrim8IJ7X8 M7ESv+UvTRIrAajeU8dCvhriR1OH86htXP9Cs2gBEIObud520BYt4K/YbH5z6Wty4ON7 wg7WunxS6OsSgB9P+LUg8Y3k7xw+3y1SUTo8NrVOfVG2QpW/RyE2mPHVDQyJHI79K3jZ xugw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=2Q9/wkZuAqGaPUlwVeMbpzA59zc+JfHIktYO4gpFXEA=; fh=iPaIXCcdUvWd6myIaVGWAs9Dng7tnKJgGpVzx+a7nSE=; b=zESNuFYT8+azg0VWC3MU9ApBWVwqBTuM3akn/43MYbuNtqDpFl27FEUW3IAT9ZZz75 BY2owdh1a9WGaOBrslbxJfxZ7nGtbhFg5JvQ2qoV0XbQrrRWIZxSjj3c6OngS0Ffpur9 IZLX5OHdhLFO19IdI9n3wibRKHOdl+gpEIpTxBaXSh873bk9gKX/Q13DvzEBPMbAjxwz taRQuXgj+Irixc7j89BpBUA65abyxG3kRfGRgleLMLhU4c0hNXTU//H95QYT7HIPEenO pulmR40wAv7APCe3ccg7pAtey59AzZG52CZNDNff9iI3oRF9c63su22jQXCBJD0L0Tcu dJyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="ZCcOvD/T"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mms0pG75; 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 ca13-20020a056a02068d00b00563adc94096si1984168pgb.743.2023.08.10.10.37.44; Thu, 10 Aug 2023 10:37:56 -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="ZCcOvD/T"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mms0pG75; 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 S235676AbjHJPVc (ORCPT + 99 others); Thu, 10 Aug 2023 11:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbjHJPVb (ORCPT ); Thu, 10 Aug 2023 11:21:31 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0B9C90; Thu, 10 Aug 2023 08:21:30 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 59DCC32002F9; Thu, 10 Aug 2023 11:21:28 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 10 Aug 2023 11:21:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding: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= 1691680887; x=1691767287; bh=2Q9/wkZuAqGaPUlwVeMbpzA59zc+JfHIktY O4gpFXEA=; b=ZCcOvD/TT/PSev+2Dyu9ZRKhlD4q/bxEv5m+kvnNStn5eSszZWm w9D5rrEsvkBLmz306pN0MqgCBrkdacFLlP0rSRb/WNaZNJc5uMDd5iDiMN+uBXYv GJOyPmA70xOSVNmpH/ET30WSOY/HTl7/mzDWPBLgMgllw73V+Wv/UFpDGv0WYEPU jtUByC4uRRJ9OjRPV5CNx4fob5dB60qcHFbzeHEg6+R6a57BUKfeNUoGYWovUIwx vkeit7Rlnxv0zWR6jkbC368cwJlumjjVa75wl8kXhsl3JJ4muOCtwGQNk5fIhkuq znkzlDD0Cg6bRbITDLIDSH2A0JKt/5wgXSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm3; t= 1691680887; x=1691767287; bh=2Q9/wkZuAqGaPUlwVeMbpzA59zc+JfHIktY O4gpFXEA=; b=mms0pG75QfEGRdY/ORQ0MstTvMIXTCXtbdJmNVVzt+DPpXNBlxD +5UMexA4voHGOBrQCEgGvYUXvBBPVnElQGSTKN9uQ8of7OyWgnvQiBUp3C/yIlpy T8an/+4gYsr+5skEsqiLG48DUKeq8u9j9UtmpBVUujkjk2ll6C5FtSa5b+haekJ9 OYWWYQ7A6PKlUtSVrMal7TiMysf/suC9L/GvlijFC/9PWaapAgwmMSMO0BPq04x/ L0g0JH5xn86tizCEsedGoJzcSUulJHdXcLb6W1ZtqmRKS99y2tntFCSMjAa6TicL b1YxAem1VYQEPfpVW+ue+k4iDarYNL+9IGQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeigdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudektdfg jeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 47DE4B60089; Thu, 10 Aug 2023 11:21:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230810141947.1236730-1-arnd@kernel.org> <20230810141947.1236730-17-arnd@kernel.org> Date: Thu, 10 Aug 2023 17:21:04 +0200 From: "Arnd Bergmann" To: "Christophe Leroy" , "Arnd Bergmann" , "Andrew Morton" , "linux-kernel@vger.kernel.org" Cc: "Matt Turner" , "Vineet Gupta" , "Russell King" , "Catalin Marinas" , "Will Deacon" , guoren , "Brian Cain" , "Huacai Chen" , "WANG Xuerui" , "Geert Uytterhoeven" , "Michal Simek" , "Thomas Bogendoerfer" , "Dinh Nguyen" , "Jonas Bonn" , "Stafford Horne" , "James E . J . Bottomley" , "Helge Deller" , "Michael Ellerman" , "Palmer Dabbelt" , "Heiko Carstens" , "John Paul Adrian Glaubitz" , "x86@kernel.org" , "Borislav Petkov" , "Nathan Chancellor" , "Nick Desaulniers" , "Guenter Roeck" , "Stephen Rothwell" , linux-next , "linux-alpha@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-csky@vger.kernel.org" , "linux-hexagon@vger.kernel.org" , "linux-ia64@vger.kernel.org" , "loongarch@lists.linux.dev" , "linux-m68k@lists.linux-m68k.org" , "linux-mips@vger.kernel.org" , "linux-openrisc@vger.kernel.org" , "sparclinux@vger.kernel.org" , "Richard Henderson" , "Ivan Kokshaysky" , "Stefan Kristiansson" , "Yoshinori Sato" , "Rich Felker" , "David S . Miller" , "Chris Zankel" , "Max Filippov" , "Christian Brauner" , "Paul Walmsley" , "Albert Ou" , "Youling Tang" , "Tiezhu Yang" , "Masahiro Yamada" , "Randy Dunlap" , "Masami Hiramatsu" , "Paul E. McKenney" , "Miguel Ojeda" , "Zhen Lei" , "Xin Li" , "Nhat Pham" , "Greg Kroah-Hartman" , =?UTF-8?Q?Marc_Aur=C3=A8le_La_France?= , "Johannes Weiner" , "linux-parisc@vger.kernel.org" , "linux-sh@vger.kernel.org" , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH 16/17] [RFC] arch: turn -Wmissing-prototypes off conditionally Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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 Thu, Aug 10, 2023, at 16:59, Christophe Leroy wrote: > Le 10/08/2023 =C3=A0 16:19, Arnd Bergmann a =C3=A9crit=C2=A0: >> From: Arnd Bergmann >>=20 >> I have cleaned up the -Wmissing-prototypes warnings for most of the m= ajor architectures >> as well as all drivers that get enabled for CONFIG_COMPILE_TEST, so n= ow these should be >> close to fixed on x86, arm, arm64, powerpc, s390, and riscv. >>=20 >> The other architectures tend to have a lot of these warning in archit= ecture specific >> code, primarily from functions that are only called from assembler co= de and do >> not otherwise need a declaration but still cause a warning without on= e. Other cases >> are simply functions that should just be static or are missing an #in= clude statement. >>=20 >> In order to be able to turn the warning on globally by default withou= t breaking all >> these architectures, add a list of exceptions for architecture direct= ories that >> can revert back to the old behavior of not warning based on a new >> CONFIG_WNO_MISSING_PROTOTYPES option. > > Some architectures only have a few of those errors/warnings. > > For instance microblaze and parisc only have one each. Isn't it better=20 > to fix them rather then turn the errors off ? The list was only the 'defconfig' warnings, there are a couple more that I saw with 'allmodconfig', and I'm sure there are even more when dealing with other random configurations. I did send other fixes for microblaze and parisc specific drivers, and I could also send patches for the two defconfig warnings if the maintainers are happy with fixing those but leaving allmodconfig to still warn, but I feel that it's easier for them to just do the last fixes themselves and then remove my hack again. I'll wait for Michal and Helge on these. > Others like loongarch which is a recent actively maintained=20 > architecture, I'd expect the 30 errors to be easy to fix. Agreed, they probably are. > Many of the alpha ones seems to be brought by your commit e19d4ebc536d=20 > ("alpha: add full ioread64/iowrite64 implementation") As far as I can see, those already existing before that patch, though I did touch the same lines there. In the end it's a matter of where to stop, as there are endless configurations to test if I want to do a complete job. I drew the line between powerpc (which I tried to fix) and mips (which I left alone), mainly because the powerpc side was already exhausting and mips has even more obscure configurations. The other ones on the list are all less actively maintained than these two. Arnd