Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a265b149
Commit
a265b149
authored
Nov 17, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bart.bkbits.net/ide-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
4b6eb2e5
025fd9de
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
11 deletions
+4
-11
drivers/isdn/divert/divert_init.c
drivers/isdn/divert/divert_init.c
+0
-1
drivers/isdn/divert/divert_procfs.c
drivers/isdn/divert/divert_procfs.c
+0
-1
drivers/isdn/divert/isdn_divert.c
drivers/isdn/divert/isdn_divert.c
+2
-9
drivers/isdn/divert/isdn_divert.h
drivers/isdn/divert/isdn_divert.h
+2
-0
No files found.
drivers/isdn/divert/divert_init.c
View file @
a265b149
...
...
@@ -62,7 +62,6 @@ static int __init divert_init(void)
static
void
__exit
divert_exit
(
void
)
{
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
int
i
;
spin_lock_irqsave
(
&
divert_lock
,
flags
);
...
...
drivers/isdn/divert/divert_procfs.c
View file @
a265b149
...
...
@@ -182,7 +182,6 @@ isdn_divert_ioctl(struct inode *inode, struct file *file,
divert_ioctl
dioctl
;
int
i
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
divert_rule
*
rulep
;
char
*
cp
;
...
...
drivers/isdn/divert/isdn_divert.c
View file @
a265b149
...
...
@@ -48,13 +48,14 @@ static struct deflect_struc *table_head = NULL;
static
struct
deflect_struc
*
table_tail
=
NULL
;
static
unsigned
char
extern_wait_max
=
4
;
/* maximum wait in s for external process */
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
/***************************/
/* timer callback function */
/***************************/
static
void
deflect_timer_expire
(
ulong
arg
)
{
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
struct
call_struc
*
cs
=
(
struct
call_struc
*
)
arg
;
spin_lock_irqsave
(
&
divert_lock
,
flags
);
...
...
@@ -109,7 +110,6 @@ int cf_command(int drvid, int mode,
u_char
proc
,
char
*
msn
,
u_char
service
,
char
*
fwd_nr
,
ulong
*
procid
)
{
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
int
retval
,
msnlen
;
int
fwd_len
;
char
*
p
,
*
ielenp
,
tmp
[
60
];
...
...
@@ -204,7 +204,6 @@ int deflect_extern_action(u_char cmd, ulong callid, char *to_nr)
{
struct
call_struc
*
cs
;
isdn_ctrl
ic
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
int
i
;
if
((
cmd
&
0x7F
)
>
2
)
return
(
-
EINVAL
);
/* invalid command */
...
...
@@ -275,7 +274,6 @@ int deflect_extern_action(u_char cmd, ulong callid, char *to_nr)
int
insertrule
(
int
idx
,
divert_rule
*
newrule
)
{
struct
deflect_struc
*
ds
,
*
ds1
=
NULL
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
if
(
!
(
ds
=
(
struct
deflect_struc
*
)
kmalloc
(
sizeof
(
struct
deflect_struc
),
GFP_KERNEL
)))
...
...
@@ -321,7 +319,6 @@ int insertrule(int idx, divert_rule *newrule)
int
deleterule
(
int
idx
)
{
struct
deflect_struc
*
ds
,
*
ds1
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
if
(
idx
<
0
)
{
spin_lock_irqsave
(
&
divert_lock
,
flags
);
...
...
@@ -389,7 +386,6 @@ divert_rule *getruleptr(int idx)
int
isdn_divert_icall
(
isdn_ctrl
*
ic
)
{
int
retval
=
0
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
struct
call_struc
*
cs
=
NULL
;
struct
deflect_struc
*
dv
;
char
*
p
,
*
p1
;
...
...
@@ -540,7 +536,6 @@ int isdn_divert_icall(isdn_ctrl *ic)
void
deleteprocs
(
void
)
{
struct
call_struc
*
cs
,
*
cs1
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
spin_lock_irqsave
(
&
divert_lock
,
flags
);
cs
=
divert_head
;
...
...
@@ -698,7 +693,6 @@ int prot_stat_callback(isdn_ctrl *ic)
{
struct
call_struc
*
cs
,
*
cs1
;
int
i
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
cs
=
divert_head
;
/* start of list */
cs1
=
NULL
;
...
...
@@ -790,7 +784,6 @@ int prot_stat_callback(isdn_ctrl *ic)
int
isdn_divert_stat_callback
(
isdn_ctrl
*
ic
)
{
struct
call_struc
*
cs
,
*
cs1
;
unsigned
long
flags
;
spinlock_t
divert_lock
=
SPIN_LOCK_UNLOCKED
;
int
retval
;
retval
=
-
1
;
...
...
drivers/isdn/divert/isdn_divert.h
View file @
a265b149
...
...
@@ -114,6 +114,8 @@ struct divert_info
/**************/
/* Prototypes */
/**************/
extern
spinlock_t
divert_lock
;
extern
ulong
if_used
;
/* number of interface users */
extern
int
divert_dev_deinit
(
void
);
extern
int
divert_dev_init
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment