From: Waldemar Kozaczuk <[email protected]> Committer: Nadav Har'El <[email protected]> Branch: master
cpuid: make internal functions static Signed-off-by: Waldemar Kozaczuk <[email protected]> Message-Id: <[email protected]> --- diff --git a/arch/x64/cpuid.cc b/arch/x64/cpuid.cc --- a/arch/x64/cpuid.cc +++ b/arch/x64/cpuid.cc @@ -68,7 +68,7 @@ cpuid_bit cpuid_bits[] = { constexpr unsigned nr_cpuid_bits = sizeof(cpuid_bits) / sizeof(*cpuid_bits); -void process_cpuid_bit(features_type& features, const cpuid_bit& b) +static void process_cpuid_bit(features_type& features, const cpuid_bit& b) { bool subleaf = b.leaf == 7; auto base = b.leaf & 0xf0000000; @@ -96,7 +96,7 @@ void process_cpuid_bit(features_type& features, const cpuid_bit& b) features.*(b.flag) = (w >> b.bit) & 1; } -void process_xen_bits(features_type &features) +static void process_xen_bits(features_type &features) { signature sig = { 0x566e6558, 0x65584d4d, 0x4d4d566e }; @@ -110,13 +110,13 @@ void process_xen_bits(features_type &features) } } -void process_hyperv_bits(features_type &features) { +static void process_hyperv_bits(features_type &features) { if(hyperv_identify() && hyperv_is_timecount_available()) { features.hyperv_clocksource = true; } } -void process_cpuid(features_type& features) +static void process_cpuid(features_type& features) { for (unsigned i = 0; i < nr_cpuid_bits; ++i) { process_cpuid_bit(features, cpuid_bits[i]); -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0000000000000f7a8d05d7a61c31%40google.com.
