]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_ext.c: constify lookup_page_ext() argument
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 17 Aug 2018 22:45:15 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Aug 2018 23:20:28 +0000 (16:20 -0700)
commitdd2b8215389210cafd2af687e9596de4f8e5654c
tree22ecf348400d79f8f95beef7b6eadf8bc92a0ce4
parente651d5225422ff421ea5e65481c8b7bd5973c3d1
mm/page_ext.c: constify lookup_page_ext() argument

lookup_page_ext() finds 'struct page_ext' for a given page.  It requires
only read access to the given struct page.

Current implemnentation takes 'struct page *' as an argument.  It makes
compiler complain when 'const struct page *' passed.

Change the argument to 'const struct page *'.

Link: http://lkml.kernel.org/r/20180531135457.20167-3-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page_ext.h
mm/page_ext.c