Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4242772imm; Mon, 30 Jul 2018 11:01:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfX7jYdacwy6i/5iTh8NSUXFIO5Xx/sgSqZ/wH6IXZlJLr8eyZjPpL3f2yBWc5qpJ56I5aE X-Received: by 2002:a63:5d09:: with SMTP id r9-v6mr17203673pgb.303.1532973661426; Mon, 30 Jul 2018 11:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532973661; cv=none; d=google.com; s=arc-20160816; b=W02oRzA8caE8Fh1vxL88XtaB2CoLaI7t5beHPKvzE/4lABfw/Dp4LXA7tv4u8TGFSc iqXcZ3mY8X3T6BoaR/QxFrnKJW9iuVsf7nudhMehuL949auRpWshoX4ctU1zT4vUCwMF /HEK63ywnC8xJQJSfhN03452eIMrPXzFHIDXse7E6zjSb7sxEm6dZOEO0N+UbTqaGs9p qtF7GasxtS5BLk0MSR2LXlx0NErOQFLDNAZGXDLq/aboKcn35Q3DTXajdA7J8lvZw1+5 1BPnZCsMOJJbmkS/DnjsRpmfYD11OI3Bhw/FcVrMO+w1LyOJ3s3opD4CeZcQEFaacYuC fUiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=BqyrjK035m4+wfjtCBmJtXrkb/JeJTE/UGknl+YKwVI=; b=Ta/JOs+IbRFmw43X+Nfa7/TmAIeJxBHgqYjeJ55kJlYC+oZibdFpiDzd3llj2zI6k3 fgFhyoOZbsEYNYwrlsrDxIL1XLHHy6QhqcDCzCzjW/fX+qfExD9Nyt0GTIVAzJbOyhLP 7KbsAPWetQvO964MO8iao2gxXjijI/cMqMBQzH4e84f7JMNuVBFQ/QjUxqIP/FRgH1A+ YRc9HBYk1LURKMW6/Ldsm3vlQ+wcq6uWF8KaTZmbfYnelxFjQkRD4eht7WeC9h7lR5sl NH9W34RJdnA+u6tfF4xj4TBcrcQbzFOYaNfQVThSn4glrJzTxM0UL4vrLE6r8eUcrtKt +d6g== 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-v6si10311520ply.139.2018.07.30.11.00.23; Mon, 30 Jul 2018 11:01:01 -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 S1731914AbeG3TeN (ORCPT + 99 others); Mon, 30 Jul 2018 15:34:13 -0400 Received: from terminus.zytor.com ([198.137.202.136]:36917 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbeG3TeN (ORCPT ); Mon, 30 Jul 2018 15:34:13 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6UHvud72394246 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jul 2018 10:57:56 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6UHvuE02394243; Mon, 30 Jul 2018 10:57:56 -0700 Date: Mon, 30 Jul 2018 10:57:56 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dou Liyang Message-ID: Cc: hpa@zytor.com, andrew.banman@hpe.com, linux-kernel@vger.kernel.org, mingo@kernel.org, mike.travis@hpe.com, douly.fnst@cn.fujitsu.com, tglx@linutronix.de Reply-To: douly.fnst@cn.fujitsu.com, hpa@zytor.com, andrew.banman@hpe.com, mike.travis@hpe.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de In-Reply-To: <20180730075947.23023-1-douly.fnst@cn.fujitsu.com> References: <20180730075947.23023-1-douly.fnst@cn.fujitsu.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] x86/platform/UV: Mark memblock related init code and data correctly Git-Commit-ID: 24cfd8ca1d28331b9dad3b88d1958c976b2cfab6 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_24_48 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 24cfd8ca1d28331b9dad3b88d1958c976b2cfab6 Gitweb: https://git.kernel.org/tip/24cfd8ca1d28331b9dad3b88d1958c976b2cfab6 Author: Dou Liyang AuthorDate: Mon, 30 Jul 2018 15:59:47 +0800 Committer: Thomas Gleixner CommitDate: Mon, 30 Jul 2018 19:53:58 +0200 x86/platform/UV: Mark memblock related init code and data correctly parse_mem_block_size() and mem_block_size are only used during init. Mark them accordingly. Fixes: d7609f4210cb ("x86/platform/UV: Add kernel parameter to set memory block size") Signed-off-by: Dou Liyang Signed-off-by: Thomas Gleixner Cc: hpa@zytor.com Cc: Mike Travis Cc: Andrew Banman Link: https://lkml.kernel.org/r/20180730075947.23023-1-douly.fnst@cn.fujitsu.com --- 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);