Skip to contentSkip to conversation

block/sunvdc.c:print_version() must be __devinit

PATCH Applied Adrian Bunk 2 participants 2 messages Jan 30, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block/sunvdc.c:print_version() must be __devinit

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 -->

---
302ffded3690214f130c66a7343ad23a1fb7dbbc

drivers/block/sunvdc.c +1 -1
index 66e3015..a8de037 100644
@@ -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;
 
Applied
#1 lore raw
Quoted 10 lines · Adrian Bunk

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 -->

applied

Signature · 1 line
Jens Axboe