Thread (34 messages) 34 messages, 5 authors, 2021-03-09

Re: [PATCH v1 01/12] gna: add driver module

From: Jianxun Zhang <hidden>
Date: 2021-02-26 21:24:57
Also in: lkml

On Feb 26, 2021, at 10:29 AM, Maciej Kwapulinski [off-list ref] wrote:


Andy Shevchenko [off-list ref] writes:
quoted
On Tue, Feb 16, 2021 at 6:11 PM Maciej Kwapulinski
[off-list ref] wrote:
quoted
....
quoted
quoted
+#define GNA_DRV_VER    "1.2.0"
Nowadays the version is the Git SHA sum.
right, "version" is present in about 7% of all modules

do You mean version should be skipped over (automatically generated)
srcversion field? or maybe You suggest any (better) technique?
Just my 0.02. We should identify who will consume this version string for what purposes. Then we can decide if a hardcoded macro or any auto-gen tags should be used. If we don’t find such need, perhaps we just remove it since a snapshot of the code is always tagged  by commit SHA1 in git. (maybe this is what Andy suggested?).

Having such hardcoded version string requires an update policy in return, to make it really useful, IMO.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help