summaryrefslogtreecommitdiffstats
path: root/drivers/base/test/test_async_driver_probe.c
diff options
context:
space:
mode:
authorKirtika Ruchandani <kirtika@chromium.org>2016-11-24 17:12:00 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 20:58:31 +0100
commite22defeb9810d98dfffe9d84e036559af1742d96 (patch)
tree259d8a80c373e8cf2ba18189e8c337a013e59e91 /drivers/base/test/test_async_driver_probe.c
parent2027cbcf497579cb3bd71ed4173ae9b950aa09a3 (diff)
downloadtalos-obmc-linux-e22defeb9810d98dfffe9d84e036559af1742d96.tar.gz
talos-obmc-linux-e22defeb9810d98dfffe9d84e036559af1742d96.zip
drivers/base/memory.c: Remove unused 'first_page' variable
Commit 71fbd556adde ("memory-hotplug: remove redundant call of page_to_pfn") introduced an optimization that rendered 'struct page* first_page' useless in memory_block_action(). Compiling with W=1 gives the following warning, fix it. drivers/base/memory.c: In function ‘memory_block_action’: drivers/base/memory.c:229:15: warning: variable ‘first_page’ set but not used [-Wunused-but-set-variable] struct page *first_page; ^ This is a harmeless warning and is only being fixed to reduce the noise with W=1 in the kernel. The call to pfn_to_page() has no side effects and is safe to remove. Fixes: 71fbd556adde ("memory-hotplug: remove redundant call of page_to_pfn") Cc: Zhang Zhen <zhenzhang.zhang@huawei.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Kirtika Ruchandani <kirtika@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/test/test_async_driver_probe.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud