diff options
| author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-02 08:49:16 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-03 09:05:16 -0400 |
| commit | b7e67f6c1bf70cd97014d20a2a3bec4b4f3317f8 (patch) | |
| tree | 50ecb60c88e8eb27497de12472a859dc41de62ca /scripts | |
| parent | 90ffc75f56b892dbf6ba38d624f2b6380494b056 (diff) | |
doc-rst: linux_tv: supress lots of warnings
The c language parser checks if there are duplicated object
definitions. That causes lots of warnings like:
WARNING: duplicate C object description of ioctl
Let's remove those by telling Sphinx that the language for
those objects are c++. The look of the descriptions will
be close, and the warnings will be gone.
Please notice that we had to keep a few of them as C, as
the c++ parser seems to be broken when it finds an enum.
Yet, this reduced from 219 warnings to 143, with is
a good thing.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'scripts')
| -rw-r--r--[-rwxr-xr-x] | scripts/kernel-doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 932b3f34ff06..41eade332307 100755..100644 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -1833,7 +1833,7 @@ sub output_function_rst(%) { | |||
| 1833 | my $oldprefix = $lineprefix; | 1833 | my $oldprefix = $lineprefix; |
| 1834 | my $start; | 1834 | my $start; |
| 1835 | 1835 | ||
| 1836 | print ".. c:function:: "; | 1836 | print ".. cpp:function:: "; |
| 1837 | if ($args{'functiontype'} ne "") { | 1837 | if ($args{'functiontype'} ne "") { |
| 1838 | $start = $args{'functiontype'} . " " . $args{'function'} . " ("; | 1838 | $start = $args{'functiontype'} . " " . $args{'function'} . " ("; |
| 1839 | } else { | 1839 | } else { |
