linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Mike Rapoport <rppt@linux.ibm.com>
Cc: kbuild-all@01.org, Guo Ren <ren_guo@c-sky.com>,
	Juergen Gross <jgross@suse.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5353/5361] mm/sparse.c:422:69: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'phys_addr_t' {aka 'unsigned int'}
Date: Fri, 1 Feb 2019 22:56:44 +0800	[thread overview]
Message-ID: <201902012242.eceQXCfJ%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9fe36dd579c794ae5f1c236293c55fb6847e9654
commit: 1c3c9328cde027eb875ba4692f0a5d66b0afe862 [5353/5361] treewide: add checks for the return value of memblock_alloc*()
config: arm-pleb_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1c3c9328cde027eb875ba4692f0a5d66b0afe862
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   mm/sparse.c: In function 'sparse_mem_map_populate':
>> mm/sparse.c:422:69: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
      panic("%s: Failed to allocate %lu bytes align=0x%lx nid=%d from=%lx\n",
                                                                      ~~^
                                                                      %x
   mm/sparse.c: In function 'sparse_buffer_init':
   mm/sparse.c:440:69: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
      panic("%s: Failed to allocate %lu bytes align=0x%lx nid=%d from=%lx\n",
                                                                      ~~^
                                                                      %x

vim +422 mm/sparse.c

   408	
   409	struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid,
   410			struct vmem_altmap *altmap)
   411	{
   412		unsigned long size = section_map_size();
   413		struct page *map = sparse_buffer_alloc(size);
   414	
   415		if (map)
   416			return map;
   417	
   418		map = memblock_alloc_try_nid(size,
   419						  PAGE_SIZE, __pa(MAX_DMA_ADDRESS),
   420						  MEMBLOCK_ALLOC_ACCESSIBLE, nid);
   421		if (!map)
 > 422			panic("%s: Failed to allocate %lu bytes align=0x%lx nid=%d from=%lx\n",
   423			      __func__, size, PAGE_SIZE, nid, __pa(MAX_DMA_ADDRESS));
   424	
   425		return map;
   426	}
   427	#endif /* !CONFIG_SPARSEMEM_VMEMMAP */
   428	

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

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

                 reply	other threads:[~2019-02-01 14:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201902012242.eceQXCfJ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=geert@linux-m68k.org \
    --cc=jgross@suse.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=ren_guo@c-sky.com \
    --cc=rppt@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).