提交 a23816f3 编写于 作者: C Collin Walling 提交者: Christian Borntraeger

s390/setup: diag 318: refactor struct

The diag 318 struct introduced in include/asm/diag.h can be
reused in KVM, so let's condense the version code fields in the
diag318_info struct for easier usage and simplify it until we
can determine how the data should be formatted.
Signed-off-by: NCollin Walling <walling@linux.ibm.com>
Reviewed-by: NDavid Hildenbrand <david@redhat.com>
Reviewed-by: NCornelia Huck <cohuck@redhat.com>
Reviewed-by: NThomas Huth <thuth@redhat.com>
Reviewed-by: NJanosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20200622154636.5499-2-walling@linux.ibm.comSigned-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
上级 b3a9e3b9
...@@ -298,10 +298,8 @@ struct diag26c_mac_resp { ...@@ -298,10 +298,8 @@ struct diag26c_mac_resp {
union diag318_info { union diag318_info {
unsigned long val; unsigned long val;
struct { struct {
unsigned int cpnc : 8; unsigned long cpnc : 8;
unsigned int cpvc_linux : 24; unsigned long cpvc : 56;
unsigned char cpvc_distro[3];
unsigned char zero;
}; };
}; };
......
...@@ -1021,8 +1021,7 @@ static void __init setup_control_program_code(void) ...@@ -1021,8 +1021,7 @@ static void __init setup_control_program_code(void)
{ {
union diag318_info diag318_info = { union diag318_info diag318_info = {
.cpnc = CPNC_LINUX, .cpnc = CPNC_LINUX,
.cpvc_linux = 0, .cpvc = 0,
.cpvc_distro = {0},
}; };
if (!sclp.has_diag318) if (!sclp.has_diag318)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册