[mmotm:master 190/376] mm/page_alloc.c:995: warning: 'free_pages_prepare' declared inline after being called

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   3eb62ac3b0fd7cf3656c0e2a4ed3b0833bb2e952
commit: 2eb5dfe5f118fae2f81ddb971edb5280e1ce3e5e [190/376] mm-page_alloc-dont-duplicate-code-in-free_pcp_prepare-fix
config: avr32-atngw100_defconfig (attached as .config)
compiler: 
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2eb5dfe5f118fae2f81ddb971edb5280e1ce3e5e
        # save the attached .config to linux build tree
        make.cross ARCH=avr32 

All warnings (new ones prefixed by >>):

>> mm/page_alloc.c:995: warning: 'free_pages_prepare' declared inline after being called
   mm/page_alloc.c:995: warning: previous declaration of 'free_pages_prepare' was here

vim +/free_pages_prepare +995 mm/page_alloc.c

   979		if (unlikely(!PageTail(page))) {
   980			bad_page(page, "PageTail not set", 0);
   981			goto out;
   982		}
   983		if (unlikely(compound_head(page) != head_page)) {
   984			bad_page(page, "compound_head not consistent", 0);
   985			goto out;
   986		}
   987		ret = 0;
   988	out:
   989		page->mapping = NULL;
   990		clear_compound_head(page);
   991		return ret;
   992	}
   993	
   994	static bool free_pages_prepare(struct page *page, unsigned int order,
 > 995				       bool check_free);
   996	
   997	#ifdef CONFIG_DEBUG_VM
   998	static inline bool free_pcp_prepare(struct page *page)
   999	{
  1000		return free_pages_prepare(page, 0, true);
  1001	}
  1002	
  1003	static inline bool bulkfree_pcp_prepare(struct page *page)

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[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]