Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compiler warning with kernel version 6.6 #220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xmm7360.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,13 @@ static void xmm7360_tty_close(struct tty_struct *tty, struct file *filp)
tty_port_close(&qp->port, tty, filp);
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
static ssize_t xmm7360_tty_write(struct tty_struct *tty,
const unsigned char *buffer, size_t count)
#else
static int xmm7360_tty_write(struct tty_struct *tty,
const unsigned char *buffer, int count)
#endif
{
struct queue_pair *qp = tty->driver_data;
int written;
Expand Down