Message ID | 20230516193549.544673-6-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp659148vqo; Tue, 16 May 2023 12:38:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65S7AjaBcQoRLJ52QP2FUjHQTftLv9+UKF1nVulQq2BkduCinhu1psrTddbt5V19/0l7Aq X-Received: by 2002:a05:6a20:2452:b0:105:e453:a71 with SMTP id t18-20020a056a20245200b00105e4530a71mr10155253pzc.39.1684265905715; Tue, 16 May 2023 12:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684265905; cv=none; d=google.com; s=arc-20160816; b=V26saVo+KfvsQeFUlOSdeutbL6d5x34/okA7Of2JbSYWdjWDxVEPOBmqZLV8VuVh0R 5T65pEo0IceloL3sr140VpollfNQpzl97DvZhfLK3eyd/jvmHpHS4acFS9o3xXMS1/GN pkl0QibWds/9ekyRyFpBn6nCZz7cUjhV4nsJDYccMP/QBSrm7tHERabRfkgjlg3uNas+ k+eKZahEC6slOQb74O0m1ke07tAkm9h3B34794KXc8PetM/3XfIOq1peMk1V5rMuoJzn mcAfWh+v5hwVu+bHqYI5uNhwIWVAXVQHLyl9NJ4Z21ydaEFGn2M27FS+ykmTQ3RviLb6 MtnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nu0jsMva7tp1kgFkp4JorkprZb/WZxLs8PF1Sco+8ZY=; b=KoGSnTgIsTYfgAhkobG9UHh5E5oH8Znh2WCGZW9xfOeYLb/+cEq07O5UZleS2lZI7z fXJ3ZzpUPmIx2KaYK7CAkmaH0hhNlWmOpupR7D3q6oid4V+WxtFfFWt7vIe7Lz/dHuiR hNU5p7cmqVYGOyuQ2MiF1K0L/kdc3ub01alzF/ChZecc9RWPqCiDBFPrBUHmMGeg6pyL KaYrKFNvj7kXsIs5mafBGshCPKioLex89XC6bsr+G0FczhynRKVH/l5GV0iUzoKJox7I baFH/Gwkfcgy0Kdn/o2lqszBfC/OGoGlyuKQdiUg3GM3Sdxtji+0Cmx5M1HVcxzf5tkf 6omQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nU4bcoQ1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6543c7000000b005309e9ab3b8si10601734pgp.795.2023.05.16.12.38.13; Tue, 16 May 2023 12:38:25 -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=nU4bcoQ1; 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 S229963AbjEPThG (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 15:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjEPThE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 15:37:04 -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 56A24A24C; Tue, 16 May 2023 12:36:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B0BC663E59; Tue, 16 May 2023 19:36:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83CFFC433A1; Tue, 16 May 2023 19:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265798; bh=9077UjXDS1JwWtjrb4zvyxiWevrXkl5r2sPVXNElvI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nU4bcoQ15stgmO0CsrS+eCvsm+gCXhBNBFSdZUZJDZs6Fl6sPo6aQAEbL7HvpgQPw 34YU/6UqjzMRVqANQ++OmNHESa6zNkcaFm2LUOgnGFvueZRpIj33bI3tKq9iIVMOE8 GqW/XJRm7a1E2WWrjpdlejWdGAQtbuecvIZU5NAHZBM5oQh2e9un6it3oTQsqi/lTG 5kxTBEILwkSTC+lRDq4IqynAvKjTaueAozerHdsQ+TGjB+//lEcb2OOHgN+9Q9axD4 hkpT/62nrOrSL8vWP+nEXayygL8S/uqGna9VmOHK6w0B/JcOokBXElfO8XCeFSQKdo bT2kB6PN6dMAg== From: Arnd Bergmann <arnd@kernel.org> To: x86@kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Andy Lutomirski <luto@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Juergen Gross <jgross@suse.com>, "Srivatsa S. Bhat (VMware)" <srivatsa@csail.mit.edu>, Alexey Makhalov <amakhalov@vmware.com>, VMware PV-Drivers Reviewers <pv-drivers@vmware.com>, Peter Zijlstra <peterz@infradead.org>, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, "Rafael J. Wysocki" <rafael@kernel.org>, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 05/20] x86: head: add dummy prototype for mk_early_pgtbl_32 Date: Tue, 16 May 2023 21:35:34 +0200 Message-Id: <20230516193549.544673-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766080806489626420?= X-GMAIL-MSGID: =?utf-8?q?1766080806489626420?= |
Series |
x86: address -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 7:35 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 'make W=1' warns about a function without a prototype in the x86-32 head code: arch/x86/kernel/head32.c:72:13: error: no previous prototype for 'mk_early_pgtbl_32' [-Werror=missing-prototypes] This is called from assembler code, so it does not actually need a prototype. I could not find an appropriate header for it, so just declare it in front of the definition to shut up th warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/kernel/head32.c | 1 + 1 file changed, 1 insertion(+)
Comments
From: Arnd Bergmann <arnd@kernel.org> Date: Tue, 16 May 2023 21:35:34 +0200 > From: Arnd Bergmann <arnd@arndb.de> > > 'make W=1' warns about a function without a prototype in the x86-32 head code: > > arch/x86/kernel/head32.c:72:13: error: no previous prototype for 'mk_early_pgtbl_32' [-Werror=missing-prototypes] > > This is called from assembler code, so it does not actually need a prototype. > I could not find an appropriate header for it, so just declare it in front > of the definition to shut up th warning. ^^ the :p > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> I'd say, for the whole series: Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> BUT apart from the Xen part, it's all black magic rituals to me :D Thanks, Olek
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c index 10c27b4261eb..246a609f889b 100644 --- a/arch/x86/kernel/head32.c +++ b/arch/x86/kernel/head32.c @@ -69,6 +69,7 @@ asmlinkage __visible void __init __noreturn i386_start_kernel(void) * to the first kernel PMD. Note the upper half of each PMD or PTE are * always zero at this stage. */ +void __init mk_early_pgtbl_32(void); void __init mk_early_pgtbl_32(void) { #ifdef __pa