linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the final tree (net-current tree related)
@ 2010-10-25  3:19 Stephen Rothwell
  2010-10-25  5:26 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-10-25  3:19 UTC (permalink / raw)
  To: David Miller, netdev
  Cc: linux-next, linux-kernel, stephen hemminger, James Chapman

Hi all,

After merging the final tree, today's linux-next build (powerpc
allyesconfig) failed like this:

net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict
net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict
net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict
net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict
net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict
net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict

Caused by commit fc130840d75d42c5a360fd1d8b72489eec09cad3 ("l2tp: make
local function static") since these functions are now static (and should
not be exported).  I wish doing that caused a build failure on other
architectures ...

I applied the following patch:

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 25 Oct 2010 14:16:53 +1100
Subject: [PATCH] l2tp: static functions should not be exported

Causes these build failures on PowerPC:

net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict
net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict
net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict
net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict
net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict
net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 net/l2tp/l2tp_core.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index 5fb4803..c64ce0a 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -844,7 +844,6 @@ error:
 
 	return 1;
 }
-EXPORT_SYMBOL_GPL(l2tp_udp_recv_core);
 
 /* UDP encapsulation receive handler. See net/ipv4/udp.c.
  * Return codes:
@@ -1003,7 +1002,6 @@ static int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
 
 	return 0;
 }
-EXPORT_SYMBOL_GPL(l2tp_xmit_core);
 
 /* Automatically called when the skb is freed.
  */
@@ -1225,7 +1223,6 @@ again:
 	}
 	write_unlock_bh(&tunnel->hlist_lock);
 }
-EXPORT_SYMBOL_GPL(l2tp_tunnel_closeall);
 
 /* Really kill the tunnel.
  * Come here only when all sessions have been cleared from the tunnel.
-- 
1.7.2.3

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

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

* Re: linux-next: build failure after merge of the final tree (net-current tree related)
  2010-10-25  3:19 linux-next: build failure after merge of the final tree (net-current tree related) Stephen Rothwell
@ 2010-10-25  5:26 ` David Miller
  2010-10-25 17:36   ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2010-10-25  5:26 UTC (permalink / raw)
  To: sfr; +Cc: netdev, linux-next, linux-kernel, shemminger, jchapman

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 25 Oct 2010 14:19:56 +1100

> I wish doing that caused a build failure on other architectures ...

Me too :-/

> Subject: [PATCH] l2tp: static functions should not be exported

I'll add this thanks Stephen.

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

* Re: linux-next: build failure after merge of the final tree (net-current tree related)
  2010-10-25  5:26 ` David Miller
@ 2010-10-25 17:36   ` Stephen Hemminger
  2010-10-25 23:04     ` Section msimatch warnings (Was: Re: linux-next: build failure after merge of the final tree (net-current tree related)) Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2010-10-25 17:36 UTC (permalink / raw)
  To: David Miller; +Cc: sfr, netdev, linux-next, linux-kernel, jchapman

On Sun, 24 Oct 2010 22:26:02 -0700 (PDT)
David Miller <davem@davemloft.net> wrote:

> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Mon, 25 Oct 2010 14:19:56 +1100
> 
> > I wish doing that caused a build failure on other architectures ...
> 
> Me too :-/
> 
> > Subject: [PATCH] l2tp: static functions should not be exported
> 
> I'll add this thanks Stephen.

The section mismatch warning on x86 is not shown by default
because there are still so many problems.

-- 

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

* Section msimatch warnings (Was: Re: linux-next: build failure after merge of the final tree (net-current tree related))
  2010-10-25 17:36   ` Stephen Hemminger
@ 2010-10-25 23:04     ` Stephen Rothwell
  2010-10-25 23:27       ` Section msimatch warnings David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-10-25 23:04 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: David Miller, netdev, linux-next, linux-kernel, jchapman

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

Hi Stephen,

On Mon, 25 Oct 2010 10:36:36 -0700 Stephen Hemminger <shemminger@vyatta.com> wrote:
>
> The section mismatch warning on x86 is not shown by default
> because there are still so many problems.

This is actually different - it is generated by the compiler.  I am not
sure why we only get them on PowerPC.  Rusty suggested that we could
dynamically create a file that just referenced all the EXPORTed symbols
(we know what they are) and try to link that.  Then we would find all the
static ones.  PowerPC would still find them earlier, of course, but since
a lot of poeple only compile for x86(_64), they may not get as far as the
PowerPC builds.

The other section mismatch warnings (generated by an external program)
are certainly suppressed by default on all architectures.  I enable them
for some of my builds, and it is not too bad at the moment (apart from a
couple of particular subsystems - and Sparc :-)).  I suspect that if we
reenabled them by default, they would be fixed fairly quickly.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

* Re: Section msimatch warnings
  2010-10-25 23:04     ` Section msimatch warnings (Was: Re: linux-next: build failure after merge of the final tree (net-current tree related)) Stephen Rothwell
@ 2010-10-25 23:27       ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-10-25 23:27 UTC (permalink / raw)
  To: sfr; +Cc: shemminger, netdev, linux-next, linux-kernel, jchapman

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 26 Oct 2010 10:04:27 +1100

> This is actually different - it is generated by the compiler.  I am not
> sure why we only get them on PowerPC.

I think it has to do with how function descriptors work on powerpc.

Code references to static (local) things work different from how
global scope references work.

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

end of thread, other threads:[~2010-10-25 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-25  3:19 linux-next: build failure after merge of the final tree (net-current tree related) Stephen Rothwell
2010-10-25  5:26 ` David Miller
2010-10-25 17:36   ` Stephen Hemminger
2010-10-25 23:04     ` Section msimatch warnings (Was: Re: linux-next: build failure after merge of the final tree (net-current tree related)) Stephen Rothwell
2010-10-25 23:27       ` Section msimatch warnings David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).