Thread (63 messages) 63 messages, 8 authors, 2018-03-28

Re: [PATCH 14/19] csky: Misc headers

From: Arnd Bergmann <arnd@arndb.de>
Date: 2018-03-19 16:58:25
Also in: lkml

On Mon, Mar 19, 2018 at 3:51 AM, Guo Ren [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+++ 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 <asm-generic/fcntl.h>
This should just use the generic file without overrides: Please don't diverge
from the generic syscall ABI.
quoted hunk ↗ jump to hunk
--- /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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help