All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix for structure declaration error
@ 2004-12-19 16:06 Art Haas
  2004-12-19 16:55 ` William Lee Irwin III
  2004-12-20 12:59 ` William Lee Irwin III
  0 siblings, 2 replies; 3+ messages in thread
From: Art Haas @ 2004-12-19 16:06 UTC (permalink / raw)
  To: sparclinux

Hi.

I tried building an SMP kernel for my SS20 last night using the CVS
version of GCC. The build failed with this error:

arch/sparc/kernel/time.c:57: error: static declaration of 'mstk48t08_regs' follows non-static declaration
include/asm/mostek.h:131: error: previous declaration of 'mstk48t08_regs' was here

The patch below fixed this problem. The SMP kernel itself ultimately did
not link due to other problems, but as SMP on 32-bit Sparc is still broken,
I couldn't try and run what I'd built. Building of an SMP kernel was
just something to try and see if all the files would even compile, as
was not the case several months ago. BTW, the link error was:

kernel/built-in.o(.spinlock.text+0x4): In function '_write_trylock':
ksysfs.c: undefined reference to '_raw_write_trylock'.

Art Haas

=== include/asm-sparc/mostek.h 1.4 vs edited ==--- 1.4/include/asm-sparc/mostek.h	2004-12-08 22:21:53 -06:00
+++ edited/include/asm-sparc/mostek.h	2004-12-19 09:42:27 -06:00
@@ -128,7 +128,6 @@
 	char offset[6*1024];         /* Magic things may be here, who knows? */
 	struct mostek48t02 regs;     /* Here is what we are interested in.   */
 };
-extern struct mostek48t08 *mstk48t08_regs;
 
 extern enum sparc_clock_type sp_clock_typ;
 
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822

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

* Re: [PATCH] Fix for structure declaration error
  2004-12-19 16:06 [PATCH] Fix for structure declaration error Art Haas
@ 2004-12-19 16:55 ` William Lee Irwin III
  2004-12-20 12:59 ` William Lee Irwin III
  1 sibling, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2004-12-19 16:55 UTC (permalink / raw)
  To: sparclinux

On Sun, Dec 19, 2004 at 10:06:43AM -0600, Art Haas wrote:
> I tried building an SMP kernel for my SS20 last night using the CVS
> version of GCC. The build failed with this error:
> arch/sparc/kernel/time.c:57: error: static declaration of 'mstk48t08_regs' follows non-static declaration
> include/asm/mostek.h:131: error: previous declaration of 'mstk48t08_regs' was here
> The patch below fixed this problem. The SMP kernel itself ultimately did
> not link due to other problems, but as SMP on 32-bit Sparc is still broken,
> I couldn't try and run what I'd built. Building of an SMP kernel was
> just something to try and see if all the files would even compile, as
> was not the case several months ago. BTW, the link error was:
> kernel/built-in.o(.spinlock.text+0x4): In function '_write_trylock':
> ksysfs.c: undefined reference to '_raw_write_trylock'.

I'm aware of this and have pending code for it. I'll send in this
change with the rest of the pending patches. Hopefully I can get them
out today.


-- wli

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

* Re: [PATCH] Fix for structure declaration error
  2004-12-19 16:06 [PATCH] Fix for structure declaration error Art Haas
  2004-12-19 16:55 ` William Lee Irwin III
@ 2004-12-20 12:59 ` William Lee Irwin III
  1 sibling, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2004-12-20 12:59 UTC (permalink / raw)
  To: sparclinux

On Sun, Dec 19, 2004 at 10:06:43AM -0600, Art Haas wrote:
>> The patch below fixed this problem. The SMP kernel itself ultimately did
>> not link due to other problems, but as SMP on 32-bit Sparc is still broken,
>> I couldn't try and run what I'd built. Building of an SMP kernel was
>> just something to try and see if all the files would even compile, as
>> was not the case several months ago. BTW, the link error was:
>> kernel/built-in.o(.spinlock.text+0x4): In function '_write_trylock':
>> ksysfs.c: undefined reference to '_raw_write_trylock'.

On Sun, Dec 19, 2004 at 08:55:08AM -0800, William Lee Irwin III wrote:
> I'm aware of this and have pending code for it. I'll send in this
> change with the rest of the pending patches. Hopefully I can get them
> out today.

I've not wrapped up testing just yet. I should have an update out in
a couple of hours.


-- wli

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

end of thread, other threads:[~2004-12-20 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-19 16:06 [PATCH] Fix for structure declaration error Art Haas
2004-12-19 16:55 ` William Lee Irwin III
2004-12-20 12:59 ` William Lee Irwin III

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.