From: Sam Erickson Date: Wed, 5 Jul 2023 15:14:49 +0000 (-0500) Subject: static_key: Include (#210) X-Git-Tag: latest~26 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=9e9f5a8bf808e2820382ad385e4b0220ae8299ea;p=lkmpg static_key: Include (#210) --- diff --git a/examples/static_key.c b/examples/static_key.c index 1662835..9a9b8f9 100644 --- a/examples/static_key.c +++ b/examples/static_key.c @@ -10,6 +10,7 @@ #include #include #include /* for get_user and put_user */ +#include /* for static key macros */ #include @@ -135,7 +136,7 @@ static ssize_t device_read(struct file *filp, /* see include/linux/fs.h */ msg_ptr += *offset; - /* Actually put the date into the buffer */ + /* Actually put the data into the buffer */ while (length && *msg_ptr) { /** * The buffer is in the user data segment, not the kernel