warnings: fix broken -Wmaybe-uninitialized
These variables cannot be used uninitialized, and newer gcc versions correctly do not bring the warning up, but this will shut up older ones Change-Id: I2b2ea9b557196a3e7eea1e04dd1f160bd12d6e54
This commit is contained in:
committed by
Dominique Martinet
parent
ab39798181
commit
76a0cc71fc
@ -1621,7 +1621,7 @@ static int clear_range_l3(void *args0, pte_t *ptep, uint64_t base,
|
||||
{
|
||||
struct clear_range_args *args = args0;
|
||||
int error;
|
||||
uint64_t phys;
|
||||
uint64_t phys = 0;
|
||||
pte_t old;
|
||||
struct page *page;
|
||||
struct page_table *pt;
|
||||
|
||||
@ -74,10 +74,10 @@ int prepare_process_ranges_args_envs(struct thread *thread,
|
||||
char *envs, int envs_len)
|
||||
{
|
||||
char *args_envs, *args_envs_r;
|
||||
unsigned long args_envs_p, args_envs_rp, envs_offset;
|
||||
unsigned long args_envs_p, args_envs_rp = 0, envs_offset;
|
||||
unsigned long s, e, up;
|
||||
char **argv;
|
||||
int i, n, argc, envc, args_envs_npages;
|
||||
int i, n, argc, envc, args_envs_npages = 0;
|
||||
char **env;
|
||||
int range_npages;
|
||||
void *up_v;
|
||||
|
||||
@ -1772,7 +1772,7 @@ int xpmem_fault_process_memory_range(
|
||||
struct xpmem_attachment *att;
|
||||
struct xpmem_segment *seg;
|
||||
size_t pgsize;
|
||||
struct mcs_rwlock_node_irqsave at_lock;
|
||||
struct mcs_rwlock_node_irqsave at_lock = { 0 };
|
||||
int att_locked = 0;
|
||||
|
||||
XPMEM_DEBUG("call: vmr=0x%p, vaddr=0x%lx, reason=0x%lx",
|
||||
|
||||
Reference in New Issue
Block a user