All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org
Subject: [feng:master 7/12] mm/page_alloc.c:5644 dump_node_zonelists() error: format specifier '%]' invalid
Date: Mon, 18 Nov 2019 08:54:22 +0300	[thread overview]
Message-ID: <20191118055422.GA1776@kadam> (raw)

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

tree:   feng/master
head:   2c92de2e1f348ec7ea1884503b8b873276f37ed3
commit: 16d2d0ab190b72af553cb361ccdd9a6a7b20cc0d [7/12] zonelist: add dump

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
mm/page_alloc.c:5644 dump_node_zonelists() error: format specifier '%]' invalid

git remote add feng git://bee.sh.intel.com/git/feng/linux.git
git remote update feng
git checkout 16d2d0ab190b72af553cb361ccdd9a6a7b20cc0d
vim +5644 mm/page_alloc.c

523b945855a142 Christoph Lameter 2007-10-16  5620  
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5621  /*
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5622   * Build zonelists ordered by zone and nodes within zones.
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5623   * This results in conserving DMA zone[s] until all Normal memory is
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5624   * exhausted, but results in overflowing to remote node while memory
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5625   * may still exist in local DMA zone.
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5626   */
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5627  
16d2d0ab190b72 Feng Tang         2019-11-17  5628  static dump_node_zonelists(pg_data_t *pgdat)
16d2d0ab190b72 Feng Tang         2019-11-17  5629  {
16d2d0ab190b72 Feng Tang         2019-11-17  5630  	struct zonelist *fallback;
16d2d0ab190b72 Feng Tang         2019-11-17  5631  	struct zoneref *zrefs;
16d2d0ab190b72 Feng Tang         2019-11-17  5632  	int i;
16d2d0ab190b72 Feng Tang         2019-11-17  5633  
16d2d0ab190b72 Feng Tang         2019-11-17  5634  	fallback = pgdat->node_zonelists;
16d2d0ab190b72 Feng Tang         2019-11-17  5635  	zrefs = fallback->_zonerefs;
16d2d0ab190b72 Feng Tang         2019-11-17  5636  
16d2d0ab190b72 Feng Tang         2019-11-17  5637  	mp("zone_lists for node[%d]:", pgdat->node_id);
16d2d0ab190b72 Feng Tang         2019-11-17  5638  
16d2d0ab190b72 Feng Tang         2019-11-17  5639  	for (i = 0; i < MAX_ZONES_PER_ZONELIST + 1; i++) {
16d2d0ab190b72 Feng Tang         2019-11-17  5640  	
16d2d0ab190b72 Feng Tang         2019-11-17  5641  		printk("[%d]: nid[%].zone[%d]\n",
                                                                                  ^^
Missing character.

16d2d0ab190b72 Feng Tang         2019-11-17  5642  			i,
16d2d0ab190b72 Feng Tang         2019-11-17  5643  			zrefs->zone->node,
16d2d0ab190b72 Feng Tang         2019-11-17 @5644  			zrefs->zone_idx
16d2d0ab190b72 Feng Tang         2019-11-17  5645  			);
16d2d0ab190b72 Feng Tang         2019-11-17  5646  
16d2d0ab190b72 Feng Tang         2019-11-17  5647  		zrefs++;
16d2d0ab190b72 Feng Tang         2019-11-17  5648  		if (!zrefs->zone)
16d2d0ab190b72 Feng Tang         2019-11-17  5649  			break;
16d2d0ab190b72 Feng Tang         2019-11-17  5650  	}
16d2d0ab190b72 Feng Tang         2019-11-17  5651  }
16d2d0ab190b72 Feng Tang         2019-11-17  5652  

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild-all@lists.01.org
Subject: [feng:master 7/12] mm/page_alloc.c:5644 dump_node_zonelists() error: format specifier '%]' invalid
Date: Mon, 18 Nov 2019 08:54:22 +0300	[thread overview]
Message-ID: <20191118055422.GA1776@kadam> (raw)

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

tree:   feng/master
head:   2c92de2e1f348ec7ea1884503b8b873276f37ed3
commit: 16d2d0ab190b72af553cb361ccdd9a6a7b20cc0d [7/12] zonelist: add dump

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
mm/page_alloc.c:5644 dump_node_zonelists() error: format specifier '%]' invalid

git remote add feng git://bee.sh.intel.com/git/feng/linux.git
git remote update feng
git checkout 16d2d0ab190b72af553cb361ccdd9a6a7b20cc0d
vim +5644 mm/page_alloc.c

523b945855a142 Christoph Lameter 2007-10-16  5620  
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5621  /*
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5622   * Build zonelists ordered by zone and nodes within zones.
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5623   * This results in conserving DMA zone[s] until all Normal memory is
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5624   * exhausted, but results in overflowing to remote node while memory
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5625   * may still exist in local DMA zone.
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5626   */
f0c0b2b808f232 KAMEZAWA Hiroyuki 2007-07-15  5627  
16d2d0ab190b72 Feng Tang         2019-11-17  5628  static dump_node_zonelists(pg_data_t *pgdat)
16d2d0ab190b72 Feng Tang         2019-11-17  5629  {
16d2d0ab190b72 Feng Tang         2019-11-17  5630  	struct zonelist *fallback;
16d2d0ab190b72 Feng Tang         2019-11-17  5631  	struct zoneref *zrefs;
16d2d0ab190b72 Feng Tang         2019-11-17  5632  	int i;
16d2d0ab190b72 Feng Tang         2019-11-17  5633  
16d2d0ab190b72 Feng Tang         2019-11-17  5634  	fallback = pgdat->node_zonelists;
16d2d0ab190b72 Feng Tang         2019-11-17  5635  	zrefs = fallback->_zonerefs;
16d2d0ab190b72 Feng Tang         2019-11-17  5636  
16d2d0ab190b72 Feng Tang         2019-11-17  5637  	mp("zone_lists for node[%d]:", pgdat->node_id);
16d2d0ab190b72 Feng Tang         2019-11-17  5638  
16d2d0ab190b72 Feng Tang         2019-11-17  5639  	for (i = 0; i < MAX_ZONES_PER_ZONELIST + 1; i++) {
16d2d0ab190b72 Feng Tang         2019-11-17  5640  	
16d2d0ab190b72 Feng Tang         2019-11-17  5641  		printk("[%d]: nid[%].zone[%d]\n",
                                                                                  ^^
Missing character.

16d2d0ab190b72 Feng Tang         2019-11-17  5642  			i,
16d2d0ab190b72 Feng Tang         2019-11-17  5643  			zrefs->zone->node,
16d2d0ab190b72 Feng Tang         2019-11-17 @5644  			zrefs->zone_idx
16d2d0ab190b72 Feng Tang         2019-11-17  5645  			);
16d2d0ab190b72 Feng Tang         2019-11-17  5646  
16d2d0ab190b72 Feng Tang         2019-11-17  5647  		zrefs++;
16d2d0ab190b72 Feng Tang         2019-11-17  5648  		if (!zrefs->zone)
16d2d0ab190b72 Feng Tang         2019-11-17  5649  			break;
16d2d0ab190b72 Feng Tang         2019-11-17  5650  	}
16d2d0ab190b72 Feng Tang         2019-11-17  5651  }
16d2d0ab190b72 Feng Tang         2019-11-17  5652  

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

             reply	other threads:[~2019-11-18  5:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-18  5:54 Dan Carpenter [this message]
2019-11-18  5:54 ` [feng:master 7/12] mm/page_alloc.c:5644 dump_node_zonelists() error: format specifier '%]' invalid Dan Carpenter

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=20191118055422.GA1776@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=kbuild@lists.01.org \
    /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 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.