diff options
author | Jean-Marc Lenoir | 2020-03-13 13:34:52 +0100 |
---|---|---|
committer | Jean-Marc Lenoir | 2020-03-13 13:34:52 +0100 |
commit | 13aca7afd5c8ec0394448324ce5d60f95f84939d (patch) | |
tree | 0a46cb3e2871d40683d51b6e4917fdbfccc40d1b /vmmon.patch | |
parent | c68579f7e0e14de796bcc0b4bc2f81b3ae961122 (diff) | |
download | aur-13aca7afd5c8ec0394448324ce5d60f95f84939d.tar.gz |
Compatibility with Linux 5.6
Diffstat (limited to 'vmmon.patch')
-rw-r--r-- | vmmon.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vmmon.patch b/vmmon.patch index f2e32d6d0270..1e8d0dbdff0f 100644 --- a/vmmon.patch +++ b/vmmon.patch @@ -12,3 +12,30 @@ # Header directory for the running kernel ifdef LINUXINCLUDE +From d74ce8b7b4e734140235f219ccd87eff3c6fedae Mon Sep 17 00:00:00 2001 +From: Michal Kubecek <mkubecek@suse.cz> +Date: Tue, 28 Jan 2020 07:16:30 +0100 +Subject: [PATCH] vmmon: replace ioremap_nocache() with ioremap() + +Mainline commit 4bdc0d676a64 ("remove ioremap_nocache and +devm_ioremap_nocache") in v5.6-rc1 removes ioremap_nocache() and replaces +all uses with ioremap(). As the commit message says that "ioremap has +provided non-cached semantics by default since the Linux 2.6", do the same +unconditionally. +--- + vmmon-only/linux/hostif.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c +index 1e1be1a..6f51cad 100644 +--- a/vmmon-only/linux/hostif.c ++++ b/vmmon-only/linux/hostif.c +@@ -2323,7 +2323,7 @@ SetVMAPICAddr(VMDriver *vm, // IN/OUT: driver state + volatile void *hostapic; + + ASSERT_ON_COMPILE(APICR_SIZE <= PAGE_SIZE); +- hostapic = (volatile void *) ioremap_nocache(ma, PAGE_SIZE); ++ hostapic = (volatile void *) ioremap(ma, PAGE_SIZE); + if (hostapic) { + if ((APIC_VERSIONREG(hostapic) & 0xF0) == 0x10) { + vm->hostAPIC.base = (volatile uint32 (*)[4]) hostapic; |