From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755189AbYIKNqr (ORCPT ); Thu, 11 Sep 2008 09:46:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753153AbYIKNqR (ORCPT ); Thu, 11 Sep 2008 09:46:17 -0400 Received: from mtagate8.de.ibm.com ([195.212.29.157]:38060 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbYIKNqP (ORCPT ); Thu, 11 Sep 2008 09:46:15 -0400 Message-Id: <20080911133815.176612777@de.ibm.com> References: <20080911133538.026764388@de.ibm.com> User-Agent: quilt/0.46-1 Date: Thu, 11 Sep 2008 15:35:42 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, lf_kernel_messages@lists.linux-foundation.org, Rusty Russell , Greg KH , Kay Sievers , Joe Perches , Tim Hockin , Andrew Morton , Michael Holzheu , Gerrit Huizenga , Randy Dunlap , Jan Kara , Pavel Machek , Sam Ravnborg , =?ISO-8859-15?q?Jochen=20Vo=DF?= , Kunai Takashi , Tim Bird , Jan Blunck , Rick Troth , Utz Bacher Cc: Christian Borntraeger , Martin Schwidefsky Subject: [patch 4/4] kmsg: convert vmcp to kmsg api. Content-Disposition: inline; filename=803-kmsg-vmcp.diff Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Borntraeger Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky --- drivers/s390/char/vmcp.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) Index: quilt-2.6/drivers/s390/char/vmcp.c =================================================================== --- quilt-2.6.orig/drivers/s390/char/vmcp.c +++ quilt-2.6/drivers/s390/char/vmcp.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -26,7 +27,7 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Christian Borntraeger "); MODULE_DESCRIPTION("z/VM CP interface"); -#define PRINTK_HEADER "vmcp: " +#define KMSG_COMPONENT "vmcp" static debug_info_t *vmcp_debug; @@ -193,7 +194,8 @@ static int __init vmcp_init(void) int ret; if (!MACHINE_IS_VM) { - PRINT_WARN("z/VM CP interface is only available under z/VM\n"); + kmsg_warn("The z/VM CP interface device driver cannot be " + "loaded without z/VM\n"); return -ENODEV; } @@ -216,6 +218,21 @@ static int __init vmcp_init(void) return 0; } +/*? + * Tag: vmcp.42661a + * Text: "The z/VM CP interface device driver cannot be loaded without z/VM\n" + * Severity: Warning + * Description: + * With the z/VM CP interface you can issue z/VM CP commands from a Linux + * terminal session. On Linux instances that run in environments other than + * the z/VM hypervisor, the z/VM CP interface does not provide any useful + * function and the corresponding vmcp device driver cannot be loaded. + * User action: + * Load the vmcp device driver only on Linux instances that run as guest + * operating systems of the z/VM hypervisor. If the device driver has been + * compiled into the kernel, ignore this message. + */ + static void __exit vmcp_exit(void) { misc_deregister(&vmcp_dev); -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.