Fix a few more warnings
Some are important, e.g. the seemingly harmless braces around if with dprintf, since that dprintf is defined as empty, will screw things up and grab the next line Change-Id: Ie5e1cf813178ad708ff42ae5e477fbc96034471c
This commit is contained in:
committed by
Dominique Martinet
parent
0994c3300e
commit
6df4bd8f8c
@@ -209,8 +209,10 @@ store_fake_cpu_info(struct sysfs_ops *ops0, void *instance, void *buf,
|
||||
|
||||
static struct fake_cpu_info_ops show_fci_online = {
|
||||
.member = ONLINE,
|
||||
.ops.show = &show_fake_cpu_info,
|
||||
.ops.store = &store_fake_cpu_info,
|
||||
.ops = {
|
||||
.show = &show_fake_cpu_info,
|
||||
.store = &store_fake_cpu_info,
|
||||
},
|
||||
};
|
||||
|
||||
void
|
||||
|
||||
@@ -547,7 +547,7 @@ static void *mckernel_allocate_aligned_pages_node(int npages, int p2align,
|
||||
ihk_mc_ap_flag flag, int pref_node, int is_user, uintptr_t virt_addr)
|
||||
{
|
||||
unsigned long pa = 0;
|
||||
int i, node;
|
||||
int i = 0, node;
|
||||
#ifndef IHK_RBTREE_ALLOCATOR
|
||||
struct ihk_page_allocator_desc *pa_allocator;
|
||||
#endif
|
||||
|
||||
@@ -72,7 +72,7 @@ char *profile_event_names[] =
|
||||
""
|
||||
};
|
||||
|
||||
mcs_lock_node_t job_profile_lock = {0, NULL};
|
||||
mcs_lock_node_t job_profile_lock = { 0 };
|
||||
struct profile_event *job_profile_events = NULL;
|
||||
int job_nr_processes = -1;
|
||||
int job_nr_processes_left = -1;
|
||||
@@ -445,7 +445,7 @@ void profile_dealloc_proc_events(struct process *proc)
|
||||
kfree(proc->profile_events);
|
||||
}
|
||||
|
||||
void static profile_clear_process(struct process *proc)
|
||||
static void profile_clear_process(struct process *proc)
|
||||
{
|
||||
proc->profile_elapsed_ts = 0;
|
||||
if (!proc->profile_events) return;
|
||||
@@ -454,7 +454,7 @@ void static profile_clear_process(struct process *proc)
|
||||
sizeof(*proc->profile_events) * PROFILE_EVENT_MAX);
|
||||
}
|
||||
|
||||
void static profile_clear_thread(struct thread *thread)
|
||||
static void profile_clear_thread(struct thread *thread)
|
||||
{
|
||||
thread->profile_start_ts = 0;
|
||||
thread->profile_elapsed_ts = 0;
|
||||
|
||||
Reference in New Issue
Block a user