From 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:44:59 +0000 Subject: [PATCH] gmac get mac form eeprom --- 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