s390/sclp_async: add Kconfig option to specify the component id
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 24 Nov 2014 12:05:05 +0000 (13:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 28 Nov 2014 08:45:11 +0000 (09:45 +0100)
Allow to specify the Compoment ID for Call Home via the kernel
configuration. This removes the need for distribution specific
patch against the sclp_async.c source file.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/Kconfig
drivers/s390/char/sclp_async.c

index db2cb1f8a1b500f4166e1c5e110d81ae6b2b4ed8..a5c6f7e157aa2e825447a50ced4b29b904dd28d5 100644 (file)
@@ -102,6 +102,16 @@ config SCLP_ASYNC
          want for inform other people about your kernel panics,
          need this feature and intend to run your kernel in LPAR.
 
          want for inform other people about your kernel panics,
          need this feature and intend to run your kernel in LPAR.
 
+config SCLP_ASYNC_ID
+       string "Component ID for Call Home"
+       depends on SCLP_ASYNC
+       default "000000000"
+       help
+        The Component ID for Call Home is used to identify the correct
+        problem reporting queue the call home records should be sent to.
+
+        If your are unsure, please use the default value "000000000".
+
 config HMC_DRV
        def_tristate m
        prompt "Support for file transfers from HMC drive CD/DVD-ROM"
 config HMC_DRV
        def_tristate m
        prompt "Support for file transfers from HMC drive CD/DVD-ROM"
index 5f9f929e891c99ac6bc04e74a367ca0e56e76570..19c25427f27fdd702864153fe64f71abb2a175b0 100644 (file)
@@ -137,7 +137,8 @@ static int sclp_async_send_wait(char *message)
         * Retain Queue
         * e.g. 5639CC140 500 Red Hat RHEL5 Linux for zSeries (RHEL AS)
         */
         * Retain Queue
         * e.g. 5639CC140 500 Red Hat RHEL5 Linux for zSeries (RHEL AS)
         */
-       strncpy(sccb->evbuf.comp_id, "000000000", sizeof(sccb->evbuf.comp_id));
+       strncpy(sccb->evbuf.comp_id, CONFIG_SCLP_ASYNC_ID,
+               sizeof(sccb->evbuf.comp_id));
        sccb->evbuf.header.length = sizeof(sccb->evbuf);
        sccb->header.length = sizeof(sccb->evbuf) + sizeof(sccb->header);
        sccb->header.function_code = SCLP_NORMAL_WRITE;
        sccb->evbuf.header.length = sizeof(sccb->evbuf);
        sccb->header.length = sizeof(sccb->evbuf) + sizeof(sccb->header);
        sccb->header.function_code = SCLP_NORMAL_WRITE;