The conversion here is really trivial: just a bunch of title markups and very few puntual changes is enough to make it to be parsed by Sphinx and generate a nice html. The conversion is actually: - add blank lines and identation in order to identify paragraphs; - fix tables markups; - add some lists markups; - mark literal blocks; - adjust title markups. At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings.
Showing the changes to scripts/checkpatch.pl (1 of 14 files). Show all
Unified · Split
| @@ -5712,7 +5712,7 @@ sub process { · 5711 unmodified lines | ||
| 5712 | 5712 | # ignore udelay's < 10, however |
| 5713 | 5713 | if (! ($delay < 10) ) { |
| 5714 | 5714 | CHK("USLEEP_RANGE", |
| 5715 | − "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt\n" . $herecurr); | |
| 5715 | + "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst\n" . $herecurr); | |
| 5716 | 5716 | } |
| 5717 | 5717 | if ($delay > 2000) { |
| 5718 | 5718 | WARN("LONG_UDELAY", |
| @@ -5724,7 +5724,7 @@ sub process { · 5 unmodified lines | ||
| 5724 | 5724 | if ($line =~ /\bmsleep\s*\((\d+)\);/) { |
| 5725 | 5725 | if ($1 < 20) { |
| 5726 | 5726 | WARN("MSLEEP", |
| 5727 | − "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt\n" . $herecurr); | |
| 5727 | + "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst\n" . $herecurr); | |
| 5728 | 5728 | } |
| 5729 | 5729 | } |
| 5730 | 5730 | |
| @@ -6115,11 +6115,11 @@ sub process { · 384 unmodified lines | ||
| 6115 | 6115 | my $max = $7; |
| 6116 | 6116 | if ($min eq $max) { |
| 6117 | 6117 | WARN("USLEEP_RANGE", |
| 6118 | − "usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); | |
| 6118 | + "usleep_range should not use min == max args; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); | |
| 6119 | 6119 | } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ && |
| 6120 | 6120 | $min > $max) { |
| 6121 | 6121 | WARN("USLEEP_RANGE", |
| 6122 | − "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); | |
| 6122 | + "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); | |
| 6123 | 6123 | } |
| 6124 | 6124 | } |
| 6125 | 6125 | |