mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
staging/lustre/osc: Mark osc_getstripe user pointer argument as __user
This shuts some sparse address space mismatch warnings Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7ac5db212d
commit
ec2d71d083
1 changed files with 2 additions and 1 deletions
|
|
@ -2534,7 +2534,8 @@ static int osc_statfs(const struct lu_env *env, struct obd_export *exp,
|
|||
* the maximum number of OST indices which will fit in the user buffer.
|
||||
* lmm_magic must be LOV_MAGIC (we only use 1 slot here).
|
||||
*/
|
||||
static int osc_getstripe(struct lov_stripe_md *lsm, struct lov_user_md *lump)
|
||||
static int osc_getstripe(struct lov_stripe_md *lsm,
|
||||
struct lov_user_md __user *lump)
|
||||
{
|
||||
/* we use lov_user_md_v3 because it is larger than lov_user_md_v1 */
|
||||
struct lov_user_md_v3 lum, *lumk;
|
||||
|
|
|
|||
Loading…
Reference in a new issue