sysprog21 / simplefs

A simple native file system for Linux kernel
Other
374 stars 91 forks source link

Fix unused variable warning #48

Closed HotMercury closed 5 months ago

HotMercury commented 5 months ago

The variable cur_time in inode.c is now conditionally declared and used only when the kernel version is 6.6.0. Therefore, anothercondition needs to be added to check for its declaration, or it should be only declared when used.

jserv commented 5 months ago

Thank @HotMercury for contributing!