From: Hui Su <sh_def@163.com>
To: bsingharora@gmail.com, linux-kernel@vger.kernel.org
Subject: [PATCH] taskstats: use family->version instead of TASKSTATS_GENL_VERSION
Date: Wed, 14 Oct 2020 21:31:33 +0800 [thread overview]
Message-ID: <20201014133133.GA8908@rlk> (raw)
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
reply other threads:[~2020-10-14 13:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201014133133.GA8908@rlk \
--to=sh_def@163.com \
--cc=bsingharora@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).