commit c6f441a33dd (net/rpmsg: add support for new rpmsg sockets) adds
a new socket address AF_RPMSG, the AF_MAX should be incremented accordingly.
To avoid below call trace:
net/core/sock.c:233:21: error: excess elements in array initializer [-Werror]
| 233 | _sock_locks("sk_lock-")
Signed-off-by: Xulin Sun <[email protected]>
---
include/linux/socket.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/include/linux/socket.h b/include/linux/socket.h
index 6ec661deb432..ef57dbba6c5f 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -223,12 +223,11 @@ struct ucred {
* reuses AF_INET address family
*/
#define AF_XDP 44 /* XDP sockets */
-#define AF_RPMSG 45 /* Remote-processor messaging */
-#define AF_MAX 46 /* For now.. */
-
-#define AF_MCTP 47 /* Management component
+#define AF_MCTP 45 /* Management component
* transport protocol
*/
+#define AF_RPMSG 46 /* Remote-processor messaging */
+#define AF_MAX 47 /* For now.. */
/* Protocol families, same as address families. */
#define PF_UNSPEC AF_UNSPEC
--
2.35.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11123):
https://lists.yoctoproject.org/g/linux-yocto/message/11123
Mute This Topic: https://lists.yoctoproject.org/mt/90283473/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-