]> git.pld-linux.org Git - packages/rt-tests.git/blob - rt-tests-backfire.patch
a77920db84563830377289eb2f8c0e5b5e8db8e2
[packages/rt-tests.git] / rt-tests-backfire.patch
1 From 82f973442d7a7fe4b08b86aeccd11ac33ecf01d1 Mon Sep 17 00:00:00 2001
2 From: Gerald Van Baren <gvb@unssw.com>
3 Date: Tue, 25 Oct 2011 22:17:17 -0400
4 Subject: [PATCH] Fix deprecated/removed spinlock declaration
5
6 Signed-off-by: Gerald Van Baren <gvb@unssw.com>
7 ---
8  backfire.c |    3 +--
9  1 files changed, 1 insertions(+), 2 deletions(-)
10
11 diff --git a/backfire.c b/backfire.c
12 index aaf9c4a..0e9a0df 100644
13 --- a/src/backfire/backfire.c
14 +++ b/src/backfire/backfire.c
15 @@ -24,7 +24,6 @@
16  #include <linux/sched.h>
17  #include <linux/cpumask.h>
18  #include <linux/time.h>
19 -#include <linux/smp_lock.h>
20  #include <linux/types.h>
21  #include <linux/errno.h>
22  #include <linux/miscdevice.h>
23 @@ -36,7 +35,7 @@
24  
25  #define BACKFIRE_MINOR MISC_DYNAMIC_MINOR
26  
27 -static spinlock_t backfire_state_lock = SPIN_LOCK_UNLOCKED;
28 +static DEFINE_SPINLOCK(backfire_state_lock);
29  static int backfire_open_cnt; /* #times opened */
30  static int backfire_open_mode; /* special open modes */
31  static struct timeval sendtime; /* when the most recent signal was sent */
32 -- 
33 1.7.5.4
34
35 Also <asm/system.h> is gone for most architectures since v3.4-rc1~54^2.
36 --- rt-tests-1.0/src/backfire/backfire.c.orig   2017-03-29 18:54:44.833362351 +0200
37 +++ rt-tests-1.0/src/backfire/backfire.c        2017-03-29 18:56:06.890028082 +0200
38 @@ -31,7 +31,6 @@
39  #include <linux/spinlock.h>
40  
41  #include <asm/uaccess.h>
42 -#include <asm/system.h>
43  
44  #define BACKFIRE_MINOR MISC_DYNAMIC_MINOR
45  
This page took 0.139719 seconds and 3 git commands to generate.