From: Grygorii Strashko Date: Tue, 21 Jan 2014 23:50:55 +0000 (-0800) Subject: mm/memblock: use WARN_ONCE when MAX_NUMNODES passed as input parameter X-Git-Tag: v3.14-rc1~134^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=560dca27a6b36015e4f69a4ceba0ee5be0707c17;p=pandora-kernel.git mm/memblock: use WARN_ONCE when MAX_NUMNODES passed as input parameter Check nid parameter and produce warning if it has deprecated MAX_NUMNODES value. Also re-assign NUMA_NO_NODE value to the nid parameter in this case. These will help to identify the wrong API usage (the caller) and make code simpler. Signed-off-by: Grygorii Strashko Signed-off-by: Santosh Shilimkar Cc: Yinghai Lu Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed