summaryrefslogtreecommitdiffstats
path: root/fs/eventfd.c
diff options
context:
space:
mode:
authorMin-Hua Chen <minhuadotchen@gmail.com>2023-05-11 18:46:25 +0200
committerChristian Brauner <brauner@kernel.org>2023-05-15 09:33:09 +0200
commit38f1755a3e59a3f88e33030f8e4ee0421de2f05a (patch)
tree5dfbc9f482f3c53e084697e698c5716911989ac7 /fs/eventfd.c
parentLinux 6.4-rc2 (diff)
downloadlinux-38f1755a3e59a3f88e33030f8e4ee0421de2f05a.tar.xz
linux-38f1755a3e59a3f88e33030f8e4ee0421de2f05a.zip
fs: use correct __poll_t type
Fix the following sparse warnings by using __poll_t instead of unsigned type. fs/eventpoll.c:541:9: sparse: warning: restricted __poll_t degrades to integer fs/eventfd.c:67:17: sparse: warning: restricted __poll_t degrades to integer Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com> Message-Id: <20230511164628.336586-1-minhuadotchen@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/eventfd.c')
-rw-r--r--fs/eventfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventfd.c b/fs/eventfd.c
index 95850a13ce8d..6c06a527747f 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -43,7 +43,7 @@ struct eventfd_ctx {
int id;
};
-__u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, unsigned mask)
+__u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)
{
unsigned long flags;