Re: [PATCH v1 2/2] modules: add scmversion field

2020-11-23 Thread Greg KH
On Sat, Nov 21, 2020 at 01:16:51AM +, Will McVicker wrote: > +/** > + * struct modinfo_attrs - Module attributes. > + * @module_uevent: Used to notify udev of events. > + * @modinfo_version: Module version. > + * @modinfo_srcversion: Checksum of module source. > + * @modinfo_scmversion: SCM ver

Re: [PATCH v1 2/2] modules: add scmversion field

2020-11-23 Thread Greg KH
On Sat, Nov 21, 2020 at 01:16:51AM +, 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 u

[PATCH v1 2/2] modules: add scmversion field

2020-11-20 Thread Will McVicker
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 2) By module sysfs node > cat /