Received: by 10.213.65.68 with SMTP id h4csp199181imn; Mon, 12 Mar 2018 11:01:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELu8ehlHgB8YkTslgxURajjzg9epnf5Dski78g1wcWKKDfMHVaxqGyFgy9ceDbnL1sIZYDiS X-Received: by 10.99.96.141 with SMTP id u135mr3744469pgb.49.1520877696935; Mon, 12 Mar 2018 11:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520877696; cv=none; d=google.com; s=arc-20160816; b=Nr/gZOn+ChbbRhgkCo/BUZSa7OVfd4mWNq6iydbSppcBSDnVD6wcb0sV1QwInbpjcL vUFZTotPnhV7uGIGm4CSDO6+foYxmNVkp+zkK0EhXntIfQ2wKhx1FgK0er9MUxlrlH0i 8ufUre29f2wXcJ0YaCZC+1DNJk0xd2kYofK4jOLvekZYDIckVovMatlv9FDjTbXL/Zad DYJf7C96K0jeKxxQ27JpbOBHIAC4jxdnB8nOfEkx4Q/Cx9icFRk5CYPysr2pexocY56S zuGsPBKv9lJWZvWsTvqM/5lu9Cj7PIiKckLMJLEJRriBrwTH9o28eJMUvhAY/ipeAfb9 b1xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ElH4sAgG6jjT48s9ldSGD+nZ3K41SP2AmoM037n1vOw=; b=jKdT5Vq8xbzSd+kaD4vzeED2Z6/QsRefeYQzJFA8YtebFEiZW5S081nBKJSHcauX5Q RTaKW+9rmnGk3BiPNi41AVWsvBSLoJU4GmgDOpefLd0IIU3kGacIWBZ+uKJhu/UezTPD hFaJuPLMa/avqE9F+Yy3bPd0NzFvwhtEmSZoXTesbDqOZeB2MQN2Lsw5afsdYSsjgeQc fN0jLEqsfG2xRg3wnepL4fsebIBUdjWSzYTPwXn7CckaHl1najxIW+8FPIkSNCgYbMUR jGP4iyU22Ynw9P8dEU6NzAeG+0bxRkaCDVdJ4mvW2rUCNIlWXaAHi4Yi8qK6sfDt8Ck3 FeeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QWcECNJd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si5396291pgn.275.2018.03.12.11.01.18; Mon, 12 Mar 2018 11:01:36 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QWcECNJd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932915AbeCLR77 (ORCPT + 99 others); Mon, 12 Mar 2018 13:59:59 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:50656 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932895AbeCLR7z (ORCPT ); Mon, 12 Mar 2018 13:59:55 -0400 Received: by mail-it0-f68.google.com with SMTP id d13so12331580itf.0; Mon, 12 Mar 2018 10:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ElH4sAgG6jjT48s9ldSGD+nZ3K41SP2AmoM037n1vOw=; b=QWcECNJdF5bwRxTA8TRk2LyD/NzYY/z54YFfpTHmSd6YoJGczEIKH9AUmv9AypyKx2 uWLAURe1K0RPH3WbvDcobqlT3wXxzgJqc9dXQ6B+UJ3oScU0QQ0assKUO4FB5/uXqnNd 4hhCQmlr+AyB9fFx1zE7RYiuAePj+MnVdyxapqTjMbWjJA69SixK2s3MeXUEHJa81o/7 Dfrq8p2aPFXagNp+IgTVIcGx9GIrnVx0QIKM3MMPCYsFdGRzdl7WLW+1zyVij9DkAE4/ Gtrml5dkz7gKexqKy6RLhza8UchYMpL97dHwu+n/6pH3vO1c+oweRDYe4dRD9VFXOkNT lTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ElH4sAgG6jjT48s9ldSGD+nZ3K41SP2AmoM037n1vOw=; b=NwjcrrNPHWXn8gv8GyRxPj8LDymQALpLqjfGm1muexRtPN4puE8arhJ2cK3uYEL4sJ pzBsyAV5mi+9MXtTamzXeukfdO20k/48XvW8EUqJ2XgvKXhHazmWQQTIso1zJ8/JtvTC yXwg0+tWTqibiDU2CZq+SXkDvn3Mo9dmdrRG2wG3fNB+QpGctp1m1LfyW07dGBZDUJ71 8MfSWgSAinoabJhtijapjTv3sVuIbnuQPyNItUaJa+aj7nq0wbB7Il0mTMFL0UKVCy66 bbZRqG+ySid5GchfHfnF/693C1pX/huerIAIbQUsni4Qq8FteXXVMU5YS804plfaIPmv +l8A== X-Gm-Message-State: AElRT7FFUgxq5yANvwZs0Xwy39rdqf6kDKtmf193nZKCqx1Gcmcf/U9Q PHBCXMmnOpJwvs7kfZhFzL+E0wH7G53GuiabfyQ= X-Received: by 10.36.55.70 with SMTP id r67mr10036545itr.40.1520877594371; Mon, 12 Mar 2018 10:59:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.232.26 with HTTP; Mon, 12 Mar 2018 10:59:53 -0700 (PDT) In-Reply-To: References: <20180116021818.24791-1-deepa.kernel@gmail.com> <20180116021818.24791-3-deepa.kernel@gmail.com> From: Deepa Dinamani Date: Mon, 12 Mar 2018 10:59:53 -0700 Message-ID: Subject: Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h To: Christian Borntraeger Cc: Arnd Bergmann , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I posted the updated series. I fixed up the order of include files where I could find some order. There have been other commits that used scripts to do such replacements and have already stomped on the order. For example: commit 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba Author: Linus Torvalds Replace with globally -Deepa On Tue, Mar 6, 2018 at 2:58 PM, Deepa Dinamani wrote: > On Tue, Mar 6, 2018 at 4:48 AM, Christian Borntraeger > wrote: >> >> >> 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 > > The reason that this was done this way is because of the sed script > mentioned in the commit text. > I was trying to make minimal change apart from the script so that we > don't have other changes like moving the lines to keep the patch > simpler. > I will fix this by hand since this is preferred. > I will post an update. > > -Deepa