mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems
@ 2007-07-12 12:45 Ingo Molnar
  2007-07-12 13:29 ` Dmitry Torokhov
  2007-07-15  1:50 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Ingo Molnar @ 2007-07-12 12:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Morton, Greg KH, Chris Wright, Ivo van Doorn,
	Dmitry Torokhov, David S. Miller

From: Ingo Molnar <mingo@elte.hu>
Subject: [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems

this recent commit:

 commit cf4328cd949c2086091c62c5685f1580fe9b55e4
 Author: Ivo van Doorn <IvDoorn@gmail.com>
 Date:   Mon May 7 00:34:20 2007 -0700

     [NET]: rfkill: add support for input key to control wireless radio

added this 64-bit bug:

        ....
	unsigned int flags;
 
 	spin_lock_irqsave(&task->lock, flags);
        ....

irq 'flags' must be unsigned long, not unsigned int. The -rt tree has 
strict checks about this on 64-bit so this triggered a build failure. 

For -stable too i suspect.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

Index: linux-rt.q/net/rfkill/rfkill-input.c
===================================================================
--- linux-rt.q.orig/net/rfkill/rfkill-input.c
+++ linux-rt.q/net/rfkill/rfkill-input.c
@@ -55,7 +55,7 @@ static void rfkill_task_handler(struct w
 
 static void rfkill_schedule_toggle(struct rfkill_task *task)
 {
-	unsigned int flags;
+	unsigned long flags;
 
 	spin_lock_irqsave(&task->lock, flags);
 

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

end of thread, other threads:[~2007-07-15  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-12 12:45 [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems Ingo Molnar
2007-07-12 13:29 ` Dmitry Torokhov
2007-07-15  1:50 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®