Skip to content

Commit 06e424f

Browse files
authoredApr 14, 2025
Merge pull request #12 from EricccTaiwan/main
Drop .owner for kernel >= 6.4
2 parents 92296de + 019e3b5 commit 06e424f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎simrupt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,13 @@ static int simrupt_release(struct inode *inode, struct file *filp)
322322
}
323323

324324
static const struct file_operations simrupt_fops = {
325+
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
326+
.owner = THIS_MODULE,
327+
#endif
325328
.read = simrupt_read,
326329
.llseek = no_llseek,
327330
.open = simrupt_open,
328331
.release = simrupt_release,
329-
.owner = THIS_MODULE,
330332
};
331333

332334
static int __init simrupt_init(void)

0 commit comments

Comments
 (0)
Please sign in to comment.