]> git.baikalelectronics.ru Git - kernel.git/commit
mm: cma: mark cma_bitmap_maxno() inline in header
authorGregory Fong <gregory.0xf0@gmail.com>
Fri, 14 Aug 2015 22:35:21 +0000 (15:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Aug 2015 22:56:32 +0000 (15:56 -0700)
commitbc7f77351ce57442e6d090fe8b4da82b0c6a3b34
treea5e3f2c700e7ca8639128de9c42dea5fcb76e2fa
parent59e22324d63268cd075b778fc10677b0162288f5
mm: cma: mark cma_bitmap_maxno() inline in header

cma_bitmap_maxno() was marked as static and not static inline, which can
cause warnings about this function not being used if this file is included
in a file that does not call that function, and violates the conventions
used elsewhere.  The two options are to move the function implementation
back to mm/cma.c or make it inline here, and it's simple enough for the
latter to make sense.

Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/cma.h