Skip to content

Commit 9e9f5a8

Browse files
static_key: Include <linux/jump_label.h> (#210)
1 parent befbaf0 commit 9e9f5a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/static_key.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/printk.h>
1111
#include <linux/types.h>
1212
#include <linux/uaccess.h> /* for get_user and put_user */
13+
#include <linux/jump_label.h> /* for static key macros */
1314

1415
#include <asm/errno.h>
1516

@@ -135,7 +136,7 @@ static ssize_t device_read(struct file *filp, /* see include/linux/fs.h */
135136

136137
msg_ptr += *offset;
137138

138-
/* Actually put the date into the buffer */
139+
/* Actually put the data into the buffer */
139140
while (length && *msg_ptr) {
140141
/**
141142
* The buffer is in the user data segment, not the kernel

0 commit comments

Comments
 (0)