Received: by 10.223.185.116 with SMTP id b49csp2390074wrg; Mon, 5 Mar 2018 01:55:45 -0800 (PST) X-Google-Smtp-Source: AG47ELvbNYmsd7EBBgWWF6jBhSUC9sHbw8dqLeGXG8580zlhUWbU/toQ3T1fvXuWg+ypVJE6nHY3 X-Received: by 2002:a17:902:7b85:: with SMTP id w5-v6mr12861351pll.131.1520243744931; Mon, 05 Mar 2018 01:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520243744; cv=none; d=google.com; s=arc-20160816; b=beIALDEZqk64Uyv7NeZ42O5saxp9+8cB8cywZvxKIf8rE3QrApszirjJvyvnGO2fqI REL21imQSm9n71nn4qzU37Mxm8yqiL9Y4ZX9YsA3gVaLkqHwYVo2VBk5/PC448c+VmCh liv6fCyas/TQn6t7fPFoAsHwxAS4dZJ5jdbACmnl3WNV11d9eVdhpS6xbvx/k9OmWykE 8ZfEoCZuGbaxGTCM6x2j+OEt9ugYz8NUjT03DQ4vyLMIziGfuTTMCPNWBEiTdAADZEHT Z6qlKZ+3gGQhe0SNrQNsdAoZIlp1RoFzLr9Jc+uZuR+De+RXbqM7rEAkqSR2/13H6t0E Pfug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=6gu135xJV7xAVumoi5TVUnsCNMymNSoJc6Lq6N7Fv3g=; b=skm02ow1+puLCfZsWT/Kj/3QNMUrKz+Nn3Z/iTnpF5GHvqD3PFFLQ3A252BzfKH5W8 U4hFnjniuxnV5zpN5NzqhdSUpo4T67Cqc9tEhgSJquhWu5wWpBGOXD9cLoi4U8QBpcYw 1q7qAXo7qFy3vNKjRgucSJ2V182uPnyyee+ObrsgeBzceU0sI8vbWXyXl4yeCTP5C9gN lLzJk2LmtA3EvxkYSbgqU4Ks8yBfO25gm0fFlhKoH0JVf8h7xaK9PxivsFSRLxAVmOdv +DIkB2Hpk3HQXEEP65nMcWc5Vbxroaa/Luz3vfAQ1LWWulGs57sn7zlw08RqMc7Y5+Mn LyAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si8194075pgc.357.2018.03.05.01.55.30; Mon, 05 Mar 2018 01:55:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933555AbeCEJaq (ORCPT + 99 others); Mon, 5 Mar 2018 04:30:46 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37488 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933469AbeCEJam (ORCPT ); Mon, 5 Mar 2018 04:30:42 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w259SqQv125035 for ; Mon, 5 Mar 2018 04:30:41 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gh2j41y2s-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 05 Mar 2018 04:30:41 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Mar 2018 09:30:37 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 5 Mar 2018 09:30:28 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w259US1T58458212; Mon, 5 Mar 2018 09:30:28 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CF93CA4055; Mon, 5 Mar 2018 09:23:26 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5701DA4059; Mon, 5 Mar 2018 09:23:25 +0000 (GMT) Received: from oc7330422307.ibm.com (unknown [9.152.224.177]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 5 Mar 2018 09:23:25 +0000 (GMT) Subject: Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h To: Deepa Dinamani , tglx@linutronix.de, john.stultz@linaro.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org, acme@kernel.org, benh@kernel.crashing.org, catalin.marinas@arm.com, cmetcalf@mellanox.com, cohuck@redhat.com, davem@davemloft.net, deller@gmx.de, devel@driverdev.osuosl.org, gerald.schaefer@de.ibm.com, gregkh@linuxfoundation.org, heiko.carstens@de.ibm.com, hoeppner@linux.vnet.ibm.com, hpa@zytor.com, jejb@parisc-linux.org, jwi@linux.vnet.ibm.com, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, mpe@ellerman.id.au, oberpar@linux.vnet.ibm.com, oprofile-list@lists.sf.net, paulus@samba.org, peterz@infradead.org, ralf@linux-mips.org, rostedt@goodmis.org, rric@kernel.org, schwidefsky@de.ibm.com, sebott@linux.vnet.ibm.com, sparclinux@vger.kernel.org, sth@linux.vnet.ibm.com, ubraun@linux.vnet.ibm.com, will.deacon@arm.com, x86@kernel.org References: <20180116021818.24791-1-deepa.kernel@gmail.com> <20180116021818.24791-3-deepa.kernel@gmail.com> From: Christian Borntraeger Date: Mon, 5 Mar 2018 10:30:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180116021818.24791-3-deepa.kernel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18030509-0040-0000-0000-0000041AD39A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030509-0041-0000-0000-0000261DE199 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-05_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803050113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > -#include > +#include > #include > #include 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 > #include > #include > -#include > +#include > #include > #include > #include Can you move that into the other includes (where all the other includes are.