LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [patch] export hrtimer_forward
@ 2007-05-03 17:57 Stas Sergeev
2007-05-03 18:57 ` Peter Zijlstra
0 siblings, 1 reply; 5+ messages in thread
From: Stas Sergeev @ 2007-05-03 17:57 UTC (permalink / raw)
To: Linux kernel; +Cc: Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 269 bytes --]
Hello.
It seems hrtimer_forward was forgotten to
export - other symbols of the hrtimers API
are already exported.
Unless I am missing something, using the
hrtimers without that function is problematic.
Andrew, could you please apply?
Signed-off-by: <stsp@aknet.ru>
[-- Attachment #2: exp_hrfwd.diff --]
[-- Type: text/x-patch, Size: 262 bytes --]
--- a/kernel/hrtimer.c 2007-04-27 13:00:25.000000000 +0400
+++ b/kernel/hrtimer.c 2007-05-03 17:27:40.000000000 +0400
@@ -666,6 +666,7 @@
return orun;
}
+EXPORT_SYMBOL_GPL(hrtimer_forward);
/*
* enqueue_hrtimer - internal function to (re)start a timer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] export hrtimer_forward
2007-05-03 17:57 [patch] export hrtimer_forward Stas Sergeev
@ 2007-05-03 18:57 ` Peter Zijlstra
2007-05-03 19:10 ` Stas Sergeev
0 siblings, 1 reply; 5+ messages in thread
From: Peter Zijlstra @ 2007-05-03 18:57 UTC (permalink / raw)
To: Stas Sergeev; +Cc: Linux kernel, Andrew Morton
On Thu, 2007-05-03 at 21:57 +0400, Stas Sergeev wrote:
> Hello.
>
> It seems hrtimer_forward was forgotten to
> export - other symbols of the hrtimers API
> are already exported.
> Unless I am missing something, using the
> hrtimers without that function is problematic.
>
> Andrew, could you please apply?
Are there actual in-tree users of this symbol? Without we usually leave
the symbol unexported, this saves some space.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] export hrtimer_forward
2007-05-03 18:57 ` Peter Zijlstra
@ 2007-05-03 19:10 ` Stas Sergeev
2007-05-03 23:58 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Stas Sergeev @ 2007-05-03 19:10 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: Linux kernel, Andrew Morton
Hello.
Peter Zijlstra wrote:
>> It seems hrtimer_forward was forgotten to
>> export - other symbols of the hrtimers API
> Are there actual in-tree users of this symbol? Without we usually leave
> the symbol unexported, this saves some space.
Do you mean it was really left intentional?
Unbeleivable! But why the other parts of a
hrtimer API are exported nevertheless, and
only this particular function not?
As for the users - I am porting my pcsp driver to
it and I need that function.
It is not exactly in-tree stuff, but it was
in an ALSA tree for years already, so it is a
close one.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] export hrtimer_forward
2007-05-03 19:10 ` Stas Sergeev
@ 2007-05-03 23:58 ` Andrew Morton
2007-05-04 21:08 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-05-03 23:58 UTC (permalink / raw)
To: Stas Sergeev; +Cc: Peter Zijlstra, Linux kernel, Thomas Gleixner
On Thu, 03 May 2007 23:10:02 +0400
Stas Sergeev <stsp@aknet.ru> wrote:
> Hello.
>
> Peter Zijlstra wrote:
> >> It seems hrtimer_forward was forgotten to
> >> export - other symbols of the hrtimers API
> > Are there actual in-tree users of this symbol? Without we usually leave
> > the symbol unexported, this saves some space.
> Do you mean it was really left intentional?
> Unbeleivable! But why the other parts of a
> hrtimer API are exported nevertheless, and
> only this particular function not?
It was probably an oversight - generally we take the position that all the
formal interface of a subsystem is exported to modules rather than a
piecemeal whichever-bits-kernel.org-happens-to-use-today approach.
Thomas, is hrtimer_forward() considered part of the hrtimer public API?
And are you OK with the patch?
> As for the users - I am porting my pcsp driver to
> it and I need that function.
> It is not exactly in-tree stuff, but it was
> in an ALSA tree for years already, so it is a
> close one.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] export hrtimer_forward
2007-05-03 23:58 ` Andrew Morton
@ 2007-05-04 21:08 ` Thomas Gleixner
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2007-05-04 21:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: Stas Sergeev, Peter Zijlstra, Linux kernel
On Thu, 2007-05-03 at 16:58 -0700, Andrew Morton wrote:
> It was probably an oversight - generally we take the position that all the
> formal interface of a subsystem is exported to modules rather than a
> piecemeal whichever-bits-kernel.org-happens-to-use-today approach.
>
> Thomas, is hrtimer_forward() considered part of the hrtimer public API?
> And are you OK with the patch?
Yes to both.
tglx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-04 21:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 17:57 [patch] export hrtimer_forward Stas Sergeev
2007-05-03 18:57 ` Peter Zijlstra
2007-05-03 19:10 ` Stas Sergeev
2007-05-03 23:58 ` Andrew Morton
2007-05-04 21:08 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).