X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fcore%2Fpktgen.c;h=d1a62cddb31a3a0a7cb51afda89cae142459855a;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=3821caa36870076c092442c1918e5f914f3f248b;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 3821caa36..d1a62cddb 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -56,6 +56,7 @@ */ #include +#include #include #include #include @@ -1355,7 +1356,7 @@ static int __init init(void) pginfos[i].udp_dst_max = 9; sprintf(pginfos[i].fname, "net/%s/pg%i", PG_PROC_DIR, i); - pginfos[i].proc_ent = create_proc_entry(pginfos[i].fname, 0600, 0); + pginfos[i].proc_ent = create_proc_entry(pginfos[i].fname, 0600, NULL); if (!pginfos[i].proc_ent) { printk("pktgen: Error: cannot create net/%s/pg procfs entry.\n", PG_PROC_DIR); goto cleanup_mem; @@ -1366,7 +1367,7 @@ static int __init init(void) pginfos[i].proc_ent->owner = THIS_MODULE; sprintf(pginfos[i].busy_fname, "net/%s/pg_busy%i", PG_PROC_DIR, i); - pginfos[i].busy_proc_ent = create_proc_entry(pginfos[i].busy_fname, 0, 0); + pginfos[i].busy_proc_ent = create_proc_entry(pginfos[i].busy_fname, 0, NULL); if (!pginfos[i].busy_proc_ent) { printk("pktgen: Error: cannot create net/%s/pg_busy procfs entry.\n", PG_PROC_DIR); goto cleanup_mem; @@ -1409,7 +1410,7 @@ module_exit(cleanup); MODULE_AUTHOR("Robert Olsson