summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinthu Raja <sinthu.raja@ti.com>2024-02-20 10:35:17 +0000
committerSuman Anna <s-anna@ti.com>2024-03-13 11:38:01 -0500
commitea3344cbf193ca356eac4e089a0bf963b264932a (patch)
tree2907edf526a26283041b5db6b1a01a168aaea8ad
parentf9025fdc15d1a46914bafb071a5924b1a84abedc (diff)
downloadipc-master.tar.gz
Linux: Update user AF_RPMSG define for 5.15+ kernelsHEAD3.52.00.00masteripc-next
IPC's Linux user space support contains a copy of a few kernel-defined structs and definitions including the socket address family used for rpmsg-based sockets - AF_RPMSG. This driver is currently out-of-tree and so it's definition is always 'one more' than the last address family defined by the mainline kernel's socket.h. A new address family was introduced in 5.15 (AF_MCTP), and as a result, the AF_RPMSG macro needs to be set to 46 post 5.15 kernel. The user space header has been updated to reflect on the kernel version and appropriately assign the value of AF_RPMSG. Do note that a specific value of AF_RPMSG can always be provided through the products.mak when KERNEL_INSTALL_DIR is not set. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
-rw-r--r--linux/include/net/rpmsg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/include/net/rpmsg.h b/linux/include/net/rpmsg.h
index 6eab3c6..85c6ee5 100644
--- a/linux/include/net/rpmsg.h
+++ b/linux/include/net/rpmsg.h
@@ -56,8 +56,10 @@
#define AF_RPMSG 43
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)
#define AF_RPMSG 44
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
#define AF_RPMSG 45
+#else
+#define AF_RPMSG 46
#endif /* LINUX_VERSION_CODE */
#endif /* AF_RPMSG */