aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/uapi
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-11-12 04:04:04 -0500
committerSteven Miao <realmz6@gmail.com>2014-01-29 02:11:06 -0500
commit133765093514628a82c232551d2517364d75a46d (patch)
tree81b6a703aa67be282275deec881b216388b188db /arch/blackfin/include/uapi
parentd8ec26d7f8287f5788a494f56e8814210f0e64be (diff)
arch: blackfin: uapi: be sure of "_UAPI" prefix for all guard macros
For all uapi headers, need use "_UAPI" prefix for its guard macro (which will be stripped by "scripts/headers_installer.sh"). Also be sure that all files have their guard macros. Also be sure that all "#endif" are followed with comments, and no '\t' for guard macro Signed-off-by: Chen Gang <gang.chen@asianux.com>
Diffstat (limited to 'arch/blackfin/include/uapi')
-rw-r--r--arch/blackfin/include/uapi/asm/byteorder.h5
-rw-r--r--arch/blackfin/include/uapi/asm/cachectl.h6
-rw-r--r--arch/blackfin/include/uapi/asm/fcntl.h6
-rw-r--r--arch/blackfin/include/uapi/asm/ioctls.h6
-rw-r--r--arch/blackfin/include/uapi/asm/poll.h6
-rw-r--r--arch/blackfin/include/uapi/asm/posix_types.h6
-rw-r--r--arch/blackfin/include/uapi/asm/sigcontext.h6
-rw-r--r--arch/blackfin/include/uapi/asm/siginfo.h6
-rw-r--r--arch/blackfin/include/uapi/asm/signal.h6
-rw-r--r--arch/blackfin/include/uapi/asm/stat.h6
-rw-r--r--arch/blackfin/include/uapi/asm/swab.h6
11 files changed, 35 insertions, 30 deletions
diff --git a/arch/blackfin/include/uapi/asm/byteorder.h b/arch/blackfin/include/uapi/asm/byteorder.h
index 9558416d578b..3b125da5dcb2 100644
--- a/arch/blackfin/include/uapi/asm/byteorder.h
+++ b/arch/blackfin/include/uapi/asm/byteorder.h
@@ -1 +1,6 @@
1#ifndef _UAPI__BFIN_ASM_BYTEORDER_H
2#define _UAPI__BFIN_ASM_BYTEORDER_H
3
1#include <linux/byteorder/little_endian.h> 4#include <linux/byteorder/little_endian.h>
5
6#endif /* _UAPI__BFIN_ASM_BYTEORDER_H */
diff --git a/arch/blackfin/include/uapi/asm/cachectl.h b/arch/blackfin/include/uapi/asm/cachectl.h
index 03255df6c1ea..4fdab75dee15 100644
--- a/arch/blackfin/include/uapi/asm/cachectl.h
+++ b/arch/blackfin/include/uapi/asm/cachectl.h
@@ -7,8 +7,8 @@
7 * Licensed under the GPL-2 or later. 7 * Licensed under the GPL-2 or later.
8 */ 8 */
9 9
10#ifndef _ASM_CACHECTL 10#ifndef _UAPI_ASM_CACHECTL
11#define _ASM_CACHECTL 11#define _UAPI_ASM_CACHECTL
12 12
13/* 13/*
14 * Options for cacheflush system call 14 * Options for cacheflush system call
@@ -17,4 +17,4 @@
17#define DCACHE (1<<1) /* writeback and flush data cache */ 17#define DCACHE (1<<1) /* writeback and flush data cache */
18#define BCACHE (ICACHE|DCACHE) /* flush both caches */ 18#define BCACHE (ICACHE|DCACHE) /* flush both caches */
19 19
20#endif /* _ASM_CACHECTL */ 20#endif /* _UAPI_ASM_CACHECTL */
diff --git a/arch/blackfin/include/uapi/asm/fcntl.h b/arch/blackfin/include/uapi/asm/fcntl.h
index 251c911d59c1..f51ad9a4f617 100644
--- a/arch/blackfin/include/uapi/asm/fcntl.h
+++ b/arch/blackfin/include/uapi/asm/fcntl.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2 or later. 4 * Licensed under the GPL-2 or later.
5 */ 5 */
6 6
7#ifndef _BFIN_FCNTL_H 7#ifndef _UAPI_BFIN_FCNTL_H
8#define _BFIN_FCNTL_H 8#define _UAPI_BFIN_FCNTL_H
9 9
10#define O_DIRECTORY 040000 /* must be a directory */ 10#define O_DIRECTORY 040000 /* must be a directory */
11#define O_NOFOLLOW 0100000 /* don't follow links */ 11#define O_NOFOLLOW 0100000 /* don't follow links */
@@ -14,4 +14,4 @@
14 14
15#include <asm-generic/fcntl.h> 15#include <asm-generic/fcntl.h>
16 16
17#endif 17#endif /* _UAPI_BFIN_FCNTL_H */
diff --git a/arch/blackfin/include/uapi/asm/ioctls.h b/arch/blackfin/include/uapi/asm/ioctls.h
index eca8d75b0a8a..9a41c20fc83d 100644
--- a/arch/blackfin/include/uapi/asm/ioctls.h
+++ b/arch/blackfin/include/uapi/asm/ioctls.h
@@ -1,7 +1,7 @@
1#ifndef __ARCH_BFIN_IOCTLS_H__ 1#ifndef _UAPI__ARCH_BFIN_IOCTLS_H__
2#define __ARCH_BFIN_IOCTLS_H__ 2#define _UAPI__ARCH_BFIN_IOCTLS_H__
3 3
4#define FIOQSIZE 0x545E 4#define FIOQSIZE 0x545E
5#include <asm-generic/ioctls.h> 5#include <asm-generic/ioctls.h>
6 6
7#endif 7#endif /* _UAPI__ARCH_BFIN_IOCTLS_H__ */
diff --git a/arch/blackfin/include/uapi/asm/poll.h b/arch/blackfin/include/uapi/asm/poll.h
index 072d8966c5c3..99c7d6816da0 100644
--- a/arch/blackfin/include/uapi/asm/poll.h
+++ b/arch/blackfin/include/uapi/asm/poll.h
@@ -5,12 +5,12 @@
5 * 5 *
6 */ 6 */
7 7
8#ifndef __BFIN_POLL_H 8#ifndef _UAPI__BFIN_POLL_H
9#define __BFIN_POLL_H 9#define _UAPI__BFIN_POLL_H
10 10
11#define POLLWRNORM 4 /* POLLOUT */ 11#define POLLWRNORM 4 /* POLLOUT */
12#define POLLWRBAND 256 12#define POLLWRBAND 256
13 13
14#include <asm-generic/poll.h> 14#include <asm-generic/poll.h>
15 15
16#endif 16#endif /* _UAPI__BFIN_POLL_H */
diff --git a/arch/blackfin/include/uapi/asm/posix_types.h b/arch/blackfin/include/uapi/asm/posix_types.h
index 1bd3436db6a7..9608ef64dc47 100644
--- a/arch/blackfin/include/uapi/asm/posix_types.h
+++ b/arch/blackfin/include/uapi/asm/posix_types.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2 or later. 4 * Licensed under the GPL-2 or later.
5 */ 5 */
6 6
7#ifndef __ARCH_BFIN_POSIX_TYPES_H 7#ifndef _UAPI__ARCH_BFIN_POSIX_TYPES_H
8#define __ARCH_BFIN_POSIX_TYPES_H 8#define _UAPI__ARCH_BFIN_POSIX_TYPES_H
9 9
10typedef unsigned short __kernel_mode_t; 10typedef unsigned short __kernel_mode_t;
11#define __kernel_mode_t __kernel_mode_t 11#define __kernel_mode_t __kernel_mode_t
@@ -27,4 +27,4 @@ typedef unsigned short __kernel_old_dev_t;
27 27
28#include <asm-generic/posix_types.h> 28#include <asm-generic/posix_types.h>
29 29
30#endif 30#endif /* _UAPI__ARCH_BFIN_POSIX_TYPES_H */
diff --git a/arch/blackfin/include/uapi/asm/sigcontext.h b/arch/blackfin/include/uapi/asm/sigcontext.h
index 906bdc1f5fda..b58f12dc27bd 100644
--- a/arch/blackfin/include/uapi/asm/sigcontext.h
+++ b/arch/blackfin/include/uapi/asm/sigcontext.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2 or later. 4 * Licensed under the GPL-2 or later.
5 */ 5 */
6 6
7#ifndef _ASM_BLACKFIN_SIGCONTEXT_H 7#ifndef _UAPI_ASM_BLACKFIN_SIGCONTEXT_H
8#define _ASM_BLACKFIN_SIGCONTEXT_H 8#define _UAPI_ASM_BLACKFIN_SIGCONTEXT_H
9 9
10/* Add new entries at the end of the structure only. */ 10/* Add new entries at the end of the structure only. */
11struct sigcontext { 11struct sigcontext {
@@ -58,4 +58,4 @@ struct sigcontext {
58 unsigned long sc_seqstat; 58 unsigned long sc_seqstat;
59}; 59};
60 60
61#endif 61#endif /* _UAPI_ASM_BLACKFIN_SIGCONTEXT_H */
diff --git a/arch/blackfin/include/uapi/asm/siginfo.h b/arch/blackfin/include/uapi/asm/siginfo.h
index 3e81306394e2..c72f4e6e386f 100644
--- a/arch/blackfin/include/uapi/asm/siginfo.h
+++ b/arch/blackfin/include/uapi/asm/siginfo.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2 or later. 4 * Licensed under the GPL-2 or later.
5 */ 5 */
6 6
7#ifndef _BFIN_SIGINFO_H 7#ifndef _UAPI_BFIN_SIGINFO_H
8#define _BFIN_SIGINFO_H 8#define _UAPI_BFIN_SIGINFO_H
9 9
10#include <linux/types.h> 10#include <linux/types.h>
11#include <asm-generic/siginfo.h> 11#include <asm-generic/siginfo.h>
@@ -38,4 +38,4 @@
38 */ 38 */
39#define SEGV_STACKFLOW (__SI_FAULT|3) /* stack overflow */ 39#define SEGV_STACKFLOW (__SI_FAULT|3) /* stack overflow */
40 40
41#endif 41#endif /* _UAPI_BFIN_SIGINFO_H */
diff --git a/arch/blackfin/include/uapi/asm/signal.h b/arch/blackfin/include/uapi/asm/signal.h
index 77a3bf37b69d..f0a0d8b6663a 100644
--- a/arch/blackfin/include/uapi/asm/signal.h
+++ b/arch/blackfin/include/uapi/asm/signal.h
@@ -1,7 +1,7 @@
1#ifndef _BLACKFIN_SIGNAL_H 1#ifndef _UAPI_BLACKFIN_SIGNAL_H
2#define _BLACKFIN_SIGNAL_H 2#define _UAPI_BLACKFIN_SIGNAL_H
3 3
4#define SA_RESTORER 0x04000000 4#define SA_RESTORER 0x04000000
5#include <asm-generic/signal.h> 5#include <asm-generic/signal.h>
6 6
7#endif 7#endif /* _UAPI_BLACKFIN_SIGNAL_H */
diff --git a/arch/blackfin/include/uapi/asm/stat.h b/arch/blackfin/include/uapi/asm/stat.h
index 2e27665c4e91..d3068a750b94 100644
--- a/arch/blackfin/include/uapi/asm/stat.h
+++ b/arch/blackfin/include/uapi/asm/stat.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2. 4 * Licensed under the GPL-2.
5 */ 5 */
6 6
7#ifndef _BFIN_STAT_H 7#ifndef _UAPI_BFIN_STAT_H
8#define _BFIN_STAT_H 8#define _UAPI_BFIN_STAT_H
9 9
10struct stat { 10struct stat {
11 unsigned short st_dev; 11 unsigned short st_dev;
@@ -66,4 +66,4 @@ struct stat64 {
66 unsigned long long st_ino; 66 unsigned long long st_ino;
67}; 67};
68 68
69#endif /* _BFIN_STAT_H */ 69#endif /* _UAPI_BFIN_STAT_H */
diff --git a/arch/blackfin/include/uapi/asm/swab.h b/arch/blackfin/include/uapi/asm/swab.h
index 89de6507ca2b..f5626b77684a 100644
--- a/arch/blackfin/include/uapi/asm/swab.h
+++ b/arch/blackfin/include/uapi/asm/swab.h
@@ -4,8 +4,8 @@
4 * Licensed under the GPL-2 or later. 4 * Licensed under the GPL-2 or later.
5 */ 5 */
6 6
7#ifndef _BLACKFIN_SWAB_H 7#ifndef _UAPI_BLACKFIN_SWAB_H
8#define _BLACKFIN_SWAB_H 8#define _UAPI_BLACKFIN_SWAB_H
9 9
10#include <linux/types.h> 10#include <linux/types.h>
11#include <asm-generic/swab.h> 11#include <asm-generic/swab.h>
@@ -47,4 +47,4 @@ static __inline__ __attribute_const__ __u16 __arch_swab16(__u16 xx)
47 47
48#endif /* __GNUC__ */ 48#endif /* __GNUC__ */
49 49
50#endif /* _BLACKFIN_SWAB_H */ 50#endif /* _UAPI_BLACKFIN_SWAB_H */