Subject: cbe_cpufreq: fix sparse warnings Signed-off-by: Arnd Bergmann Index: linux-2.6/arch/powerpc/platforms/cell/cbe_cpufreq.c =================================================================== --- linux-2.6.orig/arch/powerpc/platforms/cell/cbe_cpufreq.c +++ linux-2.6/arch/powerpc/platforms/cell/cbe_cpufreq.c @@ -49,7 +49,7 @@ static struct cpufreq_frequency_table cb /* to write to MIC register */ static u64 MIC_Slow_Fast_Timer_table[] = { - [0 ... 7] 0x007fc00000000000ull, + [0 ... 7] = 0x007fc00000000000ull, }; /* more values for the MIC */ @@ -71,7 +71,7 @@ static u64 MIC_Slow_Next_Timer_table[] = static int get_pmode(int cpu) { int ret; - struct cbe_pmd_regs *pmd_regs; + struct cbe_pmd_regs __iomem *pmd_regs; pmd_regs = cbe_get_cpu_pmd_regs(cpu); ret = in_be64(&pmd_regs->pmsr) & 0x07; @@ -82,8 +82,8 @@ static int get_pmode(int cpu) static int set_pmode(int cpu, unsigned int pmode) { int rc; - struct cbe_pmd_regs *pmd_regs; - struct cbe_mic_tm_regs *mic_tm_regs; + struct cbe_pmd_regs __iomem *pmd_regs; + struct cbe_mic_tm_regs __iomem *mic_tm_regs; u64 flags; u64 value; #ifdef DEBUG @@ -106,7 +106,7 @@ static int set_pmode(int cpu, unsigned i value = in_be64(&pmd_regs->pmcr); /* set bits to zero */ - value &= 0xFFFFFFFFFFFFFFF8; + value &= 0xFFFFFFFFFFFFFFF8ull; /* set bits to next pmode */ value |= pmode;