Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134777
b: refs/heads/master
c: 9ee6263
h: refs/heads/master
i:
  134775: c42a1d6
v: v3
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 27, 2009
1 parent b644789 commit bbf8904
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56bca31ff1989aa8b60f717e984b0e624f06324e
refs/heads/master: 9ee62630fddda0142cebc45e3bbea20a8009be97
8 changes: 6 additions & 2 deletions trunk/net/wanrouter/wanmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ static int wanrouter_device_del_if(struct wan_device *wandev,

static struct wan_device *wanrouter_find_device(char *name);
static int wanrouter_delete_interface(struct wan_device *wandev, char *name);
static void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
static void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
static void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
__acquires(lock);
static void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
__releases(lock);



Expand Down Expand Up @@ -763,12 +765,14 @@ static int wanrouter_delete_interface(struct wan_device *wandev, char *name)
}

static void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
__acquires(lock)
{
spin_lock_irqsave(lock, *smp_flags);
}


static void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
__releases(lock)
{
spin_unlock_irqrestore(lock, *smp_flags);
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/wanrouter/wanproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static struct proc_dir_entry *proc_router;
* Iterator
*/
static void *r_start(struct seq_file *m, loff_t *pos)
__acquires(kernel_lock)
{
struct wan_device *wandev;
loff_t l = *pos;
Expand All @@ -101,6 +102,7 @@ static void *r_next(struct seq_file *m, void *v, loff_t *pos)
}

static void r_stop(struct seq_file *m, void *v)
__releases(kernel_lock)
{
unlock_kernel();
}
Expand Down

0 comments on commit bbf8904

Please sign in to comment.