Skip to contentSkip to conversation

x86: Provide guards in uapi/asm/hw_breakpoint.h to prevent deletion by patch

PATCH In review David Howells 2 participants 4 messages Dec 17, 2012 – Dec 19, 2012 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 x86: Provide guards in uapi/asm/hw_breakpoint.h to prevent deletion by patch

Provide reinclusion guards in the empty uapi/asm/hw_breakpoint.h to make sure that the patch program doesn't delete it.

However, should some part of asm/hw_breakpoint.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.

---

 arch/x86/include/uapi/asm/hw_breakpoint.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/hw_breakpoint.h +4 -0
index e69de29..895596b 100644
@@ -0,0 +1,4 @@
+#ifndef	_UAPI_I386_HW_BREAKPOINT_H
+#define	_UAPI_I386_HW_BREAKPOINT_H
+
+#endif	/* _UAPI_I386_HW_BREAKPOINT_H */
#1 lore raw

PATCH 2/2 x86: Provide guards in uapi/asm/setup.h to prevent deletion by patch

Provide reinclusion guards in the empty uapi/asm/setup.h to make sure that the patch program doesn't delete it.

However, should some part of asm/hw_setup.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.

---

 arch/x86/include/uapi/asm/setup.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/setup.h +4 -0
index e69de29..96a4d53 100644
@@ -0,0 +1,4 @@
+#ifndef _UAPI_ASM_X86_SETUP_H
+#define _UAPI_ASM_X86_SETUP_H
+
+#endif /* _UAPI_ASM_X86_SETUP_H */
Reviewed-by on v1 1/2
#3 lore raw
In reply to David Howells
Quoted 20 lines · David Howells

Provide reinclusion guards in the empty uapi/asm/hw_breakpoint.h to make sure that the patch program doesn't delete it.

However, should some part of asm/hw_breakpoint.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.

---

 arch/x86/include/uapi/asm/hw_breakpoint.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/hw_breakpoint.h +0 -0
index e69de29..895596b 100644

arch/x86/include/uapi/asm/hw_breakpoint.h line 4

Quoted 4 lines
arch/x86/include/uapi/asm/hw_breakpoint.h +4 -0
@@ -0,0 +1,4 @@
+#ifndef	_UAPI_I386_HW_BREAKPOINT_H
+#define	_UAPI_I386_HW_BREAKPOINT_H
+
+#endif	/* _UAPI_I386_HW_BREAKPOINT_H */
Signature · 1 line
Jean Delvare
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] x86: Provide guards in uapi/asm/setup.h to prevent deletion by patch

In reply to David Howells
Quoted 20 lines · David Howells

Provide reinclusion guards in the empty uapi/asm/setup.h to make sure that the patch program doesn't delete it.

However, should some part of asm/hw_setup.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.

---

 arch/x86/include/uapi/asm/setup.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/setup.h +0 -0
index e69de29..96a4d53 100644

arch/x86/include/uapi/asm/setup.h line 4

Quoted 4 lines
arch/x86/include/uapi/asm/setup.h +4 -0
@@ -0,0 +1,4 @@
+#ifndef _UAPI_ASM_X86_SETUP_H
+#define _UAPI_ASM_X86_SETUP_H
+
+#endif /* _UAPI_ASM_X86_SETUP_H */
Signature · 1 line
Jean Delvare