diff options
author | Andre Przywara <andre.przywara@arm.com> | 2015-06-01 15:51:10 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 17:54:09 +0100 |
commit | 1cbb2c50ce18b5b2bd780f5a330f7b6e11311105 (patch) | |
tree | 20db406471f3cffac6897efdaf04bcf00e08710f /include | |
parent | f323796502fb5538acff18bd7e7979a3abf23bb2 (diff) | |
download | kvmtool-1cbb2c50ce18b5b2bd780f5a330f7b6e11311105.tar.gz |
kvmtool: remove kvm/segment.h
This header just holds three trivial functions, but pulls in
linux/types.h, which calls for trouble when compiling BIOS files on
x86-64 multiarch machines.
Remove unnecessary includes and move the definitions into the files
where they are used.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/kvm/segment.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/kvm/segment.h b/include/kvm/segment.h deleted file mode 100644 index 9387a820..00000000 --- a/include/kvm/segment.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef KVM_SEGMENT_H -#define KVM_SEGMENT_H - -#include <linux/types.h> - -static inline u32 segment_to_flat(u16 selector, u16 offset) -{ - return ((u32)selector << 4) + (u32) offset; -} - -static inline u16 flat_to_seg16(u32 address) -{ - return address >> 4; -} - -static inline u16 flat_to_off16(u32 address, u32 segment) -{ - return address - (segment << 4); -} - -#endif /* KVM_SEGMENT_H */ |