linux-next: build warning in Linus' tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Rothwell
Date: Tuesday, May 25, 2010 - 6:43 pm

Hi Dave,

Today's linux-next build (x86_64 allmodconfig) produced this warning:

net/core/sock.c: In function 'sock_update_classid':
include/net/cls_cgroup.h:42: warning: 'classid' may be used uninitialized in this function
include/net/cls_cgroup.h:42: note: 'classid' was declared here

In the case that rcu_dereference() returns a value < 0, classid will not
be assigned in task_cls_classid().  I don't know if this is possible - if
not, then why is the test there?
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: build warning in Linus' tree, Stephen Rothwell, (Tue May 25, 6:43 pm)
Re: linux-next: build warning in Linus' tree, Herbert Xu, (Tue May 25, 6:51 pm)
Re: linux-next: build warning in Linus' tree, David Miller, (Tue May 25, 6:54 pm)