In newer kernels seq_printf is a void function. Some
of the seq_printf handle server side missed being
updated to treat seq_printf as a void function.
Change-Id: Icfd2f83ad4cd143eac228ed3d50beff533fcfe44
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/21453
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Kit Westneat <kit.westneat@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
{
struct obd_device *obd = m->private;
struct ofd_device *ofd = ofd_dev(obd->obd_lu_dev);
- int rc;
- rc = seq_printf(m, "%u\n", ofd->ofd_brw_size / ONE_MB_BRW_SIZE);
- return rc;
+ seq_printf(m, "%u\n", ofd->ofd_brw_size / ONE_MB_BRW_SIZE);
+ return 0;
}
static ssize_t
static int nodemap_fileset_seq_show(struct seq_file *m, void *data)
{
struct lu_nodemap *nodemap;
- int rc;
+ int rc = 0;
mutex_lock(&active_config_lock);
nodemap = nodemap_lookup(m->private);
return rc;
}
- rc = seq_printf(m, "%s\n", nodemap->nm_fileset);
+ seq_printf(m, "%s\n", nodemap->nm_fileset);
nodemap_putref(nodemap);
return rc;
}
struct qmt_pool_info *pool = m->private;
LASSERT(pool != NULL);
- return seq_printf(m, "%lu\n", pool->qpi_soft_least_qunit);
+ seq_printf(m, "%lu\n", pool->qpi_soft_least_qunit);
+ return 0;
}
static ssize_t