• Sam Ravnborg's avatar
    kbuild: check license compatibility when building modules · b817f6fe
    Sam Ravnborg authored
    Modules that uses GPL symbols can no longer be build with kbuild,
    the build will fail during the modpost step.
    When a GPL-incompatible module uses a EXPORT_SYMBOL_GPL_FUTURE symbol
    then warn during modpost so author are actually notified.
    The actual license compatibility check is shared with the kernel
    to make sure it is in sync.
    Patch originally from: Andreas Gruenbacher <agruen@suse.de> and
    Ram Pai <linuxram@us.ibm.com>
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
license.h 374 Bytes