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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202210191735.jdAY5fBg-lkp@intel.com>
Date:   Wed, 19 Oct 2022 17:17:36 +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 '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-func
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
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
        make W=1 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 'zone_device_page_init' [-Wmissing-prototypes]
     521 | void zone_device_page_init(struct page *page)
         |      ^~~~~~~~~~~~~~~~~~~~~


vim +/zone_device_page_init +521 mm/memremap.c

75e55d8a107edb2 Christoph Hellwig 2022-02-16  520  
ef233450898f889 Alistair Popple   2022-09-28 @521  void zone_device_page_init(struct page *page)
ef233450898f889 Alistair Popple   2022-09-28  522  {
0dc45ca1ce18900 Alistair Popple   2022-09-28  523  	/*
0dc45ca1ce18900 Alistair Popple   2022-09-28  524  	 * Drivers shouldn't be allocating pages after calling
0dc45ca1ce18900 Alistair Popple   2022-09-28  525  	 * memunmap_pages().
0dc45ca1ce18900 Alistair Popple   2022-09-28  526  	 */
0dc45ca1ce18900 Alistair Popple   2022-09-28  527  	WARN_ON_ONCE(!percpu_ref_tryget_live(&page->pgmap->ref));
ef233450898f889 Alistair Popple   2022-09-28  528  	set_page_count(page, 1);
ef233450898f889 Alistair Popple   2022-09-28  529  	lock_page(page);
ef233450898f889 Alistair Popple   2022-09-28  530  }
ef233450898f889 Alistair Popple   2022-09-28  531  EXPORT_SYMBOL_GPL(zone_device_page_init);
ef233450898f889 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" (169969 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ