]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix the try_to_unmap prototype for !CONFIG_MMU
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Jul 2021 04:26:55 +0000 (21:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Jul 2021 17:13:49 +0000 (10:13 -0700)
commit23c0b0a1de0cec24c0fefc37a3290d6c12f1f7e7
treed7d9d99081945347cceedd4fc2cb735e8d5b892b
parent4317a2f03c7fcd0083bd7c6ef70f7c3997f0c287
mm: fix the try_to_unmap prototype for !CONFIG_MMU

Adjust the nommu stub of try_to_unmap to match the changed protype for the
full version.  Turn it into an inline instead of a macro to generally
improve the type checking.

Link: https://lkml.kernel.org/r/20210705053944.885828-1-hch@lst.de
Fixes: b3c4c7d7c067 ("mm: rmap: make try_to_unmap() void function")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rmap.h