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>
This commit is contained in:
parent
5c98fc0360
commit
1b9bc22d71
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ while ($ARGV[0] =~ m/^-(.*)/) {
|
||||||
|
|
||||||
# get kernel version from env
|
# get kernel version from env
|
||||||
sub get_kernel_version() {
|
sub get_kernel_version() {
|
||||||
my $version;
|
my $version = 'unknown kernel version';
|
||||||
|
|
||||||
if (defined($ENV{'KERNELVERSION'})) {
|
if (defined($ENV{'KERNELVERSION'})) {
|
||||||
$version = $ENV{'KERNELVERSION'};
|
$version = $ENV{'KERNELVERSION'};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue