Commit c1916004 authored by Nishanth Menon's avatar Nishanth Menon

[OMAP4] Fixup build warnings

Fix up build warnings we find with gcc 4.9
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 10798ae5
......@@ -968,7 +968,7 @@ int counters44xx_print_defaults()
*/
int counters44xx_main(int argc, char *argv[])
{
int ret;
int ret = 0;
int i;
int help_skip = 0;
int invalid_char = 0;
......
......@@ -65,7 +65,7 @@
static char ctt_filename[] = "CTT-OMAP44XX-REG_DUMP.rd1";
static reg_table prcm_ctt_reg_table[PRCM_CTT_REG_TABLE_SIZE];
static reg_table prcm_ctt_reg_table[PRCM_CTT_REG_TABLE_SIZE + 1];
static int ctt44xx_regtable_init(void);
......
......@@ -65,10 +65,10 @@
#endif
pad_cell hwobs_pad_reg_table[OMAP4430_HWOBS_MAX_NBR];
pad_cell hwobs_pad_reg_table[OMAP4430_HWOBS_MAX_NBR + 1];
reg_table hwobs_core_debug_mux_table[OMAP4430_HWOBS_MAX_NBR];
reg_table hwobs_wkup_debug_mux_table[OMAP4430_HWOBS_MAX_NBR];
reg_table hwobs_core_debug_mux_table[OMAP4430_HWOBS_MAX_NBR + 1];
reg_table hwobs_wkup_debug_mux_table[OMAP4430_HWOBS_MAX_NBR + 1];
/* ------------------------------------------------------------------------*//**
......
......@@ -62,7 +62,7 @@
#define PRCM_PCT_REG_TABLE_SIZE 143
static char pct_filename[] = "PCT-OMAP44XX-REG_DUMP.rd1";
static reg_table prcm_pct_reg_table[PRCM_PCT_REG_TABLE_SIZE];
static reg_table prcm_pct_reg_table[PRCM_PCT_REG_TABLE_SIZE + 1];
static int pct44xx_regtable_init(void);
......
......@@ -373,7 +373,7 @@ int pmi44xx_trace_decode(char *etb_trace, unsigned int lts_ref_clk,
double atclk, atclk_dpll_unlocked, atclk_dpll_locked;
omap4_dpll_params dpll_params;
unsigned char in_dpll_cascading;
pwrdm_state core_pwrdm_state;
pwrdm_state core_pwrdm_state = PWRDM_ON_STATE;
unsigned char first_stp_header_found;
FILE *fp_in;
FILE *fp_out;
......
......@@ -92,9 +92,9 @@ int pmi_pwrdm_transitions_find(genlist *pm_events,
double duration, pwrdm_transitions transitions)
{
unsigned int pm_states, shift, pos;
pwrdm_state pwrdm_st, curr_pwrdm_st;
pwrdm_state pwrdm_st, curr_pwrdm_st = PWRDM_OFF_STATE;
pwrdm_transition tr;
char pwrdm_state_s[6];
char pwrdm_state_s[6] = { 0 };
#ifdef PMI_PWRDM_TRANSITIONS_FIND_DEBUG
char *name;
#endif
......
......@@ -437,7 +437,7 @@ static char *get_frame_name(unsigned int format)
*//*------------------------------------------------------------------------ */
void iss_csi2_check(struct iss_csi2_regs *csi2)
{
int mem_out;
int mem_out = 0;
unsigned int used_lanes = 0;
printf("\tCSI2 Revision: %x.%x\n",
......
......@@ -1142,7 +1142,7 @@ statdep44xx_show_end:
int statdep44xx_main_set(
char *clkdm_from, char *clkdm_to, unsigned short enable)
{
int ret, from_found, to_found;
int ret = 0, from_found, to_found;
clkdm44xx_id id, from, to, first, last;
char to_s[CLKDM44XX_MAX_NAME_LENGTH];
char from_s[CLKDM44XX_MAX_NAME_LENGTH];
......
......@@ -949,7 +949,7 @@ int sr44xx_audit(FILE *stream, omap4_sr_module_id sr_id,
const sr_audit_settings *sr_golden_settings;
omap4_sr_module_id id;
opp44xx_id opp;
int ret;
int ret = 0;
unsigned int err_cnt, wng_cnt;
char opp_name[OPP44XX_MAX_NAME_LENGTH];
......
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