[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200109160022.GA28974@ziepe.ca>
Date: Thu, 9 Jan 2020 12:00:22 -0400
From: Jason Gunthorpe <jgg@...pe.ca>
To: Arnd Bergmann <arnd@...db.de>
Cc: Doug Ledford <dledford@...hat.com>,
Leon Romanovsky <leon@...nel.org>,
Yishai Hadas <yishaih@...lanox.com>,
Artemy Kovalyov <artemyko@...lanox.com>,
Leon Romanovsky <leonro@...lanox.com>,
Ira Weiny <ira.weiny@...el.com>,
Moni Shoua <monis@...lanox.com>,
John Hubbard <jhubbard@...dia.com>,
Shiraz Saleem <shiraz.saleem@...el.com>,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] IB/core: Fix build failure without hugepages
On Thu, Jan 09, 2020 at 09:47:30AM +0100, Arnd Bergmann wrote:
> HPAGE_SHIFT is only defined on architectures that support hugepages:
>
> drivers/infiniband/core/umem_odp.c: In function 'ib_umem_odp_get':
> drivers/infiniband/core/umem_odp.c:245:26: error: 'HPAGE_SHIFT' undeclared (first use in this function); did you mean 'PAGE_SHIFT'?
>
> Enclose this in an #ifdef.
>
> Fixes: 9ff1b6466a29 ("IB/core: Fix ODP with IB_ACCESS_HUGETLB handling")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/infiniband/core/umem_odp.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to for-next, thanks
Jason
Powered by blists - more mailing lists