The patch titled kernel-doc: small kernel-doc optimization has been added to the -mm tree. Its filename is kernel-doc-small-kernel-doc-optimization.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: kernel-doc: small kernel-doc optimization From: Borislav Petkov <bbpetkov@xxxxxxxx> Get the kernel version string only once from the environment, thus slightly speeding up kernel-doc. Signed-off-by: Borislav Petkov <bbpetkov@xxxxxxxx> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/kernel-doc | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff -puN scripts/kernel-doc~kernel-doc-small-kernel-doc-optimization scripts/kernel-doc --- a/scripts/kernel-doc~kernel-doc-small-kernel-doc-optimization +++ a/scripts/kernel-doc @@ -337,6 +337,7 @@ sub get_kernel_version() { } return $version; } +my $kernelversion = get_kernel_version(); # generate a sequence of code that will splice in highlighting information # using the s// operator. @@ -610,7 +611,7 @@ sub output_function_xml(%) { print "<refmeta>\n"; print " <refentrytitle><phrase>".$args{'function'}."</phrase></refentrytitle>\n"; print " <manvolnum>9</manvolnum>\n"; - print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; + print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; print "</refmeta>\n"; print "<refnamediv>\n"; print " <refname>".$args{'function'}."</refname>\n"; @@ -687,7 +688,7 @@ sub output_struct_xml(%) { print "<refmeta>\n"; print " <refentrytitle><phrase>".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n"; print " <manvolnum>9</manvolnum>\n"; - print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; + print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; print "</refmeta>\n"; print "<refnamediv>\n"; print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n"; @@ -772,7 +773,7 @@ sub output_enum_xml(%) { print "<refmeta>\n"; print " <refentrytitle><phrase>enum ".$args{'enum'}."</phrase></refentrytitle>\n"; print " <manvolnum>9</manvolnum>\n"; - print " <refmiscinfo class=\"version\">" . get_kernel_version() . "</refmiscinfo>\n"; + print " <refmiscinfo class=\"version\">" . $kernelversion . "</refmiscinfo>\n"; print "</refmeta>\n"; print "<refnamediv>\n"; print " <refname>enum ".$args{'enum'}."</refname>\n"; _ Patches currently in -mm which might be from bbpetkov@xxxxxxxx are origin.patch kernel-doc-handle-arrays-with-arithmetic-expressions-as.patch generate-main-index-page-when-building-htmldocs.patch kill-warnings-when-building-mandocs.patch drivers-macintosh-remove-default-y-from-kconfig-was-re-2621-mm1.patch kernel-doc-small-kernel-doc-optimization.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html