docs: Remove "could not extract kernel version" warning
authorJonathan Corbet <corbet@lwn.net>
Mon, 11 Dec 2017 22:20:04 +0000 (15:20 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 11 Dec 2017 22:20:04 +0000 (15:20 -0700)
This warning will happen for every normal kernel docs build and doesn't
carry any useful information.  Should anybody actually depend on this
"version" variable (which isn't clear to me), the "unknown version" value
will be clue enough.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/conf.py

index 63857d33778ce253b0b90dea8198ddab52a2bbe7..62ac5a9f3a9f42aa15c7c175234082587154fb4d 100644 (file)
@@ -88,7 +88,6 @@ finally:
     if makefile_version and makefile_patchlevel:
         version = release = makefile_version + '.' + makefile_patchlevel
     else:
-        sys.stderr.write('Warning: Could not extract kernel version\n')
         version = release = "unknown version"
 
 # The language for content autogenerated by Sphinx. Refer to documentation