]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
block/sunvdc.c:print_version() must be __devinit
authorAdrian Bunk <bunk@kernel.org>
Wed, 30 Jan 2008 20:17:23 +0000 (21:17 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 1 Feb 2008 08:26:32 +0000 (09:26 +0100)
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>
drivers/block/sunvdc.c

index 66e30155b0abe03d504fd6753579409324f326ae..a8de037ecd4ac7b5ab3e56f48f6f15400b196463 100644 (file)
@@ -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;