forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/ppp/ppp_synctty.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PPP synchronous tty channel driver for Linux.
34 *
....@@ -14,11 +15,6 @@
1415 * Copyright 1999 Paul Mackerras.
1516 *
1617 * Also touched by the grubby hands of Paul Fulghum paulkf@microgate.com
17
- *
18
- * This program is free software; you can redistribute it and/or
19
- * modify it under the terms of the GNU General Public License
20
- * as published by the Free Software Foundation; either version
21
- * 2 of the License, or (at your option) any later version.
2218 *
2319 * This driver provides the encapsulation and framing for sending
2420 * and receiving PPP frames over sync serial lines. It relies on
....@@ -261,7 +257,8 @@
261257 */
262258 static ssize_t
263259 ppp_sync_read(struct tty_struct *tty, struct file *file,
264
- unsigned char __user *buf, size_t count)
260
+ unsigned char *buf, size_t count,
261
+ void **cookie, unsigned long offset)
265262 {
266263 return -EAGAIN;
267264 }