From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 22 Oct 2024 10:36:11 +0000 Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM --- kernel/include/linux/rpmsg.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/include/linux/rpmsg.h b/kernel/include/linux/rpmsg.h index 7cbb0fb..f4e0cd6 100644 --- a/kernel/include/linux/rpmsg.h +++ b/kernel/include/linux/rpmsg.h @@ -145,6 +145,8 @@ int rpmsg_get_signals(struct rpmsg_endpoint *ept); int rpmsg_set_signals(struct rpmsg_endpoint *ept, u32 set, u32 clear); +ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept); + #else static inline int register_rpmsg_device(struct rpmsg_device *dev) @@ -269,6 +271,14 @@ return -ENXIO; } +static inline ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept) +{ + /* This shouldn't be possible */ + WARN_ON(1); + + return -ENXIO; +} + #endif /* IS_ENABLED(CONFIG_RPMSG) */ /* use a macro to avoid include chaining to get THIS_MODULE */ -- Gitblit v1.6.2