mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] avr32: Fix build error caused by include file reshuffling
@ 2017-03-06  1:05 Guenter Roeck
  2017-03-06  7:12 ` Hans-Christian Noren Egtvedt
  2017-03-07  9:04 ` [tip:core/urgent] " tip-bot for Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2017-03-06  1:05 UTC (permalink / raw)
  To: Haavard Skinnemoen
  Cc: Robert Richter, Hans-Christian Egtvedt, oprofile-list,
	linux-kernel, Guenter Roeck, Ingo Molnar

Various avr32 builds fail as follows.

arch/avr32/oprofile/backtrace.c:58: error:
	dereferencing pointer to incomplete type
arch/avr32/oprofile/backtrace.c:60: error:
	implicit declaration of function 'user_mode'

Fixes: f780d89a0e82 ("sched/headers: Remove <asm/ptrace.h> from ...")
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
Please feel free to ignore if av32 is going to be removed.

 arch/avr32/oprofile/backtrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/avr32/oprofile/backtrace.c b/arch/avr32/oprofile/backtrace.c
index 75d9ad6f99cf..29cf2f191bfd 100644
--- a/arch/avr32/oprofile/backtrace.c
+++ b/arch/avr32/oprofile/backtrace.c
@@ -14,7 +14,7 @@
  */
 
 #include <linux/oprofile.h>
-#include <linux/sched.h>
+#include <linux/ptrace.h>
 #include <linux/uaccess.h>
 
 /* The first two words of each frame on the stack look like this if we have
-- 
2.7.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-07  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-06  1:05 [PATCH] avr32: Fix build error caused by include file reshuffling Guenter Roeck
2017-03-06  7:12 ` Hans-Christian Noren Egtvedt
2017-03-07  9:04 ` [tip:core/urgent] " tip-bot for Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome