]> git.ipfire.org Git - thirdparty/kmod.git/commit
Fix "modinfo -F always shows name for built-ins"
authorMarco d'Itri <md@linux.it>
Fri, 8 Jan 2021 04:17:48 +0000 (20:17 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 8 Jan 2021 04:17:48 +0000 (20:17 -0800)
commitfa67110f896cdef67f42cbc2206ae2a8524acee6
tree522ef4814c219687ed14a4c5ca91d2b443897f9e
parentc3771eddcb6385e94055d00050db4340b6e86530
Fix "modinfo -F always shows name for built-ins"

Bug reported by Ben Hutchings <ben@decadent.org.uk>:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970871

Now that the kernel provides module information for potentially
modular code that's actually built-in, it's possible to query these
built-ins with "modinfo -F".  However, this doesn't work quite right:

$ modinfo -Flicense e1000e
GPL v2
$ modinfo -Flicense bitrev
name:           bitrev
GPL
tools/modinfo.c