Clang-15 (as seen in the FreeBSD 14 tests) complains:
arch/x86/time.c:1364:20: error: a function declaration without a
prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
s_time_t get_s_time()
^
void
The error message is a bit confusing but appears to new as part of
-Wdeprecated-non-prototype which is part of supporting C2x which formally
removes K&R syntax.
Either way, fix the identified functions.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Backport: Also deal with powernow_register_driver() and flush_all_cache().
master commit:
22b2fa4766728c3057757c00e79da5f7803fff33
master date: 2023-02-17 11:01:54 +0000
.update = powernow_cpufreq_update
};
-unsigned int __init powernow_register_driver()
+unsigned int __init powernow_register_driver(void)
{
unsigned int i, ret = 0;
return 0;
}
-int vmx_cpu_up()
+int vmx_cpu_up(void)
{
return _vmx_cpu_up(false);
}
return t->stamp.local_stime + scale_delta(delta, &t->tsc_scale);
}
-s_time_t get_s_time()
+s_time_t get_s_time(void)
{
return get_s_time_fixed(0);
}
return rc;
}
-int iommu_suspend()
+int iommu_suspend(void)
{
if ( iommu_enabled )
return iommu_get_ops()->suspend();
return 0;
}
-void iommu_resume()
+void iommu_resume(void)
{
if ( iommu_enabled )
iommu_get_ops()->resume();
unmap_domain_page(va);
}
-void flush_all_cache()
+void flush_all_cache(void)
{
wbinvd();
}