Re: [PATCH 2/2] sparc: us2e_cpufreq.c: fix warnings/errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexander Beregalov <a.beregalov@xxxxxxxxx>
Date: Sun, 20 Dec 2009 15:16:36 +0300

> Fix warnings which become build errors since -Werror is used.
> arch/sparc/kernel/us2e_cpufreq.c:180: error: control reaches end of non-void function
> arch/sparc/kernel/us2e_cpufreq.c:203: error: control reaches end of non-void function
> 
> Signed-off-by: Alexander Beregalov <a.beregalov@xxxxxxxxx>

Same problem as patch #1, the BUG() in the default switch
case makes the end of the function unreachable, GCC should
not warn about this.  And it never has before.

Something changed to make this start happening.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux