From: Johannes Berg Date: Wed, 24 Oct 2007 22:08:48 +0000 (-0700) Subject: kernel-doc: init kernel version X-Git-Tag: v2.6.25-rc1~1164^2~77 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b9bc22d71c75d4145688428c92c5123bd8697e3;p=linux-2.6-omap-h63xx.git kernel-doc: init kernel version The kernel-doc script triggers a perl warning when invoked without KERNELVERSION in the environment, rather make it use the string "unknown kernel version" instead. Signed-off-by: Johannes Berg Signed-off-by: Randy Dunlap Signed-off-by: Sam Ravnborg --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index e4fa8d9568b..8cf528b5e65 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -334,7 +334,7 @@ while ($ARGV[0] =~ m/^-(.*)/) { # get kernel version from env sub get_kernel_version() { - my $version; + my $version = 'unknown kernel version'; if (defined($ENV{'KERNELVERSION'})) { $version = $ENV{'KERNELVERSION'};