Skip to content

Commit 46ad350

Browse files
authored
Merge pull request #18 from EricccTaiwan/owner
Drop .owner for kernel >= 6.4
2 parents 36eb387 + 8ccb040 commit 46ad350

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: main.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,13 @@ static int kxo_release(struct inode *inode, struct file *filp)
442442
}
443443

444444
static const struct file_operations kxo_fops = {
445+
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
446+
.owner = THIS_MODULE,
447+
#endif
445448
.read = kxo_read,
446449
.llseek = no_llseek,
447450
.open = kxo_open,
448451
.release = kxo_release,
449-
.owner = THIS_MODULE,
450452
};
451453

452454
static int __init kxo_init(void)

0 commit comments

Comments
 (0)