]> git.baikalelectronics.ru Git - kernel.git/commit
s390/protvirt: fix compilation issue
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 23 Apr 2020 12:01:14 +0000 (14:01 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 25 Apr 2020 08:17:24 +0000 (10:17 +0200)
commit673deb0beba5d39c2e0bc6536e00b03b6ef59cc0
tree9b5740c52a40cfbcefeef452bfc48a59df1f9e68
parent86dbf32da150339ca81509fa2eb84c814b55258b
s390/protvirt: fix compilation issue

The kernel fails to compile with CONFIG_PROTECTED_VIRTUALIZATION_GUEST
set but CONFIG_KVM unset.

This patch fixes the issue by making the needed variable always available.

Link: https://lkml.kernel.org/r/20200423120114.2027410-1-imbrenda@linux.ibm.com
Fixes: a0f60f843199 ("s390/protvirt: Add sysfs firmware interface for Ultravisor information")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Philipp Rudo <prudo@linux.ibm.com>
Suggested-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/uv.c
arch/s390/kernel/uv.c