Explorar el Código

chardev2: Fix missing header for {get, put}_user

linD026 hace 2 años
padre
commit
8a5879a0fa
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      examples/chardev2.c

+ 1 - 0
examples/chardev2.c

@@ -11,6 +11,7 @@
 #include <linux/module.h> /* Specifically, a module */
 #include <linux/printk.h>
 #include <linux/types.h>
+#include <linux/uaccess.h> /* for get_user and put_user */
 
 #include <asm/errno.h>