Message ID | 20220830104833.34636-2-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C3D9ECAAD4 for <linux-arm-kernel@archiver.kernel.org>; Tue, 30 Aug 2022 11:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RAlXNXDMZ8nFq4NS1isZXTD8gjB9XCtqsU2ohg1TkpA=; b=Xi3HandsKXaXMd rhuoUkZJK7fLHPLM8oeDCYdoFdYUyPD8F7GFxh9W/ocbGt0OCdj00sByXmdO3dIrDTFxmqmWj42ch qiFRGOKh6IuNUVnkNd9IFuOdOTUzlFulMBVamz/BieolmLhxESx3USF99BFVvRuP2cHgXRxyv0bU7 iyA1PpqS/SUkb+9rwwz19+Ag4gpHkOP2P2H0+660jOATPyTmEwOjvPEKZhNsGIl9YkNC9F3FlrqpG 2iWUhDKg5xV/1B2H4CxSnmqKrvADB5gpV80D8h6SNqHn1ewZL8d9o6lEM4lk1HxFJPPHW/ugN6DkN iEzwUY7zT0LkjYZuUe5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSypu-00GIS0-AE; Tue, 30 Aug 2022 10:51:14 +0000 Received: from mail-am6eur05on2051.outbound.protection.outlook.com ([40.107.22.51] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSyng-00GHrH-W8 for linux-arm-kernel@lists.infradead.org; Tue, 30 Aug 2022 10:49:00 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Xid+2s/ZxwKZkRpFlXL3y2iO6b0bJNiSvCTv3EBwfXi4yFyZfEbE2FN47yn2J6QuIGs6Etf10NPUa/VRJRBtDBNYoDRVxV/l3MijGNP8DIOHNQUByuoSf+JxGYpBowcmlmMOXBHwbk5rOrfzmFymyOdJyzri6zEbKwfEaiOjSD56zCMycBI+t7quzvacMniMVMj8S5coO9eteN6J0lZbUy2nTSoE2AVTs+wfqcciEt+qMKY0Jfaif0PJ+dP9fXN+cOYYMZIC4Qg4vaAEcer/BTAVJKDcUzwQAm7qyNUgzem+ItZJIdNGSt4YLcgfv0yko3C5vHIAMUStBQ8b5tAo/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sDy0YBHcIH9jYmIgUAW5lXLbpatP4IX3ebtaTJKVaK0=; b=Y2+NRXEKEl/wMH6v49LSH5fr4Wozoysaki0ZZVK+C4iQlEi+gHMtNY8ZKWxth33LqkEDU55t8hdlwR3Uw9+kNyuaDRYmMjnRjB5lijcNMyQKFlpcqp9fMWsSxRDvkdDyT0ZB73EY+ka1JX0IbX6fYZo2WUHG8WAxCI9yIqvtqNNGODdeKs7jI7g1lRpw94FwESxD9935dA1GRvxseR4kE9jFHsYUEr3i9VOi4G1EaGEvTPk2c9PYyVDWEF/NbnU+RrM9o1CXxu3db0Ew2dDrYxQDESh1gPpzUGCmx2En6n71gGJKdV/ihupiby000E4WFltmo2q8uWAW5ZsDQdPTJA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=bestguesspass action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sDy0YBHcIH9jYmIgUAW5lXLbpatP4IX3ebtaTJKVaK0=; b=9U23j1DceUHYrvxZrgMR7em0FFkkvlPjtT0V/O5u9zxUC4wfNvVarChFLg9V7V/gdA+Q0lmrN1cnxQhOLy59Sfa++ijoN/ypYWruB9uoQvS9EKRMj68OOw3iNPpf8Ex7cD96162dAxnSA9k4UDYLAsb0Rs3q05ErFToOPxj3srI= Received: from AS9PR04CA0045.eurprd04.prod.outlook.com (2603:10a6:20b:46a::15) by DB8PR08MB3932.eurprd08.prod.outlook.com (2603:10a6:10:a2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Tue, 30 Aug 2022 10:48:48 +0000 Received: from AM7EUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46a:cafe::1c) by AS9PR04CA0045.outlook.office365.com (2603:10a6:20b:46a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21 via Frontend Transport; Tue, 30 Aug 2022 10:48:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT057.mail.protection.outlook.com (100.127.140.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15 via Frontend Transport; Tue, 30 Aug 2022 10:48:47 +0000 Received: ("Tessian outbound cc6a8ab50b6b:v123"); Tue, 30 Aug 2022 10:48:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e020170d1e434c83 X-CR-MTA-TID: 64aa7808 Received: from 5b87920a314a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3A06C7C9-D5BA-4EA2-A995-0F54A0C2A70E.1; Tue, 30 Aug 2022 10:48:39 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5b87920a314a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 30 Aug 2022 10:48:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jl5//uJCPkcK7Qncd9K5OjcZo9PlAvVDxZ8o70xzyCdrUiGXlAa44+vT+DjTI4SxYCVlou8VnctsCyPNt1OZXgLLkgg5IggG0Cdaa4AvOHzf30e7sHOjLP+Ve0gMqqFKwHkve1Ny5uaczyndo++MHD+B9s1pEI1ROTQbC+pO+6dUSB4VYUQIGziwpiMjqbuW1sDDeCqa1H7fq6rAYOO0+JRqWyUQR22ISVg+gtnWu5bvxepnA+Zq9OKwAXtAYAfFMTdKdclL+0uZbDw3/uxBXSAT95I/wN5B49LqZgaMFuGvjy7jT/ll1k5JMszaaqrWNubyMoZDfelNS3oE4TrS2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sDy0YBHcIH9jYmIgUAW5lXLbpatP4IX3ebtaTJKVaK0=; b=fu5kfFSGdkq693P8rCMij3hKolx87Tk4BANnyOmMS4ZTBxSmxUAEzhdxrOHKjnHnefZ0RE4F6+9bkF7+O4bkM0Lna8yBDAC6Kl7LOWddaFbXWG4HwEfo2IKr6Pdmcds364Nyhnq6ZMIuka3kowiWozacHM/qq/mFB9so8sQ7Pd+VbSg6z3i3CMBwstzTHpHkWAyOMF7asSOSXHuwY2mq6FhbZQOHQsEZ9eQgF8pCI4AEYfgi3sKlKoA0OIIRH29tcIhAmp6wSX+AuksXF6BzUBmnZDDA9833kSiFrZAIyRadywJfnrmChk+ahfknyVR4YDUv++SmXZVzLymM/7P+/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sDy0YBHcIH9jYmIgUAW5lXLbpatP4IX3ebtaTJKVaK0=; b=9U23j1DceUHYrvxZrgMR7em0FFkkvlPjtT0V/O5u9zxUC4wfNvVarChFLg9V7V/gdA+Q0lmrN1cnxQhOLy59Sfa++ijoN/ypYWruB9uoQvS9EKRMj68OOw3iNPpf8Ex7cD96162dAxnSA9k4UDYLAsb0Rs3q05ErFToOPxj3srI= Received: from DU2PR04CA0322.eurprd04.prod.outlook.com (2603:10a6:10:2b5::27) by DB8PR08MB5452.eurprd08.prod.outlook.com (2603:10a6:10:111::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Tue, 30 Aug 2022 10:48:38 +0000 Received: from DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b5:cafe::76) by DU2PR04CA0322.outlook.office365.com (2603:10a6:10:2b5::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21 via Frontend Transport; Tue, 30 Aug 2022 10:48:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT048.mail.protection.outlook.com (100.127.142.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5566.15 via Frontend Transport; Tue, 30 Aug 2022 10:48:38 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 30 Aug 2022 10:48:37 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Tue, 30 Aug 2022 10:48:37 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <andre.przywara@arm.com>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <mark.rutland@arm.com>, <vincenzo.frascino@arm.com>, <will@kernel.org> Subject: [PATCH v2 1/3] arm64: module: move find_section to header Date: Tue, 30 Aug 2022 11:48:31 +0100 Message-ID: <20220830104833.34636-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220830104833.34636-1-joey.gouly@arm.com> References: <20220830104833.34636-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: a9166911-47fa-4dc2-94aa-08da8a75377a X-MS-TrafficTypeDiagnostic: DB8PR08MB5452:EE_|AM7EUR03FT057:EE_|DB8PR08MB3932:EE_ x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: KorwlHUpl38hEjk+fI8lMO5FC2ZAuec98YvTymLYSbKpm3ug8H4Y/xPCsTu4nDaz8rEbaXpAXFXTUCB47CtTEAfxg+IcTaF8Tme8LnJ/uKAurzF46w0lhqzxsITBRxLhjEo+IunuV/4qYD5Rg2K44Nsbc6j5Q1Wi5U7AKGHn6iAXg2HmgOLk26vaFkDdWktAiA9isbtobnrmpykg2GsUHb1n4O72pbfb0lu/TezICglEIKrd598CbJXq1r19Rz3qboDf85iswh0gKFuRWUusx0aRL7ASFHhZhpiv0NPQ6dygCAEDDgaIv3csaiGk8IvxPqK25+RfBb1t5cW/A66XAsrA3JtSMGJgeuWVhB5wQgVyToC/wMbATVTmZEMOqF5LI3WDtZrjvjjGD1P3aZczC96NJhmnPSUKtBFUqSu7feeSilbHIvLURn8+55xcRB5x8QwBVx7cclNB5GBuupI6NpjdfP8uU9rVGZV7A/N7z98GKI/Q5UZii5/nqOtedQ+DC37p1CA+CIF+dLd+gznav7v1//Hllz8WJE0xoc58YEg4Y/x41QC4argTMlo7MIeluWqVwf2f0UlIxPL/pCAYW4RbIUhaBwnDYLU8ZQE1wyFqOm0SrYHEHMehBxau8k6Vb0p3E/BP5Aw9yb0S9sqX/rNI9RiKWZrvOPOKpIUO94613p+9GOviVtcC7TrDuodZddQGnrnpg4axAMWhh568W5oXZWRFSt13M7mcR9D4F3cvou3s5XN3QRQdLS5hbZf7GfomzVQdhpl4pcUBo1uZAKhZIeBqiBMtCMO6KhtOCT5+gAhHwasEbyfwmoI2tTUk X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(136003)(396003)(376002)(346002)(46966006)(40470700004)(36840700001)(6916009)(2616005)(316002)(82740400003)(1076003)(186003)(82310400005)(86362001)(81166007)(54906003)(356005)(36756003)(36860700001)(2906002)(83380400001)(70586007)(40460700003)(8676002)(70206006)(4326008)(336012)(40480700001)(6666004)(478600001)(44832011)(47076005)(41300700001)(8936002)(426003)(7696005)(26005)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5452 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 21005fe6-69d8-4347-5252-08da8a753236 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hWdBfzRfuQ8W9TUb3G2wg/yBpLPQOxmscoeYiyLJGFyY7+WfnWbcYWnxyc88Pp21PcMOupfdV3tOtUS8HKitxGu31tdkySVMzfO3iVgck4WHOZsfaQZVIHEJdf/DAfWVOkbC+1o3TFJEpUE+18TaCEkFtS9hzTco3IS9Ft9n3Rn2wxxNXHRqLJv0PPwFQ9k/JURrL25pWpzQ7KjvuWs6LIAGbcdbuyl77FCrvYj6K8k8wqvFUytXHmav+eMBOhn54TPGeyCRef6zi1QmiU9BWCI4kNe8sQ35QxORW0bmR/ZVTFAhDf2aquswf9m4pgxkJr4UenSx9MF/uqS8x7mdwviiwKgP/KmyMtIZ32Lv2YKIpBLPAviumR1wfaWTlbDz6PfdRLCPMAuDbIHMLoYRdh7E6WChJv03zxDZsXXuDGF8YHthGGOYqK8ci9+2uw0Db9/liPabNX+aQuCDR2pNtibsnWyDlTSNkWPVoq6f8SGyK8SE2izFePq3/Wo8jiY3bfeNnPpSeS7uavIphUT5+K7WPdjYrbA2KrDtM1qLMCH3ejNqk4F5VM+b8Y2+VfUIVnajV9vjwV6hbdbyvYTPU4qsW5H8DM45DrT5WMQD16Qncnuovth6QgWINZ07wGTPDFbEuweT39vKLlyTj7ZlqUddlPVEHRVCYz8M6AdzutilBDKq8jUZxtCZfpOMCaIzr3953t/WLSzLTBGaQ+FGN/F5r7aLNcb/4Vjfa9qKUL74R4mEa9FBuww/Jl3mfoeJsSDaQ3SBEoDZd1bUKGOToQ== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230016)(4636009)(396003)(376002)(39860400002)(346002)(136003)(40470700004)(46966006)(36840700001)(7696005)(41300700001)(478600001)(26005)(6666004)(1076003)(107886003)(186003)(83380400001)(47076005)(426003)(336012)(44832011)(2906002)(8936002)(5660300002)(6916009)(82310400005)(40480700001)(40460700003)(2616005)(316002)(54906003)(70206006)(8676002)(70586007)(36756003)(4326008)(81166007)(86362001)(82740400003)(36860700001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2022 10:48:47.2308 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9166911-47fa-4dc2-94aa-08da8a75377a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB3932 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220830_034857_172421_346C1F83 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Use CNTVCTSS_EL0 in gettimeofday()
|
expand
|
diff --git a/arch/arm64/include/asm/module.h b/arch/arm64/include/asm/module.h index 4e7fa2623896..22f1be47cc92 100644 --- a/arch/arm64/include/asm/module.h +++ b/arch/arm64/include/asm/module.h @@ -65,4 +65,19 @@ static inline bool plt_entry_is_initialized(const struct plt_entry *e) return e->adrp || e->add || e->br; } +static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, + const Elf_Shdr *sechdrs, + const char *name) +{ + const Elf_Shdr *s, *se; + const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; + + for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { + if (strcmp(name, secstrs + s->sh_name) == 0) + return s; + } + + return NULL; +} + #endif /* __ASM_MODULE_H */ diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index f2d4bb14bfab..76b41e4ca9fa 100644 --- a/arch/arm64/kernel/module.c +++ b/arch/arm64/kernel/module.c @@ -476,21 +476,6 @@ int apply_relocate_add(Elf64_Shdr *sechdrs, return -ENOEXEC; } -static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, - const Elf_Shdr *sechdrs, - const char *name) -{ - const Elf_Shdr *s, *se; - const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; - - for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { - if (strcmp(name, secstrs + s->sh_name) == 0) - return s; - } - - return NULL; -} - static inline void __init_plt(struct plt_entry *plt, unsigned long addr) { *plt = get_plt_entry(addr, plt);