Skip to contentSkip to conversation

nommu.c build error fix

PATCH New Yoshinori Sato 1 participant 1 message Mar 28, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nommu.c build error fix

- Argument addition of security_file_mmap.
- Because in_gate_area_no_task undefined with CONFIG_KALLSYM=y, add it.

===== mm/nommu.c 1.32 vs edited =====

mm/nommu.c +6 -1
@@ -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;
+}
Signature · 2 lines
Yoshinori Sato
<[email protected]>