Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2223934rwb; Sat, 29 Jul 2023 02:27:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6itmOmov2mx4QEH0rxkJLVE6yE96VII8DnVJD0IY3OWAm6YSk+kuyVQ7UkefW4y87t/si X-Received: by 2002:aa7:d64e:0:b0:521:7881:4f39 with SMTP id v14-20020aa7d64e000000b0052178814f39mr3672991edr.14.1690622855364; Sat, 29 Jul 2023 02:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690622855; cv=none; d=google.com; s=arc-20160816; b=zQxpwDwyecVTWwwaqS2IiHi7xd+7yBF/Wddh2Fp04X0HFSeSh/qXcIt+2KmJWV3edo fpJgXiy7PNBHjkLrNt16z97+4rgmzsmvupK+ZKaydzC4DenHGnoXtQpeXrvzqvDEY7No 4SkEHAGIKD6hKw+0NHTpUYjnfiHVKGbLiCaNsNsDJqXfiaTArLa7EK8BTZro+grKEoqh OFwjnBdk92pm38IykyLSlnOistK3pjbTkAiA2utk6e8upUJWlhmyMTMRLEp0SMvphRCQ kVYxQ+pszmif6aPsrnBUyAJ/DgmgvDirWyGaiqNd5GgyxnwbOgTx93IZKpqeVoxdV1yr OC3g== 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; bh=GTkQk5ESqEviZheLMety1JZiFunishM2M9AHDjp67hA=; fh=i1BQhcAp5mESYXKpt8iyVvL6A5KElo/nLmbZs6LGJU8=; b=NSjpmUjppSDhaH0dz+dpnw9OlhoTRPlo9QgBN5mXCa07FYMLdhhmyZdX6EPtreQr10 YHdtzUINlczVSX0pbb6sbw28PUfKK6LuXhitXnavK51AXwS/VPUtNMQng4FGjTyjZOkZ 2LcgzVc8mI13Nz7sFOatDEyzYD3r6iOkfcmYSfoxW1noWJtRR1bOiOp6oh1czFhMcqWf j04wamb7rbWiEDREzKNdsuH2xVFVh38o9FtCJ1E6to/D92CwW8N2vuHKGhLBIpIkrXfG xvtLrugGTuB7qyK59FlRXHgHTn6HHOckZln5mxpyvoIpDhzfJBVje1+kaCWBxGIGhcaB 7KRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z6k6zVQL; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a50ed1a000000b0052220448d66si1050123eds.283.2023.07.29.02.27.11; Sat, 29 Jul 2023 02:27:35 -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=@kernel.org header.s=k20201202 header.b=Z6k6zVQL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbjG2IFE (ORCPT + 99 others); Sat, 29 Jul 2023 04:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjG2IFD (ORCPT ); Sat, 29 Jul 2023 04:05:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBFEE3C30 for ; Sat, 29 Jul 2023 01:05:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C5F760A50 for ; Sat, 29 Jul 2023 08:05:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0CECC433C8 for ; Sat, 29 Jul 2023 08:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690617899; bh=gCGqzEybAhG4L2ceSgPliqsVQDGJ+XyMbNfv/tBjtNs=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=Z6k6zVQLADvf8PGUEN0vehhe+oC2HJL97wOuiTpFkuNJfJSoh94ZZg8ZeRGHTgIUU HFy0uoguca6ajb5/RMRgI4s21FNv54xDp6GXqdi5+bbQQKKVNyMPDPZ67hSNnK1JNj Mn9IzykPG7qkmRVKXBUbET4JHcJD533O6KEu3vrZ8dxDDVRdbci46j2PpIIgLBhgSJ lMCaP8RKKZqAQWyYr/aH7uv8XjncKdmjJUKcbUlzxGLvyOGUwMxolITGqjIyIVyfMW yPxayzhYgnm5wey6h9gdydHH7b1Hs0SSH8uJ/UIASCn4Zr451Wgf0AImxkPTBAOMug cUXJ9nZt7u0Yw== Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id A933527C0054; Sat, 29 Jul 2023 04:04:58 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Sat, 29 Jul 2023 04:04:58 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieejgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgesth dtredtreertdenucfhrhhomhepfdetrhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnuges khgvrhhnvghlrdhorhhgqeenucggtffrrghtthgvrhhnpedvveeigfetudegveeiledvgf evuedvgfetgeefieeijeejffeggeehudegtdevheenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugdomhgvshhmthhprghuthhhphgvrh hsohhnrghlihhthidquddvkeehudejtddvgedqvdekjedttddvieegqdgrrhhnugeppehk vghrnhgvlhdrohhrghesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6DD30B60089; Sat, 29 Jul 2023 04:04:58 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230726145740.1765323-1-arnd@kernel.org> Date: Sat, 29 Jul 2023 10:04:38 +0200 From: "Arnd Bergmann" To: "Arnd Bergmann" , guoren Cc: "linux-csky@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] csky: fix old style declaration in module.c Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Sat, Jul 29, 2023, at 09:06, Arnd Bergmann wrote: > On Sat, Jul 29, 2023, at 06:59, Guo Ren wrote: > I'd like to enable a few warning options (-Wextra, -Wrestrict, > -Wmissing-prototypes, ...) in the Kbuild for 6.6, but the Makefile > changes will probably go through the Kbuild tree or linux-mm, > and the fixes for existing warnings can just take their normal way. I just checked my log files again and I now see that there are actually a number of -Wmissing-prototype warnings as well: csky/kernel/signal.c:255:17: error: no previous prototype for 'do_notify_resume' [-Werror=missing-prototypes] csky/mm/fault.c:187:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] csky/kernel/traps.c:57:13: error: no previous prototype for 'trap_init' [-Werror=missing-prototypes] csky/kernel/traps.c:150:15: error: no previous prototype for 'do_trap_unknown' [-Werror=missing-prototypes] csky/kernel/traps.c:152:15: error: no previous prototype for 'do_trap_zdiv' [-Werror=missing-prototypes] csky/kernel/traps.c:154:15: error: no previous prototype for 'do_trap_buserr' [-Werror=missing-prototypes] csky/kernel/traps.c:157:17: error: no previous prototype for 'do_trap_misaligned' [-Werror=missing-prototypes] csky/kernel/traps.c:168:17: error: no previous prototype for 'do_trap_bkpt' [-Werror=missing-prototypes] csky/kernel/traps.c:187:17: error: no previous prototype for 'do_trap_illinsn' [-Werror=missing-prototypes] csky/kernel/traps.c:210:17: error: no previous prototype for 'do_trap_fpe' [-Werror=missing-prototypes] csky/kernel/traps.c:220:17: error: no previous prototype for 'do_trap_priv' [-Werror=missing-prototypes] csky/kernel/traps.c:230:17: error: no previous prototype for 'trap_c' [-Werror=missing-prototypes] csky/kernel/vdso/vgettimeofday.c:6:5: error: no previous prototype for '__vdso_clock_gettime' [-Werror=missing-prototypes] csky/kernel/vdso/vgettimeofday.c:12:5: error: no previous prototype for '__vdso_clock_gettime64' [-Werror=missing-prototypes] csky/kernel/vdso/vgettimeofday.c:18:5: error: no previous prototype for '__vdso_gettimeofday' [-Werror=missing-prototypes] csky/kernel/vdso/vgettimeofday.c:24:5: error: no previous prototype for '__vdso_clock_getres' [-Werror=missing-prototypes] csky/kernel/setup.c:104:34: error: no previous prototype for 'csky_start' [-Werror=missing-prototypes] csky/kernel/ptrace.c:320:16: error: no previous prototype for 'syscall_trace_enter' [-Werror=missing-prototypes] csky/kernel/ptrace.c:336:17: error: no previous prototype for 'syscall_trace_exit' [-Werror=missing-prototypes] I missed these as I was first looking at everything except -Wmissing-prototypes that I want to enable. Can you perhaps help out and create a fix for these yourself? Arnd