diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kernel-doc | 7 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 1 |
2 files changed, 5 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"; |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 480e18b00aa6..113dc77b9f60 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1343,6 +1343,7 @@ static void add_header(struct buffer *b, struct module *mod) | |||
1343 | buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" | 1343 | buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" |
1344 | " .exit = cleanup_module,\n" | 1344 | " .exit = cleanup_module,\n" |
1345 | "#endif\n"); | 1345 | "#endif\n"); |
1346 | buf_printf(b, " .arch = MODULE_ARCH_INIT,\n"); | ||
1346 | buf_printf(b, "};\n"); | 1347 | buf_printf(b, "};\n"); |
1347 | } | 1348 | } |
1348 | 1349 | ||