diff --git a/Documentation/ABI/stable/sysfs-module b/Documentation/ABI/stable/sysfs-module index a75d137e79f4..46bcd2d00c96 100644 --- a/Documentation/ABI/stable/sysfs-module +++ b/Documentation/ABI/stable/sysfs-module @@ -35,7 +35,7 @@ Description: What: /sys/module/MODULENAME/scmversion Date: November 2020 -KernelVersion: 5.12 +KernelVersion: Android Common Kernel -- android12-5.10+ Contact: Will McVicker Description: This read-only file will appear if modpost was supplied with an SCM version for the module. It can be enabled with the config diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index c3bf3f32974d..e8bac7553539 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -101,10 +101,8 @@ endif endif ifeq ($(CONFIG_MODULE_SCMVERSION),y) -# Get the SCM version of the module. Sed verifies setlocalversion returns +# Get the SCM version of the module. `sed` verifies setlocalversion returns # a proper revision based on the SCM type, e.g. git, mercurial, or svn. -# Note: relative M= paths are not supported when building the kernel out of the -# srctree since setlocalversion won't be able to find the module srctree. module_scmversion := $(shell $(srctree)/scripts/setlocalversion $(module_srcpath) | \ sed -n 's/.*-\(\(g\|hg\)[a-fA-F0-9]\+\(-dirty\)\?\|svn[0-9]\+\).*/\1/p') ifneq ($(module_scmversion),)