Skip to content

Commit a91952d

Browse files
junjiemao1lijinxia
authored andcommitted
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 <junjie.mao@intel.com>
1 parent 116038f commit a91952d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hypervisor/include/arch/x86/per_cpu.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
/*
2+
* Copyright (C) 2018 Intel Corporation. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
17
#ifndef PER_CPU_H
28
#define PER_CPU_H
9+
310
#include <hypervisor.h>
411
#include <bsp_extern.h>
512
#include <schedule.h>
6-
#include <version.h>
713
#include <common/irq.h>
814
#include <arch/x86/irq.h>
915
#include <sbuf.h>
@@ -52,4 +58,5 @@ extern uint64_t pcpu_active_bitmap;
5258

5359
/* get percpu data for current pcpu */
5460
#define get_cpu_var(name) per_cpu(name, get_cpu_id())
61+
5562
#endif

0 commit comments

Comments
 (0)