Received: by 10.223.185.116 with SMTP id b49csp4385078wrg; Tue, 6 Mar 2018 15:00:39 -0800 (PST) X-Google-Smtp-Source: AG47ELvLLdgyx50g/oX0B2CkamrtwKrjsFcl8on8nN+YXsfTdNpda5nN6SG9B4lBNkEqgMPLwqN2 X-Received: by 10.99.120.142 with SMTP id t136mr4067863pgc.300.1520377239163; Tue, 06 Mar 2018 15:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520377239; cv=none; d=google.com; s=arc-20160816; b=d9Ku178rrU3uSvBxN1n2gB9J8F8S9fZV+5ratIwRoKfNhT7iCyZywKxp8j9KASV4cK RlbaUvqao8GhlXjmelz9zo5Et4zSP3FDZlQRyC5h53ye1igLR7RdMDZjt3lwJaMn60Uq kD+TtwTjaRFMrqfLTcBQiRYO/yHyAo5B6PINuCP5OsQccKcj5GrjN8cXzDOVlTPGk3us 7Kxf9xl1HSjOEXmh4yIffYoYdbiupfJF5l43suTP6urDcpXfvD0H4QLIHdqBzGGzxghG dKm/PQW/w4TfxlHIz/JzllDQfDyTtO12AQSIPYjUcV9b4KZlhzs5rhUn2Sc3MD2HQ+vK B61w== 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=9BU1XIJejlcA5+ETQWzkzXQDr4aDP7Pwgh2JjLzXoqo=; b=wq34u8NkOfGXKyJhA1zpLH4+sC/73dAuMsnD36xHaUh/cHD1FqzPuQaZ76AKyC0tqB 6F4ztBevjs1zcCcD87yE50YQJzHBphtmlQhnhd/tImOTBreA90YCfR1mUrHH41XsSVvO /omk1ua39zurRn+s/DfKm2QRSkOY+RExBCW9lQLwvHhFsr5hHi2Knyh+IaARzx55I0i5 yA2Yjpo1BdLalDEKE/uKtDsgOW2I2f2mkqRHAYV+dy9dpOlPARETggS5gJKi8FKP625k eCZkcqjxK8NJnABkeSgu/NHAbihhrpNUR/4Njfx2OjxouhzkUWEeOkO9ThfSTa+3K0Bu afzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gUraEbqP; 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 a61-v6si735656pla.271.2018.03.06.15.00.25; Tue, 06 Mar 2018 15:00:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gUraEbqP; 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 S1754248AbeCFW6t (ORCPT + 99 others); Tue, 6 Mar 2018 17:58:49 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:37753 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754229AbeCFW6q (ORCPT ); Tue, 6 Mar 2018 17:58:46 -0500 Received: by mail-it0-f67.google.com with SMTP id k79so962547ita.2; Tue, 06 Mar 2018 14:58:46 -0800 (PST) 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=9BU1XIJejlcA5+ETQWzkzXQDr4aDP7Pwgh2JjLzXoqo=; b=gUraEbqPByk74uy0sAVecF7IxSjDEgzrTN6DWms8H076C945F6C6l+rwqIPv3wS4Q2 KWSaYCRY2wUMN0BKBF5ZI7uU4pyZoDJd9x7BSIwZBZEVz6JovsGk+x2dUNBxPztrOlv3 XEK1+QCDF/lPe06K5B2Jf/PqmKFkoeejS6yDn6pOM1dz8paq35EN7NKHpR6oQwhG0AC3 GEL+6JIZz6nX79cT+4Nm/L9f263VPP9LA/+FynlTil6AIRPNe0j2tbQ7O85iAzz+y41h Jxh/ge3nZBd8FyRLvibSkn4W7/UiqVG80TIPNV+ab2apLzmhBAUxGLN3RkefYpiTQ0nj zwyQ== 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=9BU1XIJejlcA5+ETQWzkzXQDr4aDP7Pwgh2JjLzXoqo=; b=ZzhMuvwEybMohbYcidfD2oCzdttD9Yr5Uxcy9tlit45IHgEWiXIaZUesaFPyL1FFsX hRlxphxng+cKBRW5UFMJky0Zx+YELitSGxnDT4zG60Ilog3AswYYp72G70nK3iqQbNDL 7xBPkfwH0WCZD5Y36lUdLVOvDBIyImwdHjifig8i+tn6vMZ9ZZ7XTe65l2pcsf9X8NxI biE27gxKqbvfYyj2aOtC7LjiSrUTHXbICrXlczWKEtuUKixKz7qzvxXe8mqfdC5+Xvh8 pSQN4HVTTq5fU4PgUw52kq38Nibr6AQe/ENUk0LGv3ua1mFqUruis9IiSyDBq/ZORwpR iBdA== X-Gm-Message-State: AElRT7Fln5Q7shwRcPx6WyUH51wdlkzPCB0scmHjNq0DIDFXbkAzrpV3 lFLfJUB8l0TxdCY9qBQsEUGpAi7vL4AvkstRfNs= X-Received: by 10.36.55.70 with SMTP id r67mr21242236itr.40.1520377125597; Tue, 06 Mar 2018 14:58:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.232.26 with HTTP; Tue, 6 Mar 2018 14:58:45 -0800 (PST) In-Reply-To: References: <20180116021818.24791-1-deepa.kernel@gmail.com> <20180116021818.24791-3-deepa.kernel@gmail.com> From: Deepa Dinamani Date: Tue, 6 Mar 2018 14:58:45 -0800 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 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