提交 256588fd 编写于 作者: G Guenter Roeck 提交者: Benjamin Herrenschmidt

powerpc: Export cpu_to_chip_id() to fix build error

powerpc allmodconfig build fails with:

ERROR: ".cpu_to_chip_id" [drivers/block/mtip32xx/mtip32xx.ko] undefined!

The problem was introduced with commit 15863ff3 (powerpc: Make chip-id
information available to userspace).

Export the missing symbol.

Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Cc: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 8d7551eb
...@@ -611,6 +611,7 @@ int cpu_to_chip_id(int cpu) ...@@ -611,6 +611,7 @@ int cpu_to_chip_id(int cpu)
of_node_put(np); of_node_put(np);
return of_get_ibm_chip_id(np); return of_get_ibm_chip_id(np);
} }
EXPORT_SYMBOL(cpu_to_chip_id);
/* Helper routines for cpu to core mapping */ /* Helper routines for cpu to core mapping */
int cpu_core_index_of_thread(int cpu) int cpu_core_index_of_thread(int cpu)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册