lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210200042.e8LyC7ke-lkp@intel.com>
Date:   Thu, 20 Oct 2022 09:14:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dan Williams <dan.j.williams@...el.com>
Cc:     kbuild-all@...ts.01.org, Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: [ammarfaizi2-block:akpm/mm/mm-unstable 39/119] mm/memremap.c:521:6:
 warning: no previous prototype for function 'zone_device_page_init'

tree:   https://github.com/ammarfaizi2/linux-block akpm/mm/mm-unstable
head:   ad898cee3835067e7688afe42a60f796d823db1d
commit: e1f5015579a654dc90f3c5af6ef446a19c9bb55c [39/119] mm/memremap_pages: replace zone_device_page_init() with pgmap_request_folios()
config: x86_64-rhel-8.3-rust
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/e1f5015579a654dc90f3c5af6ef446a19c9bb55c
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block akpm/mm/mm-unstable
        git checkout e1f5015579a654dc90f3c5af6ef446a19c9bb55c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
         O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> mm/memremap.c:521:6: warning: no previous prototype for function 'zone_device_page_init' [-Wmissing-prototypes]
   void zone_device_page_init(struct page *page)
        ^
   mm/memremap.c:521:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void zone_device_page_init(struct page *page)
   ^
   static 
   1 warning generated.


vim +/zone_device_page_init +521 mm/memremap.c

75e55d8a107edb Christoph Hellwig 2022-02-16  520  
ef233450898f88 Alistair Popple   2022-09-28 @521  void zone_device_page_init(struct page *page)
ef233450898f88 Alistair Popple   2022-09-28  522  {
0dc45ca1ce1890 Alistair Popple   2022-09-28  523  	/*
0dc45ca1ce1890 Alistair Popple   2022-09-28  524  	 * Drivers shouldn't be allocating pages after calling
0dc45ca1ce1890 Alistair Popple   2022-09-28  525  	 * memunmap_pages().
0dc45ca1ce1890 Alistair Popple   2022-09-28  526  	 */
0dc45ca1ce1890 Alistair Popple   2022-09-28  527  	WARN_ON_ONCE(!percpu_ref_tryget_live(&page->pgmap->ref));
ef233450898f88 Alistair Popple   2022-09-28  528  	set_page_count(page, 1);
ef233450898f88 Alistair Popple   2022-09-28  529  	lock_page(page);
ef233450898f88 Alistair Popple   2022-09-28  530  }
ef233450898f88 Alistair Popple   2022-09-28  531  EXPORT_SYMBOL_GPL(zone_device_page_init);
ef233450898f88 Alistair Popple   2022-09-28  532  

:::::: The code at line 521 was first introduced by commit
:::::: ef233450898f8893dafa193a9f3211fa077a3d05 mm: free device private pages have zero refcount

:::::: TO: Alistair Popple <apopple@...dia.com>
:::::: CC: Andrew Morton <akpm@...ux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (166454 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ