diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kfifo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 6fb495ea956a..86ad50a900c8 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h | |||
@@ -235,11 +235,11 @@ static inline __must_check unsigned int kfifo_out_locked(struct kfifo *fifo, | |||
235 | 235 | ||
236 | extern void kfifo_skip(struct kfifo *fifo, unsigned int len); | 236 | extern void kfifo_skip(struct kfifo *fifo, unsigned int len); |
237 | 237 | ||
238 | extern __must_check unsigned int kfifo_from_user(struct kfifo *fifo, | 238 | extern __must_check int kfifo_from_user(struct kfifo *fifo, |
239 | const void __user *from, unsigned int n); | 239 | const void __user *from, unsigned int n, unsigned *lenout); |
240 | 240 | ||
241 | extern __must_check unsigned int kfifo_to_user(struct kfifo *fifo, | 241 | extern __must_check int kfifo_to_user(struct kfifo *fifo, |
242 | void __user *to, unsigned int n); | 242 | void __user *to, unsigned int n, unsigned *lenout); |
243 | 243 | ||
244 | /* | 244 | /* |
245 | * __kfifo_add_out internal helper function for updating the out offset | 245 | * __kfifo_add_out internal helper function for updating the out offset |