From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55ECE38C2C6 for ; Thu, 23 Apr 2026 06:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776924709; cv=none; b=ms3pEELhtfM+q5pd1qWzVZfkKdMIebK6mzCBlfy0P8YzDjX+RjISaScLQqHBkoCPKHQ+xKPZ49slrCOey7b0PYu1KeVvwNc1OOLP4a5S3jaIO25ioJFrjl+Zm+eWrMjWt8Lq4Vt3sucpXzrTyVqJjGAHHBSF7NrURo7+grIUM08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776924709; c=relaxed/simple; bh=xmqPZ5Dr55vJUsRBtUfJOQRECiJINYvLa4h3L1aSkSg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=EPBIxG9SNOwvspo5n1CXoTe9Agsjzl/IjC2+4OO6sFmA/1z0U/M9cHiWeEcnbfh5PdM4HNB1WNaEU/0Hduzv9d5yd5MU4OLuC4DpwDgSj9q/6Oh8BSAZLxArPyAzRnbHoA1Z+aUZqlpwSXCKhFwPjEs6NCWp8zwXi5WH+z24E1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OOTcbvpF; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=Br8o5rD+; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OOTcbvpF"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="Br8o5rD+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776924707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MzEZ2J+dbjp9dwuKVHKm49xbmJokT8fCJxCFpZA+0Y4=; b=OOTcbvpFq6Brwo1sxYD14xQCoTfkPnYkOUp3bKT74iflcjfUz3YfplHTesj3zdmfyODhG9 3Q0bOjCxHiLhfjaQaV3+ZHO1ycHyhS+Jt2Ky/Vmbbf/EiPTGDHcQe+x13R6Y30/UVr4y/3 Cpt+ECJlsGzxk2I2nDNyP4OgGe7bveE= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-622-OdtGuoz-OuOT5H-i2Q_cMw-1; Thu, 23 Apr 2026 02:11:46 -0400 X-MC-Unique: OdtGuoz-OuOT5H-i2Q_cMw-1 X-Mimecast-MFC-AGG-ID: OdtGuoz-OuOT5H-i2Q_cMw_1776924705 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-488c2aa6becso58755745e9.2 for ; Wed, 22 Apr 2026 23:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1776924705; x=1777529505; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=MzEZ2J+dbjp9dwuKVHKm49xbmJokT8fCJxCFpZA+0Y4=; b=Br8o5rD+hSjValN7iIp4U/Jpzrc/42a+cSXe+/6+BYqJiq6NfMFlp3fVuKham536CA w2ezhmqCcbWTtiht4MQWRUAaAwK9+kaaZVS3laOfTK44p6qcMSftKMJwJzIwbVt0JEv/ ySoK1SpK/Pnxoq9Kke9XKVpltTMGzvfLHxG4r6TGD2nUFocaLxHyKZg8EikDEp7Nc7T/ OOtIFAuHUuMg2gx1noS+jNh5lxR4Bn3ug3veoEa6aMSH7eiJIvH/NzKZqBrV7fqIM6yM U75e5GnQzZq/W0I/NukrMkyqqsJ/aqabpGCQJOMCXBiy5RcNZ3ktLWnv20K4R7FcJJJF bmKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776924705; x=1777529505; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MzEZ2J+dbjp9dwuKVHKm49xbmJokT8fCJxCFpZA+0Y4=; b=F8V44ZAix7plS80hTZXaaRnYGTc3asJvi4jMOGidmHBfUkFrl308C+mmHuKrmg5tWm hyxoeqCTJW5DPr6ojHmnCPNZaR1fdO2TSB2nCEZad8QArwKg1d4OmJ7U/+MKLe2YJC7Y s2Z7Uf/wCbgcuW4EDhu2i6gX9poUIbA8U2HZMsnTmc/7bPCUQTcEAiMADcw9KuEALC+Q goQXb9AmhYs/CeMKu5f3bJOiH0nkGgafDnIyldq4kwtVUxfqhhKJeMiDW/3IkYD8yDZj vIEqkmHeABT1xyeDp+LvpEWV9/ewiT3CP0KC+EaW+/n8nXEH1EW2BShft75o+Ps/FbJh 2nSQ== X-Forwarded-Encrypted: i=1; AFNElJ9e4M1xnJIVYfeGF2vhHeKsHp3mAZvukJplfeEB/C9VfMxQCnNnxjtNRBd2JNOZY22zdD1ABRInyoH9wm8=@vger.kernel.org X-Gm-Message-State: AOJu0YwMI99S5ZhzNZstdaX/x4wYvn3xmiMbPfBzZfOllUMfAEtAN54c x5fAqEWQo+MFQwOuh+YiFkWQJzvXZZIjuVd1pXydZXdmHRIqtaoilfRdO4WAN3x3hZYATlNvssr kXaGJgENPdajM2SyrZOnL3ZI3wzS0mu7YAaTcKLjZXWt9VXpVGLAHcfR5T27FE9nVXQ== X-Gm-Gg: AeBDievDJPzrPXpLEbPNlS8X/CqciAfPMJC1YleDO62d0kqUZQwkNAFmQiIjql0qO7r QMT/lxmV30yYeZpFuHGe/CgSyXhhfLMEacQTMmEWAdJ5DSePSBCNUkL9BgiDhRR0JZhuwzGQkzY 6MOtz8jlOSKbRHXs0mOzM9/Q+yjE7z/IuisFd6wA3t3Xq1qU9j+tsdB+w0I3kq/dLcGsojoq5M4 fOco0HouxPa47xo29Ut0ZzRi73wl/y4YkqQLAOYFeHQuGQoDBqMsyLz1gy90fV40TloJS5WNGB/ TyWuSzHi0mq81i70DZmLcvklsVmAnxV8eZP1SqZBehq3LPyza0bsduA+XOQXK5Jj2oGw8zYJgoO JebM5bBGzHb5wVpmXWYad5IuH1qZ6QBrDUzBrCSKw6n+STTyeLdz4B+kFLJDVrsA273vVfkkk72 EQuV28na6a8m7Hw5c2+w== X-Received: by 2002:a05:600c:3150:b0:488:9fb7:376d with SMTP id 5b1f17b1804b1-488fb792ce4mr368006175e9.28.1776924704680; Wed, 22 Apr 2026 23:11:44 -0700 (PDT) X-Received: by 2002:a05:600c:3150:b0:488:9fb7:376d with SMTP id 5b1f17b1804b1-488fb792ce4mr368005865e9.28.1776924704261; Wed, 22 Apr 2026 23:11:44 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-135-146.abo.bbox.fr. [213.44.135.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4891c08faffsm520567815e9.1.2026.04.22.23.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2026 23:11:43 -0700 (PDT) From: Valentin Schneider To: Yury Norov , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , K Prateek Nayak , Yury Norov , linux-kernel@vger.kernel.org Cc: Yury Norov Subject: Re: [PATCH] sched: topology: cleanup comments In-Reply-To: <20260401145654.16241-1-ynorov@nvidia.com> References: <20260401145654.16241-1-ynorov@nvidia.com> Date: Thu, 23 Apr 2026 08:11:42 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 01/04/26 10:56, Yury Norov wrote: > sched_numa_find_closest() top comment is almost kernel-doc formatted, > but doesn't appear to be a valid kernel-doc. Fix that, and while there > reword NUMA-level comment, highlighting that 'NUMA level' is a synonym > to the number of hops. > > Signed-off-by: Yury Norov > --- > kernel/sched/topology.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > index 43150591914b..1e7b89ad6d11 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -841,7 +841,7 @@ int group_balance_cpu(struct sched_group *sg) > * > * We want to construct domains and groups to represent this. The way we go > * about doing this is to build the domains on 'hops'. For each NUMA level we > - * construct the mask of all nodes reachable in @level hops. > + * construct the mask of all nodes reachable at that number of hops. > * > * For the above NUMA topology that gives 3 levels: > * > @@ -2237,13 +2237,13 @@ void sched_domains_numa_masks_clear(unsigned int cpu) > } > } > > -/* > +/** > * sched_numa_find_closest() - given the NUMA topology, find the cpu > * closest to @cpu from @cpumask. > - * cpumask: cpumask to find a cpu from > - * cpu: cpu to be close to > + * @cpus: cpumask to find a cpu from > + * @cpu: cpu to be close to > * > - * returns: cpu, or nr_cpu_ids when nothing found. > + * Return: @cpu, or nr_cpu_ids when nothing found. The return isn't the input @cpu, so that's not right. Something more like so? Return: closest CPU number, or nr_cpu_ids when nothing found > */ > int sched_numa_find_closest(const struct cpumask *cpus, int cpu) > { > -- > 2.43.0