All of lore.kernel.org
 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

* Re: [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2007-07-12 13:29 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Andrew Morton, Greg KH, Chris Wright, Ivo van Doorn,
	David S. Miller

On 7/12/07, Ingo Molnar <mingo@elte.hu> wrote:
> 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.
>

Yep, my fault.

> For -stable too i suspect.
>

I don't think anyone uses rfkill in mainline yet. People were asking
to add it so that they can develop against it but I guess I should
have waited for the real user before pushing rfkill to David...
ANyway, I see it is being used in wireless-dev so it is not completely
useless ;)

-- 
Dmitry

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

* Re: [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems
  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
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-07-15  1:50 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel, akpm, gregkh, chrisw, IvDoorn, dtor

From: Ingo Molnar <mingo@elte.hu>
Date: Thu, 12 Jul 2007 14:45:03 +0200

> 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>

Applied, thanks Ingo.

I'll push this to -stable.

^ 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 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.