Commit cb24ccc0 authored by Eric Biggers's avatar Eric Biggers
Browse files

ANDROID: trusty-ipc: fix tipc_poll()



In recent kernels, implementations of file_operations::poll() are
supposed to return __poll_t and use the EPOLL* constants, not POLL*.

This fixes the following 'sparse' warning:

    drivers/trusty/trusty-ipc.c:1564:27: warning: incorrect type in initializer (different base types)
    drivers/trusty/trusty-ipc.c:1564:27:    expected restricted __poll_t ( *poll )( ... )
    drivers/trusty/trusty-ipc.c:1564:27:    got unsigned int ( * )( ... )

Also, on some architectures the EPOLL* constants are different from the
POLL* ones; see upstream commit a9a08845 ("vfs: do bulk POLL* ->
EPOLL* replacement").

Change-Id: Ie014a57a0b1405b7f69cb4936a2962fea084c78c
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 0e580318
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment