Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3300589imj; Mon, 11 Feb 2019 18:13:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+z25C4KpfzR2oxSUmv0/ZVmH6zoBoCdDNUS6uxUWNRLTrbX0mbM9Q92ps3UUJ4EYhGwgs X-Received: by 2002:a63:83:: with SMTP id 125mr1312842pga.343.1549937608294; Mon, 11 Feb 2019 18:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549937608; cv=none; d=google.com; s=arc-20160816; b=K+Wi/wRbNVcBKg4Xsz0sQyUrmWEmOdop9bZsdNM9Lod0t3f28+rul5kwSpBXazRYAy s4jsFXK63vkdKEMuXIWjxDIKfYz5tyI4+3RbSDviwebCe9UklzDQBdsSQ1SSlBVrfsAj nmXbCj8JhAwakIrJFtH/gMJ0b1I4klZVHxMmCTbYkLzOKpFyPYDsKTLJHp8cV0hpNHOB 3qyAoF+3nZvvuBuelb0hAvQ+PknoJdDAs8ege6eVjTBhs7FDwM0jq+71F3PO2GTAvvxD YsHJdIoqqAbve/omv85Kf3nXyenAZ2b4Gy/H+SzUNd8vb20vigWL3m1snh1Rgozk+MCD Dl1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ap6IQghLD462oez9piaABVCuKt1n7nVq1DaSsD50JhI=; b=iNAXSWb1xkUExe1LrcXsWG8zHCepHu3YXQj6/kaugZPfClsVuaedob/x8tYxU2cOBL 9YPS0PiYUcFIcyWvZrx/UVsclyD0KaA/3IMbXLHX5Mn0jE0ywCQ3tZntOtQkNM27Ogih U2uTfalHm+s3nMAVdXEbZLNZyqms95Kihm+00NpSPtyNPi2e6tJSccLNFxSVdZwM/aSG 5WE6uJA+qxO4XNnmTP97+WZcNodluqg30HuSFU2K1x8KZiH3WGncdoXaFX3AMDjE9cia 2PdV5tMomrWkS4uZLi3mCbnpYe9W0VE7KY5AVAjCi+JceC2FLaMqiE7aaRrQKWE8UkZ1 QZfA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si2280814pgi.443.2019.02.11.18.13.11; Mon, 11 Feb 2019 18:13:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727745AbfBLCMz (ORCPT + 99 others); Mon, 11 Feb 2019 21:12:55 -0500 Received: from mga09.intel.com ([134.134.136.24]:26869 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbfBLCMw (ORCPT ); Mon, 11 Feb 2019 21:12:52 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 18:12:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,361,1544515200"; d="scan'208";a="146057849" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga001.fm.intel.com with ESMTP; 11 Feb 2019 18:12:50 -0800 From: Wei Yang To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.or, tglx@linutronix.de, Wei Yang Subject: [PATCH 1/6] x86, mm: remove second argument of split_mem_range() Date: Tue, 12 Feb 2019 10:12:10 +0800 Message-Id: <20190212021215.13247-2-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190212021215.13247-1-richardw.yang@linux.intel.com> References: <20190212021215.13247-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The second argument is always zero. Signed-off-by: Wei Yang --- arch/x86/mm/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index ef99f3892e1f..1b980b70911a 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -330,13 +330,13 @@ static const char *page_size_string(struct map_range *mr) return str_4k; } -static int __meminit split_mem_range(struct map_range *mr, int nr_range, +static int __meminit split_mem_range(struct map_range *mr, unsigned long start, unsigned long end) { unsigned long start_pfn, end_pfn, limit_pfn; unsigned long pfn; - int i; + int i, nr_range = 0; limit_pfn = PFN_DOWN(end); @@ -474,7 +474,7 @@ unsigned long __ref init_memory_mapping(unsigned long start, start, end - 1); memset(mr, 0, sizeof(mr)); - nr_range = split_mem_range(mr, 0, start, end); + nr_range = split_mem_range(mr, start, end); for (i = 0; i < nr_range; i++) ret = kernel_physical_mapping_init(mr[i].start, mr[i].end, -- 2.19.1