Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758914AbXISNXs (ORCPT ); Wed, 19 Sep 2007 09:23:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753435AbXISNXi (ORCPT ); Wed, 19 Sep 2007 09:23:38 -0400 Received: from ppsw-4.csi.cam.ac.uk ([131.111.8.134]:40880 "EHLO ppsw-4.csi.cam.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752124AbXISNXh (ORCPT ); Wed, 19 Sep 2007 09:23:37 -0400 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ In-Reply-To: References: <20070919033605.785839297@sgi.com> <20070919033641.009931707@sgi.com> <167F960F-0A93-4263-8AE6-1B0CEBB2C9D1@cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <918AEB61-0E65-41AD-A1D7-0226CFC40701@cam.ac.uk> Cc: Christoph Lameter , Christoph Hellwig , Mel Gorman , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Chinner , Jens Axboe Content-Transfer-Encoding: 7bit From: Anton Altaparmakov Subject: Re: [03/17] is_vmalloc_addr(): Check if an address is within the vmalloc boundaries Date: Wed, 19 Sep 2007 14:23:27 +0100 To: David Rientjes X-Mailer: Apple Mail (2.752.3) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1386 Lines: 38 On 19 Sep 2007, at 10:19, David Rientjes wrote: > On Wed, 19 Sep 2007, Anton Altaparmakov wrote: >> 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... > > That is why I suggested include/linux/vmalloc.h as its home in the > first > place. And no, adding an include for linux/highmem.h (and asm/ > pgtable.h) > to linux/vmalloc.h does not work. I am sure Christoph can figure out somewhere that it will work. After all, the code in that function already exists both as another function and open coded in several places and compiles fine there... Best regards, Anton -- Anton Altaparmakov (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer, http://www.linux-ntfs.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/