Compiling kernel 2.6.23 for an ARM/ixp4xx machine results in: arch/arm/mach-ixp4xx/common.c: In function 'ixp4xx_set_mode': arch/arm/mach-ixp4xx/common.c:445: warning: 'opts' may be used uninitialized in this function The warning is valid: if ixp4xx_set_mode() is called with mode CLOCK_EVT_MODE_RESUME, then 'opts' will be uninitialised at the '*IXP4XX_OSRT1 = osrt | opts;' statement. Initialising opts to zero in this case may not be correct, but at least it's better than writing random junk to the hardware. Signed-off-by: Mikael Pettersson <mikpe@it.uu.se> -- I'm not cc:ing linux-arm-kernel since that's subscribers-only. This code hasn't changed in 2.6.23-git17. arch/arm/mach-ixp4xx/common.c | 1 + 1 files changed, 1 insertion(+) --- linux-2.6.23/arch/arm/mach-ixp4xx/common.c.~1~ 2007-10-22 20:26:50.000000000 +0200 +++ linux-2.6.23/arch/arm/mach-ixp4xx/common.c 2007-10-22 21:22:10.000000000 +0200 @@ -460,6 +460,7 @@ static void ixp4xx_set_mode(enum clock_e osrt = opts = 0; break; case CLOCK_EVT_MODE_RESUME: + opts = 0; break; } -
| H. Peter Anvin | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Eric W. Biederman | Remaining straight forward kthread API conversions... |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
git: | |
