]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:lustre: Fix plain integer as NULL pointer warning
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Thu, 31 Oct 2013 16:21:32 +0000 (21:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 17:44:57 +0000 (09:44 -0800)
Fix the sparse warning of 'Using plain integer as NULL pointer' in lproc_lov.c.

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lproc_lov.c

index 15744e13a3f2d34e12edaba88c7491c46b2bde86..e6f22e3a3a388ad9501ed4aadfcd7434cb0f13f2 100644 (file)
@@ -260,29 +260,29 @@ LPROC_SEQ_FOPS_RO_TYPE(lov, kbytesfree);
 LPROC_SEQ_FOPS_RO_TYPE(lov, kbytesavail);
 
 struct lprocfs_vars lprocfs_lov_obd_vars[] = {
-       { "uuid",         &lov_uuid_fops,         0, 0 },
-       { "stripesize",   &lov_stripesize_fops,   0 },
-       { "stripeoffset", &lov_stripeoffset_fops, 0 },
-       { "stripecount",  &lov_stripecount_fops,  0 },
-       { "stripetype",   &lov_stripetype_fops,   0 },
-       { "numobd",       &lov_numobd_fops,       0, 0 },
-       { "activeobd",    &lov_activeobd_fops,    0, 0 },
-       { "filestotal",   &lov_filestotal_fops,   0, 0 },
-       { "filesfree",    &lov_filesfree_fops,    0, 0 },
-       /*{ "filegroups", lprocfs_rd_filegroups,  0, 0 },*/
-       { "blocksize",    &lov_blksize_fops,      0, 0 },
-       { "kbytestotal",  &lov_kbytestotal_fops,  0, 0 },
-       { "kbytesfree",   &lov_kbytesfree_fops,   0, 0 },
-       { "kbytesavail",  &lov_kbytesavail_fops,  0, 0 },
-       { "desc_uuid",    &lov_desc_uuid_fops,    0, 0 },
-       { 0 }
+       { "uuid",         &lov_uuid_fops,         NULL, 0 },
+       { "stripesize",   &lov_stripesize_fops,   NULL },
+       { "stripeoffset", &lov_stripeoffset_fops, NULL },
+       { "stripecount",  &lov_stripecount_fops,  NULL },
+       { "stripetype",   &lov_stripetype_fops,   NULL },
+       { "numobd",       &lov_numobd_fops,       NULL, 0 },
+       { "activeobd",    &lov_activeobd_fops,    NULL, 0 },
+       { "filestotal",   &lov_filestotal_fops,   NULL, 0 },
+       { "filesfree",    &lov_filesfree_fops,    NULL, 0 },
+       /*{ "filegroups", lprocfs_rd_filegroups,  NULL, 0 },*/
+       { "blocksize",    &lov_blksize_fops,      NULL, 0 },
+       { "kbytestotal",  &lov_kbytestotal_fops,  NULL, 0 },
+       { "kbytesfree",   &lov_kbytesfree_fops,   NULL, 0 },
+       { "kbytesavail",  &lov_kbytesavail_fops,  NULL, 0 },
+       { "desc_uuid",    &lov_desc_uuid_fops,    NULL, 0 },
+       { NULL }
 };
 
 LPROC_SEQ_FOPS_RO_TYPE(lov, numrefs);
 
 static struct lprocfs_vars lprocfs_lov_module_vars[] = {
-       { "num_refs",     &lov_numrefs_fops,     0, 0 },
-       { 0 }
+       { "num_refs",     &lov_numrefs_fops,     NULL, 0 },
+       { NULL }
 };
 
 void lprocfs_lov_init_vars(struct lprocfs_static_vars *lvars)