[PATCH] sparc64: ptrace: Include linux/compiler.h for unlikely()

From: Will Deacon
Date: Fri Oct 20 2017 - 05:21:18 EST


Compiler.g is no longer implicitly included in asm/ptrace.h so pull it
in explicitly to get a definition for the unlikely() macro.

Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Signed-off-by: Will Deacon <will.deacon@xxxxxxx>
---
arch/sparc/include/asm/ptrace.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h
index d73428e4333c..b383484edcd3 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -6,6 +6,7 @@
#if defined(__sparc__) && defined(__arch64__)
#ifndef __ASSEMBLY__

+#include <linux/compiler.h>
#include <linux/threads.h>
#include <asm/switch_to.h>

--
2.1.4