diff options
-rwxr-xr-x | scripts/kernel-doc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index a325a0c890dc..e5bf649e516a 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -337,6 +337,7 @@ sub get_kernel_version() { | |||
337 | } | 337 | } |
338 | return $version; | 338 | return $version; |
339 | } | 339 | } |
340 | my $kernelversion = get_kernel_version(); | ||
340 | 341 | ||
341 | # generate a sequence of code that will splice in highlighting information | 342 | # generate a sequence of code that will splice in highlighting information |
342 | # using the s// operator. | 343 | # using the s// operator. |
@@ -610,7 +611,7 @@ sub output_function_xml(%) { | |||
610 | print "<refmeta>\n"; | 611 | print "<refmeta>\n"; |
611 | print " <refentrytitle><phrase>".$args{'function'}."</phrase></refentrytitle>\n"; | 612 | print " <refentrytitle><phrase>".$args{'function'}."</phrase></refentrytitle>\n"; |
612 | print " <manvolnum>9</manvolnum>\n"; | 613 | print " <manvolnum>9</manvolnum>\n"; |
613 | print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; | 614 | print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; |
614 | print "</refmeta>\n"; | 615 | print "</refmeta>\n"; |
615 | print "<refnamediv>\n"; | 616 | print "<refnamediv>\n"; |
616 | print " <refname>".$args{'function'}."</refname>\n"; | 617 | print " <refname>".$args{'function'}."</refname>\n"; |
@@ -687,7 +688,7 @@ sub output_struct_xml(%) { | |||
687 | print "<refmeta>\n"; | 688 | print "<refmeta>\n"; |
688 | print " <refentrytitle><phrase>".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n"; | 689 | print " <refentrytitle><phrase>".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n"; |
689 | print " <manvolnum>9</manvolnum>\n"; | 690 | print " <manvolnum>9</manvolnum>\n"; |
690 | print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; | 691 | print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; |
691 | print "</refmeta>\n"; | 692 | print "</refmeta>\n"; |
692 | print "<refnamediv>\n"; | 693 | print "<refnamediv>\n"; |
693 | print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n"; | 694 | print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n"; |
@@ -772,7 +773,7 @@ sub output_enum_xml(%) { | |||
772 | print "<refmeta>\n"; | 773 | print "<refmeta>\n"; |
773 | print " <refentrytitle><phrase>enum ".$args{'enum'}."</phrase></refentrytitle>\n"; | 774 | print " <refentrytitle><phrase>enum ".$args{'enum'}."</phrase></refentrytitle>\n"; |
774 | print " <manvolnum>9</manvolnum>\n"; | 775 | print " <manvolnum>9</manvolnum>\n"; |
775 | print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; | 776 | print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; |
776 | print "</refmeta>\n"; | 777 | print "</refmeta>\n"; |
777 | print "<refnamediv>\n"; | 778 | print "<refnamediv>\n"; |
778 | print " <refname>enum ".$args{'enum'}."</refname>\n"; | 779 | print " <refname>enum ".$args{'enum'}."</refname>\n"; |