Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754670AbYGaMkg (ORCPT ); Thu, 31 Jul 2008 08:40:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754339AbYGaMkH (ORCPT ); Thu, 31 Jul 2008 08:40:07 -0400 Received: from mtagate1.de.ibm.com ([195.212.29.150]:49380 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754295AbYGaMkE (ORCPT ); Thu, 31 Jul 2008 08:40:04 -0400 Message-Id: <20080731123933.369255482@de.ibm.com> References: <20080731123004.868574766@de.ibm.com> User-Agent: quilt/0.46-1 Date: Thu, 31 Jul 2008 14:30:09 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Christian Borntraeger , Heiko Carstens , Martin Schwidefsky Subject: [patch 5/6] virtio console: fix section mismatch warning. Content-Disposition: inline; filename=104-virtio-console.diff Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1849 Lines: 49 From: Heiko Carstens Fix these two false positive warnings: WARNING: vmlinux.o(.text+0x2e1cc4): Section mismatch in reference from the function s390_virtio_console_init() to the function .init.text:early_put_chars() The function s390_virtio_console_init() references the function __init early_put_chars(). This is often because s390_virtio_console_init lacks a __init annotation or the annotation of early_put_chars is wrong. WARNING: vmlinux.o(.text+0x2e1cd0): Section mismatch in reference from the function s390_virtio_console_init() to the function .init.text:virtio_cons_early_init() The function s390_virtio_console_init() references the function __init virtio_cons_early_init(). This is often because s390_virtio_console_init lacks a __init annotation or the annotation of virtio_cons_early_init is wrong. Cc: Christian Borntraeger Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- drivers/s390/kvm/kvm_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: quilt-2.6/drivers/s390/kvm/kvm_virtio.c =================================================================== --- quilt-2.6.orig/drivers/s390/kvm/kvm_virtio.c +++ quilt-2.6/drivers/s390/kvm/kvm_virtio.c @@ -352,7 +352,7 @@ static __init int early_put_chars(u32 vt return len; } -void s390_virtio_console_init(void) +void __init s390_virtio_console_init(void) { virtio_cons_early_init(early_put_chars); } -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/