Lessons learned submitting my first Linux kernel patch

  • It takes a lot longer than one would expect
  • Follow all the instructions
  • Create patch with -upNr options:
    diff -upNr a/drivers/somefile.c b/drivers/somefile.c > mypatch.patch
  • Use the script to check for coding style errors:
    cd a
    scripts/checkpatch.pl ../mypatch.patch
  • When using Evolution to mail patches, turn off word wrapping by changing to Preformatted paragraph style:
  • More reading
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s