From patchwork Tue Mar 30 03:19:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 12171561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD2B6C433C1 for ; Tue, 30 Mar 2021 03:28:45 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 406326146D for ; Tue, 30 Mar 2021 03:28:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 406326146D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Yow0VCrvjmveTz5GelCV41A+0c7mJJZaxJW6jLRDjDM=; b=lNZoVK6O3/xOgRZC/bQJUYk3V/ n/QBPMP5I8V29jLtB/G0DX+8yEB97u7Y+z8NrspGYDFAiaSFIAABAE8iLUnQy+m85E3AVw6JhrL6U Q5I7tSZE9atl+lRebQGKJx1tXxxXKmTX0CD0RixRCywF7Rs6EZg21CyQauUcLbVQoFxlt2Au1jB/j jSYvtN1vCTL0asWjh6dL9L3rT0GBA4lUPSqJUYtDt4/erQte1ZKzVAIewtoJfh+pHcCACV0hK62WS MgYGdDPTpEd/iF9PKQuKibRcy57MM/DW8++26AN5R6L5yzU20IJU83QvvevASyeHEUTgGLCoeLvWW SK1QDzfQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lR4xz-002Ydj-Au; Tue, 30 Mar 2021 03:22:55 +0000 Received: from mail-mw2nam10on2042.outbound.protection.outlook.com ([40.107.94.42] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lR4uj-002XxF-Ns for linux-arm-kernel@lists.infradead.org; Tue, 30 Mar 2021 03:19:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UDkW90tI2cV3+Wtn3TgQk2xtkQBVrONv6hNINMvxkZO6aTpp3+zjejeksyJsvnEMJiiTZWhA29XX5aOKAyd/wPswJblvizGDEjnS47AnnARD+UeIr+yM/Xptpsg9BqtPF2rkN2kBTiVC4Eag5mKB2kSLKrp+gf0Yy3xH6HT0pfzcyuk2lVwpqAhpJGpaiDkjTtlmxb+dhONiJcD9fT/UVA1xvYgEqX71yrkw2+GfHiwB7hoTbYMKMp2qWioo5KLYoOmEe5kZxLPiHhVCxu2/C+SJIoeonpIWt7FYsJ+pTGSoHB+JsPGo5ZuxxMsX+kF4TLAS7uzKBiUEnC7MQmfBcA== 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-SenderADCheck; bh=NQ6q9lQxvewPEKCqYKtL56IiNEpYGnmXtCJ3z4lvezo=; b=kyVWeKC02QpNXJFVOrMoTI01py7nYljJiOw6DQpzO3/qANV7psokmnA/W50Xck5MspK7oXSW2xoimEVbxZmS6j/7/yvNKEsC+aiGabjKLcX0SXN0KKb0N2RYc7S15/XoIek+bhJAeJbiwppSHuiDd/fjklllSIhfGufATs6ltPu5jg+VkqaYoZrFe6FWO/ta1unvyz3lduMw/c+P6p/QyGKzCXEu0uBE0hAtNo56r/yF9d6deL8KPuobRCCCXXW6y7aO7qo/rkF4c55JKdr5SbPFE2EygqW+1M3uBZjkUqEVxr4eJdvC06/FEfOFMXrJmG+k1b6n+WBKjNeuTVc5xg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NQ6q9lQxvewPEKCqYKtL56IiNEpYGnmXtCJ3z4lvezo=; b=NVwXr3obyOmUTHJ1pJAU49Vr5DMBQ5yfNGqLqLZ013XhG+f6Mu2CXRwm8lBRogyTbgh2X6XnKYSiYOIraKNnUmucSBohaAmL5A5KLEZp0RWtL3fNr2rxgSRVtwhjm2dIG+CcO0YZlgo87p/6VEH0U8MmwB6QmN/LqcfE8rAvo54= Authentication-Results: armlinux.org.uk; dkim=none (message not signed) header.d=none;armlinux.org.uk; dmarc=none action=none header.from=synaptics.com; Received: from BY5PR03MB5345.namprd03.prod.outlook.com (2603:10b6:a03:219::16) by BYAPR03MB4616.namprd03.prod.outlook.com (2603:10b6:a03:13c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30; Tue, 30 Mar 2021 03:19:28 +0000 Received: from BY5PR03MB5345.namprd03.prod.outlook.com ([fe80::8569:341f:4bc6:5b72]) by BY5PR03MB5345.namprd03.prod.outlook.com ([fe80::8569:341f:4bc6:5b72%9]) with mapi id 15.20.3977.033; Tue, 30 Mar 2021 03:19:27 +0000 Date: Tue, 30 Mar 2021 11:19:22 +0800 From: Jisheng Zhang To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: ptdump: add __init section marker to three functions Message-ID: <20210330111922.2fb4eaa4@xhacker.debian> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Originating-IP: [192.147.44.204] X-ClientProxiedBy: BYAPR02CA0064.namprd02.prod.outlook.com (2603:10b6:a03:54::41) To BY5PR03MB5345.namprd03.prod.outlook.com (2603:10b6:a03:219::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (192.147.44.204) by BYAPR02CA0064.namprd02.prod.outlook.com (2603:10b6:a03:54::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24 via Frontend Transport; Tue, 30 Mar 2021 03:19:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 18e89f8b-c80b-46bf-f762-08d8f32aa055 X-MS-TrafficTypeDiagnostic: BYAPR03MB4616: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:632; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DmU2FnK7prHKCOBbIEQOSlVU00ler/6MqX4Q1MOSL87kzltUnXfQ18/aJXYK1+fc4fHFeewqKMHpffL3D6H2iGeIG/E6i7bRRVwYaCbJzgM/b5+CJ7al+PJwfApj1K2CqdndyoJueplAa66IPa7A59kgOoc6Sf1rw56SxAEEQUAnjr7hlY0RmViP/uwL/veobKzVeq4vJhjiLst4AyuJXwI//1cZrTbQSjPXKcSpjSnBEVIJ8hW/Ck3EY7ATFwzcbzPIFpDCowt85dsZKTNYzHb02A4FvgF8REpEvGNhcq5ohDfO7/K4Ds5OcJeMsVKT5zmq8rjMxGI4/Li2hkAULfoXcE+4HEqqsVN/g4O+xp3ZBNDYtlij+bQ4Oe/8lt1Fsjmj2/DicusWDKhqxuFBH4MBw41/+Ur7Kvsx/r5qA+VHHXwvh0bSXK/OBkUtEqtew62L2FrV7eN2oQK5Vpe7X8Nn1dM5lH7JcM4bdz+YTOs22dyEUxX0WBPtzCOoOpUiqpIjc4GalqE0R0M7wpMe+i7DhBalT8jM94rU4sewkQ53+7G4jRkbeVUhr4pEdwAbIsKsBxh4j184V+C+ZDDCewkyCx/nfyvmS4nXhOqlCkhRxCiF53lz9Jgugs3DEgr6vKB440UJqmrJyPUgk8ru5Td0XBoJYo8VJ44fUYAjsmM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR03MB5345.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(39860400002)(136003)(346002)(376002)(366004)(86362001)(4326008)(2906002)(8676002)(83380400001)(478600001)(186003)(26005)(16526019)(6506007)(316002)(5660300002)(1076003)(7696005)(9686003)(956004)(66556008)(66476007)(66946007)(8936002)(55016002)(6666004)(52116002)(38100700001)(6916009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: yARtMDFZlFJ+SywBLPbFeT9vGnhMLPEYiZAfBrjU7PvRRYSH8JX2OdQrkjM6n8LoBsMDaIunXqoivHHRFCLh8C/V3Y6s4otP8OEEZWtiU124LKmnFnMQhURLinpV4fz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bTEQvszA/E9+jkCQxPFG29ocTEfQgbHVpUB34XM/clZkL1pMovgV56g7UdwCTQDaQqSsQjBN3Tfb0dAPrwrOAGI8CyFlsDEkKfwooBfPBO36LVtH3SWMzx6l8WU3bNnYg6qF+kYJN2WX/RRNeMZhIYzRB X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18e89f8b-c80b-46bf-f762-08d8f32aa055 X-MS-Exchange-CrossTenant-AuthSource: BY5PR03MB5345.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2021 03:19:27.8354 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5b5xhbAzgGL305rG4jaDHVAatGdgG7ARtGFiQMqng1IjjyMUledw9rO99nPVKBIuMaGld8ZnMquxndXjux3Zdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_041934_302650_4622826F X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org They are not needed after booting, so mark them as __init to move them to the .init section. Signed-off-by: Jisheng Zhang Reviewed-by: Steven Price --- arch/arm/mm/dump.c | 4 ++-- arch/arm/mm/ptdump_debugfs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c index 93ff0097f00b..fb688003d156 100644 --- a/arch/arm/mm/dump.c +++ b/arch/arm/mm/dump.c @@ -420,7 +420,7 @@ void ptdump_walk_pgd(struct seq_file *m, struct ptdump_info *info) note_page(&st, 0, 0, 0, NULL); } -static void ptdump_initialize(void) +static void __init ptdump_initialize(void) { unsigned i, j; @@ -466,7 +466,7 @@ void ptdump_check_wx(void) pr_info("Checked W+X mappings: passed, no W+X pages found\n"); } -static int ptdump_init(void) +static int __init ptdump_init(void) { ptdump_initialize(); ptdump_debugfs_register(&kernel_ptdump_info, "kernel_page_tables"); diff --git a/arch/arm/mm/ptdump_debugfs.c b/arch/arm/mm/ptdump_debugfs.c index 598b636615a2..8df9afac8d81 100644 --- a/arch/arm/mm/ptdump_debugfs.c +++ b/arch/arm/mm/ptdump_debugfs.c @@ -24,7 +24,7 @@ static const struct file_operations ptdump_fops = { .release = single_release, }; -void ptdump_debugfs_register(struct ptdump_info *info, const char *name) +void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name) { debugfs_create_file(name, 0400, NULL, info, &ptdump_fops); }