The patch titled Subject: mm/hmm: constify hmm_devmem_page_get_drvdata() parameter has been added to the -mm tree. Its filename is mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ralph Campbell <rcampbell@xxxxxxxxxx> 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. Link: http://lkml.kernel.org/r/1506972774-10191-1-git-send-email-jglisse@xxxxxxxxxx Signed-off-by: Ralph Campbell <rcampbell@xxxxxxxxxx> Signed-off-by: Jérôme Glisse <jglisse@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/hmm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/hmm.h~mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter include/linux/hmm.h --- a/include/linux/hmm.h~mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter +++ a/include/linux/hmm.h @@ -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 rcampbell@xxxxxxxxxx are mm-hmm-constify-hmm_devmem_page_get_drvdata-parameter.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html