asm-generic: THP: fix bugs in asm-generic headers 98/263698/1
authorSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 08:07:36 +0000 (17:07 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 08:17:00 +0000 (17:17 +0900)
commitf17e2a879df716db843d744ecf8782d1bcaf13c6
tree8fba27d2c68b3c62bc0ff554312f54bc5f0eb681
parent634e69909cae9133097ea11751eaa15c6ff6ff78
asm-generic: THP: fix bugs in asm-generic headers

Since a function is defined in two headers at the same time,
the kernel build is failed.

And, a vm_fault_t-typed function does not return any values.

This patch fixes two bugs in asm-generic headers.

Fixes: 7d5372737d34 ("mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture")
Change-Id: I84110bbb6c7f5b0794c55b3aca98419f12469eca
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
include/asm-generic/finegrained_thp.h
include/asm-generic/huge_mm.h