From: Yang Yingliang <yangyingliang@huawei.com> To: Will Deacon <will.deacon@arm.com> Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Catalin Marinas <Catalin.Marinas@arm.com>, Yang Yingliang <yangyingliang@huawei.com> Subject: [PATCH v2] arm64: add guard macros of unistd.h to prevent double inclusion Date: Thu, 11 Sep 2014 17:21:18 +0800 [thread overview] Message-ID: <5411698E.3000402@huawei.com> (raw) In-Reply-To: <54115583.8080306@huawei.com> From: Yang Yingliang <yangyingliang@huawei.com> Add guard macros for uapi/asm/unistd.h, asm/unistd.h and asm/unistd32.h. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- arch/arm64/include/asm/unistd.h | 5 +++++ arch/arm64/include/asm/unistd32.h | 4 ++++ arch/arm64/include/uapi/asm/unistd.h | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 6d2bf41..21a7dec 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -13,6 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __ASM_ARM64_UNISTD_H +#define __ASM_ARM64_UNISTD_H + #ifdef CONFIG_COMPAT #define __ARCH_WANT_COMPAT_SYS_GETDENTS64 #define __ARCH_WANT_COMPAT_STAT64 @@ -48,3 +51,5 @@ #include <uapi/asm/unistd.h> #define NR_syscalls (__NR_syscalls) + +#endif /* __ASM_ARM64_UNISTD_H */ diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index da1f06b..8f5e78e 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -16,6 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __ASM_ARM64_UNISTD32_H +#define __ASM_ARM64_UNISTD32_H #ifndef __SYSCALL #define __SYSCALL(x, y) @@ -792,3 +794,5 @@ __SYSCALL(__NR_renameat2, sys_renameat2) __SYSCALL(__NR_getrandom, sys_getrandom) #define __NR_memfd_create 385 __SYSCALL(__NR_memfd_create, sys_memfd_create) + +#endif /* __ASM_ARM64_UNISTD32_H */ diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 1caadc2..ab72cac 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -13,4 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef _UAPI__ASM_ARM64_UNISTD_H +#define _UAPI__ASM_ARM64_UNISTD_H + #include <asm-generic/unistd.h> + +#endif /* _UAPI__ASM_ARM64_UNISTD_H */
WARNING: multiple messages have this Message-ID (diff)
From: yangyingliang@huawei.com (Yang Yingliang) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] arm64: add guard macros of unistd.h to prevent double inclusion Date: Thu, 11 Sep 2014 17:21:18 +0800 [thread overview] Message-ID: <5411698E.3000402@huawei.com> (raw) In-Reply-To: <54115583.8080306@huawei.com> From: Yang Yingliang <yangyingliang@huawei.com> Add guard macros for uapi/asm/unistd.h, asm/unistd.h and asm/unistd32.h. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- arch/arm64/include/asm/unistd.h | 5 +++++ arch/arm64/include/asm/unistd32.h | 4 ++++ arch/arm64/include/uapi/asm/unistd.h | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 6d2bf41..21a7dec 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -13,6 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __ASM_ARM64_UNISTD_H +#define __ASM_ARM64_UNISTD_H + #ifdef CONFIG_COMPAT #define __ARCH_WANT_COMPAT_SYS_GETDENTS64 #define __ARCH_WANT_COMPAT_STAT64 @@ -48,3 +51,5 @@ #include <uapi/asm/unistd.h> #define NR_syscalls (__NR_syscalls) + +#endif /* __ASM_ARM64_UNISTD_H */ diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index da1f06b..8f5e78e 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -16,6 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef __ASM_ARM64_UNISTD32_H +#define __ASM_ARM64_UNISTD32_H #ifndef __SYSCALL #define __SYSCALL(x, y) @@ -792,3 +794,5 @@ __SYSCALL(__NR_renameat2, sys_renameat2) __SYSCALL(__NR_getrandom, sys_getrandom) #define __NR_memfd_create 385 __SYSCALL(__NR_memfd_create, sys_memfd_create) + +#endif /* __ASM_ARM64_UNISTD32_H */ diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 1caadc2..ab72cac 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -13,4 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef _UAPI__ASM_ARM64_UNISTD_H +#define _UAPI__ASM_ARM64_UNISTD_H + #include <asm-generic/unistd.h> + +#endif /* _UAPI__ASM_ARM64_UNISTD_H */
next prev parent reply other threads:[~2014-09-11 9:21 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-09-09 3:59 [PATCH] arm64: add guard macro of unistd.h to prevent double inclusion Yang Yingliang 2014-09-09 3:59 ` Yang Yingliang 2014-09-09 12:39 ` Will Deacon 2014-09-09 12:39 ` Will Deacon 2014-09-11 7:55 ` Yang Yingliang 2014-09-11 7:55 ` Yang Yingliang 2014-09-11 9:21 ` Yang Yingliang [this message] 2014-09-11 9:21 ` [PATCH v2] arm64: add guard macros " Yang Yingliang 2014-09-11 15:02 ` Will Deacon 2014-09-11 15:02 ` Will Deacon 2014-09-12 9:03 ` Yang Yingliang 2014-09-12 9:03 ` Yang Yingliang 2014-09-11 15:14 ` [PATCH] arm64: add guard macro " Arnd Bergmann 2014-09-11 15:14 ` Arnd Bergmann
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=5411698E.3000402@huawei.com \ --to=yangyingliang@huawei.com \ --cc=Catalin.Marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.