Преглед на файлове

static_key: Include <linux/jump_label.h> (#210)

Sam Erickson преди 1 година
родител
ревизия
9e9f5a8bf8
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      examples/static_key.c

+ 2 - 1
examples/static_key.c

@@ -10,6 +10,7 @@
 #include <linux/printk.h>
 #include <linux/printk.h>
 #include <linux/types.h>
 #include <linux/types.h>
 #include <linux/uaccess.h> /* for get_user and put_user */
 #include <linux/uaccess.h> /* for get_user and put_user */
+#include <linux/jump_label.h> /* for static key macros */
 
 
 #include <asm/errno.h>
 #include <asm/errno.h>
 
 
@@ -135,7 +136,7 @@ static ssize_t device_read(struct file *filp, /* see include/linux/fs.h */
 
 
     msg_ptr += *offset;
     msg_ptr += *offset;
 
 
-    /* Actually put the date into the buffer */
+    /* Actually put the data into the buffer */
     while (length && *msg_ptr) {
     while (length && *msg_ptr) {
         /**
         /**
          * The buffer is in the user data segment, not the kernel
          * The buffer is in the user data segment, not the kernel