From a91952d3d43a2819263bde2a35ec2102ff802161 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Sun, 15 Jul 2018 17:41:35 +0800 Subject: [PATCH] HV: per_cpu: drop dependency on version.h and add license header version.h is included but not used by per_cpu.h. This results in a forceful rebuild of almost all files because per_cpu.h (and thus version.h) is depended on by many files, and version.h is created every time a build is triggered. This patch breaks this dependency. No further changes needed as sources using version.h all include that file explicitly. Also add the missing license header BTW. Signed-off-by: Junjie Mao --- hypervisor/include/arch/x86/per_cpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hypervisor/include/arch/x86/per_cpu.h b/hypervisor/include/arch/x86/per_cpu.h index 7621ac56f..76e63faff 100644 --- a/hypervisor/include/arch/x86/per_cpu.h +++ b/hypervisor/include/arch/x86/per_cpu.h @@ -1,9 +1,15 @@ +/* + * Copyright (C) 2018 Intel Corporation. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + #ifndef PER_CPU_H #define PER_CPU_H + #include #include #include -#include #include #include #include @@ -52,4 +58,5 @@ extern uint64_t pcpu_active_bitmap; /* get percpu data for current pcpu */ #define get_cpu_var(name) per_cpu(name, get_cpu_id()) + #endif