|
@@ -26,7 +26,12 @@ void __check_vmalloc_seq(struct mm_struct *mm);
|
|
|
#ifdef CONFIG_CPU_HAS_ASID
|
|
|
|
|
|
void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
|
|
|
-#define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.id, 0); 0; })
|
|
|
+static inline int
|
|
|
+init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
|
|
+{
|
|
|
+ atomic64_set(&mm->context.id, 0);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
|
|
|
#ifdef CONFIG_ARM_ERRATA_798181
|
|
|
void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
|
|
@@ -85,7 +90,12 @@ static inline void finish_arch_post_lock_switch(void)
|
|
|
|
|
|
#endif /* CONFIG_MMU */
|
|
|
|
|
|
-#define init_new_context(tsk,mm) 0
|
|
|
+static inline int
|
|
|
+init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
#endif /* CONFIG_CPU_HAS_ASID */
|
|
|
|