TODO: 5 new items.
Domen, if you want the patch tell me against 1.25, 1.26 or 1.27 should it be.
Anyway, people, what do you think about these?
1. Fix sparse warnings.
Read section "Where to get sparse" in Documentation/sparse.txt.
$ make allyesconfig or whatever config you like. Set CONFIG_DEBUG_INFO=n to make compiles faster and smaller. $ make -k C=1 2>&1 | tee ../W_sparse or $ make -k C=1 CHECK="sparse -Wbitwise" 2>&1 | tee ../W_sparse
_Plenty_ of patches here (well, not all of them fix sparse warnings ;-) ):
[E: http://linux.bkbits.net:8080/linux-2.6/search/?expr=sparse&search=ChangeSet+comments]
2.
For portability reasons pointers should be printed as ("%p", ptr), not ("%08x", (int) ptr) or similar.
3.
$ make randconfig $ make -k 2>&1 | tee ../W_randconfig
Find out why it doesn't build. Fix warnings that aren't seen with usual "allyesconfig", "allmodconfig", ...
P. S.: Run it several times, think a little and take bets on whether it'll build or not on the next party among local linuxoids. :-)
4.
Some drivers do:
if ((jiffies - data->last_updated > HZ * 2) ||
(jiffies < data->last_updated))Should be:
#include <linux/jiffies.h> if (time_after(jiffies, data->last_updated + HZ * 2))
Have a patch for drivers/i2c/chips/*.
5. verify_area() is obsoleted. Use access_ok() instead.
Jesper Juhl gave excellent description:
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601151424338&w=2
1) verify_area has been obsolete for quite a while. It was commented in the source as being obsolete 23 months ago. The replacement function is access_ok. It's about time it dies.
2) verify_area is just a wrapper around verify_area (or equivalent) on all archs - it's just a waste of space.
What is already done but not yet merged (maybe) into mainline:
http://marc.theaimsgroup.com/?l=linux-kernel&m=110557975201349&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601188609975&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601188728046&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601253108292&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601220107990&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601253131716&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601286014600&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601286031535&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601392122266&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601375625922&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601350702969&w=2
Alexey
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 5 lines · Alexey Dobriyan
Domen, if you want the patch tell me against 1.25, 1.26 or 1.27 should it be.
Anyway, people, what do you think about these?
1. Fix sparse warnings.
sounds very good
Quoted 4 lines
2.
For portability reasons pointers should be printed as ("%p", ptr), not ("%08x", (int) ptr) or similar.
ditto
Quoted 10 lines
3.
$ make randconfig $ make -k 2>&1 | tee ../W_randconfigFind out why it doesn't build. Fix warnings that aren't seen with usual "allyesconfig", "allmodconfig", ...
P. S.: Run it several times, think a little and take bets on whether it'll build or not on the next party among local linuxoids. :-)
funny,
make help doesn't feature it, hadn't seen it.
Quoted 7 lines
4.
Some drivers do:
if ((jiffies - data->last_updated > HZ * 2) || (jiffies < data->last_updated))
Quoted 6 lines
Should be:
#include <linux/jiffies.h> if (time_after(jiffies, data->last_updated + HZ * 2))Have a patch for
drivers/i2c/chips/*.
hmm,
in context of variable HZ, i don't know how that stand.
Quoted 14 lines
5.
verify_area()is obsoleted. Useaccess_ok()instead.Jesper Juhl gave excellent description:
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601151424338&w=2
1)
verify_areahas been obsolete for quite a while. It was commented in the source as being obsolete 23 months ago. The replacement function isaccess_ok. It's about time it dies.
2)verify_areais just a wrapper aroundverify_area(or equivalent) on all archs - it's just a waste of space.What is already done but not yet merged (maybe) into mainline:
Quoted 11 lines
http://marc.theaimsgroup.com/?l=linux-kernel&m=110557975201349&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601188609975&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601188728046&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601253108292&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601220107990&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601253131716&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601286014600&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601286031535&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601392122266&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601375625922&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110601350702969&w=2
puhh
i'll add another item that jgarzik submitted to lkml today for pci:
6. avoiding pci_disable_device() on pci_request_regions() failure pathes
http://marc.theaimsgroup.com/?l=linux-kernel&m=110834557305616&w=2
if gregkh acks the patch
--
maks
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 1 line · Alexey Dobriyan
Domen, if you want the patch tell me against 1.25, 1.26 or 1.27 should it be.
I plan to update todo (and release next -kj) by the end of week, i'll just include it myself.
Thanks!
Domen
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors