[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c6fb6676-a8d3-8893-660c-2b9899c5d5ab@de.ibm.com>
Date: Mon, 5 Mar 2018 10:30:26 +0100
From: Christian Borntraeger <borntraeger@...ibm.com>
To: Deepa Dinamani <deepa.kernel@...il.com>, tglx@...utronix.de,
john.stultz@...aro.org
Cc: linux-kernel@...r.kernel.org, arnd@...db.de,
y2038@...ts.linaro.org, acme@...nel.org, benh@...nel.crashing.org,
catalin.marinas@....com, cmetcalf@...lanox.com, cohuck@...hat.com,
davem@...emloft.net, deller@....de, devel@...verdev.osuosl.org,
gerald.schaefer@...ibm.com, gregkh@...uxfoundation.org,
heiko.carstens@...ibm.com, hoeppner@...ux.vnet.ibm.com,
hpa@...or.com, jejb@...isc-linux.org, jwi@...ux.vnet.ibm.com,
linux-mips@...ux-mips.org, linux-parisc@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-s390@...r.kernel.org,
mark.rutland@....com, mingo@...hat.com, mpe@...erman.id.au,
oberpar@...ux.vnet.ibm.com, oprofile-list@...ts.sf.net,
paulus@...ba.org, peterz@...radead.org, ralf@...ux-mips.org,
rostedt@...dmis.org, rric@...nel.org, schwidefsky@...ibm.com,
sebott@...ux.vnet.ibm.com, sparclinux@...r.kernel.org,
sth@...ux.vnet.ibm.com, ubraun@...ux.vnet.ibm.com,
will.deacon@....com, x86@...nel.org
Subject: Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to
compat_time.h
On 01/16/2018 03:18 AM, Deepa Dinamani wrote:
> All the current architecture specific defines for these
> are the same. Refactor these common defines to a common
> header file.
>
> The new common linux/compat_time.h is also useful as it
> will eventually be used to hold all the defines that
> are needed for compat time types that support non y2038
> safe types. New architectures need not have to define these
> new types as they will only use new y2038 safe syscalls.
> This file can be deleted after y2038 when we stop supporting
> non y2038 safe syscalls.
You are now include a <linux/*.h> from several asm files
(
arch/arm64/include/asm/stat.h
arch/s390/include/asm/elf.h
arch/x86/include/asm/ftrace.h
arch/x86/include/asm/sys_ia32.h
)
It works, and it is done in many places, but it looks somewhat weird.
Would it make sense to have an asm-generic/compate-time.h instead? Asking for
opinions here.
>
> The patch also requires an operation similar to:
>
> git grep "asm/compat\.h" | cut -d ":" -f 1 | xargs -n 1 sed -i -e "s%asm/compat.h%linux/compat.h%g"
some comments from the s390 perspective:
> --- a/arch/s390/hypfs/hypfs_sprp.c
> +++ b/arch/s390/hypfs/hypfs_sprp.c
ok.
[...]
> --- a/arch/s390/include/asm/elf.h
> +++ b/arch/s390/include/asm/elf.h
> @@ -126,7 +126,7 @@
> */
>
> #include <asm/ptrace.h>
> -#include <asm/compat.h>
> +#include <linux/compat.h>
> #include <asm/syscall.h>
> #include <asm/user.h>
see above.
[...]
> --- a/arch/s390/kvm/priv.c
> +++ b/arch/s390/kvm/priv.c
ok
> --- a/arch/s390/pci/pci_clp.c
> +++ b/arch/s390/pci/pci_clp.c
ok
> --- a/drivers/s390/block/dasd_ioctl.c
> +++ b/drivers/s390/block/dasd_ioctl.c
ok
> --- a/drivers/s390/char/fs3270.c
> +++ b/drivers/s390/char/fs3270.c
ok
> --- a/drivers/s390/char/sclp_ctl.c
> +++ b/drivers/s390/char/sclp_ctl.c
ok
> --- a/drivers/s390/char/vmcp.c
> +++ b/drivers/s390/char/vmcp.c
ok
> --- a/drivers/s390/cio/chsc_sch.c
> +++ b/drivers/s390/cio/chsc_sch.c
ok
> --- a/drivers/s390/net/qeth_core_main.c
> +++ b/drivers/s390/net/qeth_core_main.c
> @@ -32,7 +32,7 @@
> #include <asm/chpid.h>
> #include <asm/io.h>
> #include <asm/sysinfo.h>
> -#include <asm/compat.h>
> +#include <linux/compat.h>
> #include <asm/diag.h>
> #include <asm/cio.h>
> #include <asm/ccwdev.h>
Can you move that into the other includes (where all the other <linux/*> includes are.
Powered by blists - more mailing lists