Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3668242imm; Mon, 30 Jul 2018 01:01:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfGwhf0pXOJuVYAvlFok48+T/l8tYUQrnxichyDSHqNv7CNLwJoakKGkJG2TONWsAJvzRPp X-Received: by 2002:a17:902:50ec:: with SMTP id c41-v6mr15505521plj.269.1532937686817; Mon, 30 Jul 2018 01:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532937686; cv=none; d=google.com; s=arc-20160816; b=aGZ8hwfsGqws6QmOHKNpRbrk8lHNbWKjVtTzzRJinwmFl2DYvjbG7P13KpYkZqu2f/ glMx6MsTrOJjM6uToKGgTQocRjLBnSWrRltKmrSpAdbgr706B9iRdWOsdUPX+0v0giub 40YQcmD45iBOwp4xg/9+hbLpZlpYrcvT1mzxMP8UajL5NSXGqXHuY0yIOPCq/IvYQPdu bXwQNK9hy+eYv7qvkiI5j/UeB4IF/HUY47v952anJmWtB6TTCJeulSYyLxFgry+2dKEz XXNf/qqtErr4JTvcf3BgKXlfR9vwXMff34KTg9mShd9OgmarytBKmADEs9SDEXIJ8REX eMqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=De+dqD+TJmVVUdUeKOnLwo84UPeJ79MIghwHzjh3aQE=; b=Sdwwg63MBQ6D76LniGqiByOZHZ4hmNgx7tQFPWXM4ZB/SzRgRV1mFGm3ZmTY2E6bAn 2lw3Zk+W4IYF7DRbOv1Ozb8+AJtSuEJ1JvRrtQb4UhoPbVyOjjxNECZWYp3ihHg1922/ rToKrYjvzULgkm55F+0nDo7IP9Dj5EkfjhHo/pK50ItMs1hXfW5dPJ4iiChzBnMZfAbh cOGhgM2Beo1iwNUfSK/PjDNZd9wVVz/XB0UQRylIwzTcZ7LlKCPE87/Ehu1RQmW4hXZh +Y7wF7fN10BtBFNVcoAeThK9/KuDXMQ7U3+6UxekRxAfW2Y7OgO8gJJzHq0PMEigVv86 ohzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8-v6si9816937pgl.620.2018.07.30.01.01.07; Mon, 30 Jul 2018 01:01:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726668AbeG3Jdv (ORCPT + 99 others); Mon, 30 Jul 2018 05:33:51 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:21544 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726401AbeG3Jdv (ORCPT ); Mon, 30 Jul 2018 05:33:51 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="42811731" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 Jul 2018 16:00:02 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 1A12E4B69E18; Mon, 30 Jul 2018 16:00:01 +0800 (CST) Received: from localhost.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Mon, 30 Jul 2018 16:00:02 +0800 From: Dou Liyang To: , CC: , , , Dou Liyang Subject: [PATCH] x86/apic: Mark parse_mem_block_size as __init Date: Mon, 30 Jul 2018 15:59:47 +0800 Message-ID: <20180730075947.23023-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: 1A12E4B69E18.AFD8D X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The early_param() is only called during kernel initialization, So Linux marks the functions of it with __init macro to save memory. But it forgot to mark parse_mem_block_size(). So, Make it __init as well. Aslo mark mem_block_size variable __initdata. Signed-off-by: Dou Liyang --- arch/x86/kernel/apic/x2apic_uv_x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index d492752f79e1..391f358ebb4c 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -394,10 +394,10 @@ extern int uv_hub_info_version(void) EXPORT_SYMBOL(uv_hub_info_version); /* Default UV memory block size is 2GB */ -static unsigned long mem_block_size = (2UL << 30); +static unsigned long mem_block_size __initdata = (2UL << 30); /* Kernel parameter to specify UV mem block size */ -static int parse_mem_block_size(char *ptr) +static int __init parse_mem_block_size(char *ptr) { unsigned long size = memparse(ptr, NULL); -- 2.14.3