Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

virtio/virtcons: fix section mismatch warning

Make virtcons_probe() __devinit.
Fixes this section warning:

WARNING: vmlinux.o(.text+0x14c10b): Section mismatch: reference to .init.text:hvc_alloc (between 'virtcons_probe' and 'ac_register_board')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
139b8298 12730926

+1 -1
+1 -1
drivers/char/virtio_console.c
··· 141 141 * never remove the console device we never need this pointer again. 142 142 * 143 143 * Finally we put our input buffer in the input queue, ready to receive. */ 144 - static int virtcons_probe(struct virtio_device *dev) 144 + static int __devinit virtcons_probe(struct virtio_device *dev) 145 145 { 146 146 int err; 147 147 struct hvc_struct *hvc;