All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc: fix compile failure in kgdb_64.c
@ 2012-03-30 19:31 Paul Gortmaker
  2012-03-30 20:16 ` Sam Ravnborg
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paul Gortmaker @ 2012-03-30 19:31 UTC (permalink / raw)
  To: sparclinux

To fix:

  CC      arch/sparc/kernel/kgdb_64.o
 arch/sparc/kernel/kgdb_64.c: In function 'smp_kgdb_capture_client':
 arch/sparc/kernel/kgdb_64.c:121: error: implicit declaration of function 'flushw_all'
 make[2]: *** [arch/sparc/kernel/kgdb_64.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[tested on linux-next; presumably caused by the asm/system.h split]

diff --git a/arch/sparc/kernel/kgdb_64.c b/arch/sparc/kernel/kgdb_64.c
index 768290a..e916169 100644
--- a/arch/sparc/kernel/kgdb_64.c
+++ b/arch/sparc/kernel/kgdb_64.c
@@ -8,6 +8,7 @@
 #include <linux/ftrace.h>
 
 #include <asm/kdebug.h>
+#include <asm/cacheflush.h>
 #include <asm/ptrace.h>
 #include <asm/irq.h>
 
-- 
1.7.9.1


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

* Re: [PATCH] sparc: fix compile failure in kgdb_64.c
  2012-03-30 19:31 [PATCH] sparc: fix compile failure in kgdb_64.c Paul Gortmaker
@ 2012-03-30 20:16 ` Sam Ravnborg
  2012-03-30 20:18 ` Sam Ravnborg
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2012-03-30 20:16 UTC (permalink / raw)
  To: sparclinux

On Fri, Mar 30, 2012 at 03:31:24PM -0400, Paul Gortmaker wrote:
> To fix:
> 
>   CC      arch/sparc/kernel/kgdb_64.o
>  arch/sparc/kernel/kgdb_64.c: In function 'smp_kgdb_capture_client':
>  arch/sparc/kernel/kgdb_64.c:121: error: implicit declaration of function 'flushw_all'
>  make[2]: *** [arch/sparc/kernel/kgdb_64.o] Error 1
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
> 
> [tested on linux-next; presumably caused by the asm/system.h split]
> 
> diff --git a/arch/sparc/kernel/kgdb_64.c b/arch/sparc/kernel/kgdb_64.c
> index 768290a..e916169 100644
> --- a/arch/sparc/kernel/kgdb_64.c
> +++ b/arch/sparc/kernel/kgdb_64.c
> @@ -8,6 +8,7 @@
>  #include <linux/ftrace.h>
>  
>  #include <asm/kdebug.h>
> +#include <asm/cacheflush.h>
>  #include <asm/ptrace.h>
>  #include <asm/irq.h>

David already fixed this in the sparc tree and sent a pull request to Linus.
You can see his patch here:
https://git.kernel.org/?p=linux/kernel/git/davem/sparc.git;a=commitdiff;h‹efc9f23c695395de011ced289c611fada22f35

Please note a small difference...
The include is placed in the top to maintain the "inverse christmas tree" order.
Longest includes first - and these with equal length are sorted alphabetically.

This is used for all new sparc code.

	Sam

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

* Re: [PATCH] sparc: fix compile failure in kgdb_64.c
  2012-03-30 19:31 [PATCH] sparc: fix compile failure in kgdb_64.c Paul Gortmaker
  2012-03-30 20:16 ` Sam Ravnborg
@ 2012-03-30 20:18 ` Sam Ravnborg
  2012-03-30 20:47 ` David Miller
  2012-03-30 21:56 ` Paul Gortmaker
  3 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2012-03-30 20:18 UTC (permalink / raw)
  To: sparclinux

> 
> David already fixed this in the sparc tree and sent a pull request to Linus.

Which is already upstream - so sparc64 should build now.

	Sam

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

* Re: [PATCH] sparc: fix compile failure in kgdb_64.c
  2012-03-30 19:31 [PATCH] sparc: fix compile failure in kgdb_64.c Paul Gortmaker
  2012-03-30 20:16 ` Sam Ravnborg
  2012-03-30 20:18 ` Sam Ravnborg
@ 2012-03-30 20:47 ` David Miller
  2012-03-30 21:56 ` Paul Gortmaker
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2012-03-30 20:47 UTC (permalink / raw)
  To: sparclinux

From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Fri, 30 Mar 2012 15:31:24 -0400

> To fix:
> 
>   CC      arch/sparc/kernel/kgdb_64.o
>  arch/sparc/kernel/kgdb_64.c: In function 'smp_kgdb_capture_client':
>  arch/sparc/kernel/kgdb_64.c:121: error: implicit declaration of function 'flushw_all'
>  make[2]: *** [arch/sparc/kernel/kgdb_64.o] Error 1
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

I already pushed this fix to Linus last night.

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

* Re: [PATCH] sparc: fix compile failure in kgdb_64.c
  2012-03-30 19:31 [PATCH] sparc: fix compile failure in kgdb_64.c Paul Gortmaker
                   ` (2 preceding siblings ...)
  2012-03-30 20:47 ` David Miller
@ 2012-03-30 21:56 ` Paul Gortmaker
  3 siblings, 0 replies; 5+ messages in thread
From: Paul Gortmaker @ 2012-03-30 21:56 UTC (permalink / raw)
  To: sparclinux

On 12-03-30 04:47 PM, David Miller wrote:
> From: Paul Gortmaker <paul.gortmaker@windriver.com>
> Date: Fri, 30 Mar 2012 15:31:24 -0400
> 
>> To fix:
>>
>>   CC      arch/sparc/kernel/kgdb_64.o
>>  arch/sparc/kernel/kgdb_64.c: In function 'smp_kgdb_capture_client':
>>  arch/sparc/kernel/kgdb_64.c:121: error: implicit declaration of function 'flushw_all'
>>  make[2]: *** [arch/sparc/kernel/kgdb_64.o] Error 1
>>
>> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> I already pushed this fix to Linus last night.

Sorry for the noise.  One of those moment where you hit enter
and *then* realize that you forgot to check if it was already
reported/fixed.

P.

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

end of thread, other threads:[~2012-03-30 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 19:31 [PATCH] sparc: fix compile failure in kgdb_64.c Paul Gortmaker
2012-03-30 20:16 ` Sam Ravnborg
2012-03-30 20:18 ` Sam Ravnborg
2012-03-30 20:47 ` David Miller
2012-03-30 21:56 ` Paul Gortmaker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.