[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer well i start getting errors with compiling after adding the kvm patch and some lines manually. also comitted and pushed on my gh.

ryujin@ryujin-vmware201:~/Samsung_dreamlte_Kernel$ ./build.sh
rm: cannot remove 'arch/arm64/boot/dts/exynos/*dtb*': No such file or directory
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
INFO: CC is ../gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p
drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000
In file included from include/linux/perf_event.h:24,
from include/kvm/arm_pmu.h:23,
from ./arch/arm64/include/asm/kvm_host.h:40,
from include/linux/kvm_host.h:35,
from arch/arm64/kernel/asm-offsets.c:24:
./arch/arm64/include/asm/perf_event.h:20:1: error: expected identifier or ‘(’ before ‘+’ token
+#define ARMV8_PMU_MAX_COUNTERS 32
^
./arch/arm64/include/asm/perf_event.h:20:2: error: stray ‘#’ in program
+#define ARMV8_PMU_MAX_COUNTERS 32
^
./arch/arm64/include/asm/perf_event.h:21:2: error: stray ‘#’ in program
+#define ARMV8_PMU_COUNTER_MASK (ARMV8_PMU_MAX_COUNTERS - 1)
^
./arch/arm64/include/asm/perf_event.h:26:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_E (1 << 0) /* Enable all counters */
^
./arch/arm64/include/asm/perf_event.h:27:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_P (1 << 1) /* Reset all counters */
^
./arch/arm64/include/asm/perf_event.h:28:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_C (1 << 2) /* Cycle counter reset */
^
./arch/arm64/include/asm/perf_event.h:29:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_D (1 << 3) /* CCNT counts every 64th cpu cycle */
^
./arch/arm64/include/asm/perf_event.h:30:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_X (1 << 4) /* Export to ETM */
^
./arch/arm64/include/asm/perf_event.h:31:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_DP (1 << 5) /* Disable CCNT if non-invasive debug*/
^
./arch/arm64/include/asm/perf_event.h:32:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_LC (1 << 6) /* Overflow on 64 bit cycle counter */
^
./arch/arm64/include/asm/perf_event.h:33:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_N_SHIFT 11 /* Number of counters supported */
^
./arch/arm64/include/asm/perf_event.h:34:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_N_MASK 0x1f
^
./arch/arm64/include/asm/perf_event.h:35:2: error: stray ‘#’ in program
+#define ARMV8_PMU_PMCR_MASK 0x7f /* Mask for writable bits */
^
./arch/arm64/include/asm/perf_event.h:40:2: error: stray ‘#’ in program
+#define ARMV8_PMU_OVSR_MASK 0xffffffff /* Mask for writable bits */
^
./arch/arm64/include/asm/perf_event.h:41:2: error: stray ‘#’ in program
+#define ARMV8_PMU_OVERFLOWED_MASK ARMV8_PMU_OVSR_MASK
^
./arch/arm64/include/asm/perf_event.h:46:2: error: stray ‘#’ in program
+#define ARMV8_PMU_EVTYPE_MASK 0xc800ffff /* Mask for writable bits */
^
./arch/arm64/include/asm/perf_event.h:47:2: error: stray ‘#’ in program
+#define ARMV8_PMU_EVTYPE_EVENT 0xffff /* Mask for EVENT bits */
^
./arch/arm64/include/asm/perf_event.h:49:2: error: stray ‘#’ in program
+#define ARMV8_PMU_EVTYPE_EVENT_SW_INCR 0 /* Software increment event */
^
./arch/arm64/include/asm/perf_event.h:54:2: error: stray ‘#’ in program
+#define ARMV8_PMU_EXCLUDE_EL1 (1 << 31)
^
./arch/arm64/include/asm/perf_event.h:55:2: error: stray ‘#’ in program
+#define ARMV8_PMU_EXCLUDE_EL0 (1 << 30)
^
./arch/arm64/include/asm/perf_event.h:56:2: error: stray ‘#’ in program
+#define ARMV8_PMU_INCLUDE_EL2 (1 << 27)
^
./arch/arm64/include/asm/perf_event.h:61:2: error: stray ‘#’ in program
+#define ARMV8_PMU_USERENR_MASK 0xf /* Mask for writable bits */
^
./arch/arm64/include/asm/perf_event.h:62:2: error: stray ‘#’ in program
+#define ARMV8_PMU_USERENR_EN (1 << 0) /* PMU regs can be accessed at EL0 */
^
./arch/arm64/include/asm/perf_event.h:63:2: error: stray ‘#’ in program
+#define ARMV8_PMU_USERENR_SW (1 << 1) /* PMSWINC can be written at EL0 */
^
./arch/arm64/include/asm/perf_event.h:64:2: error: stray ‘#’ in program
+#define ARMV8_PMU_USERENR_CR (1 << 2) /* Cycle counter can be read at EL0 */
^
./arch/arm64/include/asm/perf_event.h:65:2: error: stray ‘#’ in program
+#define ARMV8_PMU_USERENR_ER (1 << 3) /* Event counter can be read at EL0 */
^
./arch/arm64/include/asm/perf_event.h:17: error: unterminated #ifndef
#ifndef __ASM_PERF_EVENT_H

In file included from include/kvm/arm_pmu.h:24,
from ./arch/arm64/include/asm/kvm_host.h:40,
from include/linux/kvm_host.h:35,
from arch/arm64/kernel/asm-offsets.c:24:
./arch/arm64/include/asm/perf_event.h:17: error: unterminated #ifndef
#ifndef __ASM_PERF_EVENT_H

In file included from ./arch/arm64/include/asm/kvm_host.h:40,
from include/linux/kvm_host.h:35,
from arch/arm64/kernel/asm-offsets.c:24:
include/kvm/arm_pmu.h:36:21: error: ‘ARMV8_PMU_MAX_COUNTERS’ undeclared here (not in a function); did you mean ‘NR_MM_COUNTERS’?
struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS];
^~~~~~~~~~~~~~~~~~~~~~
NR_MM_COUNTERS

edit: i reverted the patching.