From patchwork Tue Dec 15 03:05:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 11973683 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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 28411C4361B for ; Tue, 15 Dec 2020 03:05:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D4F11224BD for ; Tue, 15 Dec 2020 03:05:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4F11224BD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B17EB6B0087; Mon, 14 Dec 2020 22:05:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A795E6B0096; Mon, 14 Dec 2020 22:05:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8CC1C6B0098; Mon, 14 Dec 2020 22:05:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0166.hostedemail.com [216.40.44.166]) by kanga.kvack.org (Postfix) with ESMTP id 721ED6B0087 for ; Mon, 14 Dec 2020 22:05:37 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 3C9838249980 for ; Tue, 15 Dec 2020 03:05:37 +0000 (UTC) X-FDA: 77594026314.21.voice72_5e0106927420 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 0A043180442E8 for ; Tue, 15 Dec 2020 03:05:37 +0000 (UTC) X-HE-Tag: voice72_5e0106927420 X-Filterd-Recvd-Size: 2095 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Tue, 15 Dec 2020 03:05:36 +0000 (UTC) Date: Mon, 14 Dec 2020 19:05:34 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608001535; bh=ew5/WZfddGNz/xb3DPpe2lqcJbwAorUFFf/aWH2oaYc=; h=From:To:Subject:In-Reply-To:From; b=UFScvJLyDFLk6VQuqmvjoxiEEfswS9gV8orA6eT3yNnA4uKSFxrUAI1dkIgK1EyLg e6CtmXfb5hpieQTe28cQsIUncSK2LXq4ChlQRNAde6/vPX1eI9+bSmD54lSMxwZ4F0 U5yQdiBPo1WeCmzYbkondokHrvZpcmgW9NkG9jmo= From: Andrew Morton To: akpm@linux-foundation.org, jgg@nvidia.com, jhubbard@nvidia.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, rcampbell@nvidia.com, song.bao.hua@hisilicon.com, torvalds@linux-foundation.org Subject: [patch 041/200] mm/gup_test.c: mark gup_test_init as __init function Message-ID: <20201215030534.zZYVs46Yf%akpm@linux-foundation.org> In-Reply-To: <20201214190237.a17b70ae14f129e2dca3d204@linux-foundation.org> User-Agent: s-nail v14.8.16 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: Barry Song Subject: mm/gup_test.c: mark gup_test_init as __init function gup_test_init() is only called during initialization, mark it as __init to save some memory. Link: https://lkml.kernel.org/r/20201103081016.16532-1-song.bao.hua@hisilicon.com Signed-off-by: Barry Song Reviewed-by: Jason Gunthorpe Cc: John Hubbard Cc: Ralph Campbell Signed-off-by: Andrew Morton --- mm/gup_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/gup_test.c~mm-gup_benchmark-mark-gup_benchmark_init-as-__init-function +++ a/mm/gup_test.c @@ -236,7 +236,7 @@ static const struct file_operations gup_ .unlocked_ioctl = gup_test_ioctl, }; -static int gup_test_init(void) +static int __init gup_test_init(void) { debugfs_create_file_unsafe("gup_test", 0600, NULL, NULL, &gup_test_fops);