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
8153a5ea
Commit
8153a5ea
authored
Jul 02, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: annotate ->poll() instances
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8b9aab09
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
18 deletions
+16
-18
arch/powerpc/kernel/rtasd.c
arch/powerpc/kernel/rtasd.c
+1
-1
arch/powerpc/platforms/cell/spufs/backing_ops.c
arch/powerpc/platforms/cell/spufs/backing_ops.c
+3
-3
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/file.c
+8
-8
arch/powerpc/platforms/cell/spufs/hw_ops.c
arch/powerpc/platforms/cell/spufs/hw_ops.c
+2
-3
arch/powerpc/platforms/cell/spufs/spufs.h
arch/powerpc/platforms/cell/spufs/spufs.h
+1
-2
arch/powerpc/platforms/powernv/opal-prd.c
arch/powerpc/platforms/powernv/opal-prd.c
+1
-1
No files found.
arch/powerpc/kernel/rtasd.c
View file @
8153a5ea
...
...
@@ -388,7 +388,7 @@ static ssize_t rtas_log_read(struct file * file, char __user * buf,
return
error
;
}
static
unsigned
in
t
rtas_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
rtas_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
poll_wait
(
file
,
&
rtas_log_wait
,
wait
);
if
(
rtas_log_size
)
...
...
arch/powerpc/platforms/cell/spufs/backing_ops.c
View file @
8153a5ea
...
...
@@ -86,10 +86,10 @@ static u32 spu_backing_mbox_stat_read(struct spu_context *ctx)
return
ctx
->
csa
.
prob
.
mb_stat_R
;
}
static
unsigned
in
t
spu_backing_mbox_stat_poll
(
struct
spu_context
*
ctx
,
unsigned
in
t
events
)
static
__poll_
t
spu_backing_mbox_stat_poll
(
struct
spu_context
*
ctx
,
__poll_
t
events
)
{
in
t
ret
;
__poll_
t
ret
;
u32
stat
;
ret
=
0
;
...
...
arch/powerpc/platforms/cell/spufs/file.c
View file @
8153a5ea
...
...
@@ -762,10 +762,10 @@ static ssize_t spufs_ibox_read(struct file *file, char __user *buf,
return
count
;
}
static
unsigned
in
t
spufs_ibox_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
spufs_ibox_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
spu_context
*
ctx
=
file
->
private_data
;
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
&
ctx
->
ibox_wq
,
wait
);
...
...
@@ -898,10 +898,10 @@ static ssize_t spufs_wbox_write(struct file *file, const char __user *buf,
return
count
;
}
static
unsigned
in
t
spufs_wbox_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
spufs_wbox_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
spu_context
*
ctx
=
file
->
private_data
;
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
&
ctx
->
wbox_wq
,
wait
);
...
...
@@ -1690,11 +1690,11 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer,
return
ret
;
}
static
unsigned
in
t
spufs_mfc_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
spufs_mfc_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
spu_context
*
ctx
=
file
->
private_data
;
u32
free_elements
,
tagstatus
;
unsigned
in
t
mask
;
__poll_
t
mask
;
poll_wait
(
file
,
&
ctx
->
mfc_wq
,
wait
);
...
...
@@ -2455,11 +2455,11 @@ static ssize_t spufs_switch_log_read(struct file *file, char __user *buf,
return
cnt
==
0
?
error
:
cnt
;
}
static
unsigned
in
t
spufs_switch_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
__poll_
t
spufs_switch_log_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
struct
inode
*
inode
=
file_inode
(
file
);
struct
spu_context
*
ctx
=
SPUFS_I
(
inode
)
->
i_ctx
;
unsigned
in
t
mask
=
0
;
__poll_
t
mask
=
0
;
int
rc
;
poll_wait
(
file
,
&
ctx
->
switch_log
->
wait
,
wait
);
...
...
arch/powerpc/platforms/cell/spufs/hw_ops.c
View file @
8153a5ea
...
...
@@ -56,11 +56,10 @@ static u32 spu_hw_mbox_stat_read(struct spu_context *ctx)
return
in_be32
(
&
ctx
->
spu
->
problem
->
mb_stat_R
);
}
static
unsigned
int
spu_hw_mbox_stat_poll
(
struct
spu_context
*
ctx
,
unsigned
int
events
)
static
__poll_t
spu_hw_mbox_stat_poll
(
struct
spu_context
*
ctx
,
__poll_t
events
)
{
struct
spu
*
spu
=
ctx
->
spu
;
in
t
ret
=
0
;
__poll_
t
ret
=
0
;
u32
stat
;
spin_lock_irq
(
&
spu
->
register_lock
);
...
...
arch/powerpc/platforms/cell/spufs/spufs.h
View file @
8153a5ea
...
...
@@ -185,8 +185,7 @@ struct mfc_dma_command {
struct
spu_context_ops
{
int
(
*
mbox_read
)
(
struct
spu_context
*
ctx
,
u32
*
data
);
u32
(
*
mbox_stat_read
)
(
struct
spu_context
*
ctx
);
unsigned
int
(
*
mbox_stat_poll
)(
struct
spu_context
*
ctx
,
unsigned
int
events
);
__poll_t
(
*
mbox_stat_poll
)(
struct
spu_context
*
ctx
,
__poll_t
events
);
int
(
*
ibox_read
)
(
struct
spu_context
*
ctx
,
u32
*
data
);
int
(
*
wbox_write
)
(
struct
spu_context
*
ctx
,
u32
data
);
u32
(
*
signal1_read
)
(
struct
spu_context
*
ctx
);
...
...
arch/powerpc/platforms/powernv/opal-prd.c
View file @
8153a5ea
...
...
@@ -147,7 +147,7 @@ static bool opal_msg_queue_empty(void)
return
ret
;
}
static
unsigned
in
t
opal_prd_poll
(
struct
file
*
file
,
static
__poll_
t
opal_prd_poll
(
struct
file
*
file
,
struct
poll_table_struct
*
wait
)
{
poll_wait
(
file
,
&
opal_prd_msg_wait
,
wait
);
...
...
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