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
Kirill Smelkov
linux
Commits
17112d80
Commit
17112d80
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/bluetooth: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
568ea88e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
include/net/bluetooth/bluetooth.h
include/net/bluetooth/bluetooth.h
+1
-1
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+2
-5
net/bluetooth/l2cap_sock.c
net/bluetooth/l2cap_sock.c
+1
-1
net/bluetooth/rfcomm/sock.c
net/bluetooth/rfcomm/sock.c
+1
-1
net/bluetooth/sco.c
net/bluetooth/sco.c
+1
-1
No files found.
include/net/bluetooth/bluetooth.h
View file @
17112d80
...
@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
...
@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
int
flags
);
int
flags
);
int
bt_sock_stream_recvmsg
(
struct
socket
*
sock
,
struct
msghdr
*
msg
,
int
bt_sock_stream_recvmsg
(
struct
socket
*
sock
,
struct
msghdr
*
msg
,
size_t
len
,
int
flags
);
size_t
len
,
int
flags
);
__poll_t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_t
bt_sock_poll
_mask
(
struct
socket
*
sock
,
__poll_t
events
);
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
bt_sock_wait_state
(
struct
sock
*
sk
,
int
state
,
unsigned
long
timeo
);
int
bt_sock_wait_state
(
struct
sock
*
sk
,
int
state
,
unsigned
long
timeo
);
int
bt_sock_wait_ready
(
struct
sock
*
sk
,
unsigned
long
flags
);
int
bt_sock_wait_ready
(
struct
sock
*
sk
,
unsigned
long
flags
);
...
...
net/bluetooth/af_bluetooth.c
View file @
17112d80
...
@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
...
@@ -437,16 +437,13 @@ static inline __poll_t bt_accept_poll(struct sock *parent)
return
0
;
return
0
;
}
}
__poll_t
bt_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
__poll_t
bt_sock_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
poll_table
*
wait
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
__poll_t
mask
=
0
;
__poll_t
mask
=
0
;
BT_DBG
(
"sock %p, sk %p"
,
sock
,
sk
);
BT_DBG
(
"sock %p, sk %p"
,
sock
,
sk
);
poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
if
(
sk
->
sk_state
==
BT_LISTEN
)
if
(
sk
->
sk_state
==
BT_LISTEN
)
return
bt_accept_poll
(
sk
);
return
bt_accept_poll
(
sk
);
...
@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
...
@@ -478,7 +475,7 @@ __poll_t bt_sock_poll(struct file *file, struct socket *sock,
return
mask
;
return
mask
;
}
}
EXPORT_SYMBOL
(
bt_sock_poll
);
EXPORT_SYMBOL
(
bt_sock_poll
_mask
);
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
bt_sock_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
...
...
net/bluetooth/l2cap_sock.c
View file @
17112d80
...
@@ -1653,7 +1653,7 @@ static const struct proto_ops l2cap_sock_ops = {
...
@@ -1653,7 +1653,7 @@ static const struct proto_ops l2cap_sock_ops = {
.
getname
=
l2cap_sock_getname
,
.
getname
=
l2cap_sock_getname
,
.
sendmsg
=
l2cap_sock_sendmsg
,
.
sendmsg
=
l2cap_sock_sendmsg
,
.
recvmsg
=
l2cap_sock_recvmsg
,
.
recvmsg
=
l2cap_sock_recvmsg
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
ioctl
=
bt_sock_ioctl
,
.
ioctl
=
bt_sock_ioctl
,
.
mmap
=
sock_no_mmap
,
.
mmap
=
sock_no_mmap
,
.
socketpair
=
sock_no_socketpair
,
.
socketpair
=
sock_no_socketpair
,
...
...
net/bluetooth/rfcomm/sock.c
View file @
17112d80
...
@@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = {
...
@@ -1049,7 +1049,7 @@ static const struct proto_ops rfcomm_sock_ops = {
.
setsockopt
=
rfcomm_sock_setsockopt
,
.
setsockopt
=
rfcomm_sock_setsockopt
,
.
getsockopt
=
rfcomm_sock_getsockopt
,
.
getsockopt
=
rfcomm_sock_getsockopt
,
.
ioctl
=
rfcomm_sock_ioctl
,
.
ioctl
=
rfcomm_sock_ioctl
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
socketpair
=
sock_no_socketpair
,
.
socketpair
=
sock_no_socketpair
,
.
mmap
=
sock_no_mmap
.
mmap
=
sock_no_mmap
};
};
...
...
net/bluetooth/sco.c
View file @
17112d80
...
@@ -1197,7 +1197,7 @@ static const struct proto_ops sco_sock_ops = {
...
@@ -1197,7 +1197,7 @@ static const struct proto_ops sco_sock_ops = {
.
getname
=
sco_sock_getname
,
.
getname
=
sco_sock_getname
,
.
sendmsg
=
sco_sock_sendmsg
,
.
sendmsg
=
sco_sock_sendmsg
,
.
recvmsg
=
sco_sock_recvmsg
,
.
recvmsg
=
sco_sock_recvmsg
,
.
poll
=
bt_sock_poll
,
.
poll
_mask
=
bt_sock_poll_mask
,
.
ioctl
=
bt_sock_ioctl
,
.
ioctl
=
bt_sock_ioctl
,
.
mmap
=
sock_no_mmap
,
.
mmap
=
sock_no_mmap
,
.
socketpair
=
sock_no_socketpair
,
.
socketpair
=
sock_no_socketpair
,
...
...
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