Received: by 10.223.185.116 with SMTP id b49csp2827493wrg; Mon, 12 Feb 2018 16:25:57 -0800 (PST) X-Google-Smtp-Source: AH8x226geN6CSM36/B+J6I4695zJY88y8BnYOrIZb9o/1ZuU46AVoc8ydmWAXzhihrq3zKKTEP07 X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr12556084plx.169.1518481557617; Mon, 12 Feb 2018 16:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518481557; cv=none; d=google.com; s=arc-20160816; b=0D4M08nLb7KyuyriWxiXA5U9XLUyJuH17f6zQ5VrW3w0+sPq9LIreU46teefmeS93a 47VsZvPf8DwUCcy3aVnTdgQtI8HHx+tw3x9TDGX46d3J55r7CCVtrxaWr52+hj2u7VrY LhBqt6fhpsrP7UaRH6bLnTZWPJFynOWYMa6i9sDyq9RWeudESrOWVWotrY8T66GkLcf/ G5JHaZOWf6uJIod/i6ADizTzNM9e8YkfPjU5UvZ/xyuIUqW+bXsWWYptcv3rvPXAkdVo I2WSVgAsNjjU9yQjLb2lenrZOx+4B9y1FzTsiKYSRxCRHoXXybwKxdhjDr3aoUygsdyu YqKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=7OE3mHaKUdW0TmKOzYga+XLBAAy/WOnSNTrsshlaCvs=; b=WlBXPsHmR58816zUUBMuGQlWcG+pheQAUmpZbmg1EH4gCQs5ZKqAr3OjABptuddmz5 iqSQIf8he5C2GVSm2LJSkfAose+bqYDuqxncZjSIpS2ZNRPZrA1nd4K5K+0+g6c5hGYx 9Eu3Jqnhe5lVQCZ8u/AbTaQCsFpqq75FAbbk677yvEY0+HaDt4MUNiIjCUxGHjFI1V+7 tRsNg7m+KtukYw3JE/Ah8x3T2EGMenxs+VlYt/4525MvbvOVxw89jFwUJINGNnMHyAiU DBFFiDOlkLavhWtjBgOrN9EnmbpXN5SWKqN/Y59bN+YhFZsmZaTBNAz0FF0hv50zKYTy 1Mnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=etwfq/ih; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m63-v6si6461198pld.753.2018.02.12.16.25.42; Mon, 12 Feb 2018 16:25:57 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=etwfq/ih; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933027AbeBMAYd (ORCPT + 99 others); Mon, 12 Feb 2018 19:24:33 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:50513 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932994AbeBMAYa (ORCPT ); Mon, 12 Feb 2018 19:24:30 -0500 Received: by mail-it0-f66.google.com with SMTP id x128so9053797ite.0 for ; Mon, 12 Feb 2018 16:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=7OE3mHaKUdW0TmKOzYga+XLBAAy/WOnSNTrsshlaCvs=; b=etwfq/ihFhMA9sBR3wfaWP1Y5rHZ0hgdZiDiPdSMGd83fLbPVviYb9MXaXPzsSnfzO Dqn2FrFVD7rz8zxXX+z6ajWfN8y0+I8mrTZ8/QeK3PHxOBDih7ssPv6uhInI0pvXSlGB yh2lZoADLurbW3d15rW3T0l7o9VJjummBVcAyCVRMpoDLOeavX9hRTYglDLUXNW+/cGX zlyd+aEj7cqc5fLgKkJSK/HlYOZJg3nKZz6EV3kCNocz7L1zbC5TbPozd4m8t3M4sm6+ OPuGzvDwAVqohn64+x328486Qas1mWF6NkBYYonBY6lSeQBuQJ7xccR1tz6gsNkyynd7 u+gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=7OE3mHaKUdW0TmKOzYga+XLBAAy/WOnSNTrsshlaCvs=; b=gEBfu1fT+hEZDBIzfKxNY4I/t/iq0Pnpa2Elubks3Gu76QePBnngOcavNK/ZPsVm7N 6SAPECorVGRp8ZN0P+BYossVNzkmp1gZP+7a8iGG6QfI+mgFHJoKEL4V/Z2ml/miOZkg 5u8+yycWWmbKeMT0PQErz3J2WGWoSYY1qUA8UXPlDrhVQjZo2qT+rWGc62a58NkmBhOW EzEqTBv2RCAwUHapmBEPQ4IdKw0oabftv5PrvsSuzy+7gqaVfVgoqPuWtb/v8yyHYiKW VKwvIPplG0xb5zy7f5Bu6yZLBZf8CR2ZegcaZwdIYjKrHZqeIFuZWQdVYP4OSzYOnvrJ oPXQ== X-Gm-Message-State: APf1xPCTAOqs7k/D+nbwXof/3Nvl7D1Rwto/llyuluhA5nW0jcDFqV0i g/X8esWuwn865aY56Sjp4HQjBw== X-Received: by 10.36.73.133 with SMTP id e5mr326846itd.109.1518481470099; Mon, 12 Feb 2018 16:24:30 -0800 (PST) Received: from [2620:15c:17:3:8446:18ef:ea2c:aecf] ([2620:15c:17:3:8446:18ef:ea2c:aecf]) by smtp.gmail.com with ESMTPSA id b69sm14014900ioa.65.2018.02.12.16.24.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Feb 2018 16:24:29 -0800 (PST) Date: Mon, 12 Feb 2018 16:24:28 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton cc: Jonathan Corbet , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: [patch 2/2] mm, page_alloc: move mirrored_kernelcore to __meminitdata In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mirrored_kernelcore can be in __meminitdata, so move it there. At the same time, fixup section specifiers to be after the name of the variable per checkpatch. --- mm/page_alloc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -264,19 +264,19 @@ int min_free_kbytes = 1024; int user_min_free_kbytes = -1; int watermark_scale_factor = 10; -static unsigned long __meminitdata nr_kernel_pages; -static unsigned long __meminitdata nr_all_pages; -static unsigned long __meminitdata dma_reserve; +static unsigned long nr_kernel_pages __meminitdata; +static unsigned long nr_all_pages __meminitdata; +static unsigned long dma_reserve __meminitdata; #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP -static unsigned long __meminitdata arch_zone_lowest_possible_pfn[MAX_NR_ZONES]; -static unsigned long __meminitdata arch_zone_highest_possible_pfn[MAX_NR_ZONES]; -static unsigned long __initdata required_kernelcore; +static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES] __meminitdata; +static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES] __meminitdata; +static unsigned long required_kernelcore __initdata; static unsigned long required_kernelcore_percent __initdata; -static unsigned long __initdata required_movablecore; +static unsigned long required_movablecore __initdata; static unsigned long required_movablecore_percent __initdata; -static unsigned long __meminitdata zone_movable_pfn[MAX_NUMNODES]; -static bool mirrored_kernelcore; +static unsigned long zone_movable_pfn[MAX_NUMNODES] __meminitdata; +static bool mirrored_kernelcore __meminitdata; /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */ int movable_zone;