* 2.6.11 breaks modules gratuitously
@ 2005-03-18 15:33 Greg Stark
2005-03-18 16:00 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Greg Stark @ 2005-03-18 15:33 UTC (permalink / raw)
To: linux-kernel
When you guys go on these "make needlessly global code static" kicks you
should maybe consider that even functions that aren't currently used by any
other area of the tree might be useful for module writers.
Instead of just checking which functions are currently used by other parts of
the kernel perhaps you should think about what makes a logical API and stick
to that, even if not all of the functions are currently used.
In the case of net/core/datagram.c, why make skb_copy_datagram private but
leave skb_copy_datagram_iovec global? If the latter is a useful public
function why not the former?
In particular vmware used skb_copy_datagram. So 2.6.11 broke vmware for no
good reason.
<bunk@stusta.de>
[NET]: misc cleanups
The patch below contains the following cleanups:
- make needlessly global code static
- remove the following unused global functions:
- datagram.c: skb_copy_datagram
- iovec.c: memcpy_tokerneliovec
- remove the following unneeded EXPORT_SYMBOL's:
- datagram.c: skb_copy_datagram
- dev.c: ing_filter
- iovec.c: memcpy_tokerneliovec
- netpoll.c: netpoll_send_skb
- rtnetlink.c: rtnetlink_dump_ifinfo
- sock.c: sock_alloc_send_pskb
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
--
greg
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.6.11 breaks modules gratuitously
2005-03-18 15:33 2.6.11 breaks modules gratuitously Greg Stark
@ 2005-03-18 16:00 ` Ian Campbell
0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2005-03-18 16:00 UTC (permalink / raw)
To: Greg Stark; +Cc: linux-kernel
On Fri, 2005-03-18 at 10:33 -0500, Greg Stark wrote:
> In particular vmware used skb_copy_datagram. So 2.6.11 broke vmware for no
> good reason.
I don't know about the validity or otherwise of (un)exporting
skb_copy_datagram but for what it's worth
http://ftp.cvut.cz/vmware/vmware-any-any-update89.tar.gz has been
updated to work with 2.6.11.
Ian.
--
Ian Campbell
Current Noise: Entombed - Out of Heaven
Santa Claus is watching!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.6.11 breaks modules gratuitously
[not found] <3JrTO-1C4-41@gated-at.bofh.it>
@ 2005-03-18 18:49 ` Jean Delvare
2005-03-18 19:01 ` John Kacur
0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2005-03-18 18:49 UTC (permalink / raw)
To: Greg Stark; +Cc: LKML
Hi Greg,
> When you guys go on these "make needlessly global code static" kicks
> you should maybe consider that even functions that aren't currently
> used by any other area of the tree might be useful for module writers.
>
> Instead of just checking which functions are currently used by other
> parts of the kernel perhaps you should think about what makes a
> logical API and stick to that, even if not all of the functions are
> currently used.
I'd second that. Cleanups are good and I do not deny that Adrian Bunk
has been doing a terrific work. However, unexporting or removing
functions just because they have no current user in the kernel tree is
not always a clever thing to do. Keeping things square and logical
should be taken into consideration, as should the possibility that some
function might be used outside of the kernel tree. I do *not* mean
entire interfaces only used outside of the kernel tree, because these
are highly questionable, but functions that are part of a larger set of
functions representing an interface, most of which are used inside the
kernel. In this specific case, dropping exports or removing functions
make very little sense to me and is sometimes calling for trouble, as
Greg just underlined. In some cases, the functions are likely to be
reintroduced/reexported a few months later and we certainly could use
our time in a more useful way than undoing and redoing things.
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.6.11 breaks modules gratuitously
2005-03-18 18:49 ` Jean Delvare
@ 2005-03-18 19:01 ` John Kacur
2005-03-18 19:14 ` Adrian Bunk
0 siblings, 1 reply; 5+ messages in thread
From: John Kacur @ 2005-03-18 19:01 UTC (permalink / raw)
To: LKML; +Cc: Greg Stark, Jean Delvare, bunk
On Fri, 2005-03-18 at 13:49, Jean Delvare wrote:
> Hi Greg,
>
> > When you guys go on these "make needlessly global code static" kicks
> > you should maybe consider that even functions that aren't currently
> > used by any other area of the tree might be useful for module writers.
> >
> > Instead of just checking which functions are currently used by other
> > parts of the kernel perhaps you should think about what makes a
> > logical API and stick to that, even if not all of the functions are
> > currently used.
>
> I'd second that. Cleanups are good and I do not deny that Adrian Bunk
> has been doing a terrific work. However, unexporting or removing
> functions just because they have no current user in the kernel tree is
> not always a clever thing to do. Keeping things square and logical
> should be taken into consideration, as should the possibility that some
> function might be used outside of the kernel tree. I do *not* mean
> entire interfaces only used outside of the kernel tree, because these
> are highly questionable, but functions that are part of a larger set of
> functions representing an interface, most of which are used inside the
> kernel. In this specific case, dropping exports or removing functions
> make very little sense to me and is sometimes calling for trouble, as
> Greg just underlined. In some cases, the functions are likely to be
> reintroduced/reexported a few months later and we certainly could use
> our time in a more useful way than undoing and redoing things.
>
> Thanks,
So perhaps we can introduce a new term to linux kernel development,
reexporting a symbol can now be known as debunking?
(sorry, sorry, I couldn't resist)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 2.6.11 breaks modules gratuitously
2005-03-18 19:01 ` John Kacur
@ 2005-03-18 19:14 ` Adrian Bunk
0 siblings, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2005-03-18 19:14 UTC (permalink / raw)
To: John Kacur; +Cc: LKML, Greg Stark, Jean Delvare
On Fri, Mar 18, 2005 at 02:01:02PM -0500, John Kacur wrote:
>
> So perhaps we can introduce a new term to linux kernel development,
> reexporting a symbol can now be known as debunking?
>...
Are you saying unexporting a symbol was bunk? ;-)
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-18 19:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 15:33 2.6.11 breaks modules gratuitously Greg Stark
2005-03-18 16:00 ` Ian Campbell
[not found] <3JrTO-1C4-41@gated-at.bofh.it>
2005-03-18 18:49 ` Jean Delvare
2005-03-18 19:01 ` John Kacur
2005-03-18 19:14 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox