From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 7E14EC2D0A3 for ; Tue, 3 Nov 2020 08:14:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CB94B223BF for ; Tue, 3 Nov 2020 08:14:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB94B223BF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E65A56B005C; Tue, 3 Nov 2020 03:14:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E15F36B005D; Tue, 3 Nov 2020 03:14:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDD716B0068; Tue, 3 Nov 2020 03:14:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id 9F2A06B005C for ; Tue, 3 Nov 2020 03:14:23 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 42637180AD806 for ; Tue, 3 Nov 2020 08:14:23 +0000 (UTC) X-FDA: 77442394806.28.beast19_1a14309272b7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 1F6326C2C for ; Tue, 3 Nov 2020 08:14:23 +0000 (UTC) X-HE-Tag: beast19_1a14309272b7 X-Filterd-Recvd-Size: 2960 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Tue, 3 Nov 2020 08:14:22 +0000 (UTC) Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CQMxx6FXRz15QGW; Tue, 3 Nov 2020 16:14:13 +0800 (CST) Received: from SWX921481.china.huawei.com (10.126.201.158) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 16:14:07 +0800 From: Barry Song To: , , CC: , Barry Song , "John Hubbard" , Jan Kara , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , "Matthew Wilcox (Oracle)" , Al Viro , "Christoph Hellwig" , Dan Williams , "Dave Chinner" , Jason Gunthorpe , "Jonathan Corbet" , Michal Hocko , Mike Kravetz , Shuah Khan , Vlastimil Babka Subject: [PATCH] mm/gup_benchmark: mark gup_benchmark_init as __init function Date: Tue, 3 Nov 2020 21:10:16 +1300 Message-ID: <20201103081016.16532-1-song.bao.hua@hisilicon.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [10.126.201.158] X-CFilter-Loop: Reflected Content-Transfer-Encoding: quoted-printable 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: gup_benchmark_init() is only called during initialization, mark it as __init to save some memory. Cc: John Hubbard Cc: Jan Kara Cc: J=C3=A9r=C3=B4me Glisse Cc: "Matthew Wilcox (Oracle)" Cc: Al Viro Cc: Christoph Hellwig Cc: Dan Williams Cc: Dave Chinner Cc: Jason Gunthorpe Cc: Jonathan Corbet Cc: Michal Hocko Cc: Mike Kravetz Cc: Shuah Khan Cc: Vlastimil Babka Signed-off-by: Barry Song --- mm/gup_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup_benchmark.c b/mm/gup_benchmark.c index 8b3e5b5..1d10553 100644 --- a/mm/gup_benchmark.c +++ b/mm/gup_benchmark.c @@ -199,7 +199,7 @@ static const struct file_operations gup_benchmark_fop= s =3D { .unlocked_ioctl =3D gup_benchmark_ioctl, }; =20 -static int gup_benchmark_init(void) +static int __init gup_benchmark_init(void) { debugfs_create_file_unsafe("gup_benchmark", 0600, NULL, NULL, &gup_benchmark_fops); --=20 2.7.4