The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] score: Add missing include files
@ 2017-02-22 19:07 Guenter Roeck
  2017-02-22 19:46 ` Paul Gortmaker
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2017-02-22 19:07 UTC (permalink / raw)
  To: Chen Liqin; +Cc: Lennox Wu, linux-kernel, Guenter Roeck, Paul Gortmaker

Kernel builds fail with

arch/score/kernel/traps.c: In function 'do_ri':
arch/score/kernel/traps.c:248:4: error:
	implicit declaration of function 'user_disable_single_step'
arch/score/mm/extable.c: In function 'fixup_exception':
arch/score/mm/extable.c:32:38: error:
	dereferencing pointer to incomplete type
arch/score/mm/extable.c:34:24: error:
	dereferencing pointer to incomplete type

Fixes: 0f296af85be8 ("score: migrate exception table users off ...")
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 arch/score/kernel/traps.c | 1 +
 arch/score/mm/extable.c   | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/score/kernel/traps.c b/arch/score/kernel/traps.c
index 2b22bcf02c27..d0634cb6127f 100644
--- a/arch/score/kernel/traps.c
+++ b/arch/score/kernel/traps.c
@@ -24,6 +24,7 @@
  */
 
 #include <linux/extable.h>
+#include <linux/ptrace.h>
 #include <linux/sched.h>
 
 #include <asm/cacheflush.h>
diff --git a/arch/score/mm/extable.c b/arch/score/mm/extable.c
index ec871355fc2d..6736a3ad6286 100644
--- a/arch/score/mm/extable.c
+++ b/arch/score/mm/extable.c
@@ -24,6 +24,8 @@
  */
 
 #include <linux/extable.h>
+#include <linux/ptrace.h>
+#include <asm/extable.h>
 
 int fixup_exception(struct pt_regs *regs)
 {
-- 
2.7.4

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

* Re: [PATCH] score: Add missing include files
  2017-02-22 19:07 [PATCH] score: Add missing include files Guenter Roeck
@ 2017-02-22 19:46 ` Paul Gortmaker
  2017-02-22 19:58   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2017-02-22 19:46 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Chen Liqin, Lennox Wu, linux-kernel

[[PATCH] score: Add missing include files] On 22/02/2017 (Wed 11:07) Guenter Roeck wrote:

> Kernel builds fail with
> 
> arch/score/kernel/traps.c: In function 'do_ri':
> arch/score/kernel/traps.c:248:4: error:
> 	implicit declaration of function 'user_disable_single_step'
> arch/score/mm/extable.c: In function 'fixup_exception':
> arch/score/mm/extable.c:32:38: error:
> 	dereferencing pointer to incomplete type
> arch/score/mm/extable.c:34:24: error:
> 	dereferencing pointer to incomplete type
> 
> Fixes: 0f296af85be8 ("score: migrate exception table users off ...")

Not surprising, neither me/korg[1] nor kbuild nor linux-next have score
tc for build coverage, so score got the "this looks right" treatment.

Too bad your coverage didn't use linux-next over the last couple weeks,
as then it could have been in the pull request I'd just sent.  Oh well.

Mind if I ask where you got your toolchain?  I'm not in a position to
futz around trying to build one myself for some of these less common
architectures, but I'm not against extending my coverage using existing
toolchains.

[1] https://www.kernel.org/pub/tools/crosstool/

Thanks,
Paul.
--

> Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  arch/score/kernel/traps.c | 1 +
>  arch/score/mm/extable.c   | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/arch/score/kernel/traps.c b/arch/score/kernel/traps.c
> index 2b22bcf02c27..d0634cb6127f 100644
> --- a/arch/score/kernel/traps.c
> +++ b/arch/score/kernel/traps.c
> @@ -24,6 +24,7 @@
>   */
>  
>  #include <linux/extable.h>
> +#include <linux/ptrace.h>
>  #include <linux/sched.h>
>  
>  #include <asm/cacheflush.h>
> diff --git a/arch/score/mm/extable.c b/arch/score/mm/extable.c
> index ec871355fc2d..6736a3ad6286 100644
> --- a/arch/score/mm/extable.c
> +++ b/arch/score/mm/extable.c
> @@ -24,6 +24,8 @@
>   */
>  
>  #include <linux/extable.h>
> +#include <linux/ptrace.h>
> +#include <asm/extable.h>
>  
>  int fixup_exception(struct pt_regs *regs)
>  {
> -- 
> 2.7.4
> 

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

* Re: [PATCH] score: Add missing include files
  2017-02-22 19:46 ` Paul Gortmaker
@ 2017-02-22 19:58   ` Guenter Roeck
  0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2017-02-22 19:58 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: Chen Liqin, Lennox Wu, linux-kernel

On Wed, Feb 22, 2017 at 02:46:33PM -0500, Paul Gortmaker wrote:
> [[PATCH] score: Add missing include files] On 22/02/2017 (Wed 11:07) Guenter Roeck wrote:
> 
> > Kernel builds fail with
> > 
> > arch/score/kernel/traps.c: In function 'do_ri':
> > arch/score/kernel/traps.c:248:4: error:
> > 	implicit declaration of function 'user_disable_single_step'
> > arch/score/mm/extable.c: In function 'fixup_exception':
> > arch/score/mm/extable.c:32:38: error:
> > 	dereferencing pointer to incomplete type
> > arch/score/mm/extable.c:34:24: error:
> > 	dereferencing pointer to incomplete type
> > 
> > Fixes: 0f296af85be8 ("score: migrate exception table users off ...")
> 
> Not surprising, neither me/korg[1] nor kbuild nor linux-next have score
> tc for build coverage, so score got the "this looks right" treatment.
> 
> Too bad your coverage didn't use linux-next over the last couple weeks,
> as then it could have been in the pull request I'd just sent.  Oh well.
> 
It did, and it reported it, but reports are manual and unfortunately
I don't always have time for an immediate bisect.

> Mind if I ask where you got your toolchain?  I'm not in a position to
> futz around trying to build one myself for some of these less common
> architectures, but I'm not against extending my coverage using existing
> toolchains.
> 
I use http://server.roeck-us.net/toolchains/score.tgz, which I picked up
from the internet some time ago (don't ask me where).

Guenter

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

end of thread, other threads:[~2017-02-22 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-22 19:07 [PATCH] score: Add missing include files Guenter Roeck
2017-02-22 19:46 ` Paul Gortmaker
2017-02-22 19:58   ` Guenter Roeck

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