[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <X7uBMNijXtaeWnzu@kroah.com>
Date: Mon, 23 Nov 2020 10:30:24 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Will McVicker <willmcvicker@...gle.com>
Cc: Jessica Yu <jeyu@...nel.org>,
Masahiro Yamada <masahiroy@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org,
kernel-team@...gle.com
Subject: Re: [PATCH v1 2/2] modules: add scmversion field
On Sat, Nov 21, 2020 at 01:16:51AM +0000, Will McVicker wrote:
> Add the modinfo field `scmversion` to include the SCM version of kernel
> modules, e.g. git sha1. This allows one to identify the exact source
> code version of a given kernel module.
>
> You can retrieve it in two ways,
>
> 1) By using modinfo
> > modinfo -F scmversion <module_name>
> 2) By module sysfs node
> > cat /sys/module/<module_name>/scmversion
I agree with Christoph that this doesn't help any in-kernel stuff, so I
don't think it can be merged. Why not just build these modules as part
of the normal kernel build process, the Android build system should
allow that, right?
But even if it was ok, you are adding new sysfs attributes without a
Documentation/ABI/ update, which is not ok either, so always remember
that for future patches.
thanks,
greg k-h
Powered by blists - more mailing lists