xen/include: make a declaration of 'get_sec' visible where needed

A declaration for 'get_sec' is added in 'xen/include/xen/time.h' to
be available for every call site (in particular 'cper.h').
This also resolves a violation of MISRA C:2012 Rule 8.4.

Fixes: c8cb30cfc8 ("mce: Provide ERST interface")
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Nicola Vetrini authored and Jan Beulich committed 2023-08-10 15:13:58 +02:00
1 parent 2a54704bde
commit 7b799e8ab3
2 files changed
+2 -2

No files matched your search

+1 -2
View File
@@ -23,8 +23,7 @@
#include <xen/types.h>
#include <xen/string.h>
extern unsigned long get_sec(void);
#include <xen/time.h>
typedef struct {
uint8_t b[16];
+1
View File
@@ -36,6 +36,7 @@ s_time_t get_s_time_fixed(u64 at_tick);
s_time_t get_s_time(void);
unsigned long get_localtime(struct domain *d);
uint64_t get_localtime_us(struct domain *d);
unsigned long get_sec(void);
struct tm {
int tm_sec; /* seconds */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.