Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4884614pxj; Tue, 25 May 2021 20:02:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGjqtUf6OUP1a2EH14ZZM2tKsvMIrWXeqlRE5TUGCGbcObNAnzVkwT+JbzLhk3rL1ooEH6 X-Received: by 2002:a17:907:c1f:: with SMTP id ga31mr31389626ejc.534.1621998160334; Tue, 25 May 2021 20:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621998160; cv=none; d=google.com; s=arc-20160816; b=gTKqZQXYv/u+ZOLqw55vdpo2afpTf/UVJESC80f0KdqaT7k9n4suyLOVS9M/6PvIl9 AFsFwJQixqB3SWw0dxkcUQpqZ47MyeWNIgBYeoSMNTeR4BXwAINbHGwR0/GLyew3Z44J btu4oxxNoytEsqTQC9xmHALjRytODDR6Do0sfH03se7yAb8fhfZ5fTIAvSp7ubrxHfz+ ZUrVpEyGQTTD2Kle4P3J86vkauXfywGb0AduEKPsNrIFTIhKzRubckqOwV7IMiwSDvdG HQRRQIEok66HbFryLj34+RE02aTRQCXUAA2GzFROEvL72FH+p1SkWmUGd2lMd2M5BO7n Ut0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=uqc9hb31OKMi5STSHuXKQbuMi2IbfO9wwN70DFoVNUU=; b=VLFA+WwkIAYmhKGf3Cy94djBWGh9v4CzmlP8m+v8uZbYJwCKfyqY50uVy/qcbQtB56 /0TuMShqDCHg6HqOD7XezPWXPiYfxP8p1sOtifhWq1X1MBGDbyInuWMRd4a5eYdNvh0l GzY/Hlp1+QbevqSx9tbmC8HvFFZW5KOQ4sO7cQ6GGt+WZUIemSY/Yktv9354b4IQy0NC PwVUYHAVphUf24y0dWmrfWTN8Gy19RI/AatlkYSQUEz4ZfOp1peAvMTZECbrxf0ph6ez nRE0CTnhUwuWMPZ5cQfJWSgOg0+p3V7d8tI5AXwTOmuldH3oQ8++MTyhjKTXOBoOCKW1 GZdw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh9si18773933ejb.589.2021.05.25.20.02.17; Tue, 25 May 2021 20:02:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232561AbhEZCup (ORCPT + 99 others); Tue, 25 May 2021 22:50:45 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:55969 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231128AbhEZCuo (ORCPT ); Tue, 25 May 2021 22:50:44 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Ua7n0eQ_1621997351; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Ua7n0eQ_1621997351) by smtp.aliyun-inc.com(127.0.0.1); Wed, 26 May 2021 10:49:12 +0800 From: Yang Li To: tj@kernel.org Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] cgroup: Fix kernel-doc Date: Wed, 26 May 2021 10:49:09 +0800 Message-Id: <1621997349-118999-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix function name in cgroup.c and rstat.c kernel-doc comment to remove these warnings found by clang_w1. kernel/cgroup/cgroup.c:2401: warning: expecting prototype for cgroup_taskset_migrate(). Prototype was for cgroup_migrate_execute() instead. kernel/cgroup/rstat.c:233: warning: expecting prototype for cgroup_rstat_flush_begin(). Prototype was for cgroup_rstat_flush_hold() instead. Reported-by: Abaci Robot Fixes: 'commit e595cd706982 ("cgroup: track migration context in cgroup_mgctx")' Signed-off-by: Yang Li --- kernel/cgroup/cgroup.c | 2 +- kernel/cgroup/rstat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 21ecc6e..fc344f4 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -2389,7 +2389,7 @@ struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset, } /** - * cgroup_taskset_migrate - migrate a taskset + * cgroup_migrate_execute - migrate a taskset * @mgctx: migration context * * Migrate tasks in @mgctx as setup by migration preparation functions. diff --git a/kernel/cgroup/rstat.c b/kernel/cgroup/rstat.c index cee265c..7f0e589 100644 --- a/kernel/cgroup/rstat.c +++ b/kernel/cgroup/rstat.c @@ -220,7 +220,7 @@ void cgroup_rstat_flush_irqsafe(struct cgroup *cgrp) } /** - * cgroup_rstat_flush_begin - flush stats in @cgrp's subtree and hold + * cgroup_rstat_flush_hold - flush stats in @cgrp's subtree and hold * @cgrp: target cgroup * * Flush stats in @cgrp's subtree and prevent further flushes. Must be -- 1.8.3.1