From: Gregory Fong Date: Fri, 14 Aug 2015 22:35:21 +0000 (-0700) Subject: mm: cma: mark cma_bitmap_maxno() inline in header X-Git-Tag: v4.2-rc7~7^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f21838e056ebc499f5d6ca4cb734e82cf9c275a5;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git 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 Cc: Joonsoo Kim Cc: Sasha Levin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/cma.h b/mm/cma.h index 1132d73..17c75a4 100644 --- a/mm/cma.h +++ b/mm/cma.h @@ -16,7 +16,7 @@ struct cma { extern struct cma cma_areas[MAX_CMA_AREAS]; extern unsigned cma_area_count; -static unsigned long cma_bitmap_maxno(struct cma *cma) +static inline unsigned long cma_bitmap_maxno(struct cma *cma) { return cma->count >> cma->order_per_bit; }