Received: by 10.213.65.68 with SMTP id h4csp201343imn; Tue, 20 Mar 2018 00:56:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELuON8Q1rLE6A8YjcavbfYnmlOpKP+mI78CtoXq1Sx2FV4JWskHKJIfKj4R4HUk/S9/wj0B3 X-Received: by 10.99.126.24 with SMTP id z24mr11459827pgc.110.1521532573261; Tue, 20 Mar 2018 00:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521532573; cv=none; d=google.com; s=arc-20160816; b=MzAW0/7EH0StafhEVstqjx67yoeyMoPFDyY83n3sS2oa7fb8aH/X1vHOvi+41yBJ9i EN0wKLGokbVhxUGTujpMNLgll5i1O6yZQUJwGi7svUeRZ1BwzEPKkfCoT+A7X2xNgHF/ bJ44f8IzixuY8chXeGamzCMQaZXZdvF9YO6wRC/xtH1GSkYpjN6P4zZJIQNAXpS96/Br 6FIZ4dt21+8FR59JnRs6rDrd+1UUVId8+fbHIiyxfe1Eolv5raIMxhW39l1QaSGazKzk +l5N+T0j5eC5KPPjzb+KpWAdelbwsDOD4QxInlGfelKhDbOHmYXl6XQo1p6teCXljYfY 2rLg== 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=y3Y+DYv4Jo9TCurVH4PS31JqEa4XeA9u6h5WtFoVNLs=; b=aEAHFOy29+ldssmf+BtmzdoNW8ECGThz1oAQevngUi3Qnu/Tz94fq1kJN98GDFKMN4 SkP2ze9L5s9Fw+FZ1kWaOgeJhgo/kclfEZaFUA9CCSa1Uo1sReLUl5WxOXwqUhLCgP7O QHXMfiO8X3Hpn1JPtxhLfWxyQWnU/6waIdp+sKOWkma4P22Q7yVqX2KxbJStdrf7lZdZ I1Vx/6i4mX4+dIg9ppM6BUxBaX4aoDY1MpqeI1/RbE+VYJ2IPTBUCK8qfBmw9M5uUkR+ FT3YfyBqyFgDL563647lVRHGLjCz02de/OPiyD7TiESpeRmTvJiYK67QkRIjxNdP2HRJ 9SnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AZOFnWcU; 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 w3si826694pgo.645.2018.03.20.00.55.59; Tue, 20 Mar 2018 00:56:13 -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=fail header.i=@gmail.com header.s=20161025 header.b=AZOFnWcU; 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 S1751966AbeCTHy7 (ORCPT + 99 others); Tue, 20 Mar 2018 03:54:59 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:54897 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbeCTHyz (ORCPT ); Tue, 20 Mar 2018 03:54:55 -0400 Received: by mail-it0-f65.google.com with SMTP id w3-v6so1209220itc.4; Tue, 20 Mar 2018 00:54:54 -0700 (PDT) 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=y3Y+DYv4Jo9TCurVH4PS31JqEa4XeA9u6h5WtFoVNLs=; b=AZOFnWcUY6TPOcFmqWhoo1hlDXaJBdco3ZGzlgeIbZba5iTGQMiRgIXqarlB1UArFY h2k7qubX69CJBAtaY+87ifluyyHKpdLVvUfWNpvc2e18Wd2I6c6nQeHudzRqy/XsOyYK 8IK11vIOwZR/pduM72ZS5KiF5BjcB8AZDNUGCBxUq2jZ5P7VnSlbK/wqro3pyPhZhe0a fjXGumKaZtCtWnrVMEc4U0ZI1oLHRRtXem4uTy2e5P1qPJ85ydmZva/CU0DDLyU5ZlYA z0Xh0elLPzu+3/riUDDI/QlP7RIoFprW8g8uLUQKNVWbeGSVClTZm5uF3o6tcbN+hVQc qfkQ== 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=y3Y+DYv4Jo9TCurVH4PS31JqEa4XeA9u6h5WtFoVNLs=; b=s2DJazmX/26rl+jD1+QWSLsZRedfHvC1Qir+Yol1INywWx5lN8FlsFxYNbAeY48mCy bmHMjsljWwzjjpNs1sfDMejb/CmE4SsV14QgpITtoDpZvIj8wxQk5LLX7gRi93uRb+gw rJVPKzB5ff1xxuFVK98ZScY8Giko28jWrmRQBT3pNPhqHsH4mK+6L1IDtmXlQeQ7lBnu ys6h52fSZgsbbjHnu/0Y+pGo4X+cuADQHTWGXexqCvUcYcApUGYGFD5Fy//CRpa6Y9mx qoHFxlGPUhdGtp8t8bL1M3XBSK3MxHg+MssGLH7Q1yoE+F35jgnYwR3J5pktKWAuQnvA WhTA== X-Gm-Message-State: AElRT7GOVluM3FbmfcebCoHhXnCipb0jcwUxD4MByJ5mwoZVVs3bDwUG mIChjtFMVJpzlF3dMnLnSPLrUiY5uP7AjS8dOt9o8A== X-Received: by 2002:a24:70c4:: with SMTP id f187-v6mr1662564itc.122.1521532494376; Tue, 20 Mar 2018 00:54:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.34.71 with HTTP; Tue, 20 Mar 2018 00:54:53 -0700 (PDT) In-Reply-To: <20180320033654.GA21731@guoren> References: <9cb4cf158b8c73325dc524cba8d575e41647131f.1521399976.git.ren_guo@c-sky.com> <20180320033654.GA21731@guoren> From: Arnd Bergmann Date: Tue, 20 Mar 2018 15:54:53 +0800 X-Google-Sender-Auth: DwwX2tflWREKVrr63BuXBXMHsho Message-ID: Subject: Re: [PATCH 14/19] csky: Misc headers To: Guo Ren Cc: linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org 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 20, 2018 at 11:36 AM, Guo Ren wrote: > Hi Arnd, > > On Tue, Mar 20, 2018 at 12:11:24AM +0800, Arnd Bergmann wrote: >> On Mon, Mar 19, 2018 at 3:51 AM, Guo Ren wrote: >> > +++ b/arch/csky/include/uapi/asm/fcntl.h >> > @@ -0,0 +1,13 @@ >> > +// SPDX-License-Identifier: GPL-2.0 >> > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. >> > +#ifndef __ASM_CSKY_FCNTL_H >> > +#define __ASM_CSKY_FCNTL_H >> > + >> > +#define O_DIRECTORY 040000 >> > +#define O_NOFOLLOW 0100000 >> > +#define O_DIRECT 0200000 >> > +#define O_LARGEFILE 0400000 >> > + >> > +#include >> >> This should just use the generic file without overrides: Please don't diverge >> from the generic syscall ABI. >> > > It's a stupid copy from arm/include/uapi/asm/fcntl.h and the csky/bits/fcntl.h > in uclibc-ng and glibc are also defined with: > > #define __O_DIRECTORY 040000 /* Must be a directory. */ > #define __O_NOFOLLOW 0100000 /* Do not follow links. */ > #define __O_DIRECT 0200000 /* Direct disk access. */ > #define __O_LARGEFILE 0400000 > > So may I keep it for a while? > (I will let glibc uclibc-ng csky/bits/fcntl.h include the linux/uapi/asm/fcntl.h > first.) We generally assume that any upstream kernel ABI cannot be changed, so this has to be changed before the code gets merged upstream. You can obviously maintain the old and the new ABI in parallel for a while, until the libc supports the new ABI, but you can't do that in the patches you send for integration. This is more important for the list of system calls, but when you change the ABI, it should be changed all at once. Arnd