[PATCH] mm: cma: mark cma_bitmap_maxno() inline in header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 mm/cma.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
-- 
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]