* [PATCH] taskstats: use family->version instead of TASKSTATS_GENL_VERSION
@ 2020-10-14 13:31 Hui Su
0 siblings, 0 replies; only message in thread
From: Hui Su @ 2020-10-14 13:31 UTC (permalink / raw)
To: bsingharora, linux-kernel
use family->version instead of the hrad code(TASKSTATS_GENL_VERSION).
Signed-off-by: Hui Su <sh_def@163.com>
---
kernel/taskstats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index e2ac0e37c4ae..8364663ca07d 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -713,7 +713,7 @@ static int __init taskstats_init(void)
return rc;
family_registered = 1;
- pr_info("registered taskstats version %d\n", TASKSTATS_GENL_VERSION);
+ pr_info("registered taskstats version %d\n", family->version);
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-14 13:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-14 13:31 [PATCH] taskstats: use family->version instead of TASKSTATS_GENL_VERSION Hui Su
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).