Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1467353rdb; Sun, 7 Jan 2024 23:01:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFodcuwU84PfJ61y7OaYJuyh7yutAH5jnskiqkrHnMx4cDrvtnA28ryMnbcqGv2mXCmj6JW X-Received: by 2002:a05:6a00:1955:b0:6d9:93f1:dfe1 with SMTP id s21-20020a056a00195500b006d993f1dfe1mr1023329pfk.5.1704697276081; Sun, 07 Jan 2024 23:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704697276; cv=none; d=google.com; s=arc-20160816; b=xcMgBRYQncCv92XfNL3t5DFq2tFQXCcmHPVXYJ6kvUrLHFWgWtuD94Zl62n3jbn3eS 1tFDC1DkbhAlbHpUf6TGvydCpfOexYaKC4xtoqhnExgURAeSzJAP+ws34nAuN22vaNxd NBwCtzxQ1iZt/STDQujqhyjEDtOcYGb15T9+okK/HVNAHI9GcFBBt9DWZClP504nsoph pMNEqKDqw4UDmXDpHJsPj3b1gaXytx0jzN1e4MKZZL1k0yQ6lcsMjQApU6iwCj01rieG waQYsmNnTBRxaF3CaGOU1+U0WjiuQZo1qqiuPOTsuTrcFZ8gE/3IhCwYCdQOpHavr4hg zp8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=XaSGSt7oo6/seLu3rOawrEq2RYwxc9+YcD3xNECSKxo=; fh=SnYTz7ozwZLxw6a0alGepWX9nQWsgCHuCzD8gb67rcg=; b=rtGK/MF5N/hF8BJneukGm5HRjg7nl+4E2uLVpgN6YboMqmxxPQaFtFmct5t2bxzkg8 qwA4lQhPhEeBkS0h6EZvWlR+LpCX6NPJdJtdWhCVn1VxXXdpO9oKEn2C7VVrST31jiFN QP6lFd232O73DV/snZMShU+8ik4ewwsNBResU5UvFWbTd2+M4j3oJI8ZfM4usOBPwdVk o4Q8Wjta23cKh3pSEeDQt+pGfsJ85x6LFLEIn6SnVdggHmPjErgIWCZtzBbKAuXXaaTi ZZr3I5y156t9oVthvgB0FqkymcWjqKsB+efsTrQVIle9axR01oXR4sGPEQDE84xRaDfl N4sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mz4cbGlW; spf=pass (google.com: domain of linux-kernel+bounces-19123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i6-20020a62c106000000b006d9aa425766si5759856pfg.103.2024.01.07.23.01.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:01:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mz4cbGlW; spf=pass (google.com: domain of linux-kernel+bounces-19123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5634EB210B4 for ; Mon, 8 Jan 2024 07:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24DE28BF3; Mon, 8 Jan 2024 07:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mz4cbGlW" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 416D18BE3 for ; Mon, 8 Jan 2024 07:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vs1-f44.google.com with SMTP id ada2fe7eead31-4670af5bd56so271011137.2 for ; Sun, 07 Jan 2024 23:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704697260; x=1705302060; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XaSGSt7oo6/seLu3rOawrEq2RYwxc9+YcD3xNECSKxo=; b=mz4cbGlWmu2Uu8wFoQHHxihIOv89NYNRw0n3LMop/QOh8jxXpM5a61paBLxr8TcyO/ PnOiZTvnnRjbR/qU/XOBUSxu+F8lALws2j9UZZAEtNTU1dteAhgRe/xWGXsKjdtmM7yN WWlKn70CHA/L/H96Bm6QttmjFvrr7bhuMquACNU1EmYt+vCE0dQATpyqAqCD5x3Rq/Pt ApwrvdJ81kHBxb5Jmg3BVcj8pH8dPXDbb6ljQzqMGsvBsP9ti1Fv51gEgTfmGIpP/nnG 5BLH8Wux8IyPGKO/+KJbAYool8aMVEcyTUkUR6VN933qsjYLJ3OpCBzF+wX4uAqAlyKU eCHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704697260; x=1705302060; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XaSGSt7oo6/seLu3rOawrEq2RYwxc9+YcD3xNECSKxo=; b=wX3IYc4Xmy0RcXxetcSZMbdMjwctmNJqMkJsLyL2J89eoExT/EVhdzgLHJQbddFsOz bKHNVEFpSChsmgiURceb/GBPCyoTCYsYCeJZ1IF7FHk08diOMOiEJMZeqllvQ/U/Rb6K tJbrcf2phCvUQI9QpqnrrX9qFhELF20Z6KvafB8uP9L/3nl47EyO5HC5yl7fYhr1Cg3x FYAI2yzUSwu7d+ifFyeIY3UX/2Xit5dNQz2sEcDqSfJ1BpFwtMZMkci2EryEx9tyKIHV M/w4XcCWZA1Si0mZozSqXY/62Hsdm6+98LnY/Z2Dvl6vP55m1sDvDM1iga9aUhx/iMk+ smtg== X-Gm-Message-State: AOJu0YxuBStR4rLMPqR9u73LmGo1NI0GA/LSfBzqi1kxNZqzH6dBcpY5 QBy3Wez2KQSUH9re4O38jS+AELgdhqe3qGsAvF9BJkaGSymS X-Received: by 2002:a05:6102:304b:b0:467:ac41:856d with SMTP id w11-20020a056102304b00b00467ac41856dmr1575462vsa.20.1704697260063; Sun, 07 Jan 2024 23:01:00 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104164937.424320-1-pierre.gondois@arm.com> In-Reply-To: From: Marco Elver Date: Mon, 8 Jan 2024 08:00:00 +0100 Message-ID: Subject: Re: [PATCH v2 0/3] list: Add hlist_count_nodes() To: Pierre Gondois , Andrew Morton Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Coly Li , Kent Overstreet , Kees Cook , Jani Nikula , Andy Shevchenko , Ingo Molnar , linux-bcache@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 4 Jan 2024 at 18:16, Marco Elver wrote: > On Thu, 4 Jan 2024 at 17:50, Pierre Gondois wrote: > > > > v2: > > - Add usages of the function to avoid considering it as dead code. > > v1: > > - https://lore.kernel.org/all/20240103090241.164817-1-pierre.gondois@arm.com/ > > > > Add a generic hlist_count_nodes() function. > > > > This function aims to be used in a private module. As suggested by > > Marco, having it used would avoid to consider it as dead code. > > Thus, add some usages of the function in two drivers. > > Whether or not it's used in a private module is probably irrelevant > from an upstream perspective. > > But this is a reasonable cleanup, and at the same time adds API > symmetry with the already existing list_count_nodes(). > > > Pierre Gondois (3): > > list: Add hlist_count_nodes() > > binder: Use of hlist_count_nodes() > > bcache: Use of hlist_count_nodes() > > > > drivers/android/binder.c | 4 +--- > > drivers/md/bcache/sysfs.c | 8 +------- > > include/linux/list.h | 15 +++++++++++++++ > > 3 files changed, 17 insertions(+), 10 deletions(-) > > For the series: > > Acked-by: Marco Elver Btw, there doesn't appear to be a clear maintainer or tree for include/linux/list.h. Since there have been several Acks/Reviews by now, did you have a particular tree in mind? Perhaps Andrew (+Cc) can help. Thanks, -- Marco