Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3995914imm; Wed, 5 Sep 2018 09:05:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYaExvnKtjcPGZnU0Q3+8sH9dMXAfv9QCOKHO1MDF3SPo9/Hdb2wu4DbnvXDvVYb6IC+XVm X-Received: by 2002:a17:902:8542:: with SMTP id d2-v6mr40259999plo.285.1536163509647; Wed, 05 Sep 2018 09:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163509; cv=none; d=google.com; s=arc-20160816; b=Jq+S4pDW1TSFWzl8AXpsXVt1oe3gx2X2eC61lwJb1w5GDb4UMvTVDs2F+M7tcpjzY3 9CFmHYuIdUpSyEBZfN9jer0g2bgiYHNUFzp4u1UKyr1H5RU2s8cWhC2eg4kXYHIm5swr 745QGi1Nuyb274uaTa5i+MsYm1d6wnjukn41q2s+SZC9/mUYCrXzPqqXnVD9GJiJgKd6 5EsH6HcZmlrZIW+yfcGwJRT5ZjW1QRfzvgQO539NwdAoAW0PtyrburNGwpzbkfAzvM7q IyNTbZ+LoLpq0zJ+dTJXDvqSqL8gTmdkemcV34E5xeD0LxiHbgTPjoq9OYaYUD9DOH8L QwDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=TxmIT5F6MSkAgIoqYIKYX4M2BSceSBQ0zw5VNivHBho=; b=xJixSXjB9PUSTeLkbzByLBLDLCsjAsyooLyEubWbGGWp7vp66cJ3JKyrBzhfTyPzwT pomeCxIrwy7DGUQ+e5fXeppVAX+GPB2HvOoF1CxXG8CN0n3pNS6K6BJOd136L6TAMXC1 dkVRnas5dg26GimCRl/3REN8klnUEkCRBtHXiNxxI+T/qudbruYwQByn+UNbcDr6ji3p 0NurwP1wimyiF862sGt4eb5HLbeme1NHt6CPfuFD6ucABF+P/ioREj7pdZ6NfIT2e4hq ATwIfFzRYbRvIWmCTpLIvreHNXg8R+fEdxHPg5VmCHsUUkTgW8oaD4kHHxLEVBQGJlUF +yAw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62-v6si2317885pgi.586.2018.09.05.09.04.51; Wed, 05 Sep 2018 09:05:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727953AbeIEUbV (ORCPT + 99 others); Wed, 5 Sep 2018 16:31:21 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37644 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbeIEUbV (ORCPT ); Wed, 5 Sep 2018 16:31:21 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85Fu6Fb073116 for ; Wed, 5 Sep 2018 12:00:31 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2maggdp9yn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:30 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Sep 2018 17:00:28 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 5 Sep 2018 17:00:22 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85G0LKi39583876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Sep 2018 16:00:21 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DC5434C052; Wed, 5 Sep 2018 19:00:15 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CCFC84C062; Wed, 5 Sep 2018 19:00:13 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.92]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 5 Sep 2018 19:00:13 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 05 Sep 2018 19:00:18 +0300 From: Mike Rapoport To: linux-mm@kvack.org Cc: Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Ingo Molnar , Michael Ellerman , Michal Hocko , Paul Burton , Thomas Gleixner , Tony Luck , linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [RFC PATCH 12/29] memblock: replace alloc_bootmem_low with memblock_alloc_low Date: Wed, 5 Sep 2018 18:59:27 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18090516-4275-0000-0000-000002B5BD18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090516-4276-0000-0000-000037BED7C3 Message-Id: <1536163184-26356-13-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-05_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=553 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809050164 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The alloc_bootmem_low(size) allocates low memory with default alignement and can be replcaed by memblock_alloc_low(size, 0) Signed-off-by: Mike Rapoport --- arch/arm64/kernel/setup.c | 2 +- arch/unicore32/kernel/setup.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 5b4fac4..cf7a7b7 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -213,7 +213,7 @@ static void __init request_standard_resources(void) kernel_data.end = __pa_symbol(_end - 1); for_each_memblock(memory, region) { - res = alloc_bootmem_low(sizeof(*res)); + res = memblock_alloc_low(sizeof(*res), 0); if (memblock_is_nomap(region)) { res->name = "reserved"; res->flags = IORESOURCE_MEM; diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c index c2bffa5..9f163f9 100644 --- a/arch/unicore32/kernel/setup.c +++ b/arch/unicore32/kernel/setup.c @@ -207,7 +207,7 @@ request_standard_resources(struct meminfo *mi) if (mi->bank[i].size == 0) continue; - res = alloc_bootmem_low(sizeof(*res)); + res = memblock_alloc_low(sizeof(*res), 0); res->name = "System RAM"; res->start = mi->bank[i].start; res->end = mi->bank[i].start + mi->bank[i].size - 1; -- 2.7.4