* [KJ] Janitortask
@ 2006-04-20 21:47 Henne
2006-04-20 22:27 ` Greg KH
2006-04-20 22:33 ` Henne
0 siblings, 2 replies; 3+ messages in thread
From: Henne @ 2006-04-20 21:47 UTC (permalink / raw)
To: kernel-janitors
Hi there,
if somebody is interested in a janitortask, here is one:
Like in <kerneldoc>/pci.txt mentioned, the "struct pci_device_id" in
drivers should be __devinitdata , to save place.
Each entry of that type takes 28 or 32 bits (depending on the
architecture), and many drivers are for chips with a handfull of these
entrys.
A point to start is:
cd <kernelsource>/drivers
fgrep -r "static struct pci_device_id" |grep -v "__devinitdata"
Sure it's better to look for the others like
__init/_exit/__devinit/__devexit,... too, that make that automagicially.
The ALSA-drivers have been done by me.
Best regards,
Henne
P.S.: Kerneljanitors is a great thing.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] Janitortask
2006-04-20 21:47 [KJ] Janitortask Henne
@ 2006-04-20 22:27 ` Greg KH
2006-04-20 22:33 ` Henne
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2006-04-20 22:27 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
On Thu, Apr 20, 2006 at 11:47:32PM +0200, Henne wrote:
> Hi there,
>
> if somebody is interested in a janitortask, here is one:
>
> Like in <kerneldoc>/pci.txt mentioned, the "struct pci_device_id" in
> drivers should be __devinitdata , to save place.
Well, for almost all systems, this will not really save any memory. You
have to disable CONFIG_HOTPLUG for this to be true, and that option is
hard to turn off now.
And you have to build the driver into the kernel.
In all, it's a very minor thing. But hey, I will not refuse patches...
thanks,
greg k-h
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* [KJ] Janitortask
2006-04-20 21:47 [KJ] Janitortask Henne
2006-04-20 22:27 ` Greg KH
@ 2006-04-20 22:33 ` Henne
1 sibling, 0 replies; 3+ messages in thread
From: Henne @ 2006-04-20 22:33 UTC (permalink / raw)
To: kernel-janitors
Okay,
but for the correctness it should be done. And I'll see something other
that ALSA drivers ;).
Is there a prefered way for adding __init/__exit ?
In "writing an ALSA driver" it's static struct foo __init structname[]
and I've seen static struct foo structname[] __init
in the sources too. I know that this makes no difference to the
compiler, but for the readability.
Greets
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-20 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 21:47 [KJ] Janitortask Henne
2006-04-20 22:27 ` Greg KH
2006-04-20 22:33 ` Henne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.