[PATCH] mark several functions __always_inline
Arjan van de Ven <arjan@infradead.org> Mark a number of functions as 'must inline'. The functions affected by this patch need to be inlined because they use knowledge that their arguments are constant so that most of the function optimizes away. At this point this patch does not change behavior, it's for documentation only (and for future patches in the inline series) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9ab34fe761
commit
652050aec9
@ -512,7 +512,7 @@ static inline void set_page_links(struct page *page, unsigned long zone,
|
||||
extern struct page *mem_map;
|
||||
#endif
|
||||
|
||||
static inline void *lowmem_page_address(struct page *page)
|
||||
static __always_inline void *lowmem_page_address(struct page *page)
|
||||
{
|
||||
return __va(page_to_pfn(page) << PAGE_SHIFT);
|
||||
}
|
||||
|
Reference in New Issue
Block a user