mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch removed from -mm tree
The patch titled
Subject: mm/hmm: constify hmm_devmem_page_get_drvdata() parameter
has been removed from the -mm tree. Its filename was
mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Ralph Campbell <[email protected]>
Subject: mm/hmm: constify hmm_devmem_page_get_drvdata() parameter
Constify pointer parameter to avoid issue when use from code that only has const struct page pointer to use in the first place.
Signed-off-by Ralph Campbell <[email protected]>
Signed-off-by Jérôme Glisse <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/hmm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/hmm.h renamed from include/linux/hmm.h~mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter +2 -2
@@ -471,9 +471,9 @@ static inline void hmm_devmem_page_set_d* @page: pointer to struct page * Return: driver data value */ -static inline unsigned long hmm_devmem_page_get_drvdata (struct page *page) +static inline unsigned long hmm_devmem_page_get_drvdata (const struct page *page) { -unsigned long *drvdata = (unsigned long *)&page->pgmap; +const unsigned long *drvdata = (const unsigned long *)&page->pgmap;return drvdata[1 ]; }
_
Patches currently in -mm which might be from [email protected] are