All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] signedness of cpu variables
@ 2007-02-06 19:32 Thomas Hisch
  2007-02-06 22:25 ` Randy Dunlap
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Thomas Hisch @ 2007-02-06 19:32 UTC (permalink / raw)
  To: kernel-janitors

i digged into the kernel source and found a lot of signed int cpu variables.
shouldn't they be replaced by unsigned ints ??

for example everywhere in kernel/cpu.c cpu variables are unsigned except in
check_for_tasks(int cpu). are there any reasons for the signed int parameter
of this  particular function ??

any thoughts ??
is this sth. for the kernel-janitors ?

regards
Thomas Hisch

diff --git a/kernel/cpu.c b/kernel/cpu.c
index 7406fe6..b0d4fbd 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -87,7 +87,7 @@ void unregister_cpu_notifier(struct notifier_block *nb)
 }
 EXPORT_SYMBOL(unregister_cpu_notifier);

-static inline void check_for_tasks(int cpu)
+static inline void check_for_tasks(unsigned int cpu)
 {
        struct task_struct *p;

--
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-02-08 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06 19:32 [KJ] signedness of cpu variables Thomas Hisch
2007-02-06 22:25 ` Randy Dunlap
2007-02-07 10:41 ` walter harms
2007-02-07 14:07 ` Thomas Hisch
2007-02-07 14:16 ` Thomas Hisch
2007-02-07 16:09 ` Randy Dunlap
2007-02-07 16:53 ` Randy Dunlap
2007-02-08  6:19 ` Alexey Dobriyan
2007-02-08 11:11 ` walter harms

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.