Skip to content

Commit

Permalink
[RFKILL]: fix net/rfkill/rfkill-input.c bug on 64-bit systems
Browse files Browse the repository at this point in the history
Subject: [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems

this recent commit:

 commit cf4328c
 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. 

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ingo Molnar authored and David S. Miller committed Jul 15, 2007
1 parent 8d9107e commit e6c9116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rfkill/rfkill-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void rfkill_task_handler(struct work_struct *work)

static void rfkill_schedule_toggle(struct rfkill_task *task)
{
unsigned int flags;
unsigned long flags;

spin_lock_irqsave(&task->lock, flags);

Expand Down

0 comments on commit e6c9116

Please sign in to comment.