Re: [03/17] is_vmalloc_addr(): Check if an address is within the vmalloc boundaries

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Rientjes <rientjes@...>
Cc: Christoph Lameter <clameter@...>, Christoph Hellwig <hch@...>, Mel Gorman <mel@...>, <linux-fsdevel@...>, <linux-kernel@...>, David Chinner <dgc@...>, Jens Axboe <jens.axboe@...>
Date: Wednesday, September 19, 2007 - 4:44 am

On 19 Sep 2007, at 09:09, David Rientjes wrote:

Just a compile failure not inherently broken!

Add:

#include <linux/highmem.h> to the top of linux/mm.h and it should  
compile just fine.

Although it may cause a problem as highmem.h also includes mm.h so a  
bit of trickery may be needed to get it to compile...

I suspect that is_vmalloc_addr() should not be in linux/mm.h at all  
and should be in linux/vmalloc.h instead and vmalloc.h should include  
linux/highmem.h.  That would be more sensible than sticking a vmalloc  
related function into linux/mm.h where it does not belong...

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/


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

Messages in current thread:
[03/17] is_vmalloc_addr(): Check if an address is within the..., Christoph Lameter, (Tue Sep 18, 11:36 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 3:24 am)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Christoph Lameter, (Wed Sep 19, 1:29 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 1:52 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 4:44 am)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Christoph Lameter, (Wed Sep 19, 1:29 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 1:52 pm)
Re: [03/17] is_vmalloc_addr(): Check if an address is within..., Anton Altaparmakov, (Wed Sep 19, 9:23 am)