Re: [PATCH -mm] PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures (v2)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrea Righi <righi.andrea@...>
Cc: Andrew Morton <akpm@...>, <linux-mm@...>, <balbir@...>, Sudhir Kumar <skumar@...>, <yamamoto@...>, <menage@...>, <linux-kernel@...>, <xemul@...>, <kamezawa.hiroyu@...>, <linux-arch@...>
Date: Sunday, June 15, 2008 - 6:40 pm

Andrea Righi writes:


I'd rather see it in some other place than this, because
include/linux/mm.h is a large header that includes quite a lot of
other stuff.  What's wrong with leaving it in each arch's page.h and
only changing it on those archs that have both 32-bit and 64-bit
variants?  Or perhaps there is some other, lower-level header in
include/linux where it could go?


These parts are NAKed, because arch/powerpc/boot is a separate program
that doesn't use the kernel include files.


We had already come across this issue on powerpc, and we fixed it by
making sure that the type of PAGE_MASK was int, not unsigned int.
However, I have no objection to using the ALIGN() macro from
include/linux/kernel.h instead.

Paul.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -mm] PAGE_ALIGN(): correctly handle 64-bit values..., Paul Mackerras, (Sun Jun 15, 6:40 pm)