summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2021-11-17 18:08:25 +0530
committerVignesh Raghavendra <vigneshr@ti.com>2021-12-27 20:40:02 +0530
commita33d1db14eb5c72031aaefc0bfbad114e3415a02 (patch)
tree0adb809e7876c166af43054583c6155a1f50bc2a
parentaf8d45d947327131c662f7c9804e1b24b05336f5 (diff)
net/socket: Fix compilation error on non-ARM builds
Fix compilation error on non-ARM builds . Fixes: b98f7ec080e0 ("net: socket: Forward extra timestamp of received skb to user space") Fixes: 89b354a68fd0 ("net: socket: Pass on redundant net info to sock_recv_errqueue") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r--arch/alpha/include/uapi/asm/socket.h6
-rw-r--r--arch/mips/include/uapi/asm/socket.h6
-rw-r--r--arch/parisc/include/uapi/asm/socket.h6
-rw-r--r--arch/sparc/include/uapi/asm/socket.h6
-rw-r--r--tools/include/uapi/asm-generic/socket.h6
5 files changed, 30 insertions, 0 deletions
diff --git a/arch/alpha/include/uapi/asm/socket.h b/arch/alpha/include/uapi/asm/socket.h
index de6c4df61082..28fdd1d8dc61 100644
--- a/arch/alpha/include/uapi/asm/socket.h
+++ b/arch/alpha/include/uapi/asm/socket.h
@@ -148,4 +148,10 @@
#endif
+#define SO_REDUNDANT 80
+#define SCM_REDUNDANT SO_REDUNDANT
+
+#define SO_RED_TIMESTAMPING 81
+#define SCM_RED_TIMESTAMPING SO_RED_TIMESTAMPING
+
#endif /* _UAPI_ASM_SOCKET_H */
diff --git a/arch/mips/include/uapi/asm/socket.h b/arch/mips/include/uapi/asm/socket.h
index d0a9ed2ca2d6..dc3fafcad416 100644
--- a/arch/mips/include/uapi/asm/socket.h
+++ b/arch/mips/include/uapi/asm/socket.h
@@ -159,4 +159,10 @@
#endif
+#define SO_REDUNDANT 80
+#define SCM_REDUNDANT SO_REDUNDANT
+
+#define SO_RED_TIMESTAMPING 81
+#define SCM_RED_TIMESTAMPING SO_RED_TIMESTAMPING
+
#endif /* _UAPI_ASM_SOCKET_H */
diff --git a/arch/parisc/include/uapi/asm/socket.h b/arch/parisc/include/uapi/asm/socket.h
index 10173c32195e..c3b547656337 100644
--- a/arch/parisc/include/uapi/asm/socket.h
+++ b/arch/parisc/include/uapi/asm/socket.h
@@ -139,4 +139,10 @@
#endif
+#define SO_REDUNDANT 0x404F
+#define SCM_REDUNDANT SO_REDUNDANT
+
+#define SO_RED_TIMESTAMPING 0x4050
+#define SCM_RED_TIMESTAMPING SO_RED_TIMESTAMPING
+
#endif /* _UAPI_ASM_SOCKET_H */
diff --git a/arch/sparc/include/uapi/asm/socket.h b/arch/sparc/include/uapi/asm/socket.h
index 8029b681fc7c..12663bbde0e6 100644
--- a/arch/sparc/include/uapi/asm/socket.h
+++ b/arch/sparc/include/uapi/asm/socket.h
@@ -142,4 +142,10 @@
#endif
+#define SO_REDUNDANT 0x0053
+#define SCM_REDUNDANT SO_REDUNDANT
+
+#define SO_RED_TIMESTAMPING 0x0054
+#define SCM_RED_TIMESTAMPING SO_RED_TIMESTAMPING
+
#endif /* _ASM_SOCKET_H */
diff --git a/tools/include/uapi/asm-generic/socket.h b/tools/include/uapi/asm-generic/socket.h
index 77f7c1638eb1..f99e6116749b 100644
--- a/tools/include/uapi/asm-generic/socket.h
+++ b/tools/include/uapi/asm-generic/socket.h
@@ -144,4 +144,10 @@
#endif
+#define SO_REDUNDANT 80
+#define SCM_REDUNDANT SO_REDUNDANT
+
+#define SO_RED_TIMESTAMPING 81
+#define SCM_RED_TIMESTAMPING SO_RED_TIMESTAMPING
+
#endif /* __ASM_GENERIC_SOCKET_H */