Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp854072pxu; Wed, 14 Oct 2020 16:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSsQ1sEBM1YDob3DiGv5LVFSwFYl9TbEAuq+253iP6phJotJKJr9bixi3CTLK53sL48Imk X-Received: by 2002:a17:906:f849:: with SMTP id ks9mr1552981ejb.14.1602716623019; Wed, 14 Oct 2020 16:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602716623; cv=none; d=google.com; s=arc-20160816; b=yOdW0NbMuRcDC9lKTqTh+qputm9BEr1JixpQE3KUJyXPtnVuCX0EZsMdKeHUt82ryl FQhqYpJQR5K02hEjfWU1Ip7MVj4iqjYRrNyJXRTyd4Hh3nhcPHJVs18dlzhQHoV/+VUv +OCBd34YEVrI3wvrBtIrg+HCV35Db+gNetsU/Hg03IM4PSCOY9jvyHMDOnT53Rtdnm4W 3LzAJOvx/zOicz1gryJLgeOCESUz7QEyE3LlFbOP//GlsLCaFVNLaH1Y5hVySbRhUsq1 dCdVBvzaO4R5ansSXzP2qZXu4kVQgYZp2YtOwHROmULsYmRUCIsRkobDxGSWS5k+3a2F X2xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=E8eooZv9mg4vjc6B//7fzf+17eEcWSkIXNw/wvIpW9U=; b=Cl/Q0NGBFuW9qVN5qQ9bk7N0gSTgPyohtTyOShdmHq1jaxRRzu+U+AbZFzozTdVkyS lH7nUVpjIheB7VPtJf5fwpPKmKW9uCr74JhQa2Ik5GcZrAhKV+hsdVZoHCKsxpZRTTJ/ BeZm8fRmmdn8Rgpg/jLHKMp1DLL2Qq3GAla1zbI4KRcYUniOug/Y5FmLJn9rxxEbwaVt mdY5Q6NX4b3XBUffqHQBxNMucDYigUIlWffAWalk9JGxVM4IDKxQ2IedpAzuqMSsg10L vPLF1XU55oi02SBuP4E27HkG3xtKHy4VXYW5Bh6Ajbb3mrjZSixL0IGAO1b3AiaRrwAW OxHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=QGe5RjPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si792879eja.436.2020.10.14.16.03.20; Wed, 14 Oct 2020 16:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=QGe5RjPk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729232AbgJNNsF (ORCPT + 99 others); Wed, 14 Oct 2020 09:48:05 -0400 Received: from m12-13.163.com ([220.181.12.13]:34135 "EHLO m12-13.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727968AbgJNNsE (ORCPT ); Wed, 14 Oct 2020 09:48:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=E8eoo Zv9mg4vjc6B//7fzf+17eEcWSkIXNw/wvIpW9U=; b=QGe5RjPkXslJd2Gi42G8v 0ARw+/b9u11cf5pRQ67s4t1/73NHo++ziPTY8fW5bqO9YbsawfprbX/PXM0Ua0hG 3xI5Iv5/UotafEhQn/1TOINVdlEZ8U+hD9HdH5fL+qaj1LD0VygzS1tnbDSpbPmY BIwSGWQBihCf/8JuZ7oiLw= Received: from localhost (unknown [101.228.30.83]) by smtp9 (Coremail) with SMTP id DcCowAAHRZG1_YZfSUoGLQ--.31205S2; Wed, 14 Oct 2020 21:31:33 +0800 (CST) Date: Wed, 14 Oct 2020 21:31:33 +0800 From: Hui Su To: bsingharora@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH] taskstats: use family->version instead of TASKSTATS_GENL_VERSION Message-ID: <20201014133133.GA8908@rlk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: DcCowAAHRZG1_YZfSUoGLQ--.31205S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrJFWDuF1fWFWkGryruryfWFg_yoWxGFg_Xw 12qr18WF15tr92qr48ZFsYvF18t3yFqF47Ar1kGF4xAF18GryaqayDXr1DGr1kWrnxCrsx uwsxGrykKr17GjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU86OJ5UUUUU== X-Originating-IP: [101.228.30.83] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiMRW9X1UMV7xVXAAAs9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org use family->version instead of the hrad code(TASKSTATS_GENL_VERSION). Signed-off-by: Hui Su --- 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