Re: [PATCH] workqueue: Fix a compile warning in work_busy

From: Tejun Heo
Date: Sun Feb 28 2010 - 01:09:03 EST


Hello,

On 02/28/2010 10:00 AM, Anton Blanchard wrote:
> Ensure ret is initialised to avoid the following warning:
>
> kernel/workqueue.c: In function âwork_busyâ:
> kernel/workqueue.c:2697: warning: âretâ may be used uninitialized in this function

Thanks a lot for catching this. gcc 4.4.1 building for x86_64 doesn't
seem to notice that. gcc has been relatively reliable in catching
these mistakes. I wonder what made it slip. My cross gcc 4.3.3 for
powerpc catches it. Strange. Anyways, fix folded into
0035-workqueue-implement-several-utility-APIs.patch

Thank you.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/