Commit c3bb257d authored by Andrew Morton's avatar Andrew Morton Committed by J. Bruce Fields

net/sunrpc/svc.c: suppress unintialized var warning

net/sunrpc/svc.c: In function '__svc_create_thread':
net/sunrpc/svc.c:587: warning: 'oldmask.bits[0u]' may be used uninitialized in this function

Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Tom Tucker <tom@opengridcomputing.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 30aef316
...@@ -590,7 +590,7 @@ __svc_create_thread(svc_thread_fn func, struct svc_serv *serv, ...@@ -590,7 +590,7 @@ __svc_create_thread(svc_thread_fn func, struct svc_serv *serv,
struct svc_rqst *rqstp; struct svc_rqst *rqstp;
int error = -ENOMEM; int error = -ENOMEM;
int have_oldmask = 0; int have_oldmask = 0;
cpumask_t oldmask; cpumask_t uninitialized_var(oldmask);
rqstp = svc_prepare_thread(serv, pool); rqstp = svc_prepare_thread(serv, pool);
if (IS_ERR(rqstp)) { if (IS_ERR(rqstp)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment