]> git.baikalelectronics.ru Git - kernel.git/commit
mm: make !CONFIG_HUGE_PAGE wrappers into static inlines
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 12 Jul 2019 03:54:40 +0000 (20:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Jul 2019 18:05:42 +0000 (11:05 -0700)
commit2a5c0f18f28de42b65f56592f0b1f12230c5a2f1
treebce83bd43c6715f9c4c0fe6e6a61104908f14290
parent0ccb2b9623594a803ba53c2d8ce9383c8bc864f7
mm: make !CONFIG_HUGE_PAGE wrappers into static inlines

Instead of using defines, which loses type safety and provokes unused
variable warnings from gcc, put the constants into static inlines.

Link: http://lkml.kernel.org/r/20190522235102.GA15370@mellanox.com
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hugetlb.h