From: chas williams - CONTRACTOR Date: Tue, 8 Jan 2013 15:06:18 +0000 (-0500) Subject: LU-1812 mgs: assign PTR_ERR() to prevent warnings X-Git-Tag: 2.3.60~43 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=67cae732857f5c26541db2ac8602c6c87f100fd9;ds=inline LU-1812 mgs: assign PTR_ERR() to prevent warnings Some newer kernels fail with the "error: ignoring return value of 'PTR_ERR', declared with attribute warn_unused_result". Signed-off-by: chas williams - CONTRACTOR Change-Id: I94ff7d8371e2daf7440dd5fb295c209ed671bc74 Reviewed-on: http://review.whamcloud.com/4971 Reviewed-by: James Simmons Tested-by: Hudson Tested-by: Maloo Reviewed-by: Peng Tao Reviewed-by: Andreas Dilger --- diff --git a/lustre/mgs/mgs_fs.c b/lustre/mgs/mgs_fs.c index 231b6af..e621bf0 100644 --- a/lustre/mgs/mgs_fs.c +++ b/lustre/mgs/mgs_fs.c @@ -143,7 +143,7 @@ int mgs_fs_setup(const struct lu_env *env, struct mgs_device *mgs) root = dt_locate_at(env, mgs->mgs_bottom, &rfid, &mgs->mgs_dt_dev.dd_lu_dev); if (unlikely(IS_ERR(root))) - GOTO(out_los, PTR_ERR(root)); + GOTO(out_los, rc = PTR_ERR(root)); o = local_file_find_or_create(env, mgs->mgs_los, root, MOUNT_CONFIGS_DIR,