aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-24 18:08:48 -0400
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:14:35 -0500
commit1b9bc22d71c75d4145688428c92c5123bd8697e3 (patch)
treee12b10ef3a1da181d3957b7d1b5660d785d6066d
parent5c98fc0360437327e4034ecfe8b818ad82622100 (diff)
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 <johannes@sipsolutions.net> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index e4fa8d9568ba..8cf528b5e65a 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -334,7 +334,7 @@ while ($ARGV[0] =~ m/^-(.*)/) {
334 334
335# get kernel version from env 335# get kernel version from env
336sub get_kernel_version() { 336sub get_kernel_version() {
337 my $version; 337 my $version = 'unknown kernel version';
338 338
339 if (defined($ENV{'KERNELVERSION'})) { 339 if (defined($ENV{'KERNELVERSION'})) {
340 $version = $ENV{'KERNELVERSION'}; 340 $version = $ENV{'KERNELVERSION'};