Commit b3e06dc3f0256441e15ef9967ecf3500d3e4f022
1 parent
e56da345eb
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
s390/sclp_async: add Kconfig option to specify the component id
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>
Showing 2 changed files with 12 additions and 1 deletions Side-by-side Diff
drivers/s390/char/Kconfig
... | ... | @@ -102,6 +102,16 @@ |
102 | 102 | want for inform other people about your kernel panics, |
103 | 103 | need this feature and intend to run your kernel in LPAR. |
104 | 104 | |
105 | +config SCLP_ASYNC_ID | |
106 | + string "Component ID for Call Home" | |
107 | + depends on SCLP_ASYNC | |
108 | + default "000000000" | |
109 | + help | |
110 | + The Component ID for Call Home is used to identify the correct | |
111 | + problem reporting queue the call home records should be sent to. | |
112 | + | |
113 | + If your are unsure, please use the default value "000000000". | |
114 | + | |
105 | 115 | config HMC_DRV |
106 | 116 | def_tristate m |
107 | 117 | prompt "Support for file transfers from HMC drive CD/DVD-ROM" |
drivers/s390/char/sclp_async.c
... | ... | @@ -137,7 +137,8 @@ |
137 | 137 | * Retain Queue |
138 | 138 | * e.g. 5639CC140 500 Red Hat RHEL5 Linux for zSeries (RHEL AS) |
139 | 139 | */ |
140 | - strncpy(sccb->evbuf.comp_id, "000000000", sizeof(sccb->evbuf.comp_id)); | |
140 | + strncpy(sccb->evbuf.comp_id, CONFIG_SCLP_ASYNC_ID, | |
141 | + sizeof(sccb->evbuf.comp_id)); | |
141 | 142 | sccb->evbuf.header.length = sizeof(sccb->evbuf); |
142 | 143 | sccb->header.length = sizeof(sccb->evbuf) + sizeof(sccb->header); |
143 | 144 | sccb->header.function_code = SCLP_NORMAL_WRITE; |