Skip to content
Snippets Groups Projects
Commit 5d1b1b4b authored by Anna Ranz's avatar Anna Ranz Committed by A. Hahn
Browse files

wishbone: add support for kernel >=6.12.0

parent ab2ef26e
Branches
Tags v1.0.2
No related merge requests found
......@@ -663,7 +663,7 @@ static const struct file_operations etherbone_master_fops = {
.fasync = char_master_fasync,
};
#else
#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
static const struct file_operations etherbone_master_fops = {
.owner = THIS_MODULE,
......@@ -678,6 +678,22 @@ static const struct file_operations etherbone_master_fops = {
.fasync = char_master_fasync,
};
#else
static const struct file_operations etherbone_master_fops = {
.owner = THIS_MODULE,
/* no_llseek defined to NULL in 868941b14441*/
/* no_llseek finally removed in 6.12.0 */
//.read = new_sync_read,
.read_iter = char_master_aio_read_iter,
//.write = new_sync_write,
.write_iter = char_master_aio_write_iter,
.open = char_master_open,
.poll = char_master_poll,
.release = char_master_release,
.fasync = char_master_fasync,
};
#endif
//ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment