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@xxxxxxxx> > --- > drivers/infiniband/core/umem_odp.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Applied to for-next, thanks Jason