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
4bac2bcd
Commit
4bac2bcd
authored
Dec 31, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/nfc: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
9490e40a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
net/nfc/llcp_sock.c
net/nfc/llcp_sock.c
+3
-6
No files found.
net/nfc/llcp_sock.c
View file @
4bac2bcd
...
...
@@ -548,16 +548,13 @@ static inline __poll_t llcp_accept_poll(struct sock *parent)
return
0
;
}
static
__poll_t
llcp_sock_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
static
__poll_t
llcp_sock_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
__poll_t
mask
=
0
;
pr_debug
(
"%p
\n
"
,
sk
);
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
if
(
sk
->
sk_state
==
LLCP_LISTEN
)
return
llcp_accept_poll
(
sk
);
...
...
@@ -899,7 +896,7 @@ static const struct proto_ops llcp_sock_ops = {
.
socketpair
=
sock_no_socketpair
,
.
accept
=
llcp_sock_accept
,
.
getname
=
llcp_sock_getname
,
.
poll
=
llcp_sock_poll
,
.
poll
_mask
=
llcp_sock_poll_mask
,
.
ioctl
=
sock_no_ioctl
,
.
listen
=
llcp_sock_listen
,
.
shutdown
=
sock_no_shutdown
,
...
...
@@ -919,7 +916,7 @@ static const struct proto_ops llcp_rawsock_ops = {
.
socketpair
=
sock_no_socketpair
,
.
accept
=
sock_no_accept
,
.
getname
=
llcp_sock_getname
,
.
poll
=
llcp_sock_poll
,
.
poll
_mask
=
llcp_sock_poll_mask
,
.
ioctl
=
sock_no_ioctl
,
.
listen
=
sock_no_listen
,
.
shutdown
=
sock_no_shutdown
,
...
...
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