windfarm: make wf_critical_overtemp() static
PATCH 1/1 windfarm: make wf_critical_overtemp() static
wf_critical_overtemp() is exported. But nothing uses that export. That's unsurprising because there's no header that defines it. Stop exporting that function and make it static.
Signed-off-by Paul Bolle <[email protected]>
---
Cross compiled only.
(And I really hope evolution didn't mangle this patch.)
drivers/macintosh/windfarm_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/macintosh/windfarm_core.c +1 -2
@@ -72,7 +72,7 @@ static inline void wf_notify(int event, void *param)blocking_notifier_call_chain (&wf_client_list, event, param); } -int wf_critical_overtemp (void ) +static int wf_critical_overtemp (void ) {static char * critical_overtemp_path ="/sbin/critical_overtemp" ;char *argv[] = { critical_overtemp_path,NULL };
@@ -84,7 +84,6 @@ int wf_critical_overtemp(void)return call_usermodehelper (critical_overtemp_path, argv, envp,UMH_WAIT_EXEC ); } -EXPORT_SYMBOL_GPL (wf_critical_overtemp);static int wf_thread_func (void *data) {
Signature · 1 line
2.4.3
Michael Ellerman
AppliedQuoted 5 lines · Paul Bolle
wf_critical_overtemp()is exported. But nothing uses that export. That's unsurprising because there's no header that defines it. Stop exporting that function and make it static.Signed-off-by Paul Bolle <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/ca94bbab1a0336f34066
cheers