From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752294AbeAQDsP (ORCPT + 1 other); Tue, 16 Jan 2018 22:48:15 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:22098 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752266AbeAQDsL (ORCPT ); Tue, 16 Jan 2018 22:48:11 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="35395349" From: Dou Liyang To: CC: Dou Liyang , Andrew Morton , Philippe Ombredanne , Kate Stewart , Michal Hocko , Greg Kroah-Hartman , Subject: [PATCH] mm/page_poison: Make early_page_poison_param __init Date: Wed, 17 Jan 2018 11:47:57 +0800 Message-ID: <20180117034757.27024-1-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: F36BF49F19A5.A507A X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: The early_param() is only called during kernel initialization, So Linux marks the function of it with __init macro to save memory. But it forgot to mark the early_page_poison_param(). So, Make it __init as well. Cc: Andrew Morton Cc: Philippe Ombredanne Cc: Kate Stewart Cc: Michal Hocko Cc: Greg Kroah-Hartman Cc: linux-mm@kvack.org Signed-off-by: Dou Liyang --- mm/page_poison.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_poison.c b/mm/page_poison.c index e83fd44867de..aa2b3d34e8ea 100644 --- a/mm/page_poison.c +++ b/mm/page_poison.c @@ -9,7 +9,7 @@ static bool want_page_poisoning __read_mostly; -static int early_page_poison_param(char *buf) +static int __init early_page_poison_param(char *buf) { if (!buf) return -EINVAL; -- 2.14.3