linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [willy-pagecache:for-next 58/85] mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'?
@ 2022-02-14 17:19 kernel test robot
  2022-02-14 17:28 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-02-14 17:19 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle); +Cc: kbuild-all, linux-kernel

tree:   git://git.infradead.org/users/willy/pagecache for-next
head:   c267b33d0001488f1d9dad12d6a87655e174d914
commit: 2cefeaf011db4a95ecb515cc2ca61d091a792ac1 [58/85] mm/rmap: Turn page_mlock() into folio_mlock()
config: h8300-alldefconfig (https://download.01.org/0day-ci/archive/20220214/202202142352.7A4VgqBz-lkp@intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add willy-pagecache git://git.infradead.org/users/willy/pagecache
        git fetch --no-tags willy-pagecache for-next
        git checkout 2cefeaf011db4a95ecb515cc2ca61d091a792ac1
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   mm/folio-compat.c:169:6: warning: no previous prototype for 'clear_page_mlock' [-Wmissing-prototypes]
     169 | void clear_page_mlock(struct page *page)
         |      ^~~~~~~~~~~~~~~~
   mm/folio-compat.c:174:6: error: redefinition of 'mlock_vma_page'
     174 | void mlock_vma_page(struct page *page)
         |      ^~~~~~~~~~~~~~
   In file included from mm/folio-compat.c:11:
   mm/internal.h:503:20: note: previous definition of 'mlock_vma_page' with type 'void(struct page *)'
     503 | static inline void mlock_vma_page(struct page *page) { }
         |                    ^~~~~~~~~~~~~~
   mm/folio-compat.c: In function 'mlock_vma_page':
   mm/folio-compat.c:176:9: error: implicit declaration of function 'mlock_vma_folio'; did you mean 'mlock_vma_page'? [-Werror=implicit-function-declaration]
     176 |         mlock_vma_folio(page_folio(page));
         |         ^~~~~~~~~~~~~~~
         |         mlock_vma_page
   mm/folio-compat.c: At top level:
   mm/folio-compat.c:179:6: warning: no previous prototype for 'page_mlock' [-Wmissing-prototypes]
     179 | void page_mlock(struct page *page)
         |      ^~~~~~~~~~
   mm/folio-compat.c: In function 'page_mlock':
>> mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'? [-Werror=implicit-function-declaration]
     181 |         folio_mlock(page_folio(page));
         |         ^~~~~~~~~~~
         |         folio_lock
   cc1: some warnings being treated as errors


vim +181 mm/folio-compat.c

   178	
   179	void page_mlock(struct page *page)
   180	{
 > 181		folio_mlock(page_folio(page));

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [willy-pagecache:for-next 58/85] mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'?
  2022-02-14 17:19 [willy-pagecache:for-next 58/85] mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'? kernel test robot
@ 2022-02-14 17:28 ` Matthew Wilcox
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2022-02-14 17:28 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, linux-kernel

On Tue, Feb 15, 2022 at 01:19:26AM +0800, kernel test robot wrote:
> commit: 2cefeaf011db4a95ecb515cc2ca61d091a792ac1 [58/85] mm/rmap: Turn page_mlock() into folio_mlock()
> 
>    mm/folio-compat.c:169:6: warning: no previous prototype for 'clear_page_mlock' [-Wmissing-prototypes]
>      169 | void clear_page_mlock(struct page *page)
>          |      ^~~~~~~~~~~~~~~~
>    mm/folio-compat.c:174:6: error: redefinition of 'mlock_vma_page'
>      174 | void mlock_vma_page(struct page *page)
>          |      ^~~~~~~~~~~~~~
>    In file included from mm/folio-compat.c:11:
>    mm/internal.h:503:20: note: previous definition of 'mlock_vma_page' with type 'void(struct page *)'
>      503 | static inline void mlock_vma_page(struct page *page) { }
>          |                    ^~~~~~~~~~~~~~
>    mm/folio-compat.c: In function 'mlock_vma_page':
>    mm/folio-compat.c:176:9: error: implicit declaration of function 'mlock_vma_folio'; did you mean 'mlock_vma_page'? [-Werror=implicit-function-declaration]
>      176 |         mlock_vma_folio(page_folio(page));
>          |         ^~~~~~~~~~~~~~~
>          |         mlock_vma_page
>    mm/folio-compat.c: At top level:
>    mm/folio-compat.c:179:6: warning: no previous prototype for 'page_mlock' [-Wmissing-prototypes]
>      179 | void page_mlock(struct page *page)
>          |      ^~~~~~~~~~
>    mm/folio-compat.c: In function 'page_mlock':
> >> mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'? [-Werror=implicit-function-declaration]
>      181 |         folio_mlock(page_folio(page));
>          |         ^~~~~~~~~~~
>          |         folio_lock
>    cc1: some warnings being treated as errors

All fixed in an update I pushed about two hours ago ;-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-14 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 17:19 [willy-pagecache:for-next 58/85] mm/folio-compat.c:181:9: error: implicit declaration of function 'folio_mlock'; did you mean 'folio_lock'? kernel test robot
2022-02-14 17:28 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).