Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp535610ybb; Wed, 8 Apr 2020 05:05:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJNAu/TN1cs+Dpk/tX92zTEkQKKjtGewoL817F6hyeE1aA3GfRwOGzZN7w4LmlrgsvDn4ri X-Received: by 2002:a9d:7f05:: with SMTP id j5mr5481477otq.312.1586347508344; Wed, 08 Apr 2020 05:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586347508; cv=none; d=google.com; s=arc-20160816; b=cl55y76w/XF0mJqlAVgettwGON6MyOy0Yub09uQDPg/EyWMpsnVPBIb+GR1cKS7t4J NHZKDQ8eDJTJLRIPyK45GngcaC3d77S8/RqJQsMhb+oyjm/aS7WIcuJVAKSEdG66D9Sb UbmELHE+uGPI2Bfp8bEhQXdwsd6PHvciWG6xJqr7XOaXS+cs95QVBa3o/I9Bh+EvFtb5 kPiRPOcFvolIL2ekA2CyylSEZ9X0JT2DKrv6zLjQ4gn2W6CRy4It0jltNMO1CW/dF8O1 QRO1J5GyaIE5mP6vam34CGgkOWdmFQ3pa+1rzN7lq6L/Ebbz7N4UD/gVl0RF62iy6t+k G6oQ== 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 :dkim-signature; bh=33m+8KzzYyHHFHNqMGAFFkSHEzBaZrs6s8Hwvu3qwIE=; b=QHRz2qRmUG66ISqDTaCurfDOejAdMuuwZSjQ+lvYfIIJ8nY4Q5tNlKlJaBG51QBspC pmSlSebb9R5+L5q9MEsGwtqMbGHNORgdyMOFA0pd82TCbaQUk0of4LKtbxm30uia4GBP UMTFsxhgtmYS+qwoxWGq4XyAYnFrfB+aKirqHngnryNqiRYQHHitCCj8QGZkZqRree4/ /MKdXoh3tFGIUpyfyj7I0wcZZCS84rsG0uubt7Pv7fNPKfSPJJtI4hkU6cnPlNZYGIiZ fABkqAX12j9CTN8GQlyySjVNTD3UL7qnrJ9+qMPES+DdP5+HDbC6eS80p6x71/1d33rf YjAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QUg0+dwA; 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 r18si2583744otq.124.2020.04.08.05.04.34; Wed, 08 Apr 2020 05:05:08 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QUg0+dwA; 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 S1729064AbgDHMB2 (ORCPT + 99 others); Wed, 8 Apr 2020 08:01:28 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52812 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729033AbgDHMBZ (ORCPT ); Wed, 8 Apr 2020 08:01:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=33m+8KzzYyHHFHNqMGAFFkSHEzBaZrs6s8Hwvu3qwIE=; b=QUg0+dwAHsHXfqz6Sp1fVPZeRO QVbOpL3630Yhcf97C5v1wf9NVYFrHADGV9PdCj2WnAUQ2xESHf4Rcx/+rt9wqLhaU9bDhDzO2woJn P9pAFglwrXl/ZutffchWU+EBw8HPh9gMTc0Y2rJBgieOawnQ0/Xm9AVyGWcyn+h7aLJtg5BwSkYX8 Bk5gQ3CP6ycySTWc+BoLBOKaEiObBok3YZYiy0rKi2z+yaBkv4fKwQ5pPfJa4YmJnZVZfN/G1mBax WK3gy3KkQ3UMC0bqsOSHLcvmF/4c/8RwgvBElgKNFlSaem60bqthpdcveAYNeg7UeFbLJlS8jcqQv jh/9RS6A==; Received: from [2001:4bb8:180:5765:65b6:f11e:f109:b151] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM9OG-0005yR-5M; Wed, 08 Apr 2020 12:01:08 +0000 From: Christoph Hellwig To: Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta Cc: Robin Murphy , Christophe Leroy , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 28/28] s390: use __vmalloc_node in stack_alloc Date: Wed, 8 Apr 2020 13:59:26 +0200 Message-Id: <20200408115926.1467567-29-hch@lst.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200408115926.1467567-1-hch@lst.de> References: <20200408115926.1467567-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org stack_alloc can use a slightly higher level vmalloc function. Signed-off-by: Christoph Hellwig --- arch/s390/kernel/setup.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 36445dd40fdb..0f0b140b5558 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -305,12 +305,9 @@ void *restart_stack __section(.data); unsigned long stack_alloc(void) { #ifdef CONFIG_VMAP_STACK - return (unsigned long) - __vmalloc_node_range(THREAD_SIZE, THREAD_SIZE, - VMALLOC_START, VMALLOC_END, - THREADINFO_GFP, - PAGE_KERNEL, 0, NUMA_NO_NODE, - __builtin_return_address(0)); + return (unsigned long)__vmalloc_node(THREAD_SIZE, THREAD_SIZE, + THREADINFO_GFP, NUMA_NO_NODE, + __builtin_return_address(0)); #else return __get_free_pages(GFP_KERNEL, THREAD_SIZE_ORDER); #endif -- 2.25.1