mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Fixed compiler warnings
This commit is contained in:
@ -15,7 +15,7 @@ static inline SafeFunction __no_instrument_function void profiler_uart_wrapper(c
|
||||
bool renable = EnableProfiler;
|
||||
EnableProfiler = false;
|
||||
UART(COM2).Write(c);
|
||||
(void)unused;
|
||||
UNUSED(unused);
|
||||
if (renable)
|
||||
EnableProfiler = true;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ struct gcov_info
|
||||
static inline SafeFunction __no_instrument_function void gcov_uart_wrapper(char c, void *unused)
|
||||
{
|
||||
UART(COM2).Write(c);
|
||||
(void)unused;
|
||||
UNUSED(unused);
|
||||
}
|
||||
|
||||
// TODO: Implement
|
||||
@ -60,8 +60,12 @@ EXTERNC SafeFunction __no_instrument_function void __gcov_flush(void)
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
|
||||
{
|
||||
UNUSED(counters);
|
||||
UNUSED(n_counters);
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
|
||||
{
|
||||
UNUSED(counters);
|
||||
UNUSED(n_counters);
|
||||
}
|
||||
|
@ -9,11 +9,13 @@ using namespace UniversalAsynchronousReceiverTransmitter;
|
||||
static inline SafeFunction __no_instrument_function void gprof_uart_wrapper(char c, void *unused)
|
||||
{
|
||||
UART(COM2).Write(c);
|
||||
(void)unused;
|
||||
UNUSED(unused);
|
||||
}
|
||||
|
||||
EXTERNC SafeFunction __no_instrument_function void mcount(unsigned long frompc, unsigned long selfpc)
|
||||
{
|
||||
// TODO: Implement
|
||||
/* https://docs.kernel.org/trace/ftrace-design.html */
|
||||
UNUSED(frompc);
|
||||
UNUSED(selfpc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user