Skip to content

Commit

Permalink
block/sunvdc.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/block/sunvdc.o(.text+0xf0): Section mismatch in reference from the function print_version() to the variable .devinit.data:version
WARNING: drivers/block/sunvdc.o(.text+0xf8): 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: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Adrian Bunk authored and Jens Axboe committed Feb 1, 2008
1 parent 8084870 commit e30f98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/sunvdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ static struct vio_driver_ops vdc_vio_ops = {
.handshake_complete = vdc_handshake_complete,
};

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

Expand Down

0 comments on commit e30f98f

Please sign in to comment.