hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/rpmsg.h
....@@ -145,6 +145,8 @@
145145 int rpmsg_get_signals(struct rpmsg_endpoint *ept);
146146 int rpmsg_set_signals(struct rpmsg_endpoint *ept, u32 set, u32 clear);
147147
148
+ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept);
149
+
148150 #else
149151
150152 static inline int register_rpmsg_device(struct rpmsg_device *dev)
....@@ -269,6 +271,14 @@
269271 return -ENXIO;
270272 }
271273
274
+static inline ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept)
275
+{
276
+ /* This shouldn't be possible */
277
+ WARN_ON(1);
278
+
279
+ return -ENXIO;
280
+}
281
+
272282 #endif /* IS_ENABLED(CONFIG_RPMSG) */
273283
274284 /* use a macro to avoid include chaining to get THIS_MODULE */