From: Jan Kiszka Subject: [PATCH] ipipe: Make ipipe_root_nr_syscalls independent of CONFIG_IPIPE Message-ID: Date: Wed, 25 Sep 2019 16:45:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: Xenomai From: Jan Kiszka Needed on x86 at least when CONFIG_IPIPE is off. Signed-off-by: Jan Kiszka --- include/linux/ipipe.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/ipipe.h b/include/linux/ipipe.h index 45e8c87bff93..fe90cb55d462 100644 --- a/include/linux/ipipe.h +++ b/include/linux/ipipe.h @@ -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 */ -- 2.16.4