| To: | "YOSHIFUJI Hideaki / _$B5HF#1QL@" <yoshfuji@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] [sparse] af_inet6 -- 0 vs NULL |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Tue, 13 Jul 2004 11:23:40 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Sparse complains about 0 vs NULL here.
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
--- a/net/ipv6/af_inet6.c 2004-07-13 10:07:04 -07:00
+++ b/net/ipv6/af_inet6.c 2004-07-13 10:07:04 -07:00
@@ -719,13 +719,13 @@
/* allocate our sock slab caches */
tcp6_sk_cachep = kmem_cache_create("tcp6_sock",
sizeof(struct tcp6_sock), 0,
- SLAB_HWCACHE_ALIGN, 0, 0);
+ SLAB_HWCACHE_ALIGN, NULL, NULL);
udp6_sk_cachep = kmem_cache_create("udp6_sock",
sizeof(struct udp6_sock), 0,
- SLAB_HWCACHE_ALIGN, 0, 0);
+ SLAB_HWCACHE_ALIGN, NULL, NULL);
raw6_sk_cachep = kmem_cache_create("raw6_sock",
sizeof(struct raw6_sock), 0,
- SLAB_HWCACHE_ALIGN, 0, 0);
+ SLAB_HWCACHE_ALIGN, NULL, NULL);
if (!tcp6_sk_cachep || !udp6_sk_cachep || !raw6_sk_cachep)
printk(KERN_CRIT "%s: Can't create protocol sock SLAB "
"caches!\n", __FUNCTION__);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] [sparse] irlmp warnings., Stephen Hemminger |
|---|---|
| Next by Date: | [PATCH] [sparse] ipv6 -- more 0 vs NULL, Stephen Hemminger |
| Previous by Thread: | [PATCH] [sparse] irlmp warnings., Stephen Hemminger |
| Next by Thread: | [PATCH] [sparse] ipv6 -- more 0 vs NULL, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |