All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 1/2] mm/page_alloc.c:8562:48: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long'
@ 2021-05-25 14:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-25 14:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4422 bytes --]

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   3a71ca149650ea1d7072c9a3771725529eabb95b
commit: 0249af9c0e0ba7c64d48238b9d6757af4e14280f [1/2] ANDROID: mm: page_alloc: skip dump pages for freeable page
config: x86_64-randconfig-a005-20210525 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout 0249af9c0e0ba7c64d48238b9d6757af4e14280f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   mm/page_alloc.c:3684:15: warning: no previous prototype for function 'should_fail_alloc_page' [-Wmissing-prototypes]
   noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
                 ^
   mm/page_alloc.c:3684:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
   noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
            ^
            static 
   mm/page_alloc.c:6377:23: warning: no previous prototype for function 'memmap_init' [-Wmissing-prototypes]
   void __meminit __weak memmap_init(unsigned long size, int nid,
                         ^
   mm/page_alloc.c:6377:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __meminit __weak memmap_init(unsigned long size, int nid,
   ^
   static 
>> mm/page_alloc.c:8562:48: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
                   pr_warn("total dump_pages %u skipping %u\n", nr_pages, nr_skip);
                                             ~~                 ^~~~~~~~
                                             %lu
   include/linux/printk.h:358:37: note: expanded from macro 'pr_warn'
           printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
                                      ~~~     ^~~~~~~~~~~
   mm/page_alloc.c:8562:58: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
                   pr_warn("total dump_pages %u skipping %u\n", nr_pages, nr_skip);
                                                         ~~               ^~~~~~~
                                                         %lu
   include/linux/printk.h:358:37: note: expanded from macro 'pr_warn'
           printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
                                      ~~~     ^~~~~~~~~~~
   4 warnings generated.


vim +8562 mm/page_alloc.c

  8539	
  8540	#if defined(CONFIG_DYNAMIC_DEBUG) || \
  8541		(defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
  8542	/* Usage: See admin-guide/dynamic-debug-howto.rst */
  8543	static void alloc_contig_dump_pages(struct list_head *page_list)
  8544	{
  8545		DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, "migrate failure");
  8546	
  8547		if (DYNAMIC_DEBUG_BRANCH(descriptor)) {
  8548			struct page *page;
  8549			unsigned long nr_skip = 0;
  8550			unsigned long nr_pages = 0;
  8551	
  8552			dump_stack();
  8553			list_for_each_entry(page, page_list, lru) {
  8554				nr_pages++;
  8555				/* The page will be freed by putback_movable_pages soon */
  8556				if (page_count(page) == 1) {
  8557					nr_skip++;
  8558					continue;
  8559				}
  8560				dump_page(page, "migration failure");
  8561			}
> 8562			pr_warn("total dump_pages %u skipping %u\n", nr_pages, nr_skip);
  8563		}
  8564	}
  8565	#else
  8566	static inline void alloc_contig_dump_pages(struct list_head *page_list)
  8567	{
  8568	}
  8569	#endif
  8570	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34495 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-25 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-25 14:42 [android-common:android12-5.10 1/2] mm/page_alloc.c:8562:48: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.