Received: by 10.213.65.68 with SMTP id h4csp1667537imn; Mon, 19 Mar 2018 10:04:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELsUtQbTaLY1d+cnn8Obuw9Fy0JHCC5oyIQ7EYFCKJrXnnBm7qF5S3nFfrp8IN7l7iuXdcTU X-Received: by 10.99.143.3 with SMTP id n3mr9672538pgd.159.1521479082228; Mon, 19 Mar 2018 10:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521479082; cv=none; d=google.com; s=arc-20160816; b=nQVcPzkMPfQsAdQi2dvjGo7cEe/RZ42y2Gi8sNPvbO2l+0uKFs7hb8sQIXXEJoLZ6g qf44wYLQ9Tx7d8wvqmkjG5fgUjhKYk1SJk/9hSLAoZFEYRTHs1NF2UzTY7Kh7j5kTeOK VH8SKV4xIJZQiALnULWymR/MMfQrnMsXO4SC4OuAwqNz+7idEsqeghaGBma+lzRMlAHM KgedcoqfmCNA3047hWFxj/QJxhe/40Kn7WSbnPj6IBggJ6yCcMrUNtwxpA4p5qQlH4G+ 9X+Wn9PMu3tHC031tPW4WP20hpi8f5iR21/fAJ7Pjwz4l//du01IP7PR1X1/o/VkiQ7O Pnfg== 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=Ds9vhnLaIY+2SrrDQpIWqCKmMgrUvwZEBpP6LSkhWKQ=; b=EIb6fGA8lcTXUKUedAIjX93TdlCaQChIu/s46pokx+9a6ouovY/OnMmzP21t+Ec7l2 6eujWc1CgH33K6pejMN/KjxCK1jlsmWzYOjPfZMnq0suj/tQV5tfgrmwf9iJsC42EfdH KxY6blzPFZyhYdzvmuY6O2RjtAg3jjCEDyLcsheTf/hefxyqm7qFlQSFoofBB7I5KU0p KGKgQj8N9DFP6wWoM0lk4ZGQkwBjEGi/xfrHzNRoCZQ/d5jVMUnsSQzy1PnDw4UhK7Yh 9TawmvRecP0TjIuwAofq3fb1ThceJQy/PoknEXNchsbLpgqJEB0eIz2wUbE7EZiIAntu fcEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ys0zkKH6; 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 q4-v6si294298plr.365.2018.03.19.10.04.24; Mon, 19 Mar 2018 10:04:42 -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=Ys0zkKH6; 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 S966754AbeCSQ6Z (ORCPT + 99 others); Mon, 19 Mar 2018 12:58:25 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:34755 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966744AbeCSQL0 (ORCPT ); Mon, 19 Mar 2018 12:11:26 -0400 Received: by mail-io0-f178.google.com with SMTP id r18so2634048ioa.1; Mon, 19 Mar 2018 09:11:26 -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=Ds9vhnLaIY+2SrrDQpIWqCKmMgrUvwZEBpP6LSkhWKQ=; b=Ys0zkKH6sxiC3dn2L7w8hOqiebaeVRSa4Xrr6I+xIkJkSdyqIWlfemEXfZhtnx1NzJ kJrUrhA+MZmHmbwY4yP4P1dD0Zg+AC41UDrifV3V9yzrA3zKlq+aHFGLfmA51ujOf+1w 3ou+CkXXEpXYif1KrGU2JPWvr1KtyAGcBANG2WKwtypsq25qtioSAOL87+d3xdSwthAO HVWFGAoQ6AfkL+2nX2bCmIrNjII/i6e1VWxkNgkAzMdgNKWGaXzFc+VjBPTu3MT5b8Yt JATMjL4F6gyRmMEXKBJz6dhjcstfPA1zAxaPyVWiwsyUg55wxd35R5Tn7bdgk9D/rfpW MbVA== 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=Ds9vhnLaIY+2SrrDQpIWqCKmMgrUvwZEBpP6LSkhWKQ=; b=iZrv/IIW7ZaC0+ZCbZPrU1bNI8pAkEPqpfP5Z3wzDkpT5HMOJ258PQt5dmbOm/Z6XR qBnPVdbRpmhK67gNG6goknxzi9bFfFVW7QHWmMIh5PT4CPwvgFUswtd3CbRRcGYpeK13 xyVK7v6Qt0l2NZYhXE8i8y84W6yLVPmGjQQrKWCzwYZ3OErm3k8clXkpR3rPLOs7YBmF 2r+Uq3EdSTNZROh33c633G8fMh2v168P5ZRbo0yxhVDshJr57ZTQ694WoFklTFmE8Lxm AxMrhrS7mYym+peKVf8GKvP3ET5rqZfqjDZKQO48Zq7lpsPl59yq8Uf0ESasmUBcjMVw g2yg== X-Gm-Message-State: AElRT7EbuXgky8ReYkY6KcPzM+x5G0xfqyifNOqEsVXvWCwc13ocvFe+ pcPPfzF7iM/P5FzbxmD4hx0rxYK7pai1Z8bjrzY= X-Received: by 10.107.62.86 with SMTP id l83mr12066600ioa.22.1521475885833; Mon, 19 Mar 2018 09:11:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.34.71 with HTTP; Mon, 19 Mar 2018 09:11:24 -0700 (PDT) In-Reply-To: <9cb4cf158b8c73325dc524cba8d575e41647131f.1521399976.git.ren_guo@c-sky.com> References: <9cb4cf158b8c73325dc524cba8d575e41647131f.1521399976.git.ren_guo@c-sky.com> From: Arnd Bergmann Date: Tue, 20 Mar 2018 00:11:24 +0800 X-Google-Sender-Auth: m5OKtlOYlKQq2YvFyo1-NBZMvaw 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 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. > --- /dev/null > +++ b/arch/csky/include/uapi/asm/stat.h > @@ -0,0 +1,86 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > +#ifndef _CSKY_STAT_H > +#define _CSKY_STAT_H > + > +struct __old_kernel_stat { > + unsigned short st_dev; Same here: no need for __old_kernel_stat or the headers on new architectures. Arnd