Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261216AbVC1HfU (ORCPT ); Mon, 28 Mar 2005 02:35:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261261AbVC1HfU (ORCPT ); Mon, 28 Mar 2005 02:35:20 -0500 Received: from mail2.asahi-net.or.jp ([202.224.39.198]:48446 "EHLO mail.asahi-net.or.jp") by vger.kernel.org with ESMTP id S261216AbVC1HfK (ORCPT ); Mon, 28 Mar 2005 02:35:10 -0500 Date: Mon, 28 Mar 2005 16:35:06 +0900 Message-ID: From: Yoshinori Sato To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [PATCH] nommu.c build error fix User-Agent: Wanderlust/2.11.30 (Wonderwall) SEMI/1.14.6 (Maruoka) LIMIT/1.14.9 (Domyoji) APEL/10.6 Emacs/21.4 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 42 - Argument addition of security_file_mmap. - Because in_gate_area_no_task undefined with CONFIG_KALLSYM=y, add it. Signed-off-by: Yoshinori Sato ===== mm/nommu.c 1.32 vs edited ===== --- 1.32/mm/nommu.c 2005-03-10 00:12:40 +09:00 +++ edited/mm/nommu.c 2005-03-28 16:21:12 +09:00 @@ -396,6 +396,7 @@ unsigned int vm_flags; void *result; int ret, membacked; + unsigned long reqprot = prot; /* do the simple checks first */ if (flags & MAP_FIXED || addr) { @@ -506,7 +507,7 @@ } /* allow the security API to have its say */ - ret = security_file_mmap(file, prot, flags); + ret = security_file_mmap(file, reqprot, prot, flags); if (ret) return ret; @@ -1061,3 +1062,7 @@ return -ENOMEM; } +int in_gate_area_no_task(unsigned long addr) +{ + return 0; +} -- Yoshinori Sato - 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/