Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3287490pxk; Tue, 15 Sep 2020 15:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKppYtQsOtn+LgyO0vcauOB1KlzbFKPagcD7phtZ3mCs93OxZMapQOdGS6OPIRipIKerpx X-Received: by 2002:a50:ce09:: with SMTP id y9mr24089601edi.91.1600208773023; Tue, 15 Sep 2020 15:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600208773; cv=none; d=google.com; s=arc-20160816; b=Aggts/l8++yP1fDu6vNROmcgvFZIJmBPbsuSLiV/f9qJJTjZo6ibtuQNsdLXqHjN2m HYKuu52jA7w3ejDbsw2P03wskBVDHxdv2RkF57rtqvj+OjCH/UemG6qRG++AAox5VLVu y4y+ZB33NhBqDWPLyasWj/K4uHeI2BBbq7X6AYNypx5n6J1LlLVBem+71tYzwP1PJR/J TDYR3zmbLZqW8CwHQhgFYGYHLf2mkR94qraPton6ZI8LRsKVHJut3zbMmwHu7yY2ff+U xDZpNAHLrlEAOL7GvWUgNatTMuaVGV2M3cJZsHEZQ/Y+VE1R1mTAkSDdzDa04JLkxTE9 m9bg== 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=yG7qWXKBUIxg7RQ3+cci8dpYxavPbFHR4ZLuySoica4=; b=fXi0fpBr1tJ95gQz1f3FigNNxbqb8gpk0TtulAtX1cy5LFsyLs44fLz8vKsjxpAlQK bk/fFZbsEmjIPowsFOvdnNE2Zr+DgfYRs37W9zMo2n5wzp51+xu1FUwGdbmLskugXTpX h480oFiZLS9MRFIyZ9uBcYXxP/yvIGonV3bI1sllNMiVZBHyonwSDq4SaUYZfM2aMZne FWHfauiyHLg6UYFQ+jksk/EGjSpf9QYWaUEBf3VB3v2q/n+rZtm7L+rvYwsH+xFgnDsK KcneLMcD78hxNjUuCzUibi32NtZ0dJzAVH3YS0K0rxEBXT7KSrNT9FFg84mOwh7llt55 Fn5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="t6Ws/MdH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si11232909edp.477.2020.09.15.15.25.50; Tue, 15 Sep 2020 15:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="t6Ws/MdH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbgIOWZF (ORCPT + 99 others); Tue, 15 Sep 2020 18:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727624AbgIOQWw (ORCPT ); Tue, 15 Sep 2020 12:22:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28DA6C06174A; Tue, 15 Sep 2020 08:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=yG7qWXKBUIxg7RQ3+cci8dpYxavPbFHR4ZLuySoica4=; b=t6Ws/MdHdLJs2XLcTrYc7bL7HB OLZi/bOn/73POpUaXeC1ed/v/kFUkUxTJLfl12YpD3qYAUQgZ6kE65MhsxkCerZanCvd5xJnuGXVP d5yX2p/2ZLmheiBRRktpBIy42haP2KLL/hBmeEjfStYgrd/sIfatnvsRXhMp4FwqBhDQMDuNFuNKw ggXRbUlyeGOFi0hj24V+mj/JOjuhyPv5M7pE9Hr+ZE+yckaVWBw+/BC1uJFrpcacKnyKov8pttEEa 4VtqRW2WqCleQn5wsPxUOKeUxILx3bToavJ30o/oJgwoHWUbYxQ3FkO2BPGoJpzxcsEw/syGg3B+W Btf+oB9g==; Received: from 089144214092.atnat0023.highway.a1.net ([89.144.214.92] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDLA-0003bv-2A; Tue, 15 Sep 2020 15:57:56 +0000 From: Christoph Hellwig To: Mauro Carvalho Chehab , Thomas Bogendoerfer , "James E.J. Bottomley" , Joonyoung Shim , Seung-Woo Kim , Ben Skeggs , Marek Szyprowski , Tomasz Figa , Matt Porter , iommu@lists.linux-foundation.org Cc: Stefan Richter , linux1394-devel@lists.sourceforge.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, nouveau@lists.freedesktop.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mm@kvack.org, alsa-devel@alsa-project.org Subject: [PATCH 02/18] mm: turn alloc_pages into an inline function Date: Tue, 15 Sep 2020 17:51:06 +0200 Message-Id: <20200915155122.1768241-3-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915155122.1768241-1-hch@lst.de> References: <20200915155122.1768241-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.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 To prevent a compiler error when a method call alloc_pages is added (which I plan to for the dma_map_ops). Signed-off-by: Christoph Hellwig --- include/linux/gfp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 67a0774e080b98..dd2577c5407112 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -550,8 +550,10 @@ extern struct page *alloc_pages_vma(gfp_t gfp_mask, int order, #define alloc_hugepage_vma(gfp_mask, vma, addr, order) \ alloc_pages_vma(gfp_mask, order, vma, addr, numa_node_id(), true) #else -#define alloc_pages(gfp_mask, order) \ - alloc_pages_node(numa_node_id(), gfp_mask, order) +static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order) +{ + return alloc_pages_node(numa_node_id(), gfp_mask, order); +} #define alloc_pages_vma(gfp_mask, order, vma, addr, node, false)\ alloc_pages(gfp_mask, order) #define alloc_hugepage_vma(gfp_mask, vma, addr, order) \ -- 2.28.0