Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756604AbZFCXIW (ORCPT ); Wed, 3 Jun 2009 19:08:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754640AbZFCXIN (ORCPT ); Wed, 3 Jun 2009 19:08:13 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:65250 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753626AbZFCXIM (ORCPT ); Wed, 3 Jun 2009 19:08:12 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=B0WQrvDYJDj1qKqre69j+Y7vdjsk2Lc3bfveRruhcz/k0GaVYe/BpdhQCHjcEecHTm otgc2mWqDASBHT5oNJ669wtQJFYSHlpD2ji0iLB3W1c5tD5bxFJnAdfrnSZuCi5c0gIG M4SIJGXZGcgRm7G5OuAVqi96IQzq8Azulc750= Date: Thu, 4 Jun 2009 03:08:10 +0400 From: Alexey Dobriyan To: Andrew Morton Cc: Matt Helsley , xemul@parallels.com, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, dave@linux.vnet.ibm.com, mingo@elte.hu, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 9/9] exec_path 9/9: remove VM_EXECUTABLE Message-ID: <20090603230810.GJ853@x200.localdomain> References: <20090526113618.GJ28083@us.ibm.com> <20090526162415.fb9cefef.akpm@linux-foundation.org> <20090531215427.GA29534@x200.localdomain> <20090531151953.8f8b14b5.akpm@linux-foundation.org> <20090603230422.GB853@x200.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090603230422.GB853@x200.localdomain> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 38 Noone uses VM_EXECUTABLE now, binfmt loaders set ->exec_path by hand and MAP_EXECUTABLE is ignored from userland. Signed-off-by: Alexey Dobriyan --- include/linux/mm.h | 1 - include/linux/mman.h | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index b3b61a6..79854af 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -82,7 +82,6 @@ extern unsigned int kobjsize(const void *objp); #define VM_PFNMAP 0x00000400 /* Page-ranges managed without "struct page", just pure PFN */ #define VM_DENYWRITE 0x00000800 /* ETXTBSY on write attempts.. */ -#define VM_EXECUTABLE 0x00001000 #define VM_LOCKED 0x00002000 #define VM_IO 0x00004000 /* Memory mapped I/O or similar */ diff --git a/include/linux/mman.h b/include/linux/mman.h index 9872d6c..1a01871 100644 --- a/include/linux/mman.h +++ b/include/linux/mman.h @@ -86,7 +86,6 @@ calc_vm_flag_bits(unsigned long flags) { return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) | _calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) | - _calc_vm_trans(flags, MAP_EXECUTABLE, VM_EXECUTABLE) | _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ); } #endif /* __KERNEL__ */ -- 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/