summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2018-12-21 17:47:53 -0600
committerSam Nelson <sam.nelson@ti.com>2019-02-18 14:50:13 -0500
commit7007b8adff409fd8c90757c9adafd264a3ff15e3 (patch)
tree3040be5a0035f2b3d4781b5fe508bae25114b527
parentf68ca6cec06ecc6296228b148b175584aa0f2c8c (diff)
downloadipc-3.50-next.tar.gz
Linux: Update user AF_RPMSG define for 4.18+ kernels3.50.03.05ipc-3.50-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 4.18 (AF_XDP), and as a result, the AF_RPMSG macro needs to be set to 45 post 4.18 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: Suman Anna <s-anna@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 6c59086..6eab3c6 100644
--- a/linux/include/net/rpmsg.h
+++ b/linux/include/net/rpmsg.h
@@ -54,8 +54,10 @@
#define AF_RPMSG 42
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
#define AF_RPMSG 43
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)
#define AF_RPMSG 44
+#else
+#define AF_RPMSG 45
#endif /* LINUX_VERSION_CODE */
#endif /* AF_RPMSG */