Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1335054rwl; Thu, 10 Aug 2023 09:37:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzjlpiRztR8lTg7M/gMRKzjijPD256kKsiwjpHSkVRTvieNkwhdtkRRmUfX4R/GSn+3LOm X-Received: by 2002:a17:90b:2310:b0:262:df91:cdce with SMTP id mt16-20020a17090b231000b00262df91cdcemr2363975pjb.23.1691685428673; Thu, 10 Aug 2023 09:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691685428; cv=none; d=google.com; s=arc-20160816; b=clgjykjnK2rgn99ah7/dGLB/YvY2FeP69OeG79h0PGpRmXuWPpCVCGIQHWynRwcXJz b/tMFJ+3pkDWbakiejWdxU7n5jyomBqoer65zjZfPtMWg/Qfwm9t2bsgzPbq9kyScfJv 6ZT2VBNO5T81SCLe2BFo+1xgNC4dDE7IvDiDrmZQFY4QkPrm8qb+wRyqr3zouIXhH1qt +YWu1qKHS1xNx+Z258EXjnKP2WpxUR2j9lMpDHhA7/Zwofn7vjSDTn5cD2gFkev+86Mq afhhkejHEtzx+CbEmZdTMIK8785o4i/T002dIcgCJDWgaLzNertsduhoDqrGfR+mLYkG Tdjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=S5jFk9q/N+I/wLvTkP+LMWXBKWIphye97VDRHjEixTs=; fh=cM7Arf8nEYZI3WRhHn6vpEzh6TGvDw95TqAbmgmvs4E=; b=tTurtuj1m0sI+ZMcvrZ95yi4v6WjvJFtUnBRjLxHqTt+3sa3boZlTs5ZPzCW6NZCPe As6pCaptVe+rRaDh1ePGgmgaNTHFJuyvRRCrmovIozXUJvRaf6thaeyfDd24m6ji1qKH KijwOaeUG3ZbrV0ClBRygzV5RURc6GD1YB2A15NyyC1iclH+wduqMqpd8UHEYbJYSerP jIU8i3EWamWzFJsv04S8Z4xvUvu1XYW2pA/sGWtVUk582mrkcmYKL96Jz/xWHObKAAAe 66iNCjYvzKMvc2WM4YAK3Mxrg/j1nKazjSczgLwLYVig2SdVQSDqc6wwWj+1qQbHXNzo kQ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=fVyd7cVX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ep8-20020a17090ae64800b0025bec4468c2si1796867pjb.167.2023.08.10.09.36.56; Thu, 10 Aug 2023 09:37: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=@gmx.de header.s=s31663417 header.b=fVyd7cVX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235564AbjHJQC6 (ORCPT + 99 others); Thu, 10 Aug 2023 12:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236365AbjHJQCk (ORCPT ); Thu, 10 Aug 2023 12:02:40 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E27270F; Thu, 10 Aug 2023 09:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1691683191; x=1692287991; i=deller@gmx.de; bh=LQ4BoluAVRb0GVjdydcgr6ii6FNpLvdjAbxqzo3k3IM=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=fVyd7cVX1xb7CULER8aXpZvUDMw34y68dpKhVUs8ZfR2S7048G7MucmX1i5TtqM6R82OMyR niOqfo7h9BzQcPM3ryfm4NQYVXaNPXZHHZkiz7VG1FgbUmccZMoRt7G6UJwhoSGn9oi7Ymmkv mbj2WMqZTUX9rlYnlvHU6nNlZgb9Rb3yDmafWzLCiiIfUD6X0LAiHIhVG31IXm6sBgI1OqjmK ggOkUGW0Ahf2P2Vq0c7++Ovnd8I4T4yVWat9f6Ob6QU9EnQto3j4L2pbtZS4yO+l3QwzXikWF s+FIdJZUUAJ1K0MR63xP+VnjXnNb/hlVTtQXE1xcoRa9FftNvh3g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.144.133]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0G1d-1pYKx73M6Z-00xKyR; Thu, 10 Aug 2023 17:59:51 +0200 Message-ID: <5bc9d25c-d546-fe94-05cc-41bd5bbbaf67@gmx.de> Date: Thu, 10 Aug 2023 17:59:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 16/17] [RFC] arch: turn -Wmissing-prototypes off conditionally Content-Language: en-US To: Arnd Bergmann , 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" , 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" References: <20230810141947.1236730-1-arnd@kernel.org> <20230810141947.1236730-17-arnd@kernel.org> From: Helge Deller In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7HICyZOHq9VZP2o9P4LYzDAEWALrWz4P+1I0orqIFFR4BJcuaIu Q9221KyRKsTxR9to62XBnXDSgCoxyl6ySZtyR6gJf0IRGNrYlEdlqawThuBvMmTa5OSZ9Wv Rh/jmDhXDhUPMZDeYgjoQxOJ9Pw3WKaPEG2OnD/UEDnyf+1A7038CdiHZdVsuvxWMe88oPX y9efA24egD5Bij0A0F5LQ== UI-OutboundReport: notjunk:1;M01:P0:eTaYGH3ty9Q=;NJpZWDM1a6CIkGPR1WvHAlD80vR 5vHeHYDZ4lcEJAN5tJc40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_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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 8/10/23 17:21, Arnd Bergmann wrote: > 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 >>> >>> I have cleaned up the -Wmissing-prototypes warnings for most of the ma= jor architectures >>> as well as all drivers that get enabled for CONFIG_COMPILE_TEST, so no= w these should be >>> close to fixed on x86, arm, arm64, powerpc, s390, and riscv. >>> >>> The other architectures tend to have a lot of these warning in archite= cture specific >>> code, primarily from functions that are only called from assembler cod= e and do >>> not otherwise need a declaration but still cause a warning without one= . Other cases >>> are simply functions that should just be static or are missing an #inc= lude statement. >>> >>> In order to be able to turn the warning on globally by default without= breaking all >>> these architectures, add a list of exceptions for architecture directo= ries 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 >> 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. Arnd, I like your patch! For parisc I've done quite some work during the last few weeks to get such warnings sqeezed out, so please drop the hunk for parisc from your patch. My plan is to become warning-free before 6.5-final. This last one: arch/parisc/lib/ucmpdi2.c:12:5: error: no previous prototype for '__u= cmpdi2' [-Werror=3Dmissing-prototypes] I'll take care in the parisc for-next tree. Thanks! Helge >> Others like loongarch which is a recent actively maintained >> 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 >> ("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