Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffc2238a authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86, bts: fix build error



Impact: build fix

 arch/x86/kernel/ds.c: In function 'ds_request':
 arch/x86/kernel/ds.c:236: sorry, unimplemented: inlining failed in call to 'ds_get_context': recursive inlining

but the recursion here is scary ...

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a93751ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -232,7 +232,7 @@ static DEFINE_PER_CPU(struct ds_context *, system_context_array);


#define system_context per_cpu(system_context_array, smp_processor_id())
#define system_context per_cpu(system_context_array, smp_processor_id())


static inline struct ds_context *ds_get_context(struct task_struct *task)
static struct ds_context *ds_get_context(struct task_struct *task)
{
{
	struct ds_context **p_context =
	struct ds_context **p_context =
		(task ? &task->thread.ds_ctx : &system_context);
		(task ? &task->thread.ds_ctx : &system_context);