s390/purgatory: do not build purgatory with kcov, kasan and friends
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 18 Dec 2019 08:34:57 +0000 (09:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:17:21 +0000 (12:17 +0100)
commit152eaa8626cca077be5c72bd9928e6e56fd61f59
tree0a24adbc7878037bb54be4b1ba1e5fdb8b7ee20e
parent5ee6f0da6bbdaf21368210767434df7ba69f115b
s390/purgatory: do not build purgatory with kcov, kasan and friends

[ Upstream commit c23587c92f6e3260fe3b82bb75b38aa2553b9468 ]

the purgatory must not rely on functions from the "old" kernel,
so we must disable kasan and friends. We also need to have a
separate copy of string.c as the default does not build memcmp
with KASAN.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/purgatory/Makefile
arch/s390/purgatory/string.c [new file with mode: 0644]