From: Stephen Rothwell <hidden> Date: 2017-05-31 05:43:38
asm-generic/socket.h already has an exception for the differences that
powerpc needs, so just include it after defining the differences.
Signed-off-by: Stephen Rothwell <redacted>
---
arch/powerpc/include/uapi/asm/socket.h | 92 +---------------------------------
1 file changed, 1 insertion(+), 91 deletions(-)
Build tested using powerpc allyesconfig, pseries_le_defconfig, 32 bit
and 64 bit allnoconfig and ppc44x_defconfig builds.
Dave, this is on top of the net-next tree and I am sending it to you
since it would produce a conflict if it was merged via the powerpc tree.
On Wed, May 31, 2017 at 7:43 AM, Stephen Rothwell [off-list ref] wrote:
asm-generic/socket.h already has an exception for the differences that
powerpc needs, so just include it after defining the differences.
Signed-off-by: Stephen Rothwell <redacted>
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-05-31 10:15:57
Stephen Rothwell [off-list ref] writes:
asm-generic/socket.h already has an exception for the differences that
powerpc needs, so just include it after defining the differences.
Signed-off-by: Stephen Rothwell <redacted>
---
arch/powerpc/include/uapi/asm/socket.h | 92 +---------------------------------
1 file changed, 1 insertion(+), 91 deletions(-)
Build tested using powerpc allyesconfig, pseries_le_defconfig, 32 bit
and 64 bit allnoconfig and ppc44x_defconfig builds.
Did you boot it and test that userspace was happy doing sockety things?
cheers
From: Stephen Rothwell <hidden> Date: 2017-05-31 11:06:33
Hi Michael,
On Wed, 31 May 2017 20:15:55 +1000 Michael Ellerman [off-list ref] wrote:
Stephen Rothwell [off-list ref] writes:
quoted
asm-generic/socket.h already has an exception for the differences that
powerpc needs, so just include it after defining the differences.
Signed-off-by: Stephen Rothwell <redacted>
---
arch/powerpc/include/uapi/asm/socket.h | 92 +---------------------------------
1 file changed, 1 insertion(+), 91 deletions(-)
Build tested using powerpc allyesconfig, pseries_le_defconfig, 32 bit
and 64 bit allnoconfig and ppc44x_defconfig builds.
Did you boot it and test that userspace was happy doing sockety things?
No, sorry.
The patch was done by inspection, but it is pretty obvious ... here is
the diff between arch/powerpc/include/uapi/asm/socket.h and
include/uapi/asm-generic/socket.h before the patch:
@@ -30,12 +23,14 @@#define SO_LINGER 13#define SO_BSDCOMPAT 14#define SO_REUSEPORT 15-#define SO_RCVLOWAT 16-#define SO_SNDLOWAT 17-#define SO_RCVTIMEO 18-#define SO_SNDTIMEO 19-#define SO_PASSCRED 20-#define SO_PEERCRED 21+#ifndef SO_PASSCRED /* powerpc only differs in these */+#define SO_PASSCRED 16+#define SO_PEERCRED 17+#define SO_RCVLOWAT 18+#define SO_SNDLOWAT 19+#define SO_RCVTIMEO 20+#define SO_SNDTIMEO 21+#endif/* Security levels - as per NRL IPv6 - don't actually do anything */#define SO_SECURITY_AUTHENTICATION 22
@@ -71,7 +66,7 @@#define SO_RXQ_OVFL 40#define SO_WIFI_STATUS 41-#define SCM_WIFI_STATUS SO_WIFI_STATUS+#define SCM_WIFI_STATUS SO_WIFI_STATUS#define SO_PEEK_OFF 42/* Instruct lower device to use last 4-bytes of skb data as FCS */
From: David Miller <davem@davemloft.net> Date: 2017-06-01 18:48:28
From: Stephen Rothwell <redacted>
Date: Wed, 31 May 2017 15:43:37 +1000
asm-generic/socket.h already has an exception for the differences that
powerpc needs, so just include it after defining the differences.
Signed-off-by: Stephen Rothwell <redacted>
---
arch/powerpc/include/uapi/asm/socket.h | 92 +---------------------------------
1 file changed, 1 insertion(+), 91 deletions(-)
Build tested using powerpc allyesconfig, pseries_le_defconfig, 32 bit
and 64 bit allnoconfig and ppc44x_defconfig builds.
Dave, this is on top of the net-next tree and I am sending it to you
since it would produce a conflict if it was merged via the powerpc tree.