Explorar o código

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

linD026 %!s(int64=2) %!d(string=hai) anos
pai
achega
8a5879a0fa
Modificáronse 1 ficheiros con 1 adicións e 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>