Re: [PATCH] mm/hmm: constify hmm_devmem_page_get_drvdata() parameter

From: Andrew Morton
Date: Mon Oct 02 2017 - 17:40:49 EST


On Mon, 2 Oct 2017 15:32:54 -0400 Jérôme Glisse <jglisse@xxxxxxxxxx> wrote:

> From: Ralph Campbell <rcampbell@xxxxxxxxxx>
>
> Constify pointer parameter to avoid issue when use from code that
> only has const struct page pointer to use in the first place.

That's rather vague. Does such calling code exist in the kernel? This
affects the which-kernel-gets-patched decision.