From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: [PATCH resend] fs/eventpoll.c: fix compilation warning Date: Fri, 14 Jan 2011 17:22:33 +0530 Message-ID: <1295005953-12173-1-git-send-email-viresh.kumar@st.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Viresh Kumar To: , , Return-path: Received: from eu1sys200aog111.obsmtp.com ([207.126.144.131]:52649 "EHLO eu1sys200aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431Ab1ANLwo (ORCPT ); Fri, 14 Jan 2011 06:52:44 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This patch fixes following compilation warning fs/eventpoll.c:1119: warning: 'slack' may be used uninitialized in this function Signed-off-by: Viresh Kumar --- fs/eventpoll.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 8cf0724..89b5e98 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1116,7 +1116,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events, { int res, eavail, timed_out = 0; unsigned long flags; - long slack; + long uninitialized_var(slack); wait_queue_t wait; struct timespec end_time; ktime_t expires, *to = NULL; -- 1.7.2.2