Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openvox-dahdi
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
Raptor Engineering Public Development
openvox-dahdi
Commits
1129c666
Commit
1129c666
authored
Mar 22, 2022
by
Raptor Engineering Development Team
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove old ioctl code
parent
63cd04e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
64 deletions
+1
-64
linux/drivers/dahdi/dahdi-base.c
linux/drivers/dahdi/dahdi-base.c
+1
-53
linux/drivers/dahdi/dahdi_transcode.c
linux/drivers/dahdi/dahdi_transcode.c
+0
-11
No files found.
linux/drivers/dahdi/dahdi-base.c
View file @
1129c666
...
...
@@ -53,7 +53,7 @@
#include <linux/ktime.h>
#include <linux/slab.h>
#if defined(
HAVE_UNLOCKED_IOCTL) && defined(
CONFIG_BKL)
#if defined(CONFIG_BKL)
#include <linux/smp_lock.h>
#endif
...
...
@@ -4068,14 +4068,6 @@ dahdi_timer_unlocked_ioctl(struct file *file, unsigned int cmd,
return
0
;
}
#ifndef HAVE_UNLOCKED_IOCTL
static
int
dahdi_timer_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
return
dahdi_timer_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
static
int
dahdi_ioctl_getgains
(
struct
file
*
file
,
unsigned
long
data
)
{
int
res
=
0
;
...
...
@@ -7010,15 +7002,6 @@ exit:
return
ret
;
}
#ifndef HAVE_UNLOCKED_IOCTL
static
int
dahdi_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
return
dahdi_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
#ifdef HAVE_COMPAT_IOCTL
static
long
dahdi_ioctl_compat
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
...
...
@@ -7027,7 +7010,6 @@ static long dahdi_ioctl_compat(struct file *file, unsigned int cmd,
return
dahdi_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
/**
* _get_next_channo - Return the next taken channel number from the span list.
...
...
@@ -10282,14 +10264,8 @@ static const struct file_operations dahdi_fops = {
.
owner
=
THIS_MODULE
,
.
open
=
dahdi_open
,
.
release
=
dahdi_release
,
#ifdef HAVE_UNLOCKED_IOCTL
.
unlocked_ioctl
=
dahdi_unlocked_ioctl
,
#ifdef HAVE_COMPAT_IOCTL
.
compat_ioctl
=
dahdi_ioctl_compat
,
#endif
#else
.
ioctl
=
dahdi_ioctl
,
#endif
.
poll
=
dahdi_poll
,
.
read
=
dahdi_no_read
,
.
write
=
dahdi_no_write
,
...
...
@@ -10298,14 +10274,8 @@ static const struct file_operations dahdi_fops = {
static
const
struct
file_operations
dahdi_timer_fops
=
{
.
owner
=
THIS_MODULE
,
.
release
=
dahdi_timer_release
,
#ifdef HAVE_UNLOCKED_IOCTL
.
unlocked_ioctl
=
dahdi_timer_unlocked_ioctl
,
#ifdef HAVE_COMPAT_IOCTL
.
compat_ioctl
=
dahdi_timer_unlocked_ioctl
,
#endif
#else
.
ioctl
=
dahdi_timer_ioctl
,
#endif
.
poll
=
dahdi_timer_poll
,
.
read
=
dahdi_no_read
,
.
write
=
dahdi_no_write
,
...
...
@@ -10368,15 +10338,6 @@ nodev_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long data)
return
nodev_common
(
"ioctl"
);
}
#ifndef HAVE_UNLOCKED_IOCTL
static
int
nodev_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
return
nodev_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
#ifdef HAVE_COMPAT_IOCTL
static
long
nodev_ioctl_compat
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
...
...
@@ -10385,18 +10346,11 @@ static long nodev_ioctl_compat(struct file *file, unsigned int cmd,
return
nodev_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
static
const
struct
file_operations
nodev_fops
=
{
.
owner
=
THIS_MODULE
,
#ifdef HAVE_UNLOCKED_IOCTL
.
unlocked_ioctl
=
nodev_unlocked_ioctl
,
#ifdef HAVE_COMPAT_IOCTL
.
compat_ioctl
=
nodev_ioctl_compat
,
#endif
#else
.
ioctl
=
nodev_ioctl
,
#endif
.
read
=
nodev_chan_read
,
.
write
=
nodev_chan_write
,
.
poll
=
nodev_chan_poll
,
...
...
@@ -10406,14 +10360,8 @@ static const struct file_operations dahdi_chan_fops = {
.
owner
=
THIS_MODULE
,
.
open
=
dahdi_open
,
.
release
=
dahdi_release
,
#ifdef HAVE_UNLOCKED_IOCTL
.
unlocked_ioctl
=
dahdi_unlocked_ioctl
,
#ifdef HAVE_COMPAT_IOCTL
.
compat_ioctl
=
dahdi_ioctl_compat
,
#endif
#else
.
ioctl
=
dahdi_ioctl
,
#endif
.
read
=
dahdi_chan_read
,
.
write
=
dahdi_chan_write
,
.
poll
=
dahdi_chan_poll
,
...
...
linux/drivers/dahdi/dahdi_transcode.c
View file @
1129c666
...
...
@@ -397,13 +397,6 @@ static long dahdi_tc_unlocked_ioctl(struct file *file, unsigned int cmd, unsigne
};
}
#ifndef HAVE_UNLOCKED_IOCTL
static
int
dahdi_tc_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
data
)
{
return
(
int
)
dahdi_tc_unlocked_ioctl
(
file
,
cmd
,
data
);
}
#endif
static
unsigned
int
dahdi_tc_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
wait_table
)
{
int
ret
;
...
...
@@ -427,11 +420,7 @@ static struct file_operations __dahdi_transcode_fops = {
.
owner
=
THIS_MODULE
,
.
open
=
dahdi_tc_open
,
.
release
=
dahdi_tc_release
,
#ifdef HAVE_UNLOCKED_IOCTL
.
unlocked_ioctl
=
dahdi_tc_unlocked_ioctl
,
#else
.
ioctl
=
dahdi_tc_ioctl
,
#endif
.
read
=
dahdi_tc_read
,
.
write
=
dahdi_tc_write
,
.
poll
=
dahdi_tc_poll
,
...
...
Raptor Engineering Development Team
@raptor-development
mentioned in commit
3aba04f1
·
Mar 26, 2022
mentioned in commit
3aba04f1
mentioned in commit 3aba04f1f898e36ef72d3e50055c9d3f48864043
Toggle commit list
Raptor Engineering Development Team
@raptor-development
mentioned in commit
eb1d4f16
·
Mar 26, 2022
mentioned in commit
eb1d4f16
mentioned in commit eb1d4f1615b9b44ca1e30cccc3b9f088c66b24e9
Toggle commit list
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