Received: by 10.223.185.116 with SMTP id b49csp3768610wrg; Tue, 6 Mar 2018 04:47:47 -0800 (PST) X-Google-Smtp-Source: AG47ELtvO2egWANezo6d0R8PhX8YV+yp1vuP96cWlbG2kqNt7F7JIkZMY8n3HSUXUavA7KCYh1jT X-Received: by 2002:a17:902:bb06:: with SMTP id l6-v6mr16609259pls.394.1520340467855; Tue, 06 Mar 2018 04:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520340467; cv=none; d=google.com; s=arc-20160816; b=bJOt4sBGP8/0R8pQMUDLh79x/3DAijMAJigmhot5rUoJy1MBV7E3jHVsJ9Fx9VM3uV jDLAdHtjrIP5KqGXY/bFKpoHzjLyQLn60Nhv5TxWC+UmYYRQl5kPPr0b64sZvw7+dquX 53AiVOVG/LjdzfK74rxuphJTdrqi7WDlAZw0veGU/vKSTwy2GzVWVsIxB+4mHRe7hhbH QI+/TH5qRWV/RUO21BouFbJ69VyVkT4s58vpcMQ6YqLkh2OdO/mM7GY6aI7uX8SmlVkc hzXZTkBPvE09cwCy2twuj37mDjmkfKhQskN6Wo2l+hf/BAxr4js8A3DzfzokGe2ZbfDt 3e6g== 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=/Ielnr86jGrUQlnBR/122CDpc3athB20kKhhVr6fYKo=; b=OPQlDeMAYY7grRBLi+BG05VbJ53yD9XJUTXi1lvUieGBBGkzGGC9UywnFYQnELQ/iv 3aw2idzUtm5VH6FFz3l+znT7Nti1nD5SCXmeD+fhhCrzTLicQBbswlEgJtS1cb2P7b4/ XggXXCs9RgXCNd4mt8FDWUIxqASwWuiUlCJ/ijhxgSaDnwAayo8rG7WQRcO5FcWiDzDc 9xuk7AL/SA5QX9OwIz+oud5nigdOrWWC5I30NIFF/vmRQjpwJaTQgVLki5hYfrsOj3k2 ukwMAcXbZcdBX104xoVvPdwSgmjPNY/Rr8mQq1dT1I8dGx/PL+qIv1XsITeYrKwqa+z8 3EuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eFOHlHtt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si9773261pgv.581.2018.03.06.04.47.32; Tue, 06 Mar 2018 04:47:47 -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=fail header.i=@gmail.com header.s=20161025 header.b=eFOHlHtt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553AbeCFMqe (ORCPT + 99 others); Tue, 6 Mar 2018 07:46:34 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:37608 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbeCFMqb (ORCPT ); Tue, 6 Mar 2018 07:46:31 -0500 Received: by mail-qt0-f195.google.com with SMTP id r16so24337609qtm.4; Tue, 06 Mar 2018 04:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/Ielnr86jGrUQlnBR/122CDpc3athB20kKhhVr6fYKo=; b=eFOHlHttRAGLuYv45Vsck5VAp9Xbtzcm+I6w73l9ParfoTL2DK+D0WVdtgzwAIlyOz 1p/4D9NyjC/DHGOMBS+zEHdi2zulz4Ealx0X4lOfAWbSdF0TzI2y9VZ7uSE/QXbjspI3 zB1/wkW9MjXy/Yk8Hm6BeHJbiUby8Rq69DEdxyMBAbcjjTHWRtVDyWxkcNLVWzezCl0b Yv4J3ulk6hcOLXCOFk7RzLZgrzR7kTNKvyRI6DsGuFIaDtp6ZDrfqQ5XaPypov+JGNxK KkLK4RrBKq/Kr14Suk1jIRRqcePQoSE0yHT7pdg+3JrVdtWQ6nqBExJja6EOuvXSB1Ws Mfvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/Ielnr86jGrUQlnBR/122CDpc3athB20kKhhVr6fYKo=; b=ZCfhkVcVUgQelrPFwApiR0gJNOtckzY8bYA+9I4/cuWIg5oKJipLKlf0F6qEolNGmV BSCQrG+eED4sqRCcHa9j9fLIn2SOneTkyUvds1iZTVxMpgrO0fabYKucuavUfka4jS2q g5eja4Bbv1kOdNElMSeiw6MjMZXxrzB540YDu0ruWi1HC/2QLEnBWe3cTsG2Y2vUxCOf V+4VZ0BtYMMhHW5ZfaOdYs29bE20wwwXD5jMuLSYQwpuZRH5LA2JazU/X8XtvxU56uix 91mfczOYp0h3sMgIWX4QvqKSJP89xocZUKaNl2/8TNUtjfzC30PXy+z0mEn07UnD3fEh ITQg== X-Gm-Message-State: AElRT7GmAW6g8QZtkfW1NGVfu4GR60DmP1yukcvjRSbIXM6k4nEkXeGS i3uuHblSoU8kZ44gaDP1l1lERvutAIYlyyZyl7M= X-Received: by 10.200.36.233 with SMTP id t38mr28285144qtt.141.1520340390600; Tue, 06 Mar 2018 04:46:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.185.46 with HTTP; Tue, 6 Mar 2018 04:46:30 -0800 (PST) In-Reply-To: References: <20180116021818.24791-1-deepa.kernel@gmail.com> <20180116021818.24791-3-deepa.kernel@gmail.com> From: Arnd Bergmann Date: Tue, 6 Mar 2018 13:46:30 +0100 X-Google-Sender-Auth: Di7AbiJq9u7xkF2XLlEyCPy3GA0 Message-ID: Subject: Re: [PATCH v3 02/10] include: Move compat_timespec/ timeval to compat_time.h To: Christian Borntraeger 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 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 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 ;-) Arnd