From patchwork Tue May 16 19:35:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243591 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 2F81EC77B7F for ; Tue, 16 May 2023 19:36:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 950CF900002; Tue, 16 May 2023 15:36:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 900CD280002; Tue, 16 May 2023 15:36:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C8BD900004; Tue, 16 May 2023 15:36:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6D50E900002 for ; Tue, 16 May 2023 15:36:17 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 275D61C6A44 for ; Tue, 16 May 2023 19:36:17 +0000 (UTC) X-FDA: 80797124394.08.EB63953 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id 33795C0009 for ; Tue, 16 May 2023 19:36:14 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AOBuVWv8; spf=pass (imf22.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=1684265775; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=09HS3N3BG3mFDsnmcglGWjIO5wPbWbrqny4ROWXLtWE=; b=G288WFzx3ObL980BHtsqlazNbtLXXCdLXdJyMFkWUpDlsCb5MO7cZVTowUAcx8BBXI5lV9 EHYAHhejXznynZzUvLryHeH2j4/oit0wTY/NldNbPSslajfsGDuKoNxa/O0JFSr13pCG+X 7I1MTeXQZKDo2vg7rDS093PYOhdGhTg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265775; a=rsa-sha256; cv=none; b=iCDY+Pj84K53z3R9p1p2KGg112UK7vp0YLIkmoBZqL1m+aUM7WhMit5yb6pKN6tL79+6Ab 3/Ma/sga+wvgZ1xisIQvRW1PuZQdfC3X1ePB443w1jIO79s8JzUEWjTPgam0WwJZNdGnpi DseZpxXNcLyRf0z8tDU3BOP9s7KXk/s= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AOBuVWv8; spf=pass (imf22.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 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 1FE2E63E71; Tue, 16 May 2023 19:36:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06C9EC4339B; Tue, 16 May 2023 19:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265773; bh=+r42W67OGDQQqAy2PIbpqRJtm86RNedMVE1BNsE+HVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AOBuVWv84dy+YEirfBc0rOgB6n5+cRsHG61qC/Lnfi2dGn7Jv+JKh/H02eWWfMUF3 Ex2ZkwkMb7pU24/iLpb6Y8hKTZK4ttU1eJ2NobvkypPk2O2EnpVw+0yr+dF/PpkZQx 3eL/opgEW1QD86klpYN2w8CV+JEExP433BmmgiImAub0k+8is2vhhwVU/VPp6XDlfH 3XztpmqkQ5qaQ29gLQgBc9KgSs6vC4RdNI63NsfmLz+6t5LxvmdPqe41UvKb/ArBhl S7oIwLXWs1/hwyZUUfG2KjSn5ZNqk85FsE1YOlhxhVLrZXk744pPU+X1xr/Njx6aQp zQ2/DkqcjEvOQ== 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 01/20] x86: move prepare_ftrace_return prototype to header Date: Tue, 16 May 2023 21:35:30 +0200 Message-Id: <20230516193549.544673-2-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-Rspamd-Queue-Id: 33795C0009 X-Stat-Signature: ds4e4cw4m8twxuzcqj4meqknpgeuwrgz X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1684265774-698558 X-HE-Meta: U2FsdGVkX1/8aPC4sx3DTlyd+YcZLTPrBO4OQyAq3E52WznfjS/nl5i3yb19jn/8nUooXCJO1coekHJ0fUltvzox0JYaEa3YaF3pSI8nDZv9EVTklhHaUsNmwcuD+gzi0Ef4nupDjUGbGMdcMW5xXdiLxom3WPvBb9G7YzVJg9mAiTsy7BSbASRqZo7+nwX1JBRjM8VxkRdvAZg5cSlvaPi7dxEbFytgo8hLCEaEW8prFEqhD3xC4LbQkiElLI/oYOrPSML2go81ogd18De86HbU+f9XFccLc/T9QAh8B/2JYhp5erQeHZhOTe7AA+LHgEMWOf1gvBCavfX0toIc1PG8e3p58yKke9WWkDHExJofrCkWBBPZ6pGcv1Jy7paAW2KEqqNtCh263CP2WL9DG9vpyV/FFhvInG/EoCitdTqynMWCiHeCMTA9x48KBaQXAIhomIZKGDB/cxmH9Hal+JLwDY2GvU+lAqzPBzSk68xjzJloc9W90FSaJLZZpwzWTVTYb9Q8MU2vxW3varjFJyonfKEbxKVjpBXcJhAIWs5B8f/7shn93rjqJWOsgnI3pIOJvOOsMdmh8f7BD4tvhc98/c7Ogy51R39yDHMOcry7mJ0G5Xhak3+41v0zlzM2o0PVnZB7Ob+BWBFRYPv0/Wob99R76k+ASpMXFbKyUcfbISti5TGvc1AZY5qCLtw/3tzLhqMPkaiJ7nFTZ3M6waHSycTuM69Y8RFoSngxeRBlsiO5PspzSwUoAINTcOmtiCuRFRQCfruMS4o/VREep/TGvOLO4PEJWHDEjFTjyKlO6kpoSa1T/efUkstDRZ3MAixTuG4eU/U27qMbed7Ad2F62hEPthQWzKzntvvZiwTJZ8gYrqI4PwlEjFs/5C/DeXSFkRMJm/+R1+Lm+fNhevVBR2BZceH7EzNSUnm6G2V4YcjRuzbPuSBh/8cORBQHzsr1ewmNRhh3r7t42cE 7LuSA3sd 1slJvn04K4IiYjXoFQYVPqfm7TFMBSzwDKWfhuYwU3c1qHS6Zp/nHdCnJH35bjKN61we5vzQvjw4XR2ml0pH6Xb75JiaBOYZ4o0BrwI7ZdCoWOIVPvHY9jRBMO20ZUUKYdhnKyIk0ksqpmdeter6FuLlHFb1FAVf3i6QQPnmJn8xCaB9QxhgWSq1qZ+FAhEapJ6UBeTIHBCS2cBYzc+ApX53Ru132p79S/XT9Ya79SzQaH70prEH6IqSHS4M1bvvj8rK6t+nk4J5uYZb1bD0ag5FaCLyfKMFfNniBSLtG0J9ptxz29GlHNed9KJgWhGzkwb1Gl9Kgnnq4cjkPAsTxF47qtg== 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 On 32-bit builds, the prepare_ftrace_return() function only has a global definition, but no prototype before it, which causes a warning: arch/x86/kernel/ftrace.c:625:6: warning: no previous prototype for ‘prepare_ftrace_return’ [-Wmissing-prototypes] 625 | void prepare_ftrace_return(unsigned long ip, unsigned long *parent, Move the prototype that is already needed for some configurations into a header file where it can be seen unconditionally. Signed-off-by: Arnd Bergmann Acked-by: Steven Rostedt (Google) --- arch/x86/include/asm/ftrace.h | 3 +++ arch/x86/kernel/ftrace.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index 5061ac98ffa1..b8d4a07f9595 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -106,6 +106,9 @@ struct dyn_arch_ftrace { #ifndef __ASSEMBLY__ +void prepare_ftrace_return(unsigned long ip, unsigned long *parent, + unsigned long frame_pointer); + #if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_DYNAMIC_FTRACE) extern void set_ftrace_ops_ro(void); #else diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index 5e7ead52cfdb..01e8f34daf22 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c @@ -525,9 +525,6 @@ static void *addr_from_call(void *ptr) return ptr + CALL_INSN_SIZE + call.disp; } -void prepare_ftrace_return(unsigned long ip, unsigned long *parent, - unsigned long frame_pointer); - /* * If the ops->trampoline was not allocated, then it probably * has a static trampoline func, or is the ftrace caller itself. From patchwork Tue May 16 19:35:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243592 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 16E6BC77B7A for ; Tue, 16 May 2023 19:36:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9506A280003; Tue, 16 May 2023 15:36:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90099280002; Tue, 16 May 2023 15:36:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C839280003; Tue, 16 May 2023 15:36:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6E774280002 for ; Tue, 16 May 2023 15:36:23 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2B27AC0354 for ; Tue, 16 May 2023 19:36:23 +0000 (UTC) X-FDA: 80797124646.22.2416A99 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf14.hostedemail.com (Postfix) with ESMTP id 6854310000F for ; Tue, 16 May 2023 19:36:21 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="N1TfAHj/"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265781; 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=J9vwAgUGzJPXpyL3xL/Qje9bVrs2fecMt/a/ERYoECw=; b=g3NRHKIXqt6hCv0WeFMYsADD6HJIBoh8f3C2j4tirE/CWkpIqT8PK5v4C7SHyd2+ZkKLnw iCx7rqu0C7D7+tID/bx15COgwVaTbImQo7+939ct2xMbXIktIK3WU5vfjxPSfrsMyNPpYv 3yFQZLTSfrZy1w56/vrFxjKyJjeP48U= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="N1TfAHj/"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265781; a=rsa-sha256; cv=none; b=2I+5DY29bc1hKX3bS4qFRKaOkSpGYHhn2H/BYIANeZXggmOCILSKjK/FA0DUH8qw3av3ko G844PqDZwU8fr3NrnA4DZZL3KeiKNrHXxpJyXWIJa+GacSuIHoOZEdjyPX6aLwDYv6JV0T NbLfEXjPftxPIsLw8gh1785lzq65oyo= 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 6283163DB0; Tue, 16 May 2023 19:36:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3326DC4339C; Tue, 16 May 2023 19:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265779; bh=1y8qB7kv+xDWqxOYw4K9L6tE3JzzzyJ6tx4iNSAnwRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N1TfAHj/hol7TROTcUR6gshmlOixx+65a3Ny2hHWBSJC5v+DkbnglNdZhuHcyHDF1 TGrpdPBwNN+NswjZNBi8Y8axdkLspbxGTmhWJm3FISvx8uYKpFvWNvMYUCeI0BwiSq o2a0BV8veTqGfq/kZefozxrUC+JvKPGZDvIk8eukSQlrMDWDfPGou7ctUpolUaZ2wS VqKfOGtBPnd7AVKTmQ7p3HUnf7CiL3BOgYkssO0EHfiTrF/sy6ARFEYqTGdMUd/NC6 B708eZZdFX4plzFfEgIC/q+8LA6b9xp6feRVGoJ6xTNav8yRpOnn1MkAw3aOWScHlE /IvgTFvadxfTQ== 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 02/20] x86: ce4100: Mark local functions as 'static' Date: Tue, 16 May 2023 21:35:31 +0200 Message-Id: <20230516193549.544673-3-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-Stat-Signature: hqxjuu7wsgamoe6ezxiuyyhztej39cwy X-Rspam-User: X-Rspamd-Queue-Id: 6854310000F X-Rspamd-Server: rspam07 X-HE-Tag: 1684265781-255870 X-HE-Meta: U2FsdGVkX1/DO6A7Cvls85z931oLsPmRgwjtC87xjOIzCAd3K1C8dKEJ8BkN7cyx5VqR0YC+2jpCdi1SK43BKN1u7Ir2JAUVUe35+9geJpeiB4cSyWiGf53o69Ri1hHfJCOdQjTS7p9z/hPJqRFsOE9poUqb5k4h5meNvZSXVwaOqcSydFxDm03jdntGMV5gMLB2dfsWPEamwpXCAfIwJXpDsrbluCPG3iY6aeTjup4PNRpOFt7K4IIZUDN6vFBxbgubVE1IKEBYp6iL9VS+XIVivThcvStbVfRK+OdR/RolEDscM8HYLD0fxq4CtOfu8ldo9hMmNKaRN2sWB3+wWxgnQGE21zCXv7MvQWTKzaY1zJRNzdu6J75ULkL6c6TVpftUuXN+ys/qOz4ZtxXapQ8QWxD46BpVoGpc3L6myLPxlLidZbZC+zPzbwKDcAgBIvimzWYDAE4ha18dadAOLjuQ3nZl4x9UnGJlg2qVatnBllZ8alviO3uDXrxU1AwwscebGCTZMW8/cJadc2gWguZlOxcoPrPNJ/yzb8MlgsEjXrTRoMGOG3a+xYu5saQt7lNUAiN3hR+P3jvM/UZnzNbsTQn6RKc206hBOD8LM0Mcw8Gi8m4SgvgaoXLJVU8N0/51pOGo0VuYqM8unVGNYCLE4biBLvvxECLiM7IaBghz9na8d6dZIArFljJMC8RIjWBy64XofcF4sTOr36yyW0LrG0IzFb4Vx3e0tLctp61PneVGgvkQ297+xzmpDi34DuJiiPsTpRhkEhuHPiWybAvW6ZNokMJdM8n1RHb7jGhkeBayRmLRBWR1cZW4/TI76HaTNnJRMHf1j5YQA4N6h2XTbSyZ57L+9K/smgcrfzQiSV5EOWNve41hIReiv6dRa7QpFyrm0cNBk0OWnsX4+v0U4pzc9jOopQZ2ARakGpk2PC98F0/NBuNLuIMZ9VKrN8RUSq5mh69VUg08ZSh QUPb1xH7 KDv4Ln+eTIlQI7woqVMmH1zwskaFuiQHQMPZQyLbjsrQwqxlt1n9y6oop9E/SIVk6ZjjEx6/uDx3TGKJXhyubxvHhfopCftkAzEVHaDGsh2JKdbdRHvQCVmRNdMf+YUFkSI76vuWypDBl8xcPr3Os3R8v4KZ5EaX/9zhOW58C8Zw9/JoO8Ah7esF/M5WDcLeUugaUANfv/z/bfxVKwhlB3zeTqeI350cOQibkvaaGVPSecMFVgPGd6tV2PvrtH0YOonZxgWDCepW557aUJwjqsulrFQ== 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 Two functions in this file are global but have no prototype in a header and are not called from elsewhere, so they should be static: arch/x86/pci/ce4100.c:86:6: error: no previous prototype for 'sata_revid_init' [-Werror=missing-prototypes] arch/x86/pci/ce4100.c:175:5: error: no previous prototype for 'bridge_read' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/pci/ce4100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/pci/ce4100.c b/arch/x86/pci/ce4100.c index 584c25b588b4..87313701f069 100644 --- a/arch/x86/pci/ce4100.c +++ b/arch/x86/pci/ce4100.c @@ -83,7 +83,7 @@ static void ehci_reg_read(struct sim_dev_reg *reg, u32 *value) *value |= 0x100; } -void sata_revid_init(struct sim_dev_reg *reg) +static void sata_revid_init(struct sim_dev_reg *reg) { reg->sim_reg.value = 0x01060100; reg->sim_reg.mask = 0; @@ -172,7 +172,7 @@ static inline void extract_bytes(u32 *value, int reg, int len) *value &= mask; } -int bridge_read(unsigned int devfn, int reg, int len, u32 *value) +static int bridge_read(unsigned int devfn, int reg, int len, u32 *value) { u32 av_bridge_base, av_bridge_limit; int retval = 0; From patchwork Tue May 16 19:35:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243593 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 2AA40C7EE23 for ; Tue, 16 May 2023 19:36:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 69296280002; Tue, 16 May 2023 15:36:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6418F280001; Tue, 16 May 2023 15:36:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 50B6A280002; Tue, 16 May 2023 15:36:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 43230280001 for ; Tue, 16 May 2023 15:36:29 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 13421C02B6 for ; Tue, 16 May 2023 19:36:29 +0000 (UTC) X-FDA: 80797124898.03.0A31055 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf13.hostedemail.com (Postfix) with ESMTP id 32F8120012 for ; Tue, 16 May 2023 19:36:26 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bB9/JNuG"; spf=pass (imf13.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=1684265787; a=rsa-sha256; cv=none; b=73zI4CZWbOPmaDg/igw9XOnQS+uF6taL3/Mpn4UBSeRl4o1O6JC+/yI+N8ny0kTHXP/ohO EZ4dxjjqkYCzb1FMpd+5IsGBHciGfS5QayagxNa2qQoV18IDMdiHtK6CfjBUzkXN0YmzQE 0UpU/91sx758P63byLSiaOGOqWL3gfo= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bB9/JNuG"; spf=pass (imf13.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=1684265787; 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=5SFDBgTtU0UkBX0Cd+2aksijeEM0RruAc8g90Vv6tdM=; b=VqhD3lCAZgLTXnOKieW5ixmW3PkS85VkykK90A3C0f1hS53j9k7Ss092WRrNXubyqHW5rl 6S17bjEwHAbdmc66oGuZhrQJZfyFq9xkdpWZpXrWXWO6kMXrfZ50x29eT5F/uEs5hXV1cI 5HUeL7Ytva+tKdpd9OVQ6Q+/J1tpe1c= 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 26E8E63E90; Tue, 16 May 2023 19:36:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50CFDC433D2; Tue, 16 May 2023 19:36:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265786; bh=L/Qp31ZARnIa1bxC1DyJGeKMdFS5Wgtrq4kpQkQu2zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bB9/JNuGXy+CuuSmBA1mIJQRdm3PDhpA4MNWL9vDjPPUv0Axx1Q2VLtiOmu5h4wlO ZIiveTA4vEzmvtg6jqHfnB2IA/KyFoLv58fU1C/G4RLxDtlLb+qWaDnPLIHqxp+uJN YuIEMEzwPeJyaUbpe/498ig/Aj8SroIALwN5a9JdhgsmlVncnEE6j0ApQr0CD6wwpG uayon8hFFnce7FZ+xk3f501jDfoYnSDBCEasqeaP9EuAKAaVBUhLY0N+aATStZTdOq FxWM3nrGI7ppoWHfghhJ25EqNePfkhNvOQNgYm+lOBRhMsfTshiuFBM/UygrVqzdJr FaoOyV2QyNahg== 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 03/20] x86: apic: hide unused safe_smp_processor_id on UP Date: Tue, 16 May 2023 21:35:32 +0200 Message-Id: <20230516193549.544673-4-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-Stat-Signature: t8fcteboqqe3scoamumceug85gmw8idy X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 32F8120012 X-HE-Tag: 1684265786-15899 X-HE-Meta: U2FsdGVkX19U55xbYD2vYlslq27pBdWrEbx7y4zrW7N5bDKDj8Ynz2RGS+dh1PfoiU3XfEetsWB5pfgpdfAO1Xc3uHJ0BLzMaWU0lP9tYottbNKOwMHO7t39paiyAwTVJfHYeeyVCteylxZVSX3jLCqwetP8CYvLTk6Ud78093gsSsN4SfCsx7cYO4POkXVZKvHmMORUk/1U1ffBIVFOSugfH0s5ZRGwkweSLpk3mM+pwg2uBTpix92aUGahTE3PXDCjOH9B2+asyqM4cpUieVtfX8+MUGAzVZ4qv78GvNLcpUAc9WOVhJOhCS8RwD5JOQ0A+TJr3Xl5QguKKg4L2zOtjzSzj99r0LEyQyVUzRFEnh798aUeMPmpE0XOjMUznK/gFYrOjGnpbtZnZOVTuFCbVhlVIrVPP+qdO4IynFBPxoArwIQ9i6iTGEjJk0I/SSPz2Tw/GYayHl/m6BQD2Br+i16Wf2uWKYMLWf+EZsJTbjDHu26sbVhcy/yyoqTRin2xhSh8mbOh95xsACMDq4+TyUrNs3AgtYHHQE5+dO419EmiNJbX7rGwNWrFo5CVczBz7WrtrX9nGnFf6JEm3jKTnbzRb4+9Of05N9Z1Bo6PYbmIxufIFD+HbNxu645byYUcnCPC2xau8bqahY0vXSUX6l/A70NgO7aowtdbIA2vPqGgQSx67q/j/wAvKTWpGxLllCsqaWQkb7X544qxuQK/xeTWDS2byHc2gwHQgFVsDvQXKb7TEVbbcZDMRjpIpYmbQhg5660h8ngySo8QrdUJ7LsoCgou/HabKXSu2RszHaoGWhvgbZoe1OW69F6/awkyElgDiUAaoq9EBOurWbyB6GsM1B86vT6TWs4Bteg3mqDFbKDiLXmquyqRE0NITN9YACCv/ZV5CFFHLLRez6ZVR7g9zQI6UPT0kMja6jjmMjEGQvGUuSIVyGzPvBxku4ahE8f47l0NiNZmV1R upl3VtC6 nPq+lO87YrHgh27jPlwva9uVPzJ0JWrhABbpzbh2ZI5688GQ2844cOuGevPVuVfvQyg60ZCiaSSOKXwSRb7yTnFTKnaer4WS8wTuLDT2WxL/kjCf5gfmCPLEfLeOJhDPmFEj9sc0ZEuvVlclJnDG0IbggLwwQLygpLLlyqGkK3affXHnSA/smk9KAUmDSEPTr+kptLewAWqHV07dhdBuy9K/Xc0QmMlQMWBH2lg7Osy1s0f9DLGlIgsJ0/Aa3deHz0kq8sXewj4hjFntpBJZrlGSm2IEuVkk3O4hKTshhajHYmoAgGXK2IqOSYXhEiJoRB5Pb0NFtoTY4ZUU= 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 When CONFIG_SMP is disabled, the prototype for safe_smp_processor_id() is hidden, which causes a W=1 warning: /home/arnd/arm-soc/arch/x86/kernel/apic/ipi.c:316:5: error: no previous prototype for 'safe_smp_processor_id' [-Werror=missing-prototypes] Since there are no callers in this configuration, just hide the definition as well. Signed-off-by: Arnd Bergmann --- arch/x86/kernel/apic/ipi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c index 2a6509e8c840..9bfd6e397384 100644 --- a/arch/x86/kernel/apic/ipi.c +++ b/arch/x86/kernel/apic/ipi.c @@ -301,6 +301,7 @@ void default_send_IPI_mask_logical(const struct cpumask *cpumask, int vector) local_irq_restore(flags); } +#ifdef CONFIG_SMP /* must come after the send_IPI functions above for inlining */ static int convert_apicid_to_cpu(int apic_id) { @@ -329,3 +330,4 @@ int safe_smp_processor_id(void) return cpuid >= 0 ? cpuid : 0; } #endif +#endif From patchwork Tue May 16 19:35:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243594 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 EBEB7C77B7F for ; Tue, 16 May 2023 19:36:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 88D7E280004; Tue, 16 May 2023 15:36:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83D0E280001; Tue, 16 May 2023 15:36:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 72C71280004; Tue, 16 May 2023 15:36:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 66024280001 for ; Tue, 16 May 2023 15:36:35 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 38E7C160396 for ; Tue, 16 May 2023 19:36:35 +0000 (UTC) X-FDA: 80797125150.15.6949607 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 896F240002 for ; Tue, 16 May 2023 19:36:33 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pMmYMmj6; spf=pass (imf01.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=1684265793; a=rsa-sha256; cv=none; b=JGQAke/mBZved0VU4XnALRisghhhv4tlAutkJTohpIAF4GVylf3S9/f6C6a7WaN+fsMyzF 3lg8Bfw16v9P8/Do+vqkybOi3O/zTlvvO0O6qtiZiIbYiqDUpBALa3Adlq00VVU8LNctYh G+61l/zrcGJoBHUM7w7h6VfiP02Pajw= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pMmYMmj6; spf=pass (imf01.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=1684265793; 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=BeXv+x7uHfmkKGK8f/rfd+LfyhvVJS/3CLNRCvaxQWI=; b=PDRzFrdrkzOPtmhsURKDuRGNJlToMmfYn1uNJFZh8uvgRY6GzbnXEfJCLhkcGJcYmSIINw czR8yAelZRFIRaPprHSmbJzwsIDN6gspbgL9R9+9d5F/DQj2W6IE1Aquk7kG7LTwuJHSjn 9ZkZ1sspm6XK5tnWUra6qoBsclvUn74= 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 9E97263E84; Tue, 16 May 2023 19:36:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DA1EC4339B; Tue, 16 May 2023 19:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265792; bh=NCehg1lkd+BZGGfLe6zB+YpAMyX3wRQS6FlZqTExKsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pMmYMmj61h1ryVXMWXgEPNi4c4GgRS8wGlxnCd9UxrJ05iwjecyfTOduY+WoqWZpO Cvm/AJCD+MXi+4Shut/6HQufiGCdANXUBd424+CiNufUW6Mt2CPMf2SX0Erut/1Yjz CZmpdbkHOQ1xlqE6pSRjeDiYME9avcj4NHsxu1xrpZ1j/RY+4x7QvymeScI7FPaZ6A 7vr/gZpCa3X1Nt6lxKZnO93JGkaChZ3M73Qb3fsEPkq2r9hKpfzvuhPaebh6V7v7p/ EnZrHT3z5U/r3Es9dGNnRROzYJFVNwRgJqycAOQQGvYgjBv9ea9EtDpGHUpfp80+kM +ZmQV+6dglcAw== 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 04/20] x86: avoid unneeded __div64_32 function definition Date: Tue, 16 May 2023 21:35:33 +0200 Message-Id: <20230516193549.544673-5-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: 896F240002 X-Stat-Signature: fib6wn8pcqh4pmca1r6icyc8zoxzzus6 X-HE-Tag: 1684265793-86803 X-HE-Meta: U2FsdGVkX1/EN4FngqzQeV05ipB2soG6XKnoDLz0G6MjIrqV1Gd0gArZfdSVQTk7moFTAQcbOM3jY8R5N0bTSkA1R8irsTxX/W+iNdGq6a7cVbLhB6pMK2qhkFsOU/5qCnDfH+q9T3gYBCtnLyVxqLJCFbKvxrgm5IhidsLtYdZmR9FgzTRtFNSmv+0TnW9lJ0IbtFMq3GuMOmVAWX7c4PTkFNTYmZX0FKwngk09OhekfeDVsGM5FZg9FqiFJdQlrZSCB4qEI7eiwW29ALSQVbLjCVgn0iieO8q2Suqgv2eOfX02I1CvfTDMiA382RWuLJhP/71yBTMSo4EpOK+DpyT2mViq2YrRAHA9tnJlK8JwUiZ/M5drP18lQLvigxQ5//0niwWUd+3vb2HVH67/khqQWjNJSWsqiS2xqeIzsRWGpd7KisWjggAYMeawlWtyNgDPPxqzJrYERohAmWOAlJcJANtnbZXtSf8R2qNC8AW8WtWLI+vTH/TXJQw8cgDqOnn9HGgsL0LXa2rtySYwDIFo7Tbv/qaU/m9BFEVavz2DOocWh806sFSXZRtaS2WxxIdyre43ToccVVbBpSY0mkplXtCV8URkqHDj530kkBGGTge2+nAXeE0k8BrtixTVhgV1oUmsJuM90aianiU9HY8TDulhpUP58ywpAEBHnl/jj9MSOfv4shgb6uVLDHksQLCFybYHSfF7p0AhyPGvcTrCNrctROA4Zy+1VzBvVx19JvvRtWxQv/HM8ntwfS0zFmAjAbzWjP7LwiDQuCsgdYK9Z/sWuzElJKk+q8y9Gft6NDBXLjV5Iff05HzMZImDzBJyNu5vk86xNWMoRtl6G/F4yt1+gqNAma1uJ5SjgopSOA48VDtpjgMljx38N1Wa7ThlZWSBC07spHU2QCaDoc4cQ45I25Gft6VE+ZYATg+dZu+Gur7uX4TmFDJwRoRXXN4ZHtziXibhw081QE0 USWXpOFm pZjZ+AhEiA9g1NHBZ7IFyjueoat2BjDd7EEnBQOt0qRDMBC083HdRKu/53vQqUi+2RS+LThal1eRbAYd2arq5UGjans8d0gVTxys8ADwM6avkj7WqcLWYA44ure1sEhGyoUyWEDh0MaVPgjCKpjhKYVQCyIzDk+r85k1WwOs7T4LznvRiA/kPiXYRaNaXnVjO60PK0vpopQlYilkgKf2juODQpk+L+WQWUZ+K7Ex8YYJZfiiTHpL83HKDoVpLbnKCr3cbiapK4bgE8mKqHIyrCNnd+vQ8Z6ii4hexiXkU0KQr7MUSkVYAWenezUnOLvNMpH71AQPWSxxXOZU= 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 The __div64_32() function is provided for 32-bit architectures that don't have a custom do_div() implementation. x86_32 has one, and does not use the header file that declares the function prototype, so the definition causes a W=1 warning: lib/math/div64.c:31:32: error: no previous prototype for '__div64_32' [-Werror=missing-prototypes] Define an empty macro to prevent the function definition from getting built, which avoids the warning and saves a little .text space. Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/div64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/div64.h b/arch/x86/include/asm/div64.h index b8f1dc0761e4..9826d5fc12e3 100644 --- a/arch/x86/include/asm/div64.h +++ b/arch/x86/include/asm/div64.h @@ -71,6 +71,8 @@ static inline u64 mul_u32_u32(u32 a, u32 b) } #define mul_u32_u32 mul_u32_u32 +#define __div64_32 /* not needed */ + #else # include 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+YpHdIdaT0q145cvP5qZjGLWql230tXyP521JjeZGDhto+ildPIHXjcJzax74MmgGJaZ5Lf1I6RMR/lQsDb+Iot7LZgu7X26GaNTPIN1sTamZKeScv4QdJc+xpn+A9SJ87opyltrXt5nRJWR1829o9fYb5RCtSl9B5ib8E14XiAgOtMF/xGz2/Nts80ZtyQlfkjltFQUHPi41u1EIVc1lmO6rWGyvDrInmR6zwH/PmmQKL7wdvL3zlnbxp9kHV/GFIs/Lz4X0kYiCIpletodiNGxK5nhBPzjlVleQruYP9qEMD7QrchDtEeMfB7tUMfwgXGCWDsam6jb8Z/i+pginnfKqP0IrmyKa6hadoORoFbpGFQIhJDABiJo5sGcSkf1l3ZCRgC0C5B8zf4UXWDo+HJ3IxVt7XSlynk9JCH50OgEIKa9TZKIprgRsbJJsc2/5pv+dkv4JIGWoCH4ffh23VShB/DI1Yogf4Hv0RyWHUpwvJaOrdg18SY4EwIQ4CSdoce43G+aOKU28/SZDU3t2MvjlPoydRreajlrGfBEvrcV5QJJUXFLHzc/f0a8Djdtc7C2BlzNlpDU+VLd2gNVAIT+6FMPKKkx1uV7XQZ+aaYphMVUNW14qhzv+yBO8QtbPLrymgW6pR5tdtRBG6Z6/9U5d7ox/Agc2IgVO1vddpDRnetDPn1RBM8idTKRM6jRkx01fwquIdeb1rl6RiAZ5Q5HozM50UXWtKLtpqfSvzSj8OCsKMzuVoCngHPeT3Y/zbFINef1UhzvKdXJEclTNnWwzIty80yIfIFz1ydqWdkewYPqXbkA3EguTO6d2jru2b63vQiDo0XUrCPryvQVSWGucWcZH6TIbiIjUgRhXqE6s4F0nKHif3IaZ9fe+NGWvdtkOkGuKBkgUiFI7CVH3PdfbwMUN7yjMH7Ys6btTRSYo/BKDKyUl29HwC+09c /zDyYnNs QBGp0uvARWmF+oxvjrGsqUJodaJQIQd2fX0neuJDEHGbJOphUf1YPTQ3R2mgS/zwmwac1vDGnAuDeNxxT/AGTgSm368o+3zTDnnR9Fz6MVpB+j6IEgfYnWf6DfgmMC1sAXyMs/V4WDcaJ5WmqNXHeRGVe6jlH8uojZASZqcqtnKUCFe5ybdlAlv8TatnNfcm0TiKQgKCmtqtE/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 From patchwork Tue May 16 19:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243596 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 261C7C77B7F for ; Tue, 16 May 2023 19:36:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE8F6280002; Tue, 16 May 2023 15:36:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B97D1280001; Tue, 16 May 2023 15:36:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A604A280002; Tue, 16 May 2023 15:36:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 98EB7280001 for ; Tue, 16 May 2023 15:36:47 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5FF55C038A for ; Tue, 16 May 2023 19:36:47 +0000 (UTC) X-FDA: 80797125654.12.D116467 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 95CAE40017 for ; Tue, 16 May 2023 19:36:45 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=f0SoTDZC; spf=pass (imf01.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=1684265805; 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=Xa60m0BkwxL0YwOhVNV3DLj0coMVCK/xcT0wZKHwjqI=; b=Lj50ECKdAE12I8Bky85Rhw3XxXFBpDdOygqcSbPgZxv3XKGImbxyuj6Ah2UWZADfJVwHtO BV1fu9YSFywa3vSL51CfKgpJ0PH2V+JahmccQnlvsotFgc2TH6diCLlp0Zc+SyfMG3uRAz AJl3xbekxn0QWJZUnYJiFXJRuT6/enQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265805; a=rsa-sha256; cv=none; b=ohuXljAvsD1MRwya5cUhmovvSQtOcnxWbZxqZy0RxVt6lw7s3wnqxtiBLTCZpoSeeJJUkZ Q78bHfYYl/g56vA3cUhdaBI0I/fYcQMdwq1DdnkHxZgCBD0ovrPrUT0/mZgKcE+SezzuJI PbaaPn3P0S6Z7fMDK7OL2fdwrrCUGYM= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=f0SoTDZC; spf=pass (imf01.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 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 640B963E9B; Tue, 16 May 2023 19:36:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98313C433A4; Tue, 16 May 2023 19:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265804; bh=LoIviGdfSLH1ko7JOljz+WAWBtvFrxU7baITA30Kitg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f0SoTDZCBXANhO1JcRHoynXaLVhlO4XJ4vTd5g+5q0mXl9+dwihXQSjEJ2aF5PXD/ YJxxo2zEzGeYvPkjnpK4ydF8PNotm4sCoP7sIPFgPh0+jYX3ClFJbP9hWa/pr/81FH rmiMLwAicNzJUMwErqx6DSJsta/whdlp/sC/tZT1cvxj5paHYr0r+8Nyyo5u5xkv5T 3r84XCOMO59rOsDFBM8wNIcW0zhbFHV1ety++q1mSUr8ScvUEZcAnGwKVpfu1h2uwR waDu2tWolCE9YEYKKmG7d67vPlyLJ4ZYk6cOavjtt4C56mPdY+e8uvRCKegTvnFXKC xnJG4ywBEjUvw== 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 06/20] x86: math-emu: include asm/fpu/regset.h Date: Tue, 16 May 2023 21:35:35 +0200 Message-Id: <20230516193549.544673-7-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-Rspamd-Queue-Id: 95CAE40017 X-Stat-Signature: j1mmagip93s6f68rs3rougjiycqi6f41 X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1684265805-53686 X-HE-Meta: U2FsdGVkX1/Gd3KkJOKoW3/Ulr8X9/7lKWyO8tQS0AdG+TETsT/hOr/3faXyW9Aex/UuWjkJ89qnwNjo43SNHDMK09+UtYtDC6gfbcKWCQ4Uq8qc3KVDodr1brDEtZ56BtG4wDdroS21oF4PngNwI33/DzroOE3FYcNqaEMq6g3lL0bH+hkJbPuK4EnXaweo07A6BCV5P3syeKQle/ovuJ5GmR5Wp4ahgEWebjJMn28gl2ONUyDL9HWSfxbQgwxibnLDxvFxvCsQEIJFTy52Rxigzouj0tsbOJt6k7Cy+0oR/wCOu7/u8YsSrcTyslftbvZS7BgQwSr1OnN4D7UrZ12UOV1Wjx2WxEn3yShYgO5ptGwR3SAjFhQlRe2TKECUCLCUh03JN5w/pdljRRgTutPcmxGx+oOT8/oJhcJtBYtF93dPJVYb5PQNtao95qMV3Veya+pauh8C/+IQXpB+FlQM9Dybd5SSj9wXbN3JmLwoiVC+FU/Z8jcmqqlhzyTHwjb+08K/AQbtU6xZ1r5QGT7vKQSkOSczj7RMnMrt4DD9BBM7sBK4MYNzd2LqOjv+Clyu2JrKXxfrt2Zqf+zJc2etqyMcKin8+o0nka4dS7GaZUvkLL7GfRW+7mHzbeRFsTs+Tf50KTNOzLRX5YNzPtPoGplZdWEX+W4bkRHOsyhNlKvWWu4Y+fKFJqer2oyvz2U6BmQ66fgK5KRtewo8tk+qAztAl+SzB+GUMLxOBoqisYPL7cgKt9KeiWXMtznwWofxnYONNnqdl/MASSqML2/xxaCXdFKeaXw2DXv2SBCKSEqOLNGhsCj+G9XKdHvMGVFXUTZgCLJvmvKwltbBGf2xbRh85DC2T07B9tBO6YLzvmX0H5hd3nogdlpaNNvX3/+vcm3j/Vh1sD07xz8Vf81vfiY6LGwu4yRvGQpcNNBTAYZTaUYIbiRFLEsaGmHkc2KYW6bVosog7iBp/Re TdvS5ZUF Ko5ZXdg1XNKCd31hyRm0NnbAZ+cVh0s/PVEUJghKQlbcZPg+jd792LxDHzVmwnIUtj3XVmduyfqT5LGZvwCQ+Tk+LtJAZ9jcGy0NOhI+LrlnxgMjIpTX/OP75DN8zIXm7/kliWzvMrzZjcC5ir41Svkkpb3HXv1LF5I5QSAuHbbS78fiD4Omnux9u73OoJoeVatiwLMlHUXvMo3P2fY8wkL7cChbhmPYn0dJgPo1I+0cRQLI7sMBzS4pRKPnphw+9Gt3z/qofBJZJ7dLYyTYn7orQzg== 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 The fpregs_soft_set/fpregs_soft_get functions are declared in a header that is not included in the file that defines them, causing a W=1 warning: /home/arnd/arm-soc/arch/x86/math-emu/fpu_entry.c:638:5: error: no previous prototype for 'fpregs_soft_set' [-Werror=missing-prototypes] 638 | int fpregs_soft_set(struct task_struct *target, | ^~~~~~~~~~~~~~~ /home/arnd/arm-soc/arch/x86/math-emu/fpu_entry.c:690:5: error: no previous prototype for 'fpregs_soft_get' [-Werror=missing-prototypes] 690 | int fpregs_soft_get(struct task_struct *target, Include the file here to avoid the warning. Signed-off-by: Arnd Bergmann --- arch/x86/math-emu/fpu_entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index 7fe56c594aa6..91c52ead1226 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "fpu_system.h" #include "fpu_emu.h" From patchwork Tue May 16 19:35:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243597 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 39338C7EE23 for ; Tue, 16 May 2023 19:36:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CFA94280006; Tue, 16 May 2023 15:36:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C82BF280001; Tue, 16 May 2023 15:36:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B4B47280006; Tue, 16 May 2023 15:36:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A4657280001 for ; Tue, 16 May 2023 15:36:54 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6E4391403A8 for ; Tue, 16 May 2023 19:36:54 +0000 (UTC) X-FDA: 80797125948.25.8584845 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf16.hostedemail.com (Postfix) with ESMTP id 7715A18000D for ; Tue, 16 May 2023 19:36:51 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="JMo/H+dc"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf16.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265811; 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=qA7GrlyyzY3262ALnRWQWCdmNK1kJ5E5LfUfbn9Dzs8=; b=naxdFPEwvKT8JFVliSWh5fHvVCigL2WvVi331EF7VUfZj5jNEcxFMw25ldlcX8pyeKj72T f4xDl1IL6NE2WpECTwAJxhpQhSRsGd/Z6PVKC18nYIPM8Go7Xt6a5u8Ik8MZdwSjGlqYak cbcOrzghH1J+ubpKs5OZEdENsWpKql0= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="JMo/H+dc"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf16.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265811; a=rsa-sha256; cv=none; b=kQxznKPKDsm7qjIoYKAk7uvEwP/jYDnG01TAvxWe5Ofa/iqJVCTp937jMRjRcB/PtXJbnu 3RTRPCGPiqWMbidxNBmNlu9jsTSKdbQ17g3ASjan4sEOatoyVWjigpMxbKibWHNjBDvkA+ HxHWSbARcUgJNFgjrx6WsZ/rlsJk9fw= 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 7895663DB9; Tue, 16 May 2023 19:36:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB288C433D2; Tue, 16 May 2023 19:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265810; bh=UIw2cpO0M7mgQJomy8Z1KQIbzqHPSHzZkNPw0ZSZdik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JMo/H+dcAwoiU2BvKT+/qzV35hAeKJ89YTDQRfZVp5VuxZ7AAwO6XIq6mGKGPLHPM n9Kgl0NxgfysUuyDXpoIpuKvgQDWBsj4qr+esrqhkg9QY7EaCjoIEcFFWSEs2pEGzA FnkLwXZ2J/6v8Go5SZJp9S7qOEGXEQwUg5o1OEKHvC0coA5trawZlHiYQ1s91VRsLo WQUb4Fjw53QsgtZj9Y0iaE8RIw4x3ZsPuMC/axFjq2EAqnJ7Ryi+ghY1T0ksu98x57 czRJOOwVX2pWrVR691opbv/O3yATTIWa99EE41FEQBTMfS2DReIvbrilOoBUrVW/Kl t+ouxwrQLLJeA== 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 07/20] x86: doublefault: avoid missing-prototype warnings Date: Tue, 16 May 2023 21:35:36 +0200 Message-Id: <20230516193549.544673-8-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-Stat-Signature: uco9h6fjzxb8udsycmdtutg99ps4q15z X-Rspam-User: X-Rspamd-Queue-Id: 7715A18000D X-Rspamd-Server: rspam07 X-HE-Tag: 1684265811-988671 X-HE-Meta: U2FsdGVkX1/EX8mIQAq5HlFnr3EopUCuJlrF+J4+C76sSeK/0WGPVdkEt6AOqXzfAqnxq5OPa5ZDRL0RQ4Jj5BZ49L4Q2E/YF4FeoMiSfgceQ0QoOUBymoIXFQjw8eUjm30ZZS2RBUTlhnPQ1qhEyR3cvheHKAgU4KUx6JrcXt1VoAH7rtNXQIoeg7+X8R7rmbjJWtpD4klxA4e9IT9btDzcWplwQm5rCzOkC5otwJFsSUBjKVG2IMKFpubri33CFR5VEHNlxDyFOlb6ke0sGEwxOF/dfxZk2vdrSXN89ijdVW5GddvQDldDJLomBeMV0Gr+Ns9fgr0v4hI270ueDjMWnW2eejmtLHdi2/p7iuO1gYR518rgWjkUXcsitJ0bZd892F2R2Tyr0cY8n7FOFMIBnv+TTJMguH2Y4qwiO2IVXg2PXLTgmStKoumNEd3RbJZg7g9RV/yKq4XAyJCG6ZIZzr1oBlTNrf2sxMqv0p063EI5UguSVbIa5zKRQHHxT/qsUIBRHvGKQNm14Mwnhzn5xaJmhvCtyVgCIRCCfrISsGL1SCmSuXQwN9XXTy0y6LdnfHvkCr8mvuCJTATEDHH2gPDLCHqQu/12n4xpJ5YyCssYuwTMRvKfWZrjW1i8h1STsoYrq22+ZZ1Ae0QcAP1p1+0Fon/cfdj107Kacf8hm+/5/imFnMP8NqKs5ZPuSz12vu3qM7irXdkEeq0LJiwkooZ/JwQCgduZz/I7RGYoXmNBgpbdLz+OM8m2EsySRkhu9UYnLBOvkInBlsR9koceZuQ0pn8eM5PxHy/Go7z/33It+Oy85WmWWKTzhXJfZc9dmOsKYcl94hWERB/gf/r4Ly8ip2L8y/kETuiSyGBnflhb1P1lSKYi4JG4MU749h8DoWiMnjwsZeQy/rlZApayo+Bz9Xb+OWJ9BtXYkUxjW9bWpGDqEQIGzYmWg3D5Mb64nCTb/5H2Lk5TVvm Svrytv15 B1KzZadCLVh02jn8TvhFFc76BsGmYauCvvRzPcNR4fWrqiGaxFYtW3LdK2J/4LuxYPUIaWk9IWJrn/B1Kt5MV0+f/DZ3hpopOQiWOZavOwpTxaAb243HV1T9Tu2xunfrWdvYCnJWt2x1iN7ciQfMvlXLxGMzkVdM5MuggxXIPY10zAYOZgrbs3z6t8zqkTu1et0mIzVetMuERMWWGgXdXRCu4wDEtXaMbmMNiuTNhow/OIyXV1J77RgE+eyiavWW2adMA4+l22U0TBODe0l3QCAghpQ== 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 Two functions in the 32-bit doublefault code are lacking a prototype: arch/x86/kernel/doublefault_32.c:23:36: error: no previous prototype for 'doublefault_shim' [-Werror=missing-prototypes] 23 | asmlinkage noinstr void __noreturn doublefault_shim(void) | ^~~~~~~~~~~~~~~~ arch/x86/kernel/doublefault_32.c:114:6: error: no previous prototype for 'doublefault_init_cpu_tss' [-Werror=missing-prototypes] 114 | void doublefault_init_cpu_tss(void) The first one is only called from assembler, while the second one is declared in doublefault.h, but this file is not included. Include the header file and add the other declaration there as well. Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/doublefault.h | 4 ++++ arch/x86/kernel/doublefault_32.c | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/x86/include/asm/doublefault.h b/arch/x86/include/asm/doublefault.h index 54a6e4a2e132..de0e88b32207 100644 --- a/arch/x86/include/asm/doublefault.h +++ b/arch/x86/include/asm/doublefault.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_DOUBLEFAULT_H #define _ASM_X86_DOUBLEFAULT_H +#include + #ifdef CONFIG_X86_32 extern void doublefault_init_cpu_tss(void); #else @@ -10,4 +12,6 @@ static inline void doublefault_init_cpu_tss(void) } #endif +asmlinkage void __noreturn doublefault_shim(void); + #endif /* _ASM_X86_DOUBLEFAULT_H */ diff --git a/arch/x86/kernel/doublefault_32.c b/arch/x86/kernel/doublefault_32.c index 3b58d8703094..6eaf9a6bc02f 100644 --- a/arch/x86/kernel/doublefault_32.c +++ b/arch/x86/kernel/doublefault_32.c @@ -9,6 +9,7 @@ #include #include #include +#include #define ptr_ok(x) ((x) > PAGE_OFFSET && (x) < PAGE_OFFSET + MAXMEM) From patchwork Tue May 16 19:35:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243598 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 390EDC77B7A for ; Tue, 16 May 2023 19:37:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD2CB280007; Tue, 16 May 2023 15:36:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C8249280001; Tue, 16 May 2023 15:36:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B4A98280007; Tue, 16 May 2023 15:36:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A7F17280001 for ; Tue, 16 May 2023 15:36:59 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 84A821C70AA for ; Tue, 16 May 2023 19:36:59 +0000 (UTC) X-FDA: 80797126158.05.E551BF9 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id B19C01C0007 for ; Tue, 16 May 2023 19:36:57 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MvDSmMsr; spf=pass (imf18.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=1684265817; 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=k6oUsEOfEyGBZn/zLZI8mMBBVAvWBsj+zjBrdljaBIU=; b=lWmfKY3UPtGNLqkfHmP3OCXdvxe7kiPpteiVImpNM6DrgIH90Qt9azyBa7K+oFyta/NIyo rAO2tYpfDjcrAj7E8nqJXKsL1wwQ8bM2o3EVxFmu6gGqDMA4yqdIjOyOzCGlmacgcdW2VC oTwZys8jDYDFIhBovpxYN9SA5U9HJKg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265817; a=rsa-sha256; cv=none; b=OLtxOvn3SS/6sQgprTpoIeRG2Eqk4dj0h+IQZKWxvITcd0yzGKlyeqZPawFTSr7Ile2fE3 W58uAh4lobqqM8KY+0w58VCZkaM4bqM6LJboXvyNhx6/dnvFDA309yCcWEiNxvZiA7kj1o OMRgC4hqVwYuissil2hKgySfF08T6mk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MvDSmMsr; spf=pass (imf18.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 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 E42CB63E92; Tue, 16 May 2023 19:36:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF1AFC4339C; Tue, 16 May 2023 19:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265816; bh=QhfcjWc94ABit5CqNae5vJwGdRyTTfKtDRBYc+KBnK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MvDSmMsr+ldstYZFWxt0d/Qx2DvIFE1q3iE1Bqb+M+VmlMkwcfXpUcl5LvraEDI6S HnWIuY+SqiBpKZk8dhmFw5ETZeXvKwhiOJcQGWdhuNVfBEaKkHmXH0FVPCeGls5BT5 vQMZLkokAMdjoie4w/QtXptZ4gsEiXXyWgx+GJHuazf/GDKjvdN6Gt3EWJ4oMBeTkr FvGz1X+Q4Zbr9Q6Y3k/+TvHBSHypXy399/8SZG8zFY/uPkbqkgKPF1SzwLyfarV+rm t6q653S9gdfUGKRgliLv3S1pFZQjCqHtNzTcpq1utdvmK5duCxYK7yPT5e0S7iC690 mE1gVTCKwKBiQ== 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 08/20] x86: highmem: include asm/numa.h for set_highmem_pages_init Date: Tue, 16 May 2023 21:35:37 +0200 Message-Id: <20230516193549.544673-9-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-Rspamd-Queue-Id: B19C01C0007 X-Rspam-User: X-Rspamd-Server: rspam06 X-Stat-Signature: 7mywyfeujuhmsz4p6z1xta41xzyoecjt X-HE-Tag: 1684265817-819746 X-HE-Meta: U2FsdGVkX197cszvYgJqK/+KNS1l/ma1ys96AOLNAWAxKYTU/FyKld/cA1Vs339wO6fKlxiOkRJjBtVYtU37eY7Dn1N8t8xBG2NUP7Si2c+UaAC9TANCyTf/vSmDO4HnR2bFnFw2lLDrucqS7S1GTyGyEw3h6uPG6dxqcvG34D+I2BfBs64RxQ7fHmjPgiucLOkBSxvsiKOS1vDdZKj+CO1dEFtngJo8SzboEZEZTOPDqAQfiZAsnMdVxPUpYqxTHr2aFpfctbcC6NQhTsaVvnLIEFAwQExK5RipOPwNOZOuORQ1rfAAz9ieH0/PfRWJqWJm2En1u7Tgixfm2FSUbfwYg8sfkvA8ecPzIRQ3z9CnSw1qDjz7y3FLO8Jok/b895L70YSObrzKkFrdIjiv/NEXd2tUVIO3ltiU87h2vPn+DiCyYn/m1OTzTrBd2W+L+cqmw0e/Wxco4Byxr9W8uaJDH9mvy2ri60Nrp0osd3yDsuhiSYmanusbt77sD0L8Q3U5DoRJtMIBu284j5U5X90ak8zcaeLPgzqOSlth+d4lIYf8ibZyEMPH4hPt7L7i9mXnCjXnGPRB50Wk2FwTYh4HsgMzIsELs01sqCUKAj+tvrCBomyQ2jZF7heUyjYo/naQTnNDk/6GCJlgdIHWlRVT2TOYf9P69vx+SwyNpR2z8qX8HmHutu68XEaZ7w9GfoR35vjA1NwAAvjaYu1R1wMgvff/dkKEusX9jGyWesGkd1Vi6iIXCjcPR4pH/rH+d+EoX6PWCP0bBkhKjO4aXQXtbhKZtuvRgSXysccGEdROUeASf26bHML4NPkaXcVpSIoPico1/idGJXCNjtdH0BNtwqOutnQk4foh1FK5tiVLP6tpOummiiB5AaZD8sV8K49ki8KwBANxol47khdJS1NzOuPeUYJnrcDYgJqiQHCHQIxfCTMQ082xwc1KU+y7ooCrqzf18iGexcnIxpb FReqk7O0 b+t840c4PmTx4V2drZKqLwON5HSGL3Ho/h/79WS5kfHRZiOuMkgx7d919pflcRpu4P/G2vnc4+rc6YSvetxOnVtVT40SQGAcbvGMzfye/qnxJG40MFn7Uh8tKN3ULXD8ejcPl5Ui3hPjRmi0eFALqxvVJkFo6EBxhDuQ1Xb7/MCsN/2miiC4eBWnm5oK3cG9RrAAM9rpwUHn0lcOr6XHLF/66gSIqyUgg0Ix1ku8sVgqTL5f0eSaARCpChvc/vIbQy8bera2g/kYzzbl6l4s7aA7k/7A+1KqRp3JACGk+GfFyM69PPMrT+SnxC19xwC+HaoPfSTlEDiBvNx55JN4wUV9gUvsUOwcR2TMF 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 The set_highmem_pages_init() function is declared in asm/numa.h, which must be included in the file that defines it to avoid a W=1 warning: arch/x86/mm/highmem_32.c:7:13: error: no previous prototype for 'set_highmem_pages_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/mm/highmem_32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c index 2c54b76d8f84..d9efa35711ee 100644 --- a/arch/x86/mm/highmem_32.c +++ b/arch/x86/mm/highmem_32.c @@ -3,6 +3,7 @@ #include #include /* for totalram_pages */ #include +#include void __init set_highmem_pages_init(void) { From patchwork Tue May 16 19:35:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243599 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 E20BEC77B7F for ; Tue, 16 May 2023 19:37:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F035280002; Tue, 16 May 2023 15:37:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A091280001; Tue, 16 May 2023 15:37:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 668A5280002; Tue, 16 May 2023 15:37:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 59827280001 for ; Tue, 16 May 2023 15:37:06 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id F31B0803D9 for ; Tue, 16 May 2023 19:37:05 +0000 (UTC) X-FDA: 80797126410.18.78A82D6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 3075C14001E for ; Tue, 16 May 2023 19:37:03 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Q3CPblb9; 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=1684265824; 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=W+/JtRUrh0GvWVY91ldmd2joM0KSE7dXd4ra+xm6deM=; b=Y7r1be675iFN0XM+3k9fXzMQvwx/DnWjQgRKurEFTmMwkzowMDczsJ2scwTLvTX/QRzsn2 CNsgQLu9a71D1m+El89MDb0KfcZpFIUHD6whkWiqY8QSg7fnDg1kMpnSLtVjpbIxuX0H9c 9OOAF/xM7Hd3MjzplNjz0v/7M5//F3M= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265824; a=rsa-sha256; cv=none; b=0axPx6Fp+45pGDzhC2FvIsZS4FAo5b8gWsf0QSt1eUDtEiXsRdw9lq/6N3LXEiGrz8a7KQ XIFiZzZX4zLWVVTH/2geRzh5zaJjKi+IxtNLBp03XMpRzFUkAHJp7kaTroaX7i8bQK3HXR Bo21+WlaBINQTfVF/l7CyW0k0o8/LDM= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Q3CPblb9; 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 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 4C09F63EB5; Tue, 16 May 2023 19:37:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD2D1C433AC; Tue, 16 May 2023 19:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265822; bh=DMCbu5Ck8nL16laCe8gzQ409+Zy7oFJ6XN+76haQQGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q3CPblb9vbnnqFuY1tw61aFfK9l0Nhj6hfccpdSnjngrZvApvgdIxViPf4vjP57Qt qFvGozg2KkPlPBN+rhtss57IV7tT1g8FtyasUBtWiN829+Muh+cn2shwW83ND+k0Cc FplnF09GMWMj2fcC0b4/jJX2TTCfua7UEdLt0MdxFgk7PQtYpG9Ml8CxcQcizGiZaB ZR03FhPL6TM5aGirSEx1n5ym6Z3bavzahWDpVyLa0GqRqs2Kjp4+nNz+wxsThyDUFs rdCC/oV4Ld02UzX5Lf0ab8U3AP0KQT6Q7EydXL76RrAs/+USlWya2sP3b0UpG2emEd pAwthPxEXYTPA== 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 09/20] x86: platform_quirks: include linux/pnp.h for arch_pnpbios_disabled Date: Tue, 16 May 2023 21:35:38 +0200 Message-Id: <20230516193549.544673-10-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-Stat-Signature: pcjxdhurr9smf9t3rngm6fktabjorxwr X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 3075C14001E X-HE-Tag: 1684265823-838479 X-HE-Meta: U2FsdGVkX1/hggiOqGh9L8DLHh+qvoOPNIs8MwYQ1cjaWylqEl5k0OKoOlKQX33w0fOao3LWD+rOvnY0gwSKppYFmm8l1CfggcUd3k+gsW7Cptqr3b7V0UqE319KeK7X/G7qTEFEs8B58+pqSPJZHyBRY3pGDs+qduLaunYjyNCVoTSe2UxMJApoylIpMROLMs1PjBq1VQJfSDWkJ6ge55iqnstSNgY4yc00EIfgImbO/EgwGxLCZX9tKNHLVLizqjn1NMtxLfYgKO7sK+mUQnbzzgCWCJUm5PInrShakPT2ufTrwMZtD5SGwTkZQlLguShVSJ3do9RrM9XsP96gwpX34Hs6DIj2ojJKpAAj69xFrkgb8riKFsoRvukqm/BLuoomsN7BcHQpb1otYQH9VEcdGtP1e1gsgikJ568oUWyXiR9vY/JeRT0bZAlMVmDWl4cfuzSyjguEIN2GJOxuCPRWwYFSJrTke0htdkeN4HWUbHV3SZDmgXRTd9Vs4aFp9Nyfm/r/FyixvK2SaQftqrg0rSwoPMqcwM0PP0OSFkiF9n5njBNDqFA03nXwLebJ4ddEnh8aNWdmRWcU+uYyDtVcvyOA7a3s6gHeWL+sUg2ODwFOwhV7i2CxYL17FoqhBzEXS68cUruHnP/sshFdn+fcWGQ5t8nBfoLO7k1B3bJUAwSB3tRKM8z7c64/GcRiZWdxlUAI1+IZ9Pp1sV3v8ds/DUa1/xPDBZl0oUNuJ5VMY2GB3LANywB0+jRuYy3JSf9JH9zjLituJzhgwXhFuWdppjH5B5ZEhIo+/5yMQ8DJLljCKUbJPYIfhf0f2I4X9FnlTgDah6YKg/R7cTX5ZyhVuOLQnOAy4/xMtjq/CsSqR/Cf1bL9fgQqJu7lzcfGKEthIg3Td3JSYtJmyzDhPl7u6VyuYZG86K/ev9aU8cnmTH8fgm9fRlDNI62r7Y7dp2hJq74QlakXqji/HPy NWnUnvrL SmBEWlZ4sDoKQ24GLcjOcC8P3mZW2P+0ZnN7n/U8lZtJDgZPAynz6FwouQ+dEagC9E3UB8CO0esXrHuDonZgWJFyhpSkfLPXKPTs84BWHa1qZ1nQBNIY/pWbMWzrpDHP4kA6hVOEi9kA0cuCKcL/uyQh5G6QUZ3ngf9M39WSYkeODqPdyqu0S85Pl/osDVy/djOn/NhTABe5zw08nKnew9HoXgbBtZf4Vd3uT1eHomaET4hfce8Bqy1Z8mGKOnOCE9kDGztNkaOZzcPSvPjzaWZfkqBU6D3C4E/DK+p6pteHK3oTkIfc63PRJrpvh23aPK/m+oXqq7MTttPo= 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 arch_pnpbios_disabled() is defined in architecture code on x86, but this does not include the appropriate header, causing a warning: arch/x86/kernel/platform-quirks.c:42:13: error: no previous prototype for 'arch_pnpbios_disabled' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/kernel/platform-quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/platform-quirks.c b/arch/x86/kernel/platform-quirks.c index b348a672f71d..b525fe6d6657 100644 --- a/arch/x86/kernel/platform-quirks.c +++ b/arch/x86/kernel/platform-quirks.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include +#include #include #include From patchwork Tue May 16 19:35:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243600 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 46414C77B7F for ; Tue, 16 May 2023 19:37:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D7017280003; Tue, 16 May 2023 15:37:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D5012280001; Tue, 16 May 2023 15:37:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C0E24280003; Tue, 16 May 2023 15:37:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AC6A4280001 for ; Tue, 16 May 2023 15:37:11 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 695ED1403AA for ; Tue, 16 May 2023 19:37:11 +0000 (UTC) X-FDA: 80797126662.02.8786FAA Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf11.hostedemail.com (Postfix) with ESMTP id A489340016 for ; Tue, 16 May 2023 19:37:09 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dchZZo9W; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265829; 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=iQJJ0Cpg1c8hCQFOvUcL3dc+JMacvl1aBAFeQ9f9oPE=; b=hhzdTt+zulGUn7xVShcXgs1wYI2xWV2l7Yh21/dICrvONzofFqC9pO1lP6tGWuwJEJBOZ5 Z/PPXb4QsNWjbYsZFeXxlLARhCMLWCq5Hlb0IfsKnR8qTUFZbVADfpnCVSA9HHXWoJOO1P Bz3sEnRJdJia6osUq89euVmBcOkBb/0= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dchZZo9W; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265829; a=rsa-sha256; cv=none; b=DM2AFFL5U004UFeirlpwDdoid3JPi7R0mKW7Caej325Qa+zkfs2Qw6gxvW5LJ+Wlr8WFc4 x2ShmYbhREtXXWySFZmiYJ0EZdNIGTS1iZIMI2QSh3T7oZ6ppLXjdIhN36vTPvIGIYt98g aGl59x+Yo5yf8PvvV2NAo1+MekTlbNw= 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 BB27A63EC4; Tue, 16 May 2023 19:37:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAB46C433D2; Tue, 16 May 2023 19:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265828; bh=9mGjBlJh/v4od95uyV8nA9/tvAI7Fp8HXXcZE+gBPXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dchZZo9WqmTT5pXqQ91IEEzoZcfaltTNsqPX8uCQB2EtS7z6X18KvPkxGsTqXf4Im FZs0O9Gu21RgjwUSracQfDCkupgQf81CrS65a+HuQhXicxa375U5tO5k2auE3ZkfIX SKZBxS0YIyNz60tANL/6BP3KH5Ub5veXwRzbRJxH/VCBU7GKgNIbVhmkVUIQ8Vs5kv 5GszcMPQCxAVwJPTq5LqISilKOY4ClP6e9zRYaqOL34Yi0tc5tzpXafXUnVrKXNOO3 TsvuruEr2W76ZTF/RJBhwZwLfH80cVdeikTgUUcvyM1yAbkQhHNiX6snxmVt/CTQZJ lgJDvr4/QBZSw== 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 10/20] x86: xen: add missing prototypes Date: Tue, 16 May 2023 21:35:39 +0200 Message-Id: <20230516193549.544673-11-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-Stat-Signature: mg5efjsm73c5qymd34518jhsxo8gjwwc X-Rspam-User: X-Rspamd-Queue-Id: A489340016 X-Rspamd-Server: rspam07 X-HE-Tag: 1684265829-270779 X-HE-Meta: U2FsdGVkX1+86U+HJ4f2JLnrSP469ijCnUhT/NfQzy2X48nFphR2Kkf+Y7PUM0RDRR8G1lbrDxA8GS34G6JeVxS0yux52jAKQIA3z4KBxzztbDSRCa57DR5W6FE+5RRhKOqeoVu6MFTNFr/xReI54BTS4klC3vMQU0WTWqMUGawjHEZaRIHdy+L6ElDBEtUREkN/R+ML8A5kNBU20/QzwRB/Eyxq0ZrUm9V6cc/XTZ74lxe7zoN4tFEeDV7+vg0R1kCC+DVBsuQpgEh489kLdsjvGmSXF0eeiwK0likTNShs390cD0t2+ZVm6aQKvrvNoOmCMjw0H9FKzQIBjdYa4bWvdyHRwHN1VQXkIUf8CrHhyKnDtLRtVZYuHb7WKvcDvo6JHWE5SIzPCPv/bvRkzrL2AQTkgEs0SYOvqfuQt0mmw2yvri4KdilYZvJEeVhdd0llmpRFU3rGNqEnEuaeR1X52ulDMRAzode8ei0tAfXC2LVBwgQHV3LsZ/OK08Df4Wy4Yviaa8h91DnldMr70W+pxQA3NfDgriK2jji2992w19vX1JOs6YiRGCVfOwrEMqphHAq35P1dcDVT5ycyqpAcQxEjoEOevFgZMhfkmL4sxg0P3F4T1aL4UnQggb5Cr2Thm+oqef1EUnAgU7sTErwzNq1f5PFvisL3A8BRGkAznAiw0mzQ94OgFHB4qpoCFvATQAIcdYQeMgn9H2mQKBbIDvReblYcU3OvFYJU6kaeGOXe7IGz6KdAl5QvjTAqpbqNiw54aa+YpB5YvnDg0RAsjPpzudSp3j6ERXUUC+WE403oPEy8FOmAG2Cv+8Ytp07PXpkN7i2q6LI3/TUYYfjSN5did74wsgdc9q/h2WxXm87JzkAeB1TbF+n1XJB87D0HOha5fAWd5jo16+8vcIB3taDh6OeJgKievA7df+RxxNXjwrZHJ3sj2oJfizuVw0W6PcYnjjmfQE1OD+J 7sB15zFw VKvA8A9XgOHthLDKvWByJrq1DFVJMHj6+OdItkPXZvG5dSMp/f43ru3KzCxdv98jd31SOqNhw06lceMOLfcH99ReD5nmzwMURBfL0ZCbYMuB7ZaN88R4c5JueahIMvkYCW5O2tAc3mkDKPlaJWgrP2yJ8EcTIBceXrFwpar9m+OY61LW1e5J5RP+mjzuakg+CpMkbbGwFI7gGXf5wKlhNdE/zMLcnn2Ig4NJYCv/glM66jeOLBkQm0yf/JC8UDpY0PBABZs3NJ9bp/NO7mvzTYnnOww== 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 arch/x86/xen/enlighten_pv.c:1233:34: error: no previous prototype for 'xen_start_kernel' [-Werror=missing-prototypes] arch/x86/xen/irq.c:22:14: error: no previous prototype for 'xen_force_evtchn_callback' [-Werror=missing-prototypes] arch/x86/xen/mmu_pv.c:358:20: error: no previous prototype for 'xen_pte_val' [-Werror=missing-prototypes] arch/x86/xen/mmu_pv.c:366:20: error: no previous prototype for 'xen_pgd_val' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/xen/efi.c | 2 ++ arch/x86/xen/smp.h | 3 +++ arch/x86/xen/xen-ops.h | 14 ++++++++++++++ include/xen/xen.h | 3 +++ 4 files changed, 22 insertions(+) diff --git a/arch/x86/xen/efi.c b/arch/x86/xen/efi.c index 7d7ffb9c826a..863d0d6b3edc 100644 --- a/arch/x86/xen/efi.c +++ b/arch/x86/xen/efi.c @@ -16,6 +16,8 @@ #include #include +#include "xen-ops.h" + static efi_char16_t vendor[100] __initdata; static efi_system_table_t efi_systab_xen __initdata = { diff --git a/arch/x86/xen/smp.h b/arch/x86/xen/smp.h index 22fb982ff971..cbc45e2462f5 100644 --- a/arch/x86/xen/smp.h +++ b/arch/x86/xen/smp.h @@ -2,6 +2,9 @@ #ifndef _XEN_SMP_H #ifdef CONFIG_SMP + +asmlinkage void cpu_bringup_and_idle(void); + extern void xen_send_IPI_mask(const struct cpumask *mask, int vector); extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask, diff --git a/arch/x86/xen/xen-ops.h b/arch/x86/xen/xen-ops.h index 6d7f6318fc07..0f71ee3fe86b 100644 --- a/arch/x86/xen/xen-ops.h +++ b/arch/x86/xen/xen-ops.h @@ -160,4 +160,18 @@ void xen_hvm_post_suspend(int suspend_cancelled); static inline void xen_hvm_post_suspend(int suspend_cancelled) {} #endif +void xen_force_evtchn_callback(void); +pteval_t xen_pte_val(pte_t pte); +pgdval_t xen_pgd_val(pgd_t pgd); +pte_t xen_make_pte(pteval_t pte); +pgd_t xen_make_pgd(pgdval_t pgd); +pmdval_t xen_pmd_val(pmd_t pmd); +pmd_t xen_make_pmd(pmdval_t pmd); +pudval_t xen_pud_val(pud_t pud); +pud_t xen_make_pud(pudval_t pud); +p4dval_t xen_p4d_val(p4d_t p4d); +p4d_t xen_make_p4d(p4dval_t p4d); +pte_t xen_make_pte_init(pteval_t pte); +void xen_start_kernel(struct start_info *si); + #endif /* XEN_OPS_H */ diff --git a/include/xen/xen.h b/include/xen/xen.h index 0efeb652f9b8..f989162983c3 100644 --- a/include/xen/xen.h +++ b/include/xen/xen.h @@ -31,6 +31,9 @@ extern uint32_t xen_start_flags; #include extern struct hvm_start_info pvh_start_info; +void xen_prepare_pvh(void); +struct pt_regs; +void xen_pv_evtchn_do_upcall(struct pt_regs *regs); #ifdef CONFIG_XEN_DOM0 #include From patchwork Tue May 16 19:35:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243601 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 7D463C77B7A for ; Tue, 16 May 2023 19:37:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16219280008; Tue, 16 May 2023 15:37:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11139280001; Tue, 16 May 2023 15:37:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1B61280008; Tue, 16 May 2023 15:37:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E0ACC280001 for ; Tue, 16 May 2023 15:37:17 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id BA0EB1C6CC9 for ; Tue, 16 May 2023 19:37:17 +0000 (UTC) X-FDA: 80797126914.16.4225943 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf20.hostedemail.com (Postfix) with ESMTP id 1A11A1C000B for ; Tue, 16 May 2023 19:37:15 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iMBAvFb2; spf=pass (imf20.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=1684265836; 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=d/tH39bYZr3yzUqXotF22GytFj2ITm5oASwzqc36CZM=; b=3EV4Pma7TPy9/6vsoVDHNIUA9LdHXxelTX9M0JrnlKTv9GdRAPBzDVwKwlALhjFvk5F4CG 16OEM/gDxQ15aq9U27yjnL+CbgGUP1PPpCmpqTSFP8jYTMNzK8KcEamAFrJhi1a+6bHttD +nN/ddbpCsdXgAmAsXz//nCgUSNoIC0= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iMBAvFb2; spf=pass (imf20.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=1684265836; a=rsa-sha256; cv=none; b=BL1coRUr4/xAGIJ4mdjlS1J9/9o8TkFZsn1AfiTen533yPcaebmk+9FjYL/m4ww6wXQTlA 5nD+SPlQ0vzMoFXKYDLafvv/4WWQaIqdOKDPglwNmmrysXI+fTtdYF1goitvn228BskVuN FihoEHWX9Wxr4D8acqslFhJRXVTGzuE= 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 4538563EA1; Tue, 16 May 2023 19:37:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D45FC433EF; Tue, 16 May 2023 19:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265834; bh=+aTnWzkkpkhZD/Q7mAQ3dRAZxC9ekU9RPhso/2vdjUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iMBAvFb2VaJhJEHCkXY8xN9dopzfCYxzGAVtlxmPc4ecgoxsfcVqAYWppizbCyYp/ VTvljPsItuhT+KslruGdf17RZHnkXZTeI5SNB0HcVA3Q2is1QzaTJ7NIWpw6KBUWf/ zV4XavdE98t65jnuE5hyhNvdFmgDjcz0+x8JQ3Pa2M+Ke5oMTbpixoiurollUeJB73 blh6OUjzwzOwaiTkJeA6SFn1+VvUJj1MKmXFKzsle/9hQMjVA4gOvU8RBqzqzy+ig5 svmuwCrWyPhEepXDnslmThYsgGibYlGdcBhMAypATUJEGwuGF8kbOigthqqwhCFfB8 Ic0+xYNIrQ58Q== 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 11/20] x86: entry: add do_SYSENTER_32() prototype Date: Tue, 16 May 2023 21:35:40 +0200 Message-Id: <20230516193549.544673-12-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: rspam01 X-Rspamd-Queue-Id: 1A11A1C000B X-Stat-Signature: 9tatb3rb4twpc5zcm4hiy31pq8ag5nir X-HE-Tag: 1684265835-526151 X-HE-Meta: U2FsdGVkX19pWvhDeWXLf6FYEZHfpjIAXwMYpKUgcpix3/l2h3M0h4asq9+b/c4c5NhNbbzYgbe/6bJAQG2NhKXpZsPKA3rbp4ZJrN0n882yHBm3yDkIKkKhLB0MtsnWahkej12VZhz1MvKKPDhCaXQJP2rm94glvsNEZuEGU2BvXtRsmruTwsN8b4sYqMRlOqf/Kny1ub3Nk6cyM6bXne8DtbWpmt7Spss9rmXoU0RG9sjCmqcjpyAF/W+8kJr4TtqZXLDyxyEHnLqa95LInyAnzrusuAti6cde1AxV5PZ4arKy46k80wi0t25ahPWFhkfKY7pIuGWMgpLANpedqExVCcjdcvmWOsQk5WB3OW2dgECdsDhICC2kgcPvGmDdkdIMVTnPwydHZbpChq/yl70t2DgLoWvN9nPDnM6bS+6PFO4pVoKDLARzZ/Wl7EFXM7raRK8BGacMIUma7Am513KInfp3q63otJUvKk4f6lrKD279vvc5wINhnSMGEluBuj203DBJQES+yet1bNHro2gtU/K611oTOKwEIchu1R7KFPYL2fj0Fb7uDgvin0cinKOIYqHX0KFRId66TcMGNbIKvfruisYozMfT23XuilFOdb4GbvmVkIWh6UwSqEDRAUAtUo7XKSMHiLdgrY4XwJ+p8rvO+CxNuhZYshEEdtJZpEcYuM+pTvoaCbYeLhXhp6sV3M2+pvw5NiOl+7lB/DRNt3abyKgm1onudEcQPH1eM+x5tvPuVqiLkzUmd9lZ4aQ8FOh+YMhC69I8+kALA6meYRfg7CkuVrDcR0uQC0YckzpBtTzThodtrBvFr+BgVHOnPpiZd9z4+cpiJcSlU/s6DFTGo3jZG5LK1h0e2tITAxV7gy/u6xiDjuuydjOd75eumvTZ0oFhH+7awhlx2ZKu2I5sjJQM8y87jXAGf0d1Iy9RRU9D3H96FetGTDX4gD+/BC/mY9rVKBDPXR3 U2G+ycrc 3OBA7Lvl5WzpE0m0pHn4ahnolKMKrRjUqhiS9uXqm0jQ0oYufnc9ALw41PcuwrbDGrBwLbiRwLPDSz3QL2LKvadi7b/Z3bzgNcKgQs10BllRb6q4xkpWDHVAGuOwAaJZWbC3JuDBLENZGDxoZRJ2XO5f+l3sGBjGN/o9gLjbP1MMMsEwU+JzVDpkELwo0lbITsP56bQ9wYzD3iOPxZsEu68Coo0mSVCJ9JXfY3o1p2HV3zbWlfLHvl0WD2S3gziKT6Lr+Q9OlrxvYivizBnNI2er3F0PCrS4/lhvyYZKKvbshzgwegHHeliYdvWk1sPQ06SOPD2oJ+GR7Emw= 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 The 32-bit system call entry points can be called on both 32-bit and 64-bit kernels, but on the former the declarations are hidden: arch/x86/entry/common.c:238:24: error: no previous prototype for 'do_SYSENTER_32' [-Werror=missing-prototypes] Move them all out of the #ifdef block to avoid the warnings. Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/syscall.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 5b85987a5e97..4fb36fba4b5a 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -127,9 +127,11 @@ static inline int syscall_get_arch(struct task_struct *task) } void do_syscall_64(struct pt_regs *regs, int nr); -void do_int80_syscall_32(struct pt_regs *regs); -long do_fast_syscall_32(struct pt_regs *regs); #endif /* CONFIG_X86_32 */ +void do_int80_syscall_32(struct pt_regs *regs); +long do_fast_syscall_32(struct pt_regs *regs); +long do_SYSENTER_32(struct pt_regs *regs); + #endif /* _ASM_X86_SYSCALL_H */ From patchwork Tue May 16 19:35:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243602 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 7FF7FC77B7A for ; Tue, 16 May 2023 19:37:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 18805280009; Tue, 16 May 2023 15:37:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1386A280001; Tue, 16 May 2023 15:37:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 00086280009; Tue, 16 May 2023 15:37:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id E2DA4280001 for ; Tue, 16 May 2023 15:37:24 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 52E04ADA15 for ; Tue, 16 May 2023 19:37:24 +0000 (UTC) X-FDA: 80797127208.01.EE53EA1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf21.hostedemail.com (Postfix) with ESMTP id 5C7A61C0015 for ; Tue, 16 May 2023 19:37:22 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lyMTmn90; spf=pass (imf21.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=1684265842; a=rsa-sha256; cv=none; b=VBdMlMCzHXnMOoD9K7zKPqnjsUuad4I/f6p3v3+DNoGuszelp2Qa7RkV600TLfqZe4JvYg 36LWWkkl3vjuRrPYq7mk1NLEbSqan+7omItNNUeaObp6HTlB9IN+gEjEJ0XZtHeLgtJycV PiufW52iHnPRmHJ06UYhePf2Ncyh2Ac= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lyMTmn90; spf=pass (imf21.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=1684265842; 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=/i5PWdL/NOvdoBGRc1vw9ao2/em6iltjE/3dAgY9kYw=; b=7YFmzvRgsnmQkOjowFBE/TtPx3ipiTWBkbUKmSDZvyy9LBcyPTsTnpwudd5z7rRIDK95wJ /JbkbxmkZEeJy42o4emdJZA6L86VSGpUTavWiiS7N1aCDPjqbd5Bz7P5QbT8cqLT7TZcVq pJZtNOGEWymRy2sgipI4P7khpbun3NA= 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 6D7D063E9D; Tue, 16 May 2023 19:37:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31EEEC433D2; Tue, 16 May 2023 19:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265840; bh=HzuyPJn9FfyStpC9b/gY3UOkJ1RIpy94E010iL3VMAA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lyMTmn90wbr/qFgLkHQFxSX2cjoGcxvnL1nVSavn0cO0jwQAdZ0abIUvOOmHaJE4h SRKGKH4YuALaqYyeDXwC2rmXjbD8x3uOm+2hb9k6zSm0RE9k2ye4pRA7pKDh/KFcUg 74ThzTAjh7UyyblnQImUp9i/blUb9mBsmos5h+x7AgL6jhJm2i+7HlTCuZjmpcKHzQ a92UzT+0fGfuHuE9dTXbB60MlSLud/EeFS1nvtAW1I2R9HUD4pSyK9Lo7mDNBfABSe uLCctFq8BxZkKc2zL5wl5wy4XGrTMum5M9PugMRDnqjPC1nckk1AZSNKzdl5PpJ2N5 Yjoqi6uLxWodA== 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 12/20] x86: qspinlock-paravirt: fix mising-prototype warnings Date: Tue, 16 May 2023 21:35:41 +0200 Message-Id: <20230516193549.544673-13-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-Stat-Signature: 77sg5etdfsssk1tahugacpfhyssuda8w X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 5C7A61C0015 X-HE-Tag: 1684265842-366677 X-HE-Meta: U2FsdGVkX18b2O46iMqHmjZv5jFZWLaXpKSuK7tA0q5Tc1vBNHEgyt4ehu2LVjmdZYQT1W1acHZ0le5J7hOLOLcd0NW4yADaCBzKgy9e3rRuE0yNhAz39WQ3kCG/sdFGCVBW2alp5Dwnca7YVKCouEvIoLdwhnw3x+nH8uiHcV6dFVwHcCHBJ9aG2Ah3ajCSzkzE5CDTa0cFINtgr0CPYalBgB/zPxa0HDpxpZanyDiN8lAu/IH3ybU72rFhadcqFIXZ9u4Yy7Qn1GCdqpmPqbbvFbyoluJyLOru+ynVWsTaqxF8oNiqTyx6xJznpakObR3vVYZis6z5U5ryDlnRLqU35omkwc/Eh66f+xb+DZox6kJCFs5pF52+0sKrg9IStB0Boq6hrZCvdfmAjIxEIsnULIWR7A8mPyI8xRgp68fu+NhACUuW9Sa0FOhjLWUc2Elmb+oJL+cu/FjSIDR3beiaYkpiv8G/gvP9XOJxsNslCVnSbLUYWYgMTlnTxo7M1jBT4MoYUemXq9lQuSx8aWSyeOuLKhm/+5ap2L7ZVEox7seq8xFD6cTb3KUf2gE8q1vzgvzTYJfCLkGj1EtpCikBElAOBOgot2pXUsU1+BIOnTdb/3c8SAZmWoHS+UFLnZqp8eVmTaJtRyDYua2Alua4OQWtBMBVGotfPVMOh4qSquaoJKB+/CHxVTL1NBHrE9WvpV7RGovg745HKpQ861MW6o2yHGd2C/J+NCDQM/+8cG6jq+FOWU4wvUCab5S5SdUQZOLj3WlvBPC7jHxE0aBOUmvd9Qbp+V4Q2xnOJWXJ2Y3tYszFbPANHYAXnq+sAi0CjRVtfdYYWX0LVauQhegoqQOsekoHOifOSukx4W9G1TUXFKhYp3VVhKGkFaUHGtzcxLc1bD4RplsSp12T0w/O45TjHA8pJ6jH+jPljfJ2Dv9eqxPdyyRvV9d5o7Yxy+nadlBAthC3Yqe8DpN xtry7blE SzYEThOMntvQtUxddCz5IjrHkxC2neCJMVRgmGsgrdomEzPruYDuf6fcm/9uQeevjgCpbYWXMNjQ+gOXhK4cjL09S2SAHWggnQB3nRbQ+tAZ/aAScfEyiGEN19jRWluHrVcZkn8vz4Jj6yd2pjP34wGvG7z3LzGTcGVt1q1UiDzZa/acCCsx+e5QwOb49GMEl6ZrlmB+P8DB/Ngh44+nk5BQGLpzDnybtOyYEgg+m3zhZSv2m5oRrcRZGw9ujwJPxS523HZNwNZt1PlOzQcI7hTQ7SQ== 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 __pv_queued_spin_unlock_slowpath is defined in a header file as a global function, and designed to be called from an inline asm, but there is no prototype visible in the definition: kernel/locking/qspinlock_paravirt.h:493:1: error: no previous prototype for '__pv_queued_spin_unlock_slowpath' [-Werror=missing-prototypes] Add this to the x86 header that contains the inline asm calling it, and ensure this gets included before the definition, rather than after it. The native_pv_lock_init function in turn is only declared in SMP builds but can be left out in UP to avoid another warning: arch/x86/kernel/paravirt.c:76:13: error: no previous prototype for 'native_pv_lock_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/qspinlock_paravirt.h | 2 ++ arch/x86/kernel/paravirt.c | 2 ++ kernel/locking/qspinlock_paravirt.h | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/x86/include/asm/qspinlock_paravirt.h b/arch/x86/include/asm/qspinlock_paravirt.h index 42b17cf10b10..85b6e3609cb9 100644 --- a/arch/x86/include/asm/qspinlock_paravirt.h +++ b/arch/x86/include/asm/qspinlock_paravirt.h @@ -4,6 +4,8 @@ #include +void __lockfunc __pv_queued_spin_unlock_slowpath(struct qspinlock *lock, u8 locked); + /* * For x86-64, PV_CALLEE_SAVE_REGS_THUNK() saves and restores 8 64-bit * registers. For i386, however, only 1 32-bit register needs to be saved diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index ac10b46c5832..eb67aa4cc5ef 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -73,11 +73,13 @@ DEFINE_PARAVIRT_ASM(pv_native_read_cr2, "mov %cr2, %rax", .noinstr.text); DEFINE_STATIC_KEY_TRUE(virt_spin_lock_key); +#ifdef CONFIG_SMP void __init native_pv_lock_init(void) { if (!boot_cpu_has(X86_FEATURE_HYPERVISOR)) static_branch_disable(&virt_spin_lock_key); } +#endif unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, unsigned int len) diff --git a/kernel/locking/qspinlock_paravirt.h b/kernel/locking/qspinlock_paravirt.h index 6afc249ce697..6a0184e9c234 100644 --- a/kernel/locking/qspinlock_paravirt.h +++ b/kernel/locking/qspinlock_paravirt.h @@ -485,6 +485,16 @@ pv_wait_head_or_lock(struct qspinlock *lock, struct mcs_spinlock *node) return (u32)(atomic_read(&lock->val) | _Q_LOCKED_VAL); } +/* + * Include the architecture specific callee-save thunk of the + * __pv_queued_spin_unlock(). This thunk is put together with + * __pv_queued_spin_unlock() to make the callee-save thunk and the real unlock + * function close to each other sharing consecutive instruction cachelines. + * Alternatively, architecture specific version of __pv_queued_spin_unlock() + * can be defined. + */ +#include + /* * PV versions of the unlock fastpath and slowpath functions to be used * instead of queued_spin_unlock(). @@ -533,16 +543,6 @@ __pv_queued_spin_unlock_slowpath(struct qspinlock *lock, u8 locked) pv_kick(node->cpu); } -/* - * Include the architecture specific callee-save thunk of the - * __pv_queued_spin_unlock(). This thunk is put together with - * __pv_queued_spin_unlock() to make the callee-save thunk and the real unlock - * function close to each other sharing consecutive instruction cachelines. - * Alternatively, architecture specific version of __pv_queued_spin_unlock() - * can be defined. - */ -#include - #ifndef __pv_queued_spin_unlock __visible __lockfunc void __pv_queued_spin_unlock(struct qspinlock *lock) { From patchwork Tue May 16 19:35:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243603 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 04E05C77B7A for ; Tue, 16 May 2023 19:37:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 928B0900002; Tue, 16 May 2023 15:37:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9019C280001; Tue, 16 May 2023 15:37:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A11D900004; Tue, 16 May 2023 15:37:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 696C3900002 for ; Tue, 16 May 2023 15:37:30 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 46924160376 for ; Tue, 16 May 2023 19:37:30 +0000 (UTC) X-FDA: 80797127460.14.9C53DDC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 864C814001D for ; Tue, 16 May 2023 19:37:28 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XIN+eFgS; 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=1684265848; 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=M8GYijOSmRcdnArManpJOeJVOpD7CLIw2g+5IDNyeGQ=; b=U6LHE84JZIvUX6JAzgbQ9A4VYjbqobhc5DbM/GSKbYjw2N/qU7lSVucW3zLGHUj/IHDe2/ 5XvJNQvIad29C0O/5fc9vVx6LOWh9tghIOqx+Z09K3oIYJQYhxPPUbLG5yuR9WHfjFhQso s24BgCY9EL87TU2wuXnEmRgtV8kzDmI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265848; a=rsa-sha256; cv=none; b=VJZSC2REWGxFx3+b20LfXjQO9i0aLFMPmGA3M1dBqMCEPchB8x8iywo8U7YnieOIv7i5nX M8PVW2qRSZ2YSS52KHJ9Tp9qS+CSc3SHolSmrA7tnFNj/yjtjiwBwwiC0A070tMMYcFszT 3BVkDo9WIgkqnTrFLeT8JvTqfjhmL3s= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=XIN+eFgS; 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 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 92C7963E89; Tue, 16 May 2023 19:37:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57333C4339B; Tue, 16 May 2023 19:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265847; bh=J5EKXsQ8JpkrI9Gz8p7tvN4WBF349kQdKYOIvFSrsNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XIN+eFgSG5axh0khDn+f/DfiFa2fy/Gl7HlqCu4DFGR/Gh/jJBZE6kogRn1pGLSf0 H7p3sJKdHoW15hlgh4PqRp1aSRxoJGu8xkUBD8UOV/7Wc3R0dnNCmKZ0BDGWJZb8D1 oH2yP6PbTSse4jjfW7V1Oui8ScgC+ip8wsTfipPJG3h+KlhBMS7cqSGZFq5vDlKiy0 RswG11Urln0rfwHreMBoCRqO+yKcqFn55K7Ppwg4ukMOh1RtnbSr9DTsibIdx1NEsh DnzXMlfpiLzkeqt66J/wTfnFD+0D1bBh1mk3F7Als3cmaZdCeWg7QJDwUyVhPN3vUW T784GEZx+Ea6A== 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 13/20] x86: hibernate: declare global functions in suspend.h Date: Tue, 16 May 2023 21:35:42 +0200 Message-Id: <20230516193549.544673-14-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-Rspamd-Queue-Id: 864C814001D X-Stat-Signature: a48odb6f34c69nnzy6roioyb8wg89xnb X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1684265848-468506 X-HE-Meta: U2FsdGVkX18Pu1jKic7xHBf+vWdxAYOsWCT8Kx7XWcOWuR2JYml1KS/bIuD3ryPFU4cw15b/ERxl9yBGEV1hQ/4I862UsRYbxj/TkG9P+Ygc1n+HdPYc388Idb+BJB0D8B2cjba8xdrO8R7FM+VZ4HbgFBcw3lmZmt+Ww0nY4O/spqQeY1XMBVQk7NKrAWMiuIa6Xs6o8G/MLm8UK+QPRXfNyD8dYPl3degmRp5O2Iy+jLRTUNDNEg3iLCzvAABUgbBZXqB4cmhi99Gx5m551e/X3CLUiujSSilSGxa+K7Op4gMUsOQ0WpqOs9h+mHUkUOE9lGMILVpBb3TkU+tulMYPeu4plMXMVHwhoRuOoOZwTstVGpmoLi27mP3S/y9TmERBiIPNSF1llUtDKX825kG/6iIpORSjErqie/Dy7pKZVP9fhW82rmTAzsrcwTRQtDS3h3NzInfnsYfddPIgFaZCimFlVZYv+cLSQwhDWOpZ1dSggyecCO91fq5eQlglYjZPGywVu6EzF7uI85T7klZjo4NuMB3BvuHlNJ8bhzdDap0RrGAppn04oUOJ6tpNi68OCp9ZTjb4NacR+tbAhpLSsOaMr04eZrJuSw3fkFzblEhAHItDmvGa9UHc3A+LCFK1a84hiPN1Wysgi25Sy2nJHzVP1XMiPQxmEmnlxCEOjxMbEgNKTIj10I9ntKimLT6UDlnf/v149BjFzHmKafnK5NuVEXa+MkXGD8SKimzxa7sFSK+831zFtXBzQqY2hQBxWRgOpBLMD+R1yvdQjRfziD0uKWW1pSSbnaLtjlkmnNbKP4kWTv9tFilXxTFR34RCPPY1QuSkXXc3yxF0JexvP4YewXl0xu2LAFDP4imP27FYRgR4ePEmVM/PV5vy2mxLjUoYtLOTgUCt6bPv5YFdjKdQ2dcCyGPO7vWz3G52YGa4oSqIg/5ZbWboS0Ledgiuct8eN4JI4Rt7jrG eZx+wPxH Kvsb1JbrSvTf72grf/xPA8RW//ZJYbMF7UGsG9ipzG9db55UNUj7CljvwbTCsZ141Gx2+YyMlb6i6Wo8c31uh9jxrv0DRxLSGFJWVxdynBXNrcE0OGy30hctYqYdFbhGcr4f9RkfrpM379G7l9kl82UbXwcSrvL36ShVwLgUqlpiN3M5y+GVTAHJolGAuh8mEbikFJcDIF1YRSaLEvo7B+mosw6jtAIbLzhCva3ERWEEF88oCZNkeCYVpSfYl6etNVcu/Dr/qNrp4RWHFot3zXUILPg== 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 Three functions that are defined in x86 specific code to override generic __weak implementations cause a warning because of a missing prototype: arch/x86/power/cpu.c:298:5: error: no previous prototype for 'hibernate_resume_nonboot_cpu_disable' [-Werror=missing-prototypes] arch/x86/power/hibernate.c:129:5: error: no previous prototype for 'arch_hibernation_header_restore' [-Werror=missing-prototypes] arch/x86/power/hibernate.c:91:5: error: no previous prototype for 'arch_hibernation_header_save' [-Werror=missing-prototypes] Move the declarations into a global header so it can be included by any file defining one of these. Signed-off-by: Arnd Bergmann --- include/linux/suspend.h | 4 ++++ kernel/power/power.h | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 7ec73e77e652..bc911fecb8e8 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -452,6 +452,10 @@ extern struct pbe *restore_pblist; int pfn_is_nosave(unsigned long pfn); int hibernate_quiet_exec(int (*func)(void *data), void *data); +int hibernate_resume_nonboot_cpu_disable(void); +int arch_hibernation_header_save(void *addr, unsigned int max_size); +int arch_hibernation_header_restore(void *addr); + #else /* CONFIG_HIBERNATION */ static inline void register_nosave_region(unsigned long b, unsigned long e) {} static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } diff --git a/kernel/power/power.h b/kernel/power/power.h index b83c8d5e188d..a6a16faf0ead 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h @@ -26,9 +26,6 @@ extern void __init hibernate_image_size_init(void); /* Maximum size of architecture specific data in a hibernation header */ #define MAX_ARCH_HEADER_SIZE (sizeof(struct new_utsname) + 4) -extern int arch_hibernation_header_save(void *addr, unsigned int max_size); -extern int arch_hibernation_header_restore(void *addr); - static inline int init_header_complete(struct swsusp_info *info) { return arch_hibernation_header_save(info, MAX_ARCH_HEADER_SIZE); @@ -41,8 +38,6 @@ static inline const char *check_image_kernel(struct swsusp_info *info) } #endif /* CONFIG_ARCH_HIBERNATION_HEADER */ -extern int hibernate_resume_nonboot_cpu_disable(void); - /* * Keep some memory free so that I/O operations can succeed without paging * [Might this be more than 4 MB?] From patchwork Tue May 16 19:35:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243604 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 2758AC77B7F for ; Tue, 16 May 2023 19:37:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B99EA280005; Tue, 16 May 2023 15:37:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B49AC280001; Tue, 16 May 2023 15:37:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A11D0280005; Tue, 16 May 2023 15:37:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8FFDA280001 for ; Tue, 16 May 2023 15:37:36 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5FBAD803D4 for ; Tue, 16 May 2023 19:37:36 +0000 (UTC) X-FDA: 80797127712.26.E022F08 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id 9D6E71C0003 for ; Tue, 16 May 2023 19:37:34 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mC+M7eKA; spf=pass (imf18.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=1684265854; 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=YfjD1KzlQTMvJPBdsoqXES34XokwhUaAsAx0zsGp04U=; b=hfbfFdbt/M+mtJVe7Om0h4M2zdfWhQzqAm9hW3m1k8JeeJaD3KNzqaFR/MyrBW18tr+NVX mlVkI+opPJVN58DvZtU7qdrTvxeYArOo9Yv4fdBhDordRVoqkMfHA/3+yCAwBe7xWBkXWP 4D+5a8s/+d8CI6TBykSpnXBJzlm6/Gs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mC+M7eKA; spf=pass (imf18.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=1684265854; a=rsa-sha256; cv=none; b=A8Pj97tqimRMlYIUtYgL7nKKpgLgTOrL8hzKc7VPgBD0rYeomfZtz/CPzZJrgxoZ27eMP8 e7+O6MyahejjxQfGdgEwmzoadzciRs01cCD/+b+BsDayN8cEDQb24j2BMdc+GSv3sBkpQv DSpswKjdMMrb99Coy4Xg0aR55ipSVzc= 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 B40FD63E94; Tue, 16 May 2023 19:37:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B617C4339C; Tue, 16 May 2023 19:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265853; bh=VUIVbi0JrRPfajUkNZclAh0STTeBs9rnHGdAvoTKkf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mC+M7eKABjyFWUz3ahztx+5ej0UDKRHny6IDcOOkOBb7T8TKyoOo1fQHoeIhY+UJr sMwYJWriml+CN5IT55dh+Y3N4Qkk1jy6sqNrI9NQRSoJY9QmUi1UgvCpWOpG8IrCEn JOOcmypp8HYKXesh78Zw9Mn2B1hMfzJ5E0vHwnVhf9EWjHBjng/8AutDQDYVKbiQni nhbYm4YAKuzLx1TphcnEliNa7XAqoVH4gMMnVTi3+fU11+7fSp55kbWmoZSJxYHgWE bkp6SUDmTbzTpuvHIao5LyGY8w2RZRYUNYlNHTF5PTUou4JACCZ0eU58pOVKhjr1zj +aqQ1XVbdlOGQ== 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 14/20] x86: fbdev: include asm/fb.h as needed Date: Tue, 16 May 2023 21:35:43 +0200 Message-Id: <20230516193549.544673-15-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: rspam01 X-Rspamd-Queue-Id: 9D6E71C0003 X-Stat-Signature: c49gdxzpzt7mq3hmhpyybto8156fxdnp X-HE-Tag: 1684265854-86547 X-HE-Meta: U2FsdGVkX1+dqsJDI4upUO8UPIf5QRuHZvD3MaOyw3lGDH0/9sM+Qeo2X8Ag7BxjdxCMcMjfsLDAGpjR5VQe7kIWoK1bg+165TW2DIpjrVh1Dqw2XwJi7nWFfM7ERX5TCnx+x14ZH+AqBBOu4PikYpKsp+RWlOccqDdBrJRcis+/9SRFCksRi7pkiq2CV3xva1+Sy8Ev4KFR3PAVoZi+jMBES7x8xZ/XeFR7J8FhRCeIU18Ie1jAdxu1uXd5pnQH8zAj45M6Xj49BZW8Ni1HlJketp1M7ogincQgyBQUsy/lsxKMgg71Glql2+74lxVYDXhmPVIU+YX+ntqWKuMY232b2PgLogbBi+jT4XSp94l9jcremRxswNSsk8whsnXk21D5hebO6awl8dm6Nj7Q0mKWTwy8VzoBq2fOd6EO2lPZyRs3R64J5mdq0OWGy1zA5DelsbkAWiDBJuFlaNDOaLgaiPwx6VlaadzjQiCrN4TUlN+A9m6spYr1w4l8rM+lrPJOAO4FNSZO9Ek1mpeBt6XC7Xq5gU1FpYYaZnIibHhQv1zcHJnf5E09UJrcOKBw6JPTw8fOWibO9Du0qQeSQZRd9zXDR+mjxpCtTeMnYeBdBp9DbKy/DVVM9ltYoqrREO7uj7vkYuDX+HW3E0xUy/sxJM46XGH151W+Avgy7x42gy9SkZPhyukmtbSggZ7NuhIq7biSmrGlse90vXZRnRvNMyKuU/9XF/BW8ZBRd43rC4BsImkNBV01VPHa+aCUPlifT7N3xWTcLbQziB0UecWTrE1h2EiscdqO41OJRzFt0oQClhdcBoSz0wAErR72syQ8fL6usKzTt+r7HYFQtMkDo4vJ4giQgdgka6qbbVwFCtkntyH1t/C6xQXi5PYmtMlfs090CYziQAUBJ+85VMbeCMQzIZXV5C3nUpoqUnakFaW7/7OXbeKNsKmXvssBGuE+sdmyURCfEGnCySd kcP6UzWD NwZ+1RerdsySs6b8iEm/eI+3kxGmCRyzsiSUKDrc1HSVqIdXVRcS3KcWRv7l8cl6s2G1etpklYjGKxbS7BoWObukpH80yPGYJxnlcgenKzubupCxd/zdMBJxqSJbruIBSqb9WxgkLU9vif/cwueef9aOSjvCQKeKmRWCRrXuD9gmTgD+EzcUz3E8Pah3gFP5GYFsPPfjPKXciTdKwrEUf+xMqOeYEDO8LLR+nPdjw8EY3Sog13L7SlF8UzLvzowEIDCYHP3uM6wLu8kx/pLVKswrXIun7xiDm7xmlMOxRZdPwdKE= 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 fb_is_primary_device() is defined as a global function on x86, unlike the others that have an inline version. The file that defines is however needs to include the declaration to avoid a warning: arch/x86/video/fbdev.c:14:5: error: no previous prototype for 'fb_is_primary_device' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/video/fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/video/fbdev.c b/arch/x86/video/fbdev.c index 9fd24846d094..9e9143085d19 100644 --- a/arch/x86/video/fbdev.c +++ b/arch/x86/video/fbdev.c @@ -10,6 +10,7 @@ #include #include #include +#include int fb_is_primary_device(struct fb_info *info) { From patchwork Tue May 16 19:35:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243605 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 33622C7EE23 for ; Tue, 16 May 2023 19:37:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C0E9C280004; Tue, 16 May 2023 15:37:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BBF2C280001; Tue, 16 May 2023 15:37:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AAE8D280004; Tue, 16 May 2023 15:37:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 996E9280001 for ; Tue, 16 May 2023 15:37:42 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6171E1C6DC3 for ; Tue, 16 May 2023 19:37:42 +0000 (UTC) X-FDA: 80797127964.06.3489AA1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id A5116140012 for ; Tue, 16 May 2023 19:37:40 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lzNvSRgB; spf=pass (imf09.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=1684265860; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=sXyTndVFWnpbBh0yZBRa7V5wg9uNJxG4lD97NQtPr5c=; b=V6jXSKycWrLpGI9ewZBdsyYVf/gEFOKwIIis2P6xf+GXMfRTE2f+1KfWDow3Vvwj0J7tnu +QaSwW+qzRXpaKAAt93Nax8/QDn7YWQzDIm1yBePpP5/dk/EkTKzY0LfGqa1BrQ5EriYK9 UvJiCj5v1RUmy7N5vLZW5dsJUqaGI7w= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lzNvSRgB; spf=pass (imf09.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=1684265860; a=rsa-sha256; cv=none; b=mpMgZkDDwjDE+6fJoqnVa4FdJlCsca7YUFCqwJGBTDzyHjZcQ69R/9TR+4c04sjOpCnzXo Hth/rxB0TsPmRdCXrCdo5fJjYz+LKHpV9JhoCTlD17jbJiQKk7isVH4JsBMnobt3ZKDDza oFiO2nXED+Gp/KVIlwSu3qTHcHz/eGE= 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 CEFFF63E87; Tue, 16 May 2023 19:37:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B6AFC433EF; Tue, 16 May 2023 19:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265859; bh=wLf8lxCTTft8AHgx+lACsU6Y90fX557lCughigKxTwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzNvSRgB1AKUSR+3LeaTPh3l60rOTsZilQhWDzOcQ+x5oMBRGFpj+Je09FDcA2oKs bQKEk9CQaOZxW+LjeDZNGHoi1VyqvarfbYPZrFtOwIBWfmcUKXnPsDxk3K2zk5rI3y gwROMzkPtIsOFqQj7b/viChMDejdNvfGdFXbZ5vHvg75Pj4BpgPv1EfIB110tOzdqm cbrsbReFRHuvu0B87vAMax0fJ9PYXNdrYINAB0Gk032nABAs1PIVnq46ho2ehxCbAo 4W56TKdQY4nVBka2U6Mo+efkQ7TvUoLDyo62gyH/6bIRgyrLCuMeysKv+AAj4wS8d9 cMd2D7IKCRhyg== 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 15/20] x86: mce: add copy_mc_fragile_handle_tail prototype Date: Tue, 16 May 2023 21:35:44 +0200 Message-Id: <20230516193549.544673-16-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-Stat-Signature: a9n8ei1j7i1ptdcufy579nda7bzd4rqc X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: A5116140012 X-Rspam-User: X-HE-Tag: 1684265860-607957 X-HE-Meta: U2FsdGVkX18hgorrdwzuOdQkwvKtqB7oIAlYPgNrI/lefCb9tksnkcXuzE81Si9NBklxgR22gAFo/CMy3RpjKY9LR6YyDUsFvvR1rDO6APRMwJBZmqEWgwIOVAtyZ20uBXVsd66ZP3cOSlkGZybV8YFRl0R6mD5+EFFcol3u5evcpHKeHJKhXhRZ9y6Umz9soGVoaY5S1ekdNMbVMyggMJvPZ6xB6ZLr+/SMEiSZDkpI+nPFbJoa2FmGggzyNcGTgeGIp+h0iOsyhoiSGLr9O4Qk65j8WG+tSKgsKWjwjgdclh7C8X/Mc0liuX5verMDNm0n3HLBJdrtIPm1S0HlGsb+JnNFbr4gxhi36XehmMHwariIhGNWc8gmO4yOb5/ib+5drj/wyziW2UV0nYLFuKMUck8QAytwi0F3hadyeGIfMfWdRTzVkY/GgsLXiwwcvBbuWU6fBZwUteKP8JmeWMI29i+RgVlQ1tTWhkRICwKhJrOTXK4I1K8/QmVNImcTdjETjtQm/borlYyNZi5sTmTz0vtx+jBEeXbNy30q4qHpxzFULdyJj3G+k/az/WGFfnisABmhgpCik4AtqEz3sjLVeQImutkIBoDhgO5sTcJoyUwsjsNUPJRZLIuFL0Z49r5XHFPZWDbdSQ0btETtRj12GUrIiQlLZw6XhWZP3DRvLy30+BqQyWe7bVKvC3ecF98aNr9eD+49h91U2X+Dq5qjmduWXCjNAj57hRVK/qKVkknx8lQohXYj+fsCNLeNAoD59GaD/6xo4JmNV5MFh0Ejz3vPETFACkE5poHb1mfMtyIQg91ynMEbfJZC22uHfiGiSwPWtQQeG7XYny6r4d+PewigbK/2SoQUYdyTpyXx8xGO4fFz8o72D6iPBsHeDnO6Iw85O/MQhuKMOjLsKwvVt7VlUHb7LpOjJsFaPC1heb8muY05L+lIKTMxAD/u+7TcKSiZNSiidDpk7RX JwrBvlY2 j7rx9EAJrbsS4zaTbkCIvehFXC2XcsQuce3sj/W9Vgszw56y0VghiEWJMOK6VaLLiCfBqGAbO2PgDJsh0AjRas9DdEo2s2R23/9gbEAeE44Rzfzc29YNFp7VuM21+EL6RrmNyfx6pZ3iqxPbw9OZmtGjmE6jT8Q7Gb2ourfaTYleADltfWzYj3J5rD3zmxscs2ivnUM02Nq3X6ildP9Pqvp7RTkmHbG3sGAMSl8toc3yXpOUQ2tu8WWK7ajujCGMZKhQaKmttAOC1htpgBQ98813WXtrCGg4X3fZGZ/Qot1BnmEKBg2qT2JC7MmzzOMVpYhFpzLixaavr2hIXBAeg2MB2XA== 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 copy_mc_fragile_handle_tail() is only called from assembler, but 'make W=1' complains about a missing prototype: arch/x86/lib/copy_mc.c:26:1: warning: no previous prototype for ‘copy_mc_fragile_handle_tail’ [-Wmissing-prototypes] 26 | copy_mc_fragile_handle_tail(char *to, char *from, unsigned len) Add the prototype to avoid the warning. Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/mce.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 9646ed6e8c0b..180b1cbfcc4e 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -350,4 +350,7 @@ static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } #endif static inline void mce_hygon_feature_init(struct cpuinfo_x86 *c) { return mce_amd_feature_init(c); } + +unsigned long copy_mc_fragile_handle_tail(char *to, char *from, unsigned len); + #endif /* _ASM_X86_MCE_H */ From patchwork Tue May 16 19:35:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243606 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 E2452C7EE24 for ; Tue, 16 May 2023 19:37:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77AFB280006; Tue, 16 May 2023 15:37:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72B48280001; Tue, 16 May 2023 15:37:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F33B280006; Tue, 16 May 2023 15:37:49 -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 4480B280001 for ; Tue, 16 May 2023 15:37:49 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id F2E7C1C6BF9 for ; Tue, 16 May 2023 19:37:48 +0000 (UTC) X-FDA: 80797128216.19.C5EFDBC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf16.hostedemail.com (Postfix) with ESMTP id 5A49718000F for ; Tue, 16 May 2023 19:37:47 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QzHHLwTI; spf=pass (imf16.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=1684265867; 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=1dbyLDVJGTc0cXrEQAOecdZFteFRqkiQmJwAzs9ZGDw=; b=6h/9FdAANV3r971TG8LIPQWPJQzPZQnzT0M+8z+Kg8a4jNImG5N1SXPnbgoxYJ9OXg42aO OIgx9odJF9N8U6sLR0OaeX61mpBGww2dR3oTgUrIX7FpI7S4lX7BCXZTgNql9UAMOftgvs RKmdZ4OxnwL5/cFC/6rGOvtzX16hsRw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265867; a=rsa-sha256; cv=none; b=mtq2t0lbG3h53NOOOQFSRK5FQNHz+tG2fk8Nk88VziBnoBg6vbnz3JnjGPApgNcIgPNHO8 qkp6bE27NOtgHdVnVvoYqMjqwQ9E0fIh6t+6ftx2xkXkIb93Ds37PgmPhHtzsuUNm8Yp9p vLu5GFSnVcUat04bzGc4vE72mHNcvFs= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QzHHLwTI; spf=pass (imf16.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 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 85B5863EA1; Tue, 16 May 2023 19:37:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5BB4C433D2; Tue, 16 May 2023 19:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265865; bh=ePOLp5lrYksDFnI5SruvVtfGvFIosnERaoYqbpISZdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QzHHLwTINJvvcADDWDAFD53gb0rzvbfM+9frChQz9nOeJdPvDbN96AuXaWQc9Zvxr aIMvdYvF3T+QNbI/k5wpwc6MSujK2ulBi7AB+gIW4MAFtORYIB6dloPpaU3136n4im 28e0oQ/gFuMmWEVqE32GvMwA8QC1R8ZOSDj5aB75yht+WU7UenY2JSg291k/G5ntiU 9aBuw8l68CYZc+TZWL+A0oDAj4k2nTmi3WAfSETq8X/lpMsTNhdlRU1e3qXY/DCjc8 kbTXiAG5OAPFlElt+nbApNzKv5CT7DQpkoHI/Mebhyj1HGkKmozLCY+jMgkk1Bebd7 De/Gp233G0FBg== 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 16/20] x86: vdso: include vdso/processor.h Date: Tue, 16 May 2023 21:35:45 +0200 Message-Id: <20230516193549.544673-17-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-Rspamd-Queue-Id: 5A49718000F X-Stat-Signature: e44nqxxtjt38e7z1arkbmsgp97yoonyb X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1684265867-700132 X-HE-Meta: U2FsdGVkX18K1Lp1zAmE9bXlfGZ0nnwc1vavUhFGG+TIs8GpfaEzIZJf5+aYN0WbYqhmirpKcAbklT4jscMakd7w7Stv7KNzxwIadwF4SFCd8anN88X9yyHWAXaICstDHUEknSINGawIlqC2zyFd3nst+eqIQGHOcvZ7reARdCHuHSn2mFezNefyUkyA3Y6qR1K6BVXc+3UsX+kbH6wi46T5o1POd2HObRbG14mYwrP/TGfxqElH+udvczUeGm7OtP67dGE8FXY+gTZ+YOBzTLzHPNx7vp6O6Iwxrb1OSyu8TuXGDNUv+upKWIaGurwDLg4oPtqLYA/21yc6L3EhrNcKjS0SLkAsIgK2qJdPBXLle8N27hYosX/FtbfH13gkV72hPlFXrwbth33OXLKoZkKNDSNzXAFFLCWIlAGos1s6VxQ+Epx5TyjDbJIxQYoQbrZ2b2dyqfy8jNERgiPaRa4ASPMVzoaDqYqqHqdvWH0ELUKSQYCLmz6DOqjM/FwWjDU5z0K9kF2sEK4j+JeUPqE3K6nyjMvf1cwY4GCB+2YmYtbSU6ZnzSqvWWGbqMrgGUm+CjGYV5ZcUDDSp3YGdJal7BGUeRisHc/V3h+UjB5DT2zaBtVeU76vaKBwGnwmxpZYcKez9ha2E/VNaAOc/m6J5DeFg2Rd5WFqGQAaNFaV/fQBAyevV4C22SjpnQjJ01kjAjXACYkFvn3QIDoAax5y4AmMCYlu/is8ypJqfdUdKyw0E0PfhcsISohTH6wb0nC+PJCWVfsK87f3KSf5xxbE3o1gQqCf+cV8FHqkipFkvd1CdD0+HjEwmqrSwpgzfri4OpBDcv4aIE+Ab4W91VJV1yrOEfY2DovmaLJIGwkLuOGgagrDtlIwmcgyo/RxlQR8lT0k91jgDazMrbXWoNyrCy4o2fd2C2YvPLAptoM0qPdHuquKixLRFzFj/hkEmptUPGNKrnIPk3LkQsk Hzzezo3z xEkHT7FQdEmQ0mOXdrRgJeeJF/5PaEM3IseOv+o69HjBc0uyPg8Aq24+9O1kUXCNF+qRElJT1ftko6RU+OT4OK/B5YlZfl6E9wYkNONqGjrijDj7o9toiOZPH4tbZdr7J/e/HR72eHNMo4vlm1aQv863A25TrWYQ877IPylaAqb8SvCu3qYrGZ7GEk0hI2DBJ6Y0C/nvepyguhY3Qiq0R1SDe4AW2HIsRrxQbjLouzRIylLnOo50+8ZlQK5gibUPTCKVMD5EbNJBlgh1Q+hNTbZr5WA== 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 __vdso_getcpu is declared in a header but this is not included before the definition, causing a W=1 warning: arch/x86/entry/vdso/vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes] arch/x86/entry/vdso/vdso32/../vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/entry/vdso/vgetcpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/entry/vdso/vgetcpu.c b/arch/x86/entry/vdso/vgetcpu.c index 0a9007c24056..e4640306b2e3 100644 --- a/arch/x86/entry/vdso/vgetcpu.c +++ b/arch/x86/entry/vdso/vgetcpu.c @@ -8,6 +8,7 @@ #include #include #include +#include notrace long __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) From patchwork Tue May 16 19:35:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243607 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 15D00C77B7F for ; Tue, 16 May 2023 19:37:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A3B1628000A; Tue, 16 May 2023 15:37:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A114C280001; Tue, 16 May 2023 15:37:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 900F928000A; Tue, 16 May 2023 15:37:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7DA08280001 for ; Tue, 16 May 2023 15:37:54 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3A3A3A03E3 for ; Tue, 16 May 2023 19:37:54 +0000 (UTC) X-FDA: 80797128468.10.A21177D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 7DEAB40016 for ; Tue, 16 May 2023 19:37:52 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=j20kxPBB; spf=pass (imf17.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=1684265872; a=rsa-sha256; cv=none; b=xZGhpPKx0KdIqVrKK/puW0RFexZs+tHUI97XZwNflwAQHufaMhG1TmyJHZZY88/xpWDUio E+mHxmvifp/03lm+WCNqByYUd6csyYz5yDn8htH4rPwQoE5JvYLBIdV8Bdf+HMrheuoPof D5lfSQPsPWvwwB8Yd4NQfsaPNNq1vi8= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=j20kxPBB; spf=pass (imf17.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=1684265872; 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=gigHMuuyAESN6T105RvhBXeUqR2L13lmgTjmiPF3Qq0=; b=HV49/cWbdjY/JMyFDEwvJTiyXVElea+OoDmpXwgu9zUB4wU7/W68695dsNfVOVrOqmDVo/ eqEEvj1bs9UUeyo3xc8VKvJDl4qAy9U3f3nsbFwkAWIHRdISUNzQIa0u/s6aRclIYW7zQr IieU+F6lO8zKlFjOd07c1nnZ4KRPQ/s= 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 A17B563EC0; Tue, 16 May 2023 19:37:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC9F0C4339C; Tue, 16 May 2023 19:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265871; bh=gSQe4II2iJtS+QQtWHfwrqCvLdxK7Wzo7e0HtFoFV5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j20kxPBBFRIlxqq0mFZaJS7pQ1cCrLadjW3BuMisWulwenHNraGn3QWbXEUvelZB9 k8AScRxshCwAwrVHCxXAtcvrlQ6DnbnlQVpLaumX7l4EAkHg/GHsGYTQGiOvmWdeHV nnvqCAqbFDpb6jdopaiVGQxZ8tQP14F6vLmY6rEGNbIsMSxZRZfWCAbLoJmiLJul9v mHgb9qRmHAMRdPNwGH1ZJuxcpbeasYeDWHN2uDuIqWD3/Br6dub6irvZhT2xBqimyR 5zR/L6TK+jHMgzzDqKoPOtdy3hz/UK9lh7gf7JJ+DhFN6pkHpaPxXMMg+7/fxjhdum PLw3akFNr0smA== 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 17/20] x86: usercopy: include arch_wb_cache_pmem declaration Date: Tue, 16 May 2023 21:35:46 +0200 Message-Id: <20230516193549.544673-18-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-Stat-Signature: s6fsbdmkiry8b7ja9c5n8ai3y49sec7e X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 7DEAB40016 X-HE-Tag: 1684265872-350855 X-HE-Meta: U2FsdGVkX199MW3VbD8lVy5GOOSaUYKXLJQ4mW9UsNrLe/ObmAM5rbl1WwpSnmBFpQzOSWpIwz5G7TbqxYDl69FQUR05jorHfbcmptBoje/1lrdt/t7K2jzxXwOmYGTASYzp0v1lK40CoNuYEG6eFmFiwcWc/uEKOI6kwbW3mCKVq/y4KopBBd29x6pQfE/2JC8OqH0Jmx9WBnP/Ts3IqebI++eOa2g15aLhNnYBvgh9gsv4EoV/Vp+XXZuvebhKKxFB7VC/XHdpX8s5ql/+2XjWM8yX+15WIuLThV/hcmU/Oo3i9+iN3/zOczf59AutfKeI43mSV4MbCPMqj/hhf5m9nQvxG8iCNn2m8ItQ+7eiy0jy5Ekqlbr/0qoV2/kkXCVUATYpwW75Imyv7tOK6eWTb0hhJB68LKtyz+bIjq4sjqmuqJj8cX0EJAsWxYp/UGEG5D7irKjo5y2XpqK5KEtXNauKZEBpIuPLk0t5CwEZN6sR7Y8wqImLyHXPLxCgl5LZPBMPdl4e8SEMUN7Fd4EIRCzbpqSAgQdvdzI4I7Kt7sCOoWnelMMttjwhM05VghzBhaYdx/XV3ogfTmigZM8XuCUkb5OOAfHN6GB9o/An2pzWE9WUYFDU9NKb3wMyULhV72RNsIfVAW6KC9Yf1JJUqBj3NeOiFEXSw3VnZKCbMCZANlmpYSdlOyQzM12YoLUUxvH+UQNEm0AlJR0IjxDp5btWfePhosGWNT58ilTySz0aIarq3YQLQrFF8K+G3+vajUIrXWimIz8uHAS7mAkoMCSuOWuUI8nKw1A3JHN9pxsCgop9MYzNGDHqX5Cf1UQjdS/HGPImjw5e1YkmYXHgUSZGHUeuzO+ez+qK2qzUVuKz5SlasC2Xu+wOEcny1mh638f7UPQEUJxA9nkGGxZrHu/pjXgBYRj+e+2O84u59j4thhhNEqf8Y+ew1RssQGGyVIWDwIs27nYd1Vr z8Bxtrws ux87hcfYPqkmuMzORxGsgaF0Y0yctbXLAvx5h9FSn4L2gzPs3PZHFjqZIIbxhq9xcYV3cHqrS7DEJ51cnHpLF4STLcYCH2KAg8aAFV7UqOHJcDzdnU1XLBE3ZpyrBw5PCiEg4JyAuF+cz8H9kRiQsc0vYuLbPjtNN9DCF9of1+00sES+MnPhvt+SFxBQBYsgezNGDlVqFzmDc+e+bauqnV8LY2mR77G+dNrYzydOkA0y/B6mNRJI7y13UD/oFEKxm9Dr0x83Jb8PwSzL5zZzpkstG1B8Uh4BqryIOYc23wLp9NE+fF2v75CFL75TpZFILjiQwJ06FnUizLI9sg07gYFdzR1fvMFypHb7M 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 arch_wb_cache_pmem() is declared in a global header but defined by the architecture. On x86, the implementation needs to include the header to avoid this warning: arch/x86/lib/usercopy_64.c:39:6: error: no previous prototype for 'arch_wb_cache_pmem' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/x86/lib/usercopy_64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c index 003d90138e20..e9251b89a9e9 100644 --- a/arch/x86/lib/usercopy_64.c +++ b/arch/x86/lib/usercopy_64.c @@ -9,6 +9,7 @@ #include #include #include +#include /* * Zero Userspace From patchwork Tue May 16 19:35:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243608 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 E58F7C77B7F for ; Tue, 16 May 2023 19:38:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 817A0280004; Tue, 16 May 2023 15:38:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C7B3280001; Tue, 16 May 2023 15:38:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 668C4280004; Tue, 16 May 2023 15:38:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 52449280001 for ; Tue, 16 May 2023 15:38:01 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id C0514803D4 for ; Tue, 16 May 2023 19:38:00 +0000 (UTC) X-FDA: 80797128720.19.DCF27E6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf27.hostedemail.com (Postfix) with ESMTP id 0618740009 for ; Tue, 16 May 2023 19:37:58 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=NpGBW3oQ; spf=pass (imf27.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=1684265879; a=rsa-sha256; cv=none; b=WDKGqLmQizplrJNVFW08QgOKKP6meA/OnKMn0Cxb8aP1d6GBKGGWSoeJz0OMb6zbikPLmx CH5Y/vD0kF2UlC0s2eHHooc2LeeUd4PQSjnD7e0QTahB6Ep4uazdh5knWpcclffZIs+xf8 zLTU8SlrAjI65AXnj88m7FqGXI3stp4= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=NpGBW3oQ; spf=pass (imf27.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=1684265879; 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=K9Edkanj7JOmWyLr8TurZPTj0zPibE0vGIeVrvKq2W8=; b=HvWd5nb1aWP6ExbPvS+/+U899126GBvKdQouRyr5yNddYzxgszlvsm4teOJgwd9kGkgZtg O9vs4JAvsln1GHbEVYFNo/+pZ+DWbiG9qNHgFLD7DhXvM9mBV489z5Vb6Xo8DNGpLj+Sty neNS22jcKf+1knrTE1k9xs+tsYrCuN4= 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 1C45163EA7; Tue, 16 May 2023 19:37:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E563AC433EF; Tue, 16 May 2023 19:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265877; bh=BMgSzYPnqUEEoyY2VRZWSxLxvLKRRE/JigFmOP6CVm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NpGBW3oQfGokP+EqO9HPXqgBNDkoc36H1oosSB5XjEzBOg7yBtWPUSvXBHiX4Rn4Q nPdmLvbLNil6YudLmIUT16A//m5E1l/d5GoNjyYA+FGYUUcB0t2DXV/Y8FzJPsCm/g WSjrQhVBlok700vqB4usp49fWyRCAVJCMtG/hOkniDZfEqspZMur4GNXocMx9PVPyv JJe6IYAyEollD++tusMr4MFE1ysVhpCHJNBmX4uqv8rrV1pvWM156/dMfMSZOF9/ow oYS4tnWysUdqiVHzAJ2DPP9MsHPpjO23QeTGlMaWQS4Y+XN+rqnjj3iE0utAy7m/f2 S+exm0cd8OABA== 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 18/20] x86: ioremap: add early_memremap_pgprot_adjust prototype Date: Tue, 16 May 2023 21:35:47 +0200 Message-Id: <20230516193549.544673-19-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: 0618740009 X-Stat-Signature: 8n9e1ge4akackshyomfx5z1zztkrhhs5 X-HE-Tag: 1684265878-470319 X-HE-Meta: U2FsdGVkX18Tdwl/diulVVaDftnlc3SGdKC2Hqul0E8fmubLOINzUqH6fLqh8JlrXCzMBs7poBAJ04rV3yQHGmmG6I0qCBNo+3ZGJxCBXTIwDU9MBwPsKKZc6SVPqZz9jdeEBAb9KG26GGEdj49H2EvyFeFF7pRPvk9FDhQ4hqkfY3fDnzs5vkIWONMeps4X4+3IvBSurVjtl5LgNrS8HBmIkUqHlojxSbw5oJm12HKwLbxYVF9VRVHCdpWyzbL0+sZnS4C25IG20+6bbL5Kv98q+n5uXI17SX/0jfERCKgDe3x8Bmd0hI4wDu/OsxXgQctx0aFIAapnzoBoOcoyxV27CoWMlrB5H7X6nV68md1KpEdm8sWkJPrJiC6zr3GG4sU31IDYl5IFYpou6UCoh4NJ23BwGo9/iPSV5GvAsbz2JRMk4e80EeDtomyQw+VA/dWS+qlK4pYxCYejx+nT9Ps5sK9Zx2supjjMLL88N4XmMBIuD1IkyDyxQ2CI1mf4KXKX9tqN1n48SXNuIfIAZUoPVXuWy7obp5jpcPrHNWNwOL4gW/viYEWk3JS2pn0XgRXspMUfWA3laKxYJs6APWq/rYtixPKuGVplvZFJD8qw5xVdTGpwFwrH6XBq6TMNKz8tfYMBf9lvtEaxGE8YNI0R8xH4i2K2e89Vyl8cxGgVvSReWhRR4nTIThsHmdf/EOeQa9RiSCL2CPcRaWqfPL6PQ0N9QoDmTukS7+7Q0Pr4PLJ6len4tRvX5mjnAkMS6yPKmNou6jF7UT+cTkZJt0tYNFu2m9hL/2+YKelnDqs8Gs699QH3B+Xmw5whtlzKSuEgTzPUDgr/WTQMX9RJLLicRx0DW1JpYXcBV/VXBvH32G2EhwBA9bZT7qaBDnC+IArt4qJTxUSHj2xTG66KpGidtxvsQtr1hGRNI4/tp9AXCCMK+8mAIP0krTtxrhmIwVIMSf8vMKqgYRw/aOf /hzfwmW+ A8EpEUTp+IL3pyNmk3cfyiOlgdk55bAyLAqMOnGJh+Ab5WCL8UgDL4xH4a1aYvM4uAHOBJA65XYXekPqEi6fp9c8T9AO6w9Vk+sW6wkh+ebs2b4n40mACwy6en8byMYybfc4N5MtXzFs7OS172fF2mx6HnDMWhfetjzoUU9NstXQwJBSuE6fOxOif3seiqpjxKd9L7Pwt7hExAOpg9zw41BMKi2UdJZSny0uocXrZvGdzOzHzQDcX3OYWgHWr1ouOCZB1cy5IuSxvX8eBzTB7OFWjji5D2qfG0Rio6067dtVXXO1AiE+xT6nlECBZlm2DevDQCgxvHmYK64E= 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 early_memremap_pgprot_adjust() is a __weak function with a local prototype, but x86 has a custom implementation that does not see the prototype, causing a W=1 warning: arch/x86/mm/ioremap.c:785:17: error: no previous prototype for 'early_memremap_pgprot_adjust' [-Werror=missing-prototypes] Move the declaration into the global linux/io.h header to avoid this. Signed-off-by: Arnd Bergmann --- include/linux/io.h | 5 +++++ mm/internal.h | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/linux/io.h b/include/linux/io.h index 308f4f0cfb93..7304f2a69960 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -68,6 +68,11 @@ void *devm_memremap(struct device *dev, resource_size_t offset, size_t size, unsigned long flags); void devm_memunmap(struct device *dev, void *addr); +/* architectures can override this */ +pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr, + unsigned long size, pgprot_t prot); + + #ifdef CONFIG_PCI /* * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and diff --git a/mm/internal.h b/mm/internal.h index 68410c6d97ac..e6029d94bdb2 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -178,12 +178,6 @@ extern unsigned long highest_memmap_pfn; */ #define MAX_RECLAIM_RETRIES 16 -/* - * in mm/early_ioremap.c - */ -pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr, - unsigned long size, pgprot_t prot); - /* * in mm/vmscan.c: */ From patchwork Tue May 16 19:35:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243609 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 93B08C7EE31 for ; Tue, 16 May 2023 19:38:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 334F628000B; Tue, 16 May 2023 15:38:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E4D4280001; Tue, 16 May 2023 15:38:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D4E328000B; Tue, 16 May 2023 15:38:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0E7F0280001 for ; Tue, 16 May 2023 15:38:07 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E1678A03F3 for ; Tue, 16 May 2023 19:38:06 +0000 (UTC) X-FDA: 80797128972.30.8F23580 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id 270ECA000B for ; Tue, 16 May 2023 19:38:04 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AeITFFPy; spf=pass (imf25.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=1684265885; 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=icHKauzbPeU9FDUEFYfmuoRkWeYnWnQkSiXz/mjeNYQ=; b=vAKQKl/Qy3dQhMEo0J9iI42ew+IJZjNcO+UQicHvikdW00LlQIxDeM7bvO6gmnVyV/omdc 9gK4cCzuBdk/XDz8IhKW1aNfWfk37pSGsmMcQPGXcxcUJEKLSW44tf0aXJaUuXcQoTFAJs NyBdMs+teMx/1OCkMK4qw6j9K/BVst8= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AeITFFPy; spf=pass (imf25.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=1684265885; a=rsa-sha256; cv=none; b=xv0QKCYAxtd++tS7Of529IrOo0Tb4ejcUP5KDbH8xF2civsWLIdXs0hkfJ2eqOpa2QgZfR 28faRc9rQKI9NtYq25aVc8nHzBgrXkcZOKChhErRpxzvHvHIsBBvXVx2otd1PlwVmZ2OVV +G0AvJC5Uy6J+uYT63Mm7DUhmZvCY8o= 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 3CF5F63EBA; Tue, 16 May 2023 19:38:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05AE9C433A0; Tue, 16 May 2023 19:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265883; bh=j24rSNRgDIgmGiT2yXwRSRo4ZogPVSrZkif28sPhRnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AeITFFPyf4T1O9Bk8T43ZhPjTAAH6Vi8ipARvhqNOYnVJGtz4HnVAYe+g/BzZ7026 fDFAQ+Kwic0E1tpyAEjk9jRaCFQp+kn6j5QUapAXkZVr+cEC/j8Xd57pjknKmNJ40L YYnEhKGr6uzcXrPYT/H7qqH1VyhkhaztOT4kZMMxyyb3x1FoZRxS3qYbRHji3EIhxJ GIf04p+6OuzTuprxdmvEFq7KckfwLT/GHmqgM9hv9SmOoyBUuMT0F5NhocTm6xphV4 BngR4+JYE7FOd9LAO6LyB06VqLeGQ76wR+h5GIBrwd5zRDNTjAQuZi2Pu27xvTgXI9 pzCAFRefSXgnA== 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 19/20] x86: purgatory: include header for warn() declaration Date: Tue, 16 May 2023 21:35:48 +0200 Message-Id: <20230516193549.544673-20-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: rspam01 X-Rspamd-Queue-Id: 270ECA000B X-Stat-Signature: 18kj935xuefktyhqja3ro4iisq4e4i53 X-HE-Tag: 1684265884-47154 X-HE-Meta: U2FsdGVkX1/TUqeJlGUEvQlQCwx6iqQhJ9H8S9XtothgRfi2aQtUghutCPKHtNKlp9yXg++eUZZ8i2lqd1eGSFRtKjZer28gQRA2cTuUvn9EgGxzwN/trCrc32g0DY51PTlM32MYqKEzZJXLOY+pY4PNo7wJh3idsWxW9xd5gEcSlxSbVyQ5YmrilbvryPXgYlpVVSAYM5fsMS44zyO44gLRTICeYbGB2jvIVR4So3xHZ2eO7Oic9PQM9INMvl7HPjXjOXvLIj2Ni/y++KnGFB6HWyTfI5uBPFBuMvu2pJJIripHjuJFurVJOw9CxpkdczLFGTf/EWfEVTPoT4PIA4uOyLTijuXqbXI97S+NwQYjhWnXgG5KgLnOMl6kpngfBTG662bM86eokPw2PO7YvbRQ80Ho9/2AtsT6MrElBrh0aeXVnv7JMQaQkOWVFocTVHNd7cmj0YSvBDfPolJSFsOo0NwjdAM1QV/zHgiyZKKBOVmZ+/fTq/1r7gFZ8Hq92VS7vmMtUX8eVjVP0KbY2Z/bwvfRzr6HvOTnWVZBfVyMvu6PQlFmPnpwkLI3cm4l9gS0mquTnPtAoWASFKA/u/HXs/WsYrKFyCn0m3zeRopV+xSjgQdyHkpiluSb/DRb6/IyN2R0p3ABV406HmBkdima8MVEkY+7BV1Kw8WLElF0RNsPzXbcO5OIx1j3/SNLunuOKPiag7XyOY/2JbWOW1PxSAuBT7ccYycs64HZHJlI9HLRWWvtNoCP0niQRvSYljgXJ6ZaFohT8uAfcdxazjnUXB0KaMSvxKpbtbMfep9GixJSTwBe/bubKy5bD9IiofjvnEC4DYmqjr75zVXfuNi0QJFvtEDNhT4WMWLTOVJrO3RF2PqwBvO4Nz48xb6ZZiQ9mFc50w0IFLf3KZc97xDm/kSf4UW/UUMOfB9qqBchZosY2vVA+YuTqzxtToP7F+2YHAIKFGpbQxvHGso vadqOJyf 2J+uW9yQZtXSKaS88is5n5P/GRuLGJL5BUYI27g2f4xjMzwSLg3AxV+RBXcIoXGCP8BO84vAQuNMFuQgebGjxg+WpoKTryFgMRuP8B7LlIiG9/D7lORwCOxL6UqW4z9LbtRqaJLog+hIIuuhZHdThax+KqigFb9OZF0VQCgc/KUL8AYsrSkv8J0BHYfWmX7JGCKh7peB3ErjzDyqtzChrrFRjUiQdt/y8gHSSfDjIrwUI+kp53pQ9BFAsTS428lcX9hS+vHjWcYCxjlBsZv6fYehJeQ== 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 The purgatory code has uses parts of the decompressor and provides its own warn() function, but has to include the corresponding header file to avoid a -Wmissing-prototypes warning. It turns out that this the function prototype actually differs from the declaration, so change it to get a constant pointer in the declaration and the other definition as well. Signed-off-by: Arnd Bergmann --- arch/x86/boot/compressed/error.c | 2 +- arch/x86/boot/compressed/error.h | 2 +- arch/x86/purgatory/purgatory.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/error.c b/arch/x86/boot/compressed/error.c index c881878e56d3..ce5ed7d8265e 100644 --- a/arch/x86/boot/compressed/error.c +++ b/arch/x86/boot/compressed/error.c @@ -7,7 +7,7 @@ #include "misc.h" #include "error.h" -void warn(char *m) +void warn(const char *m) { error_putstr("\n\n"); error_putstr(m); diff --git a/arch/x86/boot/compressed/error.h b/arch/x86/boot/compressed/error.h index 1de5821184f1..87062dea9a20 100644 --- a/arch/x86/boot/compressed/error.h +++ b/arch/x86/boot/compressed/error.h @@ -4,7 +4,7 @@ #include -void warn(char *m); +void warn(const char *m); void error(char *m) __noreturn; #endif /* BOOT_COMPRESSED_ERROR_H */ diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c index 7558139920f8..aea47e793963 100644 --- a/arch/x86/purgatory/purgatory.c +++ b/arch/x86/purgatory/purgatory.c @@ -14,6 +14,7 @@ #include #include +#include "../boot/compressed/error.h" #include "../boot/string.h" u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE] __section(".kexec-purgatory"); From patchwork Tue May 16 19:35:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243610 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 AE957C77B7A for ; Tue, 16 May 2023 19:38:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50AA828000C; Tue, 16 May 2023 15:38:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4BA21280001; Tue, 16 May 2023 15:38:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3834C28000C; Tue, 16 May 2023 15:38:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 29C51280001 for ; Tue, 16 May 2023 15:38:13 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DAEE61C70FE for ; Tue, 16 May 2023 19:38:12 +0000 (UTC) X-FDA: 80797129224.16.1E0313B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 4EAC8140014 for ; Tue, 16 May 2023 19:38:11 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lJHg8XNu; 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=1684265891; 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=uCpGg4G0C1uvdYAB2F2/MnDucOjRXxzaC+xOYW+r6PE=; b=JTuKRDuRl2EZ1alF9EgNlD6F31SFkK9/6NBkmdbKh7Wxw34OgN0sRAqwfNPBux6705AigN 32xGz1nPaki5+1u6YEZ3QJkJKaK1vsdB/MW5c2gJEpDANM0Vz/Soh8jgopch1zAP3nTfKp alqluUiIQFRE7Q6+FbGDv0EboosS+3g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265891; a=rsa-sha256; cv=none; b=vyQ6DHB9065yACQx3lYecwWfDgaV6wtw2arGAo1Fm9tLc9RGdoeVx39YPVJsWGvBuGr9ow +1vkvORPjq74eRIZV4dEHgGTFa3lUvoSB58F/Cnqbbmnxlp1218q9BSQWJL1udouvgDByS g3qug8/3eSea+AQVI0hkuO9qGaHPiyw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lJHg8XNu; 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 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 753B66183C; Tue, 16 May 2023 19:38:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28787C433EF; Tue, 16 May 2023 19:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265889; bh=xg0nY/5XuAoC5Y+aT1n09akQv/zFSJ5XVH0JIB0YwTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lJHg8XNuGiy8jTFn+IFpgUXTvuRIAwq7VY4K/2aG+9oDXR9V6HWZw9BoV/Iby3Y3D ciQJCcSCN88ZGK79OW2jW+p1Mcr53FymRzsq3aD57yhmrL6X5s0JHYpe2CHPA22HlU vtyjpMlDJ94LuFullCZvqENjJQpN0VpNDcwlo9gDKsPudVss3sLnvUVGlKZDHrWJKC 9hYO4n8OiF35vwW0mCeLD6vxQ51+sc9aB2SOI5vmH0t/cuFzcMA5Ms2ki0dFUhjZ6z F+j0NZXOgRpsDihxxL0McykAWvZ3icJuNiaB3wLMzOKImpSeGeJaJv64l87FCV2Wpu UeiC9WTSfPICw== 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 20/20] x86: olpc: avoid missing-prototype warnings Date: Tue, 16 May 2023 21:35:49 +0200 Message-Id: <20230516193549.544673-21-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-Rspamd-Queue-Id: 4EAC8140014 X-Stat-Signature: ueiph83ta9t3ob3n1azt6j18ng376ybq X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1684265891-138341 X-HE-Meta: U2FsdGVkX19kKF0gP9SiE7gVxdsI4iUEgOlva47b2qcSAjoy0OqT3+ctgs4iLu78qlRSFVp3RtOu45qY01K1XEjILrz9gca0KBT63plInK+uQFVRgz0FK+vQA8vyLwpAi4gDyyVRPZP4bX//0y4n0f9fRB0wWlhoE5nFkMDbKBRzn6iHdsW5YKkFC8USQ28ryz3SlHjg8lvXNVnq6Y56FcbmYnXfoginngrT/pVr3+b84dhZFbp1t0WaibEo0wYZaKtAJrBZFk6iBJH1VRS5r2TB65ksaR/finIpEJ1+kBZXKxnycG5LayZKd+POsO2vzvtjPNiqArgPwoHDIEa0UqEtMJrXLNxzd/PSTFpNGK1WdtM95WB0a4es0iDvMTrrpigYy0SI6Lg6Drpbw+pyS0hzOLniw7W5n/GjOashkKq+DVNz5ybUgDEKOSD7HQwCMvp253Mr5Ok2tG5GCOsgMC/t5XOnkBdw3iopuNfQUWlwP2FMkObirPl9ly/D/vSGoF77M1s5jjc1QZVME+L8oa3BUG2Gd9RBG1mtluFcqx/1jJlz9ZgAQOqKdriHvipG8I8XP3qfo+vwUqcxnoA4H/AYbrl+TZvvlSDOAEMrJMNmXCMOrmmyZkGI3auOOm7H9Gy8k0biQolq5eXMqcqFV2zk2eM6OFDJwGXoRhMCqLTzJzPCHAeYK5pa/fa4Qe0RtzpXFv4mag2B3jQDNQ+sjOiu1mRgZ5NSG94PTq0HKhfDIWrwhtqO8Umt3VYjfXKhVvkd84b834i7hmVmlO+AEYDV6O3SEtD0iKfNttRwkvhfm+Ww2e9VTo2KV8uW4GNfqgwbFV1C8sqwJe1HV9OHEyx+muKPkTGKGiD7ryy/CxJONW7KN6f0QeqcXrYkHWAtzL6XyGEERx90LLl+lWmUS60m6KtLNnGqiEb0tRv/Slec6VCDtycNVKCOE2NXaWYSPsmPU/rqIE+cSGhAJQo pLt6dv4k vboiQdCis2wqopGMFUmg+lHikDHajxiouAsIuC4ko10e8Lpb+IUKA07UpXOaPssk2rsH+EfA5IO87JiMEsMD7I/z4prkoys9N0SUNdYCQ7tX23Fj3RgIN7Wim0lhEhiZEjA/MwsJ5hLNVcpo3SWyIkh5WXpyYVwRzpdxOhFvML80GJmY8DJOuH9mf3jaInQi75BEM2UzYr+0JzuPM/FU1gw+xx7rXEXXY+Pd+IUmD3XesMseswyUc2R0lcFpDASVPX4e/AQp9NpJ6c/9ZZDC4VrkeIggYxhu5s9VfXIkI2logvx7IIMoG7m/84G5ozkQCQDxPnfLsmNXIVfc= 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 There are two functions in the olpc platform that have no prototype: arch/x86/platform/olpc/olpc_dt.c:237:13: error: no previous prototype for 'olpc_dt_fixup' [-Werror=missing-prototypes] arch/x86/platform/olpc/olpc-xo1-pm.c:73:26: error: no previous prototype for 'xo1_do_sleep' [-Werror=missing-prototypes] The first one should just be marked 'static' as there are no other callers, while the second one is called from assembler and is just a false-positive warning that can be silenced by adding a prototype. Signed-off-by: Arnd Bergmann --- arch/x86/platform/olpc/olpc_dt.c | 2 +- include/linux/olpc-ec.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c index 75e3319e8bee..74ebd6882690 100644 --- a/arch/x86/platform/olpc/olpc_dt.c +++ b/arch/x86/platform/olpc/olpc_dt.c @@ -234,7 +234,7 @@ static int __init olpc_dt_compatible_match(phandle node, const char *compat) return 0; } -void __init olpc_dt_fixup(void) +static void __init olpc_dt_fixup(void) { phandle node; u32 board_rev; diff --git a/include/linux/olpc-ec.h b/include/linux/olpc-ec.h index c4602364e909..3c2891d85c41 100644 --- a/include/linux/olpc-ec.h +++ b/include/linux/olpc-ec.h @@ -56,6 +56,8 @@ extern int olpc_ec_sci_query(u16 *sci_value); extern bool olpc_ec_wakeup_available(void); +asmlinkage int xo1_do_sleep(u8 sleep_state); + #else static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,