linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Michal Hocko <mhocko@suse.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	Mike Kravetz <mike.kravetz@oracle.com>,
	Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 152/256] mm/migrate.c:1934:53: sparse: incorrect type in argument 2 (different argument counts)
Date: Fri, 5 Jan 2018 15:29:12 +0800	[thread overview]
Message-ID: <201801051507.45CKDK0l%fengguang.wu@intel.com> (raw)

Hi Michal,

First bad commit (maybe != root cause):

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   1ceb98996d2504dd4e0bcb5f4cb9009a18cd8aaa
commit: 37870392dd6966328ed2fe49a247ab37d6fa7344 [152/256] mm, hugetlb: unify core page allocation accounting and initialization
reproduce:
        # apt-get install sparse
        git checkout 37870392dd6966328ed2fe49a247ab37d6fa7344
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +1934 mm/migrate.c

de466bd6 Mel Gorman     2013-12-18  1899  
b32967ff Mel Gorman     2012-11-19  1900  /*
b32967ff Mel Gorman     2012-11-19  1901   * Attempt to migrate a misplaced page to the specified destination
b32967ff Mel Gorman     2012-11-19  1902   * node. Caller is expected to have an elevated reference count on
b32967ff Mel Gorman     2012-11-19  1903   * the page that will be dropped by this function before returning.
b32967ff Mel Gorman     2012-11-19  1904   */
1bc115d8 Mel Gorman     2013-10-07  1905  int migrate_misplaced_page(struct page *page, struct vm_area_struct *vma,
1bc115d8 Mel Gorman     2013-10-07  1906  			   int node)
b32967ff Mel Gorman     2012-11-19  1907  {
b32967ff Mel Gorman     2012-11-19  1908  	pg_data_t *pgdat = NODE_DATA(node);
340ef390 Hugh Dickins   2013-02-22  1909  	int isolated;
7039e1db Peter Zijlstra 2012-10-25  1910  	int nr_remaining;
b32967ff Mel Gorman     2012-11-19  1911  	LIST_HEAD(migratepages);
b32967ff Mel Gorman     2012-11-19  1912  
b32967ff Mel Gorman     2012-11-19  1913  	/*
1bc115d8 Mel Gorman     2013-10-07  1914  	 * Don't migrate file pages that are mapped in multiple processes
1bc115d8 Mel Gorman     2013-10-07  1915  	 * with execute permissions as they are probably shared libraries.
b32967ff Mel Gorman     2012-11-19  1916  	 */
1bc115d8 Mel Gorman     2013-10-07  1917  	if (page_mapcount(page) != 1 && page_is_file_cache(page) &&
1bc115d8 Mel Gorman     2013-10-07  1918  	    (vma->vm_flags & VM_EXEC))
b32967ff Mel Gorman     2012-11-19  1919  		goto out;
7039e1db Peter Zijlstra 2012-10-25  1920  
b32967ff Mel Gorman     2012-11-19  1921  	/*
b32967ff Mel Gorman     2012-11-19  1922  	 * Rate-limit the amount of data that is being migrated to a node.
b32967ff Mel Gorman     2012-11-19  1923  	 * Optimal placement is no good if the memory bus is saturated and
b32967ff Mel Gorman     2012-11-19  1924  	 * all the time is being spent migrating!
b32967ff Mel Gorman     2012-11-19  1925  	 */
340ef390 Hugh Dickins   2013-02-22  1926  	if (numamigrate_update_ratelimit(pgdat, 1))
b32967ff Mel Gorman     2012-11-19  1927  		goto out;
b32967ff Mel Gorman     2012-11-19  1928  
b32967ff Mel Gorman     2012-11-19  1929  	isolated = numamigrate_isolate_page(pgdat, page);
b32967ff Mel Gorman     2012-11-19  1930  	if (!isolated)
b32967ff Mel Gorman     2012-11-19  1931  		goto out;
b32967ff Mel Gorman     2012-11-19  1932  
b32967ff Mel Gorman     2012-11-19  1933  	list_add(&page->lru, &migratepages);
9c620e2b Hugh Dickins   2013-02-22 @1934  	nr_remaining = migrate_pages(&migratepages, alloc_misplaced_dst_page,
68711a74 David Rientjes 2014-06-04  1935  				     NULL, node, MIGRATE_ASYNC,
68711a74 David Rientjes 2014-06-04  1936  				     MR_NUMA_MISPLACED);
7039e1db Peter Zijlstra 2012-10-25  1937  	if (nr_remaining) {
59c82b70 Joonsoo Kim    2014-01-21  1938  		if (!list_empty(&migratepages)) {
59c82b70 Joonsoo Kim    2014-01-21  1939  			list_del(&page->lru);
599d0c95 Mel Gorman     2016-07-28  1940  			dec_node_page_state(page, NR_ISOLATED_ANON +
59c82b70 Joonsoo Kim    2014-01-21  1941  					page_is_file_cache(page));
59c82b70 Joonsoo Kim    2014-01-21  1942  			putback_lru_page(page);
59c82b70 Joonsoo Kim    2014-01-21  1943  		}
7039e1db Peter Zijlstra 2012-10-25  1944  		isolated = 0;
03c5a6e1 Mel Gorman     2012-11-02  1945  	} else
03c5a6e1 Mel Gorman     2012-11-02  1946  		count_vm_numa_event(NUMA_PAGE_MIGRATE);
7039e1db Peter Zijlstra 2012-10-25  1947  	BUG_ON(!list_empty(&migratepages));
7039e1db Peter Zijlstra 2012-10-25  1948  	return isolated;
340ef390 Hugh Dickins   2013-02-22  1949  
340ef390 Hugh Dickins   2013-02-22  1950  out:
340ef390 Hugh Dickins   2013-02-22  1951  	put_page(page);
340ef390 Hugh Dickins   2013-02-22  1952  	return 0;
7039e1db Peter Zijlstra 2012-10-25  1953  }
220018d3 Mel Gorman     2012-12-05  1954  #endif /* CONFIG_NUMA_BALANCING */
b32967ff Mel Gorman     2012-11-19  1955  

:::::: The code at line 1934 was first introduced by commit
:::::: 9c620e2bc5aa4256c102ada34e6c76204ed5898b mm: remove offlining arg to migrate_pages

:::::: TO: Hugh Dickins <hughd@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2018-01-05  7:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05  7:29 kbuild test robot [this message]
2018-01-05 20:42 ` Andrew Morton
2018-01-05 20:59   ` Michal Hocko

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=201801051507.45CKDK0l%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=mike.kravetz@oracle.com \
    --cc=n-horiguchi@ah.jp.nec.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