Received: by 10.223.185.116 with SMTP id b49csp3770497wrg; Tue, 6 Mar 2018 04:49:58 -0800 (PST) X-Google-Smtp-Source: AG47ELvMji08dqs6yBJhykVtur8uvO2lsNnaXHiUneUyrepOfrGVXk0puNMqhElkKGb4cfRGrXAV X-Received: by 10.99.119.130 with SMTP id s124mr5364996pgc.64.1520340598667; Tue, 06 Mar 2018 04:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520340598; cv=none; d=google.com; s=arc-20160816; b=tJuFvTd4vVxHsdC4ZlkUZMW8V7Lp6sxDAXw4vi3OgmuUM5BJsVgbYHEKJow4SdemrX O//V3Ow67yWQCpXjgdLllgAC7AAWFqYd68FfluzEJUqJO8fQFzOC645FGu4ABCpB04mX RXxIC1xoCGFDH0FDwk6aCwWsCMhEKWMqij0MVBdIAQMEDgxMAu/PeebB8FdMiYFt6d7h 3cJfSBf0g5cco2qyHnCUyZjgk8Z9CKEF8uvcU7GkFPVpc4biWUCvsSA0EIesk53T9x77 CIInxqEpU8StuTp3TS9U2IJ+0V6U77MiRQqFsoy4haVUzGhAq6dLQoPhR9X/Ry8i3Tzv R23w== 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=SgNHHXPQKE0s5LAcAJoJBfeiPbbgUk4UVt4EAtRI+II=; b=rcIu6KRm0bq4d1ecPQasG+t65Y8wtnXR1deLP38zAeuBBfxUunIVlsh3lZpDoHCJEa 1Mi4LSGU5kM05xy13FQF4iVYLuzyUiKVdCM0xntXXx5IeimIptygyTlBhQh+fR3cTpik iITpqAxP4yBYmVkgck/DZ22I8/4q7elYPCVqTsGmui5gqsqQzMe8RJ9o7YcFpH+C2Rxe xvFnxjxVCsx5hi41AWhuBgIQ22o3EMgw9Ubzqk3jHYyaKTaEktOJ0RHLvBUPXPrbgMhZ TBw0dPrMS+d39EU326jE+QM04wwa0mGUiRGsmScXtWFiNWQxbQlloxIIuH91Tp6V5im+ onPQ== 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 g6si9769719pgu.737.2018.03.06.04.49.43; Tue, 06 Mar 2018 04:49:58 -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 S1753687AbeCFMsi (ORCPT + 99 others); Tue, 6 Mar 2018 07:48:38 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47728 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753454AbeCFMsf (ORCPT ); Tue, 6 Mar 2018 07:48:35 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w26Cj0mT016879 for ; Tue, 6 Mar 2018 07:48:35 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ghsmncra8-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 06 Mar 2018 07:48:35 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Mar 2018 12:48:32 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 6 Mar 2018 12:48:24 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w26CmNal58916914; Tue, 6 Mar 2018 12:48:23 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 312714C04E; Tue, 6 Mar 2018 12:41:47 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C0F1F4C044; Tue, 6 Mar 2018 12:41:45 +0000 (GMT) Received: from oc7330422307.ibm.com (unknown [9.152.98.109]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 6 Mar 2018 12:41:45 +0000 (GMT) Subject: Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h To: Arnd Bergmann Cc: Deepa Dinamani , Thomas Gleixner , John Stultz , Mark Rutland , "open list:RALINK MIPS ARCHITECTURE" , Peter Zijlstra , Heiko Carstens , Paul Mackerras , "H. Peter Anvin" , sparclinux , devel@driverdev.osuosl.org, linux-s390 , y2038 Mailman List , Helge Deller , the arch/x86 maintainers , sebott@linux.vnet.ibm.com, "James E.J. Bottomley" , Will Deacon , Ingo Molnar , oprofile-list@lists.sf.net, Catalin Marinas , Robert Richter , Chris Metcalf , Peter Oberparleiter , Arnaldo Carvalho de Melo , Julian Wiedmann , Steven Rostedt , Ursula Braun , gerald.schaefer@de.ibm.com, Parisc List , gregkh , cohuck@redhat.com, Linux Kernel Mailing List , Ralf Baechle , Jan Hoeppner , Stefan Haberland , Martin Schwidefsky , linuxppc-dev , David Miller References: <20180116021818.24791-1-deepa.kernel@gmail.com> <20180116021818.24791-3-deepa.kernel@gmail.com> From: Christian Borntraeger Date: Tue, 6 Mar 2018 13:48:22 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18030612-0008-0000-0000-000004D86BB6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030612-0009-0000-0000-00001E6B8210 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-06_06:,, 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=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803060145 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/06/2018 01:46 PM, Arnd Bergmann wrote: > On Mon, Mar 5, 2018 at 10:30 AM, Christian Borntraeger > wrote: >> 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. > > I don't think we have such a rule. If a header file is common to all > architectures (i.e. no architecture uses a different implementation), > it should be in include/linux rather than include/asm-generic, regardless > of whether it can be used by assembler files or not. > >>> --- 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. > > Good catch, this is definitely a rule we have ;-) FWIW, this was also broken for arch/x86/include/asm/sys_ia32.h