From patchwork Tue May 16 19:35:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F046EC77B7F for ; Tue, 16 May 2023 19:36:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 90260280005; Tue, 16 May 2023 15:36:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B266280001; Tue, 16 May 2023 15:36:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77A68280005; Tue, 16 May 2023 15:36:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 6949B280001 for ; Tue, 16 May 2023 15:36:41 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 242E4C0394 for ; Tue, 16 May 2023 19:36:41 +0000 (UTC) X-FDA: 80797125402.29.DDECF98 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 54B5F140018 for ; Tue, 16 May 2023 19:36:39 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nU4bcoQ1; spf=pass (imf23.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265799; a=rsa-sha256; cv=none; b=RVR0LB+AoCj/QJZiAgde28HOfHUG5f7KsJeEyQrpEDHWyiqe/T+j1Oj9qgcGNWu8BoQdDI tw7WX6mnf8yMeOelP/jEAfDBCH6NapEr5/xXF33oaXHSs1UfP0zB4Xu1+t4rb1tVeYU+Ke Fr774uUjXPE2x5etufXlUUP7VWG+T9U= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nU4bcoQ1; spf=pass (imf23.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265799; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Nu0jsMva7tp1kgFkp4JorkprZb/WZxLs8PF1Sco+8ZY=; b=ckCiFn5zfMdiogCaNXsrWXnH+wpv2JmtgWCsoyi6diJ7PlDt/1QsSe/FjfszACBkokN9EU aMj3LjTtFJvLtU3PqvvvEB8qA/GKfmOAMRovJKRTJR/vOdiRVBz4daNeUV4PYI5cLgd+TH VkYuoCciQdNYrhu3k16z3JZNdeGbF4U= 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 5DC6463E9F; 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 To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , 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 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 54B5F140018 X-Stat-Signature: 1mtzx61muz1h3wpko9kk745rjuqu5buu X-HE-Tag: 1684265799-155833 X-HE-Meta: U2FsdGVkX189gEQPIjdco+YpHdIdaT0q145cvP5qZjGLW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5WmqNXHeRGVe6jlH8uojZASZqcqtnKUCFe5ybdlAlv8TatnNfcm0TiKQgKCmtqtE/sEGY0CTbZAcu5tm1/ZhsFwPk6IifaZtnfK1ufg5+VA/mrM+P7B9eFkJjEwvEG7NvAEDg0gNppGCQ2N4VZa+HLtTwQipqc2LGGSXzA5/xG3mUwg4r7uX2texqWMhu1jvgX4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Arnd Bergmann '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 Reviewed-by: Alexander Lobakin --- arch/x86/kernel/head32.c | 1 + 1 file changed, 1 insertion(+) 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