Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07ebb0ba authored by Yong Ding's avatar Yong Ding
Browse files

soc: qcom: hab: adapt to the new get_user_pages()



The previous write and force parameters of get_user_pages() are
replaced with gup_flags, so HAB needs the relevant change since
it uses this API.

Change-Id: I8bb8eac3bd9ef0090a29fce28745b9904e087e0c
Signed-off-by: default avatarYong Ding <yongding@codeaurora.org>
parent eb84e265
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -361,8 +361,7 @@ int habmem_hyp_grant_user(unsigned long address,
		ret = get_user_pages(current, current->mm,
			address,
			page_count,
			1,
			1,
			FOLL_WRITE | FOLL_FORCE,
			pages,
			NULL);
	}