From 208d81929722a575077bd2620cea1a589396582b Mon Sep 17 00:00:00 2001 From: yinwenjie Date: Fri, 17 Jan 2025 08:47:43 +0800 Subject: [PATCH] Second attempt of assignment 8 --- aesd-char-driver/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aesd-char-driver/main.c b/aesd-char-driver/main.c index 6c2f462..99c8004 100644 --- a/aesd-char-driver/main.c +++ b/aesd-char-driver/main.c @@ -18,6 +18,7 @@ #include #include #include // file_operations +#include #include "aesdchar.h" int aesd_major = 0; // use dynamic major int aesd_minor = 0; @@ -53,6 +54,7 @@ int aesd_release(struct inode *inode, struct file *filp) ssize_t aesd_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) { + ssize_t retval = 0; struct aesd_dev *dev = filp->private_data; size_t entry_offset; struct aesd_buffer_entry *entry;