diff options
author | Mel Gorman <mgorman@suse.de> | 2015-07-18 01:23:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-18 01:39:53 +0200 |
commit | ae026b2aa19350f3c863df2dce7e0511dd78ff49 (patch) | |
tree | 82003b07c7968e2c2b5ce770a0cdd122aba9a8a2 /drivers/pinctrl/pinctrl-u300.c | |
parent | configfs: fix kernel infoleak through user-controlled format string (diff) | |
download | linux-ae026b2aa19350f3c863df2dce7e0511dd78ff49.tar.xz linux-ae026b2aa19350f3c863df2dce7e0511dd78ff49.zip |
mm, meminit: suppress unused memory variable warning
The kbuild test robot reported the following
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 14a6f1989dae9445d4532941bdd6bbad84f4c8da
commit: 3b242c66ccbd60cf47ab0e8992119d9617548c23 x86: mm: enable deferred struct page initialisation on x86-64
date: 3 days ago
config: x86_64-randconfig-x006-201527 (attached as .config)
reproduce:
git checkout 3b242c66ccbd60cf47ab0e8992119d9617548c23
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
mm/page_alloc.c: In function 'early_page_uninitialised':
>> mm/page_alloc.c:247:6: warning: unused variable 'nid' [-Wunused-variable]
int nid = early_pfn_to_nid(pfn);
It's due to the NODE_DATA macro ignoring the nid parameter on !NUMA
configurations. This patch avoids the warning by not declaring nid.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-u300.c')
0 files changed, 0 insertions, 0 deletions