Skip to content

Commit

Permalink
drivers/net/sunvnet.c:print_version() must be __devinit
Browse files Browse the repository at this point in the history
This patch fixes the following section mismatches:

<--  snip  -->

...
WARNING: drivers/net/sunvnet.o(.text+0x220): Section mismatch in reference from the function print_version() to the variable .devinit.data:version
WARNING: drivers/net/sunvnet.o(.text+0x228): Section mismatch in reference from the function print_version() to the variable .devinit.data:version
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Feb 3, 2008
1 parent e6353f3 commit aa782d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/sunvnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ static struct vio_driver_ops vnet_vio_ops = {
.handshake_complete = vnet_handshake_complete,
};

static void print_version(void)
static void __devinit print_version(void)
{
static int version_printed;

Expand Down

0 comments on commit aa782d3

Please sign in to comment.