Skip to contentSkip to conversation

ipipe: Make ipipe_root_nr_syscalls independent of CONFIG_IPIPE

PATCH Applied Jan Kiszka 2 participants 2 messages Sep 25, 2019 – Oct 6, 2019

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ipipe: Make ipipe_root_nr_syscalls independent of CONFIG_IPIPE

From: Jan Kiszka <[email protected]>

Needed on x86 at least when CONFIG_IPIPE is off.

---
 include/linux/ipipe.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/ipipe.h +4 -4
index 45e8c87bff93..fe90cb55d462 100644
@@ -204,10 +204,6 @@ int __ipipe_notify_user_intreturn(void);
 
 #define __ipipe_serial_debug(__fmt, __args...)	raw_printk(__fmt, ##__args)
 
-#ifndef ipipe_root_nr_syscalls
-#define ipipe_root_nr_syscalls(ti)	NR_syscalls
-#endif
-
 struct ipipe_trap_data {
 	int exception;
 	struct pt_regs *regs;
@@ -718,4 +714,8 @@ static inline void __ipipe_pin_mapping_globally(unsigned long start,
 { }
 #endif
 
+#ifndef ipipe_root_nr_syscalls
+#define ipipe_root_nr_syscalls(ti)	NR_syscalls
+#endif
+
 #endif	/* !__LINUX_IPIPE_H */
Signature · 1 line
2.16.4
#1 lore raw
Quoted 26 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Needed on x86 at least when CONFIG_IPIPE is off.

---
 include/linux/ipipe.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/ipipe.h +0 -4
index 45e8c87bff93..fe90cb55d462 100644
@@ -204,10 +204,6 @@ int __ipipe_notify_user_intreturn(void);
 
 #define __ipipe_serial_debug(__fmt, __args...)	raw_printk(__fmt, ##__args)
 
-#ifndef ipipe_root_nr_syscalls
-#define ipipe_root_nr_syscalls(ti)	NR_syscalls
-#endif
-
 struct ipipe_trap_data {
 	int exception;
 	struct pt_regs *regs;

include/linux/ipipe.h static inline void __ipipe_pin_mapping_globally(unsigned long start, · line 721

Quoted 8 lines
include/linux/ipipe.h +4 -0
@@ -718,4 +714,8 @@ static inline void __ipipe_pin_mapping_globally(unsigned long start,
 { }
 #endif
 
+#ifndef ipipe_root_nr_syscalls
+#define ipipe_root_nr_syscalls(ti)	NR_syscalls
+#endif
+
 #endif	/* !__LINUX_IPIPE_H */

Merged, thanks.

Signature · 1 line
Philippe.