Skip to contentSkip to conversation

- 2.6.2 - sched.h - compiler cleanups

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 - sched.h - compiler cleanups

This patch eliminates some "parameter defined but not used" warnings from sched.h.

Probably useless but I like clean compiles! :)

Signature · 2 lines
Ron Gage - LPIC1, MCP, A+, Net+
Pontiac, Michigan
include/linux/sched.h +6 -1
@@ -505,6 +505,8 @@
 #else
 static inline int set_cpus_allowed(task_t *p, cpumask_t new_mask)
 {
+	p = p;
+	new_mask = new_mask;
 	return 0;
 }
 #endif
@@ -576,7 +578,7 @@
 #ifdef CONFIG_SMP
  extern void FASTCALL(kick_process(struct task_struct * tsk));
 #else
- static inline void kick_process(struct task_struct *tsk) { }
+ static inline void kick_process(struct task_struct *tsk) { tsk = tsk; }
 #endif
 extern void FASTCALL(wake_up_forked_process(struct task_struct * tsk));
 extern void FASTCALL(sched_fork(task_t * p));
@@ -897,11 +899,14 @@
 
 static inline unsigned int task_cpu(struct task_struct *p)
 {
+	p = p;
 	return 0;
 }
 
 static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
 {
+	p = p;
+	cpu = cpu;
 }
 
 #endif /* CONFIG_SMP */

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