Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13376509 authored by Chen Gang's avatar Chen Gang Committed by Steven Miao
Browse files

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: default avatarChen Gang <gang.chen@asianux.com>
parent d8ec26d7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
#ifndef _UAPI__BFIN_ASM_BYTEORDER_H
#define _UAPI__BFIN_ASM_BYTEORDER_H

#include <linux/byteorder/little_endian.h>

#endif /* _UAPI__BFIN_ASM_BYTEORDER_H */
+3 −3
Original line number Diff line number Diff line
@@ -7,8 +7,8 @@
 * Licensed under the GPL-2 or later.
 */

#ifndef	_ASM_CACHECTL
#define	_ASM_CACHECTL
#ifndef _UAPI_ASM_CACHECTL
#define _UAPI_ASM_CACHECTL

/*
 * Options for cacheflush system call
@@ -17,4 +17,4 @@
#define	DCACHE	(1<<1)		/* writeback and flush data cache */
#define	BCACHE	(ICACHE|DCACHE)	/* flush both caches              */

#endif	/* _ASM_CACHECTL */
#endif /* _UAPI_ASM_CACHECTL */
+3 −3
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@
 * Licensed under the GPL-2 or later.
 */

#ifndef _BFIN_FCNTL_H
#define _BFIN_FCNTL_H
#ifndef _UAPI_BFIN_FCNTL_H
#define _UAPI_BFIN_FCNTL_H

#define O_DIRECTORY	 040000	/* must be a directory */
#define O_NOFOLLOW	0100000	/* don't follow links */
@@ -14,4 +14,4 @@

#include <asm-generic/fcntl.h>

#endif
#endif /* _UAPI_BFIN_FCNTL_H */
+3 −3
Original line number Diff line number Diff line
#ifndef __ARCH_BFIN_IOCTLS_H__
#define __ARCH_BFIN_IOCTLS_H__
#ifndef _UAPI__ARCH_BFIN_IOCTLS_H__
#define _UAPI__ARCH_BFIN_IOCTLS_H__

#define FIOQSIZE	0x545E
#include <asm-generic/ioctls.h>

#endif
#endif /* _UAPI__ARCH_BFIN_IOCTLS_H__ */
+3 −3
Original line number Diff line number Diff line
@@ -5,12 +5,12 @@
 *
 */

#ifndef __BFIN_POLL_H
#define __BFIN_POLL_H
#ifndef _UAPI__BFIN_POLL_H
#define _UAPI__BFIN_POLL_H

#define POLLWRNORM	4 /* POLLOUT */
#define POLLWRBAND	256

#include <asm-generic/poll.h>

#endif
#endif /* _UAPI__BFIN_POLL_H */
Loading