There are some "unkillable" nocast warnings in net/sctp/associola.c Removing
"const" from, say, sctp_assoc_add_peer() will work, but that is not I'm going
to do.
----------------------------------------------------------------------------
$ cat -n test.c
1 #define __nocast __attribute__((nocast))
2
3 static void f(unsigned int __nocast gfp)
4 {
5 }
6
7 static void g(const unsigned int __nocast gfp)
8 {
9 }
10
11 static void h(void)
12 {
13 f(0u);
14 g(0u);
15 }
$ sparse test.c
test.c:14:4: warning: implicit cast to nocast type
----------------------------------------------------------------------------
-
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