RE: [PATCH v2:3/3]Export cpu topology by sysfs

From: Zhang, Yanmin <>
Date: 2005-12-27 21:22:48
>>-----Original Message-----
>>From: Greg KH []
>>Sent: 20051227 13:35
>>To: Zhang, Yanmin
>>Cc: Yanmin Zhang;;;; Siddha, Suresh B; Shah, Rajesh;
>>Pallipadi, Venkatesh
>>Subject: Re: [PATCH v2:3/3]Export cpu topology by sysfs
>>> Sorry. My previous explanation is confusing. It's a link warning on
>>> ia64. On ia64, the kernel vmlinux doesn't include section .exit.text,
>>> so ld will report a link warning when a function is in section
>>> .exit.text and another function (not in .exit.text) calls the first
>>> one. When CONFIG_HOTPLUG_CPU=n, function topology_remove_dev is in
>>> section .exit.text, but its caller topology_remove_dev is not in
>>> .exit.text.
>>> i386 and x86_64 kernel vmlinux does include .exit.text and discard it
>>> only when running, so there is no such warning on i386/x86_64.
>>> There is no other better approach to get rid of the warning unless we
>>> change arch/ia64/kernel/ to keep all .exit.text in kernel
>>> image.
>>Or just move that function to not be __exit, as you are calling it from
>>an __init function.  That would be the best solution.

I will change topology_remove_dev's attribute from __cpuexit to __cpuinit, and the problem will be resolved thoroughly.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Dec 27 21:23:32 2005

This archive was generated by hypermail 2.1.8 : 2005-12-27 21:23:40 EST