Skip to content

Commit

Permalink
kernel-doc: init kernel version
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
jmberg authored and sravnborg committed Jan 28, 2008
1 parent 5c98fc0 commit 1b9bc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand Down

0 comments on commit 1b9bc22

Please sign in to comment.