Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1235774rdg; Fri, 11 Aug 2023 14:36:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTGPQfjHdEB4HZA021Eu2bsdlOVxAhaLR33GOVeYFJysDvCfchERZnkJDEQuO4ePjVKn4g X-Received: by 2002:a05:6512:b91:b0:4fe:f24:cbf3 with SMTP id b17-20020a0565120b9100b004fe0f24cbf3mr2657771lfv.63.1691789799933; Fri, 11 Aug 2023 14:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691789799; cv=none; d=google.com; s=arc-20160816; b=Zdb3RXBIxyqAY+FpsKvou3ctGOlgFl7EJ0OCSbI6vF5THAGGRJpx7Ph7tSm0BB0/s0 FpnhxP2E1hRWvtf5tMyFbyyjfChyu4xzrwBQA40j5yJKRKlMkPhZ0CE0FXEtnV/o7LDY DIY0c2qIwV6D5OgTlTCEUrj7aMN/wduva+IGimbVf0dbi86MLGbQ1H4r3oCHAfGHsY7E bU8RldDN3mGd5h3spX6CdzBibwPThBnC+QLFH7XCN8F8ynI541hgNbK8qLZ03YMZcHMi C1oMTZNhirXSr6F9ktmQm9iw/IPOwu09yJ0gsUH/ZJheOGZPsvpK2OWHWjUWWe7WToQN 0xXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fiId7A5uZw2EU8qqzqo15ZE/APG2EJpcQ/tYWVbt9lY=; fh=v61Cjtv9NxsS4fQLrtOTCABPLiVBdqA9azpFPsY+GpM=; b=PEICAtlFREIcC1jYBs06syF3tXP4m3QUVx2parPlY4vv8IkJj7AmZVqo2FiXUy4JBX cw1ib5dzmtxCEOr19oS3nx/xoQFKK1VQnz1HzF12KUT8en1Rc7RVLEgg13eSjwxKkCAG E0ttWmX8N56SrNlc3ovFzYOrUe95dFzKFZEYw0HtrqwRs0zukK3+neeOq44SUUs1s7cK ZGL2j6S7/06PKosE73lbeXbwQtwpeUp1Xs/t74nWIQOyVhfvzwe7aCC4Ap4EGZCk6P2B VuAFKDz9rtrXtpmb70StWZT0E5/L+tM6v9ZUnSt1p23Mag/qwLCA2CY0WUd9lGshXuOI 0wWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BaZ+dUQu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a056402074400b0052336e17249si3979977edy.64.2023.08.11.14.36.15; Fri, 11 Aug 2023 14:36:39 -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=@gmail.com header.s=20221208 header.b=BaZ+dUQu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236490AbjHKUJR (ORCPT + 99 others); Fri, 11 Aug 2023 16:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235546AbjHKUJP (ORCPT ); Fri, 11 Aug 2023 16:09:15 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E59DA30F9; Fri, 11 Aug 2023 13:09:08 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3180fd48489so1814889f8f.3; Fri, 11 Aug 2023 13:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691784547; x=1692389347; 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=fiId7A5uZw2EU8qqzqo15ZE/APG2EJpcQ/tYWVbt9lY=; b=BaZ+dUQu/1Rh/HmooCs5qesrlznNZmxKQcjlG6xS3H9tMBq45bWpSP/e/I9VW7Q4Xg AYC3dIvP3Tshg4rhk7854uV/UhGx97vQN7Rf3ZCaEHHAoEtsxEWEmUpcEhAOLyHKUkRY HVVMWwEzTKjzju9rFIbSEBbfEjRns5F4jM4I+IGUunaEP+fCDTpk2oAvMHx4dL7U2RGZ 4aZGEHqsVqDzd/Dx1nigupYSSEd6i5SYdVQlhZnYf0HmP1+JX1iQyYjTZ7iJO25zwy/W meLkO9bC2fWzC7AP4RiEm000UPRoQTx/kvFqN+cmSypY/c7NuSjR+Di9RfLfbQvrmzWa O7Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691784547; x=1692389347; 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=fiId7A5uZw2EU8qqzqo15ZE/APG2EJpcQ/tYWVbt9lY=; b=aa5Ld1IvZSlelk5qVUqclBzDNMxa+eHp0p7gq/PdbJuCUU4sXGFLS2Gk/uofj9DAFy Ew3kXAygyWUV850MYPgCrubzC7O2N49ngEMCR8dLXtxcuJt4TKbrIgeH0Kuae2mLH2jE L4OeTyipK3le1q3pwnXPJMxPzscpagkgp07u8Ql3fLuVC5C9JluKzdRsmHu2BfZAL2oO nk4VaxLXDCZat+aCVfjybGvb69ATHncsyxwO3urjx+2pWj8sreSDiC170Q79Mj0aB47U JQQivCcnhmrBO/29X5xltF1zcgS2b3sQSQP4aruEvsH4B0bUNUYp/z9a/zexkK8FLau1 MfxQ== X-Gm-Message-State: AOJu0YxVGYcn5R9vnkRAX+xSMDHyAYN1zBo8BQhcOFuUTvq/VuHFZw0H Amx+M/XKO7Zcb63+QAV5/74= X-Received: by 2002:a5d:5309:0:b0:313:e57b:e96d with SMTP id e9-20020a5d5309000000b00313e57be96dmr2116630wrv.36.1691784547091; Fri, 11 Aug 2023 13:09:07 -0700 (PDT) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id g11-20020adff40b000000b00317df42e91dsm6540591wro.4.2023.08.11.13.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:09:06 -0700 (PDT) Date: Fri, 11 Aug 2023 21:09:06 +0100 From: Stafford Horne To: Arnd Bergmann Cc: Andrew Morton , linux-kernel@vger.kernel.org, Arnd Bergmann , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Huacai Chen , WANG Xuerui , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Jonas Bonn , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Christophe Leroy , Palmer Dabbelt , Heiko Carstens , John Paul Adrian Glaubitz , x86@kernel.org, Borislav Petkov , Nathan Chancellor , Nick Desaulniers , Guenter Roeck , Stephen Rothwell , linux-next@vger.kernel.org, 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 (Google)" , "Paul E. McKenney" , Miguel Ojeda , Zhen Lei , Xin Li , Nhat Pham , Greg Kroah-Hartman , Marc =?iso-8859-1?Q?Aur=E8le?= 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 Message-ID: References: <20230810141947.1236730-1-arnd@kernel.org> <20230810141947.1236730-17-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810141947.1236730-17-arnd@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 Thu, Aug 10, 2023 at 04:19:34PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann ,,, > --- > Below is the full list of warnings I see in defconfig builds for reference, these > do not need to be part of the changelog. ... > arch/openrisc/kernel/process.c:100:6: error: no previous prototype for 'arch_cpu_idle' [-Werror=missing-prototypes] > arch/openrisc/kernel/process.c:240:21: error: no previous prototype for '__switch_to' [-Werror=missing-prototypes] > arch/openrisc/kernel/ptrace.c:191:17: error: no previous prototype for 'do_syscall_trace_enter' [-Werror=missing-prototypes] > arch/openrisc/kernel/ptrace.c:210:17: error: no previous prototype for 'do_syscall_trace_leave' [-Werror=missing-prototypes] > arch/openrisc/kernel/signal.c:227:5: error: no previous prototype for 'do_signal' [-Werror=missing-prototypes] > arch/openrisc/kernel/signal.c:293:1: error: no previous prototype for 'do_work_pending' [-Werror=missing-prototypes] > arch/openrisc/kernel/signal.c:68:17: error: no previous prototype for '_sys_rt_sigreturn' [-Werror=missing-prototypes] > arch/openrisc/kernel/time.c:111:25: error: no previous prototype for 'timer_interrupt' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:146:6: error: no previous prototype for 'nommu_dump_state' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:221:17: error: no previous prototype for 'die' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:239:17: error: no previous prototype for 'unhandled_exception' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:246:17: error: no previous prototype for 'do_fpe_trap' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:268:17: error: no previous prototype for 'do_trap' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:273:17: error: no previous prototype for 'do_unaligned_access' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:286:17: error: no previous prototype for 'do_bus_fault' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:462:17: error: no previous prototype for 'do_illegal_instruction' [-Werror=missing-prototypes] > arch/openrisc/kernel/traps.c:67:6: error: no previous prototype for 'show_registers' [-Werror=missing-prototypes] > arch/openrisc/mm/fault.c:44:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] > arch/openrisc/mm/tlb.c:188:13: error: no previous prototype for 'tlb_init' [-Werror=missing-prototypes] I'll try to get these fixed for 6.6. I was looking at them recently but did not actually make any changes and just put on my TODO. Your series moves it up in priority and it should be easy to get the fixes out. ... > diff --git a/init/Kconfig b/init/Kconfig > index 639e8a3363c30..80cd67c0d7fa4 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -170,6 +170,16 @@ config WERROR > > If in doubt, say Y. > > +config WNO_MISSING_PROTOTYPES > + bool "Hide -Wmissing-prototype warnings in arch code" > + default WERROR || !COMPILE_TEST > + help > + Some architectures have not yet eliminated all warnings for > + missing prototypes in their core code and will produce a lot > + of output for these. Ideally these should all be addresszed addressed > + by individual bugfix patches, but in the meantime saying 'y' > + will skip that output. > + > config UAPI_HEADER_TEST > bool "Compile test UAPI headers" > depends on HEADERS_INSTALL && CC_CAN_LINK -Stafford