treewide: Fix build errors with clang18

This commit is contained in:
Gabriel2392 2023-10-21 09:12:14 -03:00
parent ec54855c0d
commit 9721b7ac13
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ static void dbg_snapshot_combine_pmsg(char *buffer, size_t count, unsigned int l
rem_nsec = do_div(tv_kernel, 1000000000);
time64_to_tm(logger.tv_sec, 0, &tmBuf);
logbuf_len = snprintf(logbuf, LOGGER_HEADER_SIZE,
"\n[%5llu.%06lu][%d:%16s] %02d-%02d %02d:%02d:%02d.%03d %5d %5d ",
"\n[%5llu.%06lu][%d:%16s] %02d-%02d %02d:%02d:%02d.%03d %5d %5d ",
tv_kernel, rem_nsec / 1000, raw_smp_processor_id(), current->comm,
tmBuf.tm_mon + 1, tmBuf.tm_mday,
tmBuf.tm_hour, tmBuf.tm_min, tmBuf.tm_sec,

View file

@ -40,7 +40,7 @@ struct sysbusy_stat {
u64 time_in_state;
} sysbusy_stats[NUM_OF_SYSBUSY_STATE];
static cpn_next_cpu[VENDOR_NR_CPUS] = { [0 ... VENDOR_NR_CPUS - 1] = -1 };
static int cpn_next_cpu[VENDOR_NR_CPUS] = { [0 ... VENDOR_NR_CPUS - 1] = -1 };
/******************************************************************************
* sysbusy notify *
******************************************************************************/