sparse on net/sched/cls_api.c (2.6.11-rc4) reports:
CHECK net/sched/cls_api.c
net/sched/cls_api.c:595:17: warning: typename in expression
net/sched/cls_api.c:596:2: warning: Expected ; at end of statement
net/sched/cls_api.c:596:2: warning: got return
net/sched/cls_api.c:613:17: warning: typename in expression
net/sched/cls_api.c:614:2: warning: Expected ; at end of statement
net/sched/cls_api.c:614:2: warning: got return
net/sched/cls_api.c:595:17: warning: undefined identifier '__attribute__'
net/sched/cls_api.c:613:17: warning: undefined identifier '__attribute__'
net/sched/cls_api.c:595:31: warning: call with no type!
net/sched/cls_api.c:613:31: warning: call with no type!
CC net/sched/cls_api.o
sparse isn't liking constructs like:
return 0;
rtattr_failure: __attribute__ ((unused))
return -1;
[same constructs in 2 functions]
On x86-64 if it matters.
sparse is happy after removing the "__attribute__ ((unused))"...
--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html