Received: by 10.213.65.68 with SMTP id h4csp86490imn; Mon, 19 Mar 2018 20:39:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELu35l6MPcj3g88oiKnXnZbNg5Fwac0vtujqfEAxSQKbPQQVC0/MaWbgxnawlNDxQPNCWchu X-Received: by 10.98.76.155 with SMTP id e27mr12392248pfj.45.1521517150215; Mon, 19 Mar 2018 20:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521517150; cv=none; d=google.com; s=arc-20160816; b=zZVvXlxSwkoARzehcrpJ43U+HLbRuBqhmLjH8ElxTq1HmWKmIjwENpFf3d5ZTNPzEA eggpSMH6Zybg1eDNMTvUuZOlLPVVbs8UC1VTftLz91iu7U5oIBkGJQXityTjTyU0jzJs /6kRCWEIZLZApK19KJudCdEGzOTXV9ILl7Art0K5aWgz5CGxPsoviOcM5mZ92ecXWIO2 vEb5ravnpDkFWJnj2rPkqOzBdn/bwht0ivg23QF/gmhs17XWgsSHXI26XC5qIgMPUmT4 3+mGFbEeH4Ii1YTxmxChVGnXdQQq6pnXrRU88j/9EmOGHCi5snWApybHyQZX6pB8MJDn z5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=2u+adgiBwOmnU+bh/WhQBft/YUNadwODKXSfiLvrhX8=; b=QD716d5K7KzE7d2kZzjkyuyDNyQO15YYQl2SsYTiExMpPXk6KLqbzZXZ750xeVtyn/ P00uk+NaUgns3AddUIFGAte7L9+slzG34FMN9APRXTpXUXM6CeukgiMZcWdUyLpArnCr yrXIpgECN+DWVkqBSXa0XmB4/RZ1P/lNUaPdS4v5HudH3skqkk2ZiUFJViGSbWU1oW74 KMwrSoia5i2eWm0U37CaOgl7jMwjrfUV4FT7xBk4bNTGgA5zoq/bC2Bq7yVv5mCwrtnU qgLFHTAJSF9Osti0gAhIZWXzki+FPvqdaoCJ6FTYGtZAWFxKmzpCZD3osxDtIObFclei sKJQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si746359pla.390.2018.03.19.20.38.56; Mon, 19 Mar 2018 20:39:10 -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; 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 S1751826AbeCTDhM (ORCPT + 99 others); Mon, 19 Mar 2018 23:37:12 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:47367 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbeCTDhG (ORCPT ); Mon, 19 Mar 2018 23:37:06 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.05462646|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e04463;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.BNB.r7C_1521517016; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:223.93.147.148) by smtp.aliyun-inc.com(10.147.42.16); Tue, 20 Mar 2018 11:36:56 +0800 Date: Tue, 20 Mar 2018 11:36:56 +0800 From: Guo Ren To: Arnd Bergmann 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 Subject: Re: [PATCH 14/19] csky: Misc headers Message-ID: <20180320033654.GA21731@guoren> References: <9cb4cf158b8c73325dc524cba8d575e41647131f.1521399976.git.ren_guo@c-sky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) > > +struct __old_kernel_stat { > > + unsigned short st_dev; > > Same here: no need for __old_kernel_stat or the headers on new architectures. > OK Best Regards Guo Ren