public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Fix section conflict of ia64_mlogbuf_finish
@ 2007-05-15 16:42 Martin Michlmayr
  2007-05-15 16:50 ` Luck, Tony
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Martin Michlmayr @ 2007-05-15 16:42 UTC (permalink / raw)
  To: linux-ia64

Building with GCC 4.2, I get the following error:

  CC      arch/ia64/kernel/mca.o
arch/ia64/kernel/mca.c:275: error: __ksymtab_ia64_mlogbuf_finish causes a section type conflict

This is because ia64_mlogbuf_finish is both declared static and exported.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

--- a/arch/ia64/kernel/mca.c~	2007-05-15 16:15:50.000000000 +0000
+++ b/arch/ia64/kernel/mca.c	2007-05-15 16:27:46.985701032 +0000
@@ -254,7 +254,7 @@
  * invoked, long-wait rendezvous etc.)
  *  NOTE: this should be called from monarch.
  */
-static void ia64_mlogbuf_finish(int wait)
+void ia64_mlogbuf_finish(int wait)
 {
 	BREAK_LOGLEVEL(console_loglevel);
 

-- 
Martin Michlmayr
http://www.cyrius.com/

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

* RE: Fix section conflict of ia64_mlogbuf_finish
  2007-05-15 16:42 Fix section conflict of ia64_mlogbuf_finish Martin Michlmayr
@ 2007-05-15 16:50 ` Luck, Tony
  2007-05-15 18:32 ` Russ Anderson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2007-05-15 16:50 UTC (permalink / raw)
  To: linux-ia64

>  CC      arch/ia64/kernel/mca.o
> arch/ia64/kernel/mca.c:275: error: __ksymtab_ia64_mlogbuf_finish causes a section type conflict
>
> This is because ia64_mlogbuf_finish is both declared static and exported.

Why is it exported?  mca_drv.c (our only mca related module) doesn't
use it.  Perhaps the fix should be to drop the EXPORT?

-Tony

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

* Re: Fix section conflict of ia64_mlogbuf_finish
  2007-05-15 16:42 Fix section conflict of ia64_mlogbuf_finish Martin Michlmayr
  2007-05-15 16:50 ` Luck, Tony
@ 2007-05-15 18:32 ` Russ Anderson
  2007-05-15 19:03 ` Martin Michlmayr
  2007-05-16  0:43 ` Hidetoshi Seto
  3 siblings, 0 replies; 5+ messages in thread
From: Russ Anderson @ 2007-05-15 18:32 UTC (permalink / raw)
  To: linux-ia64

Tony Luck wrote:
>
> >  CC      arch/ia64/kernel/mca.o
> > arch/ia64/kernel/mca.c:275: error: __ksymtab_ia64_mlogbuf_finish causes a section type conflict
> >
> > This is because ia64_mlogbuf_finish is both declared static and exported.
> 
> Why is it exported?  mca_drv.c (our only mca related module) doesn't
> use it.  Perhaps the fix should be to drop the EXPORT?

I suspect EXPORT is left over from the initial development/debug.
Either change is fine with me.

-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com

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

* Re: Fix section conflict of ia64_mlogbuf_finish
  2007-05-15 16:42 Fix section conflict of ia64_mlogbuf_finish Martin Michlmayr
  2007-05-15 16:50 ` Luck, Tony
  2007-05-15 18:32 ` Russ Anderson
@ 2007-05-15 19:03 ` Martin Michlmayr
  2007-05-16  0:43 ` Hidetoshi Seto
  3 siblings, 0 replies; 5+ messages in thread
From: Martin Michlmayr @ 2007-05-15 19:03 UTC (permalink / raw)
  To: linux-ia64

* Russ Anderson <rja@sgi.com> [2007-05-15 13:32]:
> I suspect EXPORT is left over from the initial development/debug.
> Either change is fine with me.

OK, then let's use this one instead:


Subject: Fix section conflict of ia64_mlogbuf_finish

Building with GCC 4.2, I get the following error:

  CC      arch/ia64/kernel/mca.o
arch/ia64/kernel/mca.c:275: error: __ksymtab_ia64_mlogbuf_finish causes a
section type conflict

This is because ia64_mlogbuf_finish is both declared static and exported.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -272,7 +272,6 @@ static void ia64_mlogbuf_finish(int wait)
 
 	mlogbuf_finished = 1;
 }
-EXPORT_SYMBOL(ia64_mlogbuf_finish);
 
 /*
  * Print buffered messages from INIT context.

-- 
Martin Michlmayr
http://www.cyrius.com/

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

* Re: Fix section conflict of ia64_mlogbuf_finish
  2007-05-15 16:42 Fix section conflict of ia64_mlogbuf_finish Martin Michlmayr
                   ` (2 preceding siblings ...)
  2007-05-15 19:03 ` Martin Michlmayr
@ 2007-05-16  0:43 ` Hidetoshi Seto
  3 siblings, 0 replies; 5+ messages in thread
From: Hidetoshi Seto @ 2007-05-16  0:43 UTC (permalink / raw)
  To: linux-ia64

 >> I suspect EXPORT is left over from the initial development/debug.

Yes, that's right.

The reason why the EXPORT was there is that I supposed a optional use
of ia64_mlogbuf_finish expecting that there would be some non-standard
mca recovery module, module relating kdump or something.
However such module is not there at the moment.

Thanks,
H.Seto

Martin Michlmayr wrote:
> * Russ Anderson <rja@sgi.com> [2007-05-15 13:32]:
>> I suspect EXPORT is left over from the initial development/debug.
>> Either change is fine with me.
> 
> OK, then let's use this one instead:
> 
> 
> Subject: Fix section conflict of ia64_mlogbuf_finish
> 
> Building with GCC 4.2, I get the following error:
> 
>   CC      arch/ia64/kernel/mca.o
> arch/ia64/kernel/mca.c:275: error: __ksymtab_ia64_mlogbuf_finish causes a
> section type conflict
> 
> This is because ia64_mlogbuf_finish is both declared static and exported.
> 
> Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
> 
> --- a/arch/ia64/kernel/mca.c
> +++ b/arch/ia64/kernel/mca.c
> @@ -272,7 +272,6 @@ static void ia64_mlogbuf_finish(int wait)
>  
>  	mlogbuf_finished = 1;
>  }
> -EXPORT_SYMBOL(ia64_mlogbuf_finish);
>  
>  /*
>   * Print buffered messages from INIT context.
> 

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

end of thread, other threads:[~2007-05-16  0:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 16:42 Fix section conflict of ia64_mlogbuf_finish Martin Michlmayr
2007-05-15 16:50 ` Luck, Tony
2007-05-15 18:32 ` Russ Anderson
2007-05-15 19:03 ` Martin Michlmayr
2007-05-16  0:43 ` Hidetoshi Seto

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