Skip to contentSkip to conversation

include/linux:add missing declations to some .h files

PATCH New [email protected] 1 participant 1 message Jul 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/linux:add missing declations to some .h files

From: "Carver.lio" <[email protected]>

On branch ipipe-x86-4.14.y *ipipe.h* missing declaration of ipipe_root_nr_syscalls* and *ipipe_tickdev.h* missing declaration of *ipipe_host_timer_cleanup* when CONFIG_IPIPE=N.

---
 include/linux/ipipe.h         | 4 ++++
 include/linux/ipipe_tickdev.h | 2 ++
 2 files changed, 6 insertions(+)
include/linux/ipipe.h +4 -0
index b8a80eea..963709a8 100644
@@ -718,4 +718,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 */
include/linux/ipipe_tickdev.h +2 -0
index ff8213f5..b52a9141 100644
@@ -153,6 +153,8 @@ void __ipipe_timer_refresh_freq(unsigned int hrclock_freq);
 
 #define ipipe_host_timer_register(clkevt) do { } while (0)
 
+#define ipipe_host_timer_cleanup(clkevt) do { } while (0)
+
 #endif /* !CONFIG_IPIPE */
 
 #ifdef CONFIG_IPIPE_HAVE_HOSTRT

--
2.17.1