Fix compile error #158

This commit is contained in:
derry 2022-07-14 14:00:38 +08:00
parent 49d76a1dcf
commit 84b4ce30de

View File

@ -234,7 +234,9 @@ void load_feature_buf_from_file(char **config_buf)
{
struct inode *inode = NULL;
struct file *fp = NULL;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 7, 19)
mm_segment_t fs;
#endif
off_t size;
fp = filp_open(AF_FEATURE_CONFIG_FILE, O_RDONLY, 0);