summaryrefslogtreecommitdiffstats
path: root/Documentation/ja_JP
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@laposte.net>2014-04-04 08:43:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 14:13:26 -0700
commit53974e06603977f348ed978d75c426b0532daa67 (patch)
tree5d2d050ed41379e6c42c63980b4e552be3620581 /Documentation/ja_JP
parent06d96c0ff77f20dbf5fc93c8cfa9a2a9690fd67e (diff)
downloadlinux-0-day-53974e06603977f348ed978d75c426b0532daa67.tar.gz
linux-0-day-53974e06603977f348ed978d75c426b0532daa67.tar.xz
topology: Fix compilation warning when not in SMP
The topology_##name() macro does not use its argument when CONFIG_SMP is not set, as it ultimately calls the cpu_data() macro. So we avoid maintaining a possibly unused `cpu' variable, to avoid the following compilation warning: drivers/base/topology.c: In function ‘show_physical_package_id’: drivers/base/topology.c:103:118: warning: unused variable ‘cpu’ [-Wunused-variable] define_id_show_func(physical_package_id); drivers/base/topology.c: In function ‘show_core_id’: drivers/base/topology.c:106:106: warning: unused variable ‘cpu’ [-Wunused-variable] define_id_show_func(core_id); This can be seen with e.g. x86 defconfig and CONFIG_SMP not set. Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: <stable@vger.kernel.org> # 3.10.x Cc: <stable@vger.kernel.org> # 3.13.x Cc: <stable@vger.kernel.org> # 3.14.x Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ja_JP')
0 files changed, 0 insertions, 0 deletions