powerpc/macintosh: Fix __devexit annotation in rack-meter.c
authorGrant Likely <grant.likely@secretlab.ca>
Mon, 28 Feb 2011 09:59:31 +0000 (09:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 2 Mar 2011 05:50:25 +0000 (16:50 +1100)
commite1f4dea454c8e643644114757080680e1959d410
treeb6dcb108460eade471637db1132e7890bbfda1a1
parentfe3cc0d99de6a9bf99b6c279a8afb5833888c1f7
powerpc/macintosh: Fix __devexit annotation in rack-meter.c

The following warning was seen building rack-meter.c

WARNING: drivers/built-in.o(.text+0xac784): Section mismatch in reference from the function rackmeter_shutdown() to the function .devexit.text:rackmeter_stop_cpu_sniffer()
The function rackmeter_shutdown() references a function in an exit section.
Often the function rackmeter_stop_cpu_sniffer() has valid usage outside the exit section
and the fix is to remove the __devexit annotation of rackmeter_stop_cpu_sniffer.

This patch resolves the warning by removing the __devexit annotation from
rackmeter_stop_cpu_sniffer().

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/rack-meter.c