How to test my patches for the (staging) android driver?
A message that is not in the archive (sent off-list or not yet received): 20131203151642.GB2264@fu
Hi,
Greg-KHs email bot tells me to send this message to a ML. It suggests to send it to this list or [email protected], but the latter results in a failure notice. So I send this email to this list.
Quoted 24 lines · Matthias Beyer
Hi,
First: I'm really new to the kernel in manner of submitting patches, testing etc. Please, if you send me guidelines or pointers on what to do, explain how to do things!
I'm working on some cleanup patches for code in
drivers/staging/android/. These patches are cleanup patches as suggested in the appropriate TODO file, including fixes for checkpatch, but also function splitting as there are some really long functions (mainly inbinder.c).How to test my code beside compiling it? Do I even have a possibility to test it or should I just send it to you?
Besides: Which ML should I post this (and the patches) to? Main Kernel ML?
Signature · 6 lines
Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg.
Signature · 6 lines
Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg.
Hi kernelnewbies!
As I do not get any answer from the other MLs, this goes here, too. Maybe there is just too much noise in lkml... never mind!
Quoted 25 lines · Matthias Beyer
Hi,
Greg-KHs email bot tells me to send this message to a ML. It suggests to send it to this list or kernelnewbies at nl.linux.org, but the latter results in a failure notice. So I send this email to this list.
Quoted 17 lines · Matthias Beyer
Hi,
First: I'm really new to the kernel in manner of submitting patches, testing etc. Please, if you send me guidelines or pointers on what to do, explain how to do things!
I'm working on some cleanup patches for code in
drivers/staging/android/. These patches are cleanup patches as suggested in the appropriate TODO file, including fixes for checkpatch, but also function splitting as there are some really long functions (mainly inbinder.c).How to test my code beside compiling it? Do I even have a possibility to test it or should I just send it to you?
Besides: Which ML should I post this (and the patches) to? Main Kernel ML?
Signature · 13 lines
Mit freundlichen Gr??en, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131204/c647d318/attachment.bin
Quoted 2 lines · Matthias Beyer
Quoted 2 lines
Quoted 2 lines
How to test my code beside compiling it? Do I even have a possibility to test it or should I just send it to you?
If at all possible, you should cross-compile for an appropriate architecture
and actually boot and test the code in question. There's lots of ways
to write code in C that compiles cleanly, looks correct, but is subtly
wrong for some reason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131204/6f77d06a/attachment.bin
Quoted 9 lines · Valdis.Kletnieks at vt.edu
Quoted 2 lines · Matthias Beyer
Quoted 2 lines
Quoted 2 lines
How to test my code beside compiling it? Do I even have a possibility to test it or should I just send it to you?
If at all possible, you should cross-compile for an appropriate architecture and actually boot and test the code in question. There's lots of ways to write code in C that compiles cleanly, looks correct, but is subtly wrong for some reason.
Thank you for your reply!
How to cross-compile and even more important: How to test? I do not have devices for testing! Should I try it in a VM?
What I can do is checking if the object file is the same before and after my stylefix patches. But I think this does not work for functions I split up into several smaller ones...
Signature · 13 lines
Mit freundlichen Gr??en, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131204/7e8fbbe1/attachment-0001.bin