Skip to content

Commit 8a5879a

Browse files
committed
chardev2: Fix missing header for {get, put}_user
1 parent cdf7b42 commit 8a5879a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/chardev2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/module.h> /* Specifically, a module */
1212
#include <linux/printk.h>
1313
#include <linux/types.h>
14+
#include <linux/uaccess.h> /* for get_user and put_user */
1415

1516
#include <asm/errno.h>
1617

0 commit comments

Comments
 (0)