Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3991901imm; Wed, 5 Sep 2018 09:02:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdanJ1wU1JJmljBw/Yd8+mniKywJqnLRs5c+dLVwUNwVfGSNXxFQjJx+/cCPmugTKgWguZHH X-Received: by 2002:a6b:ba45:: with SMTP id k66-v6mr27397895iof.252.1536163345825; Wed, 05 Sep 2018 09:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163345; cv=none; d=google.com; s=arc-20160816; b=ZQvaBqB16k4hphLIEr4hKrX7zS3Oy+yULnxglHyLOeklO6l093GhwlxDKcBGEKD8xX xG71h+HHkRB/Kw7f6HPFGXytPw5Z4ezyoPpa+JFj8uS7mr897SHI1ikV3plkMBn6cDEb +LuknNxOuMRE/6wBglzdb7EmlFgjNSmAHOpdmowZHGpgUGv3KKK+tbOiN82lccTZUagv cepZfF8npqb2iOQl2y//HZXzyCY4kUrjgZfDbFV1S3/h9TjzOjsyRfKJYijq8ysfkX+V akbuuVX5o6IaRtLkpGTRcj+Ydefu/Hna3ejCJq8s/154y7DZkGA9Xh3xq+yFbGtYoh3P Gutw== 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=Eos1XdfGP2gWf43QtgCxooiqS60mdj6LN0nOfwNUWlE=; b=IJzMpBBJ3wxdTGdGWcd02rNmVG/Hc3prnt5eoEWfKbqir87v1gHiAEA/7wmPc0AgX/ gcgut4SGkrrHak4+P+z8VRAMUA8VQX2M+hJBqxG0kYh7ujjerzwJ4XaOLuWVAjXVdrzv iVVX+yJMeTTWch5baGvF0blKbsBNe11+Ot0RmUzUcJC2goHZBMGAItfS8k4Jb9Vvufsy G7jTGAry351Jdoqx/DuA4OmhN7hEXmr3vNlfjSh6EG840JR/9RmsjsftHKsNUQNFIgUb KzR2qZaHc1r/xt8IWJ0Q3tKfTsSUirqO5xsYh4SQlrGnbRavQ2F/fyzocEoZA3NC7i7S ReVQ== 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 x24-v6si2330621pgh.295.2018.09.05.09.02.10; Wed, 05 Sep 2018 09:02:25 -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 S1727639AbeIEUbY (ORCPT + 99 others); Wed, 5 Sep 2018 16:31:24 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51574 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbeIEUbX (ORCPT ); Wed, 5 Sep 2018 16:31:23 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85FuD7g046993 for ; Wed, 5 Sep 2018 12:00:33 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mag027j81-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:33 -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:23 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) 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:19 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85G0Irw28704882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Sep 2018 16:00:18 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF2175207A; Wed, 5 Sep 2018 19:00:10 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.92]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id C94DF52065; Wed, 5 Sep 2018 19:00:08 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 05 Sep 2018 19:00:15 +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 11/29] memblock: replace alloc_bootmem_pages_nopanic with memblock_alloc_nopanic Date: Wed, 5 Sep 2018 18:59:26 +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-000002B5BD17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090516-4276-0000-0000-000037BED7C2 Message-Id: <1536163184-26356-12-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=684 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_pages_nopanic(size) is a shortcut for __alloc_bootmem_nopanic(x, PAGE_SIZE, BOOTMEM_LOW_LIMIT) and can be replaced by memblock_alloc_nopanic(size, PAGE_SIZE) Signed-off-by: Mike Rapoport --- drivers/usb/early/xhci-dbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c index e15e896..16df968 100644 --- a/drivers/usb/early/xhci-dbc.c +++ b/drivers/usb/early/xhci-dbc.c @@ -94,7 +94,7 @@ static void * __init xdbc_get_page(dma_addr_t *dma_addr) { void *virt; - virt = alloc_bootmem_pages_nopanic(PAGE_SIZE); + virt = memblock_alloc_nopanic(PAGE_SIZE, PAGE_SIZE); if (!virt) return NULL; -- 2.7.4