projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf0151
)
MIPS: uasm: Add include guards in asm/uasm.h
author
James Hogan
<
[email protected]
>
Sat, 10 Sep 2016 22:53:57 +0000
(23:53 +0100)
committer
James Hogan
<
[email protected]
>
Fri, 3 Feb 2017 15:19:01 +0000
(15:19 +0000)
Add include guards in asm/uasm.h to allow it to be safely used by a new
header asm/tlbex.h in the next patch to expose TLB exception building
functions for KVM to use.
Signed-off-by: James Hogan <
[email protected]
>
Acked-by: Ralf Baechle <
[email protected]
>
Cc: Ralf Baechle <
[email protected]
>
Cc: Paolo Bonzini <
[email protected]
>
Cc: "Radim Krčmář" <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
arch/mips/include/asm/uasm.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/uasm.h
b/arch/mips/include/asm/uasm.h
index f7929f65f7ca27bf4926deb8e51d73d724c935bb..e9a9e2ade1d216db0d0260b2a796b50b334518e3 100644
(file)
--- a/
arch/mips/include/asm/uasm.h
+++ b/
arch/mips/include/asm/uasm.h
@@
-9,6
+9,9
@@
* Copyright (C) 2012, 2013 MIPS Technologies, Inc. All rights reserved.
*/
+#ifndef __ASM_UASM_H
+#define __ASM_UASM_H
+
#include <linux/types.h>
#ifdef CONFIG_EXPORT_UASM
@@
-309,3
+312,5
@@
void uasm_il_bltz(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
void uasm_il_bne(u32 **p, struct uasm_reloc **r, unsigned int reg1,
unsigned int reg2, int lid);
void uasm_il_bnez(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
+
+#endif /* __ASM_UASM_H */