Re: [patch] mips, mm: avoid using HPAGE constants without CONFIG_HUGETLB_PAGE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 21 Nov 2011, David Daney wrote:

> > --- a/arch/mips/include/asm/page.h	Sun Nov 20 13:08:44 2011
> > +++ b/arch/mips/include/asm/page.h	Sun Nov 20 13:17:43 2011
> > @@ -38,6 +38,11 @@
> >   #define HPAGE_SIZE	(_AC(1,UL)<<  HPAGE_SHIFT)
> >   #define HPAGE_MASK	(~(HPAGE_SIZE - 1))
> >   #define HUGETLB_PAGE_ORDER	(HPAGE_SHIFT - PAGE_SHIFT)
> > +#else
> > +#define HPAGE_SHIFT	({ BUG(); 0; })
> > +#define HPAGE_SIZE	({ BUG(); 0; })
> > +#define HPAGE_MASK	({ BUG(); 0; })
> 
> These three are taken care of in linux/hugetlb.h by the patches that Andrew
> Morton has in his tree, the full discussion starts at:
> 
> http://www.linux-mips.org/archives/linux-mips/2011-11/msg00412.html
> 

Those patches were removed since Linus picked up my patch instead, so I 
think you'll want the patch I'm proposing here.



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux