Skip to contentSkip to conversation

- 2.6.2 - mm.h - compiler cleanup

PATCH New Ron Gage 1 participant 1 message Feb 13, 2004

Subsystems (2)
lore
Share & tools
lore

Ron Gage

author
#0 lore raw

PATCH 1/1 - 2.6.2 - mm.h - compiler cleanup

This patch eliminates "parameter defined but not used" warnings

Signature · 2 lines
Ron Gage - LPIC1, MCP, A+, Net+
Pontiac, Michigan
include/linux/mm.h +8 -0
@@ -639,6 +639,9 @@
 static inline void
 kernel_map_pages(struct page *page, int numpages, int enable)
 {
+	page = page;
+	numpages = numpages;
+	enable = enable;
 }
 #endif
 
@@ -646,6 +649,7 @@
 #ifdef AT_SYSINFO_EHDR
 static inline int in_gate_area(struct task_struct *task, unsigned long addr)
 {
+	task = task;
 	if ((addr >= FIXADDR_USER_START) && (addr < FIXADDR_USER_END))
 		return 1;
 	else
@@ -655,16 +659,20 @@
 extern struct vm_area_struct gate_vma;
 static inline struct vm_area_struct *get_gate_vma(struct task_struct *tsk)
 {
+	tsk = tsk;
 	return &gate_vma;
 }
 #else
 static inline int in_gate_area(struct task_struct *task, unsigned long addr)
 {
+	task = task;
+	addr = addr;
 	return 0;
 }
 
 static inline struct vm_area_struct *get_gate_vma(struct task_struct *tsk)
 {
+	tsk = tsk;
 	return NULL;
 }
 #endif

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors