Commit 30673af4 authored by Matt Porter's avatar Matt Porter Committed by Linus Torvalds

[PATCH] ppc32: fix several warnings

Fixes some annoying warnings due to unitialized variables.
Signed-off-by: default avatarMatt Porter <mporter@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e572054e
...@@ -270,7 +270,7 @@ save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, int sigret) ...@@ -270,7 +270,7 @@ save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, int sigret)
static int static int
restore_user_regs(struct pt_regs *regs, struct mcontext __user *sr, int sig) restore_user_regs(struct pt_regs *regs, struct mcontext __user *sr, int sig)
{ {
unsigned long save_r2; unsigned long save_r2 = 0;
#if defined(CONFIG_ALTIVEC) || defined(CONFIG_SPE) #if defined(CONFIG_ALTIVEC) || defined(CONFIG_SPE)
unsigned long msr; unsigned long msr;
#endif #endif
......
...@@ -72,7 +72,7 @@ unsigned int tlb_44x_hwater = 62; ...@@ -72,7 +72,7 @@ unsigned int tlb_44x_hwater = 62;
static void __init static void __init
ppc44x_pin_tlb(int slot, unsigned int virt, unsigned int phys) ppc44x_pin_tlb(int slot, unsigned int virt, unsigned int phys)
{ {
unsigned long attrib; unsigned long attrib = 0;
__asm__ __volatile__("\ __asm__ __volatile__("\
clrrwi %2,%2,10\n\ clrrwi %2,%2,10\n\
......
...@@ -256,7 +256,7 @@ static void ...@@ -256,7 +256,7 @@ static void
ppc4xx_uic_end(unsigned int irq) ppc4xx_uic_end(unsigned int irq)
{ {
int bit, word; int bit, word;
unsigned int tr_bits; unsigned int tr_bits = 0;
bit = irq & 0x1f; bit = irq & 0x1f;
word = irq >> 5; word = irq >> 5;
......
...@@ -277,9 +277,9 @@ todc_time_init(void) ...@@ -277,9 +277,9 @@ todc_time_init(void)
ulong ulong
todc_get_rtc_time(void) todc_get_rtc_time(void)
{ {
uint year, mon, day, hour, min, sec; uint year = 0, mon = 0, day = 0, hour = 0, min = 0, sec = 0;
uint limit, i; uint limit, i;
u_char save_control, uip; u_char save_control, uip = 0;
spin_lock(&rtc_lock); spin_lock(&rtc_lock);
save_control = todc_read_val(todc_info->control_a); save_control = todc_read_val(todc_info->control_a);
...@@ -361,7 +361,7 @@ int ...@@ -361,7 +361,7 @@ int
todc_set_rtc_time(unsigned long nowtime) todc_set_rtc_time(unsigned long nowtime)
{ {
struct rtc_time tm; struct rtc_time tm;
u_char save_control, save_freq_select; u_char save_control, save_freq_select = 0;
spin_lock(&rtc_lock); spin_lock(&rtc_lock);
to_tm(nowtime, &tm); to_tm(nowtime, &tm);
...@@ -416,7 +416,7 @@ todc_set_rtc_time(unsigned long nowtime) ...@@ -416,7 +416,7 @@ todc_set_rtc_time(unsigned long nowtime)
*/ */
static unsigned char __init todc_read_timereg(int addr) static unsigned char __init todc_read_timereg(int addr)
{ {
unsigned char save_control, val; unsigned char save_control = 0, val;
switch (todc_info->rtc_type) { switch (todc_info->rtc_type) {
case TODC_TYPE_DS1557: case TODC_TYPE_DS1557:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment