powerpc: use the asm-genric versions of some uapi includes
PATCH 1/1 powerpc: use the asm-genric versions of some uapi includes
These are completely obvious as all they do is include the asm-generic versions.
--- arch/powerpc/include/uapi/asm/Kbuild | 5 +++++ arch/powerpc/include/uapi/asm/param.h | 1 - arch/powerpc/include/uapi/asm/poll.h | 1 - arch/powerpc/include/uapi/asm/resource.h | 1 - arch/powerpc/include/uapi/asm/statfs.h | 6 ------ 5 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 arch/powerpc/include/uapi/asm/param.h delete mode 100644 arch/powerpc/include/uapi/asm/poll.h delete mode 100644 arch/powerpc/include/uapi/asm/resource.h delete mode 100644 arch/powerpc/include/uapi/asm/statfs.h
Compile tested with powerpc ppc64_defconfig and headers_install output compared with only the include guards different (in statfs.h).
arch/powerpc/include/uapi/asm/Kbuild +5 -0
@@ -1,2 +1,7 @@ # UAPI Header export list include include/uapi/asm-generic/Kbuild.asm + +generic-y += param.h +generic-y += poll.h +generic-y += resource.h +generic-y += statfs.h
arch/powerpc/include/uapi/asm/param.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/param.h>
arch/powerpc/include/uapi/asm/poll.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/poll.h>
arch/powerpc/include/uapi/asm/resource.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/resource.h>
arch/powerpc/include/uapi/asm/statfs.h deleted +0 -6
@@ -1,6 +0,0 @@ -#ifndef _ASM_POWERPC_STATFS_H -#define _ASM_POWERPC_STATFS_H - -#include <asm-generic/statfs.h> - -#endif
Signature · 5 lines
2.11.0 -- Cheers, Stephen Rothwell
PATCH 1/1 powerpc: use uapi/asm-generic/sockios.h
Hi all,
The arch version is identical except for comments and white space.
--- arch/powerpc/include/uapi/asm/Kbuild | 1 + arch/powerpc/include/uapi/asm/sockios.h | 20 -------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 arch/powerpc/include/uapi/asm/sockios.h
This follows on from my previous "powerpc: use the asm-genric versions of some uapi includes".
arch/powerpc/include/uapi/asm/Kbuild +1 -0
@@ -4,4 +4,5 @@ include include/uapi/asm-generic/Kbuild.asm generic-y += param.h generic-y += poll.h generic-y += resource.h +generic-y += sockios.h generic-y += statfs.h
arch/powerpc/include/uapi/asm/sockios.h deleted +0 -20
@@ -1,20 +0,0 @@ -#ifndef _ASM_POWERPC_SOCKIOS_H -#define _ASM_POWERPC_SOCKIOS_H - -/* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version -* 2 of the License, or (at your option) any later version. -*/ - -/* Socket-level I/O control calls. */ -#define FIOSETOWN 0x8901 -#define SIOCSPGRP 0x8902 -#define FIOGETOWN 0x8903 -#define SIOCGPGRP 0x8904 -#define SIOCATMARK 0x8905 -#define SIOCGSTAMP 0x8906/* Get stamp (timeval) */ -#define SIOCGSTAMPNS 0x8907/* Get stamp (timespec) */ - -#endif /* _ASM_POWERPC_SOCKIOS_H */
Signature · 5 lines
2.11.0 -- Cheers, Stephen Rothwell
Re: [PATCH] powerpc: use uapi/asm-generic/sockios.h
Quoted 5 lines · Stephen Rothwell
Hi all,
The arch version is identical except for comments and white space.
Signed-off-by Stephen Rothwell <[email protected]>
Re: [PATCH] powerpc: use uapi/asm-generic/sockios.h
Hi Arnd,
Quoted 9 lines · On Fri, 26 May 2017 11:59:23 +0200 Arnd Bergmann <[email protected]> wrote:
Quoted 5 lines · Stephen Rothwell
Hi all,
The arch version is identical except for comments and white space.
Signed-off-by Stephen Rothwell <[email protected]>Acked-by Arnd Bergmann <[email protected]>
Thanks.
Signature · 2 lines
Cheers, Stephen Rothwell
Michael Ellerman
AppliedRe: powerpc: use uapi/asm-generic/sockios.h
In reply to Stephen RothwellQuoted 6 lines · Stephen Rothwell
Hi all,
The arch version is identical except for comments and white space.
Signed-off-by Stephen Rothwell <[email protected]>Acked-by Arnd Bergmann <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/308d263d3f28e816b0d7425ef8b35d
cheers
Quoted 4 lines · Stephen Rothwell
These are completely obvious as all they do is include the asm-generic versions.
Signed-off-by Stephen Rothwell <[email protected]>
I think I had a patch series to do those some 10 years ago and never submitted it ;-)
asm/sockios.h is identical to the asm-generic version, so we can do the same there.
asm/swab.h is functionally identical, the asm-generic version also has a workaround for non-gcc compilers.
asm/socket.h would also be easy to change so we mostly use asm-generic, the generic version already has a special case for powerpc.
Hi Arnd,
Quoted 3 lines · On Fri, 26 May 2017 11:58:26 +0200 Arnd Bergmann <[email protected]> wrote:
I think I had a patch series to do those some 10 years ago and never submitted it ;-)
Ah ha! :-)
Quoted 4 lines
Acked-by Arnd Bergmann <[email protected]>
asm/sockios.his identical to the asm-generic version, so we can do the same there.
Yes, I see you found the next patch :-)
Quoted 2 lines
asm/swab.his functionally identical, the asm-generic version also has a workaround for non-gcc compilers.
I'll have a look.
Quoted 3 lines
asm/socket.hwould also be easy to change so we mostly use asm-generic, the generic version already has a special case for powerpc.
Yes, that is what I was aiming at, but I will submit that to the networking tree as they have a patch to that powerpc file already which is why I noticed at all.
Signature · 2 lines
Cheers, Stephen Rothwell
Michael Ellerman
AppliedQuoted 5 lines · Stephen Rothwell
These are completely obvious as all they do is include the asm-generic versions.
Signed-off-by Stephen Rothwell <[email protected]>Acked-by Arnd Bergmann <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/b87901e6ec782b881224e1723eb142
cheers