Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7846636rdb; Thu, 4 Jan 2024 09:23:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/OmSIZiHpVEdUMK+F10TVPLfNGvv73/nWhvBX/Y1Rv6blx5Qmd0rQeX7iE7KhM2zRxY5Q X-Received: by 2002:a17:906:5342:b0:a28:e5fc:375b with SMTP id j2-20020a170906534200b00a28e5fc375bmr765942ejo.3.1704388991811; Thu, 04 Jan 2024 09:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704388991; cv=none; d=google.com; s=arc-20160816; b=MorbtfO69RKtHeJgu0t2xYKPakPYZ7xN/240f9bCN5zHzNhMln5M4QYxTLUsqcaQOQ O8xHmZbFMtm8pRvkzQHh6I9mLUO0LAp5zXL2gualmaL3nk0eLO/wVxAR9aIkWeB0jkS3 7OVlqXIFlofNdc9lKsW7eer1+T/+TYWHf8ZdumczvcG1CPVJZnchhRabv19d0YJzCBBa WP1BfVneAk9ksJdmP6vSRnaqqze+npr8BhW/wTZIgKrMmKTrlojYaN60y+fqlM0cT5PU QcBjqBmOV3upVygcseW7UnlPgSDWCdAI3IGX2nVJUeTMla8TVZ12/ysNY0oo8eQwFkwp gxaA== 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=BzJFC4+5nZ6yAzq+bloN7utl+lUKkE6hgp23HUFKe90=; fh=Ufhn1TfsdEwdR2cPwsYVO6krxkhhMdawDH28ZzOhLcA=; b=IRFb+hco80pzIqZXXar4ghSRUk8aWp8TMrNcgVZyTdj76pUNmW5muA1kilIhQz/zAK oHY4E5UF3vmT0wCmYtnGq16ZE9VCtdE4ayJ+3576A6YCeulBeG+IwfGriDK9Xn75mEzH BCikVImY6omPJQtxGrW8ZMEBwcIRScg/CBD/8qUkuAlScM3n+Dq/mOtHW8bkk0sx/HjL DgD8wspRsYcouoRMkqGLP8Qs4ayDtBVvg51z168BBJg/BhXzVNW3V0Wdju6EZRIYpCCj SdSKcbLqZJFcY3XVtr+k2qCeTA8dISpQm8AjpIUug7fX6T5CiBeR8ikr9NL576rq3iVY WJWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GMTh1lUr; spf=pass (google.com: domain of linux-kernel+bounces-17028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ez3-20020a1709070bc300b00a28e758d83fsi488919ejc.547.2024.01.04.09.23.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 09:23:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GMTh1lUr; spf=pass (google.com: domain of linux-kernel+bounces-17028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17028-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 90D4C1F252A4 for ; Thu, 4 Jan 2024 17:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06BE028699; Thu, 4 Jan 2024 17:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GMTh1lUr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (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 DC9CD2557D for ; Thu, 4 Jan 2024 17:16:46 +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-oo1-f53.google.com with SMTP id 006d021491bc7-5962fa11dd4so75402eaf.1 for ; Thu, 04 Jan 2024 09:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704388606; x=1704993406; 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=BzJFC4+5nZ6yAzq+bloN7utl+lUKkE6hgp23HUFKe90=; b=GMTh1lUrRevWju+hohKal/X2PohtT3aYGD65G5ikjadoYOcqrGJKyVFG+8Yn+BwMz8 lwTDuuO3YFbYP55xzNXRx7nIlIQh8wmG/pM2aTSIfVx4uegqWIu5wT2LMpqwWJ+1RTvs L4atSof4NzvJniqhp0WWzzZc3iZNcfGZzCTorJ4qTjLJCvVo3uGLGuubMJ7vVkq71t2Q qsjQrIdR53IwodBpuZt/HmBZuw5KE2otqk4DeTZ3wSK7PtmHmIaI+kGkz+DmWRGYJ3Kt oJhPDjecp0R8nt49dFdaCcXGItU00RyEqTns+OQOTRgRllGmvhEtMk5Zl2hfYSiE7n77 qCRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704388606; x=1704993406; 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=BzJFC4+5nZ6yAzq+bloN7utl+lUKkE6hgp23HUFKe90=; b=oJdpArAQe1InDnNteknLllcH64uhvfzJAkvQN/2kCI0rNacHe9EGq4D24AlP4pIxN/ y6v7LwNuY+dQSFE4TJKDAzcGKpJIOd1b/UAjUnKCkrvv0/+5PbItWOw5atBamQc5fUCd AKeBTxtmSmU9gLkGe8NW4L1jdH+G5Ebrasydl+cDhYsEI2G2DwYt8eWjD/dnTpR0388z IS3dB1vHJq8yWGdmSBeqlC7J+X9AznrXIB9lCitAvxWg+3Sf/rH2EqaroOjZSpvPkN3N 2aSHoILilf1O7wliTrQMUmMp4i2FkFkrF4/wlF/nlxsr7YY8a9Ah9To4rZVmy6FRuK8I RP8w== X-Gm-Message-State: AOJu0YxKj7HV/SVkBG6tYL9PcHSpIEhiVImqWeetaxiEMCKbWcR2AW7B qZ7iL9tax1sbJkMw88cuS88iu+JDts9I5Ms879JIK++NuD/1 X-Received: by 2002:a05:6830:6b93:b0:6dc:17a:663e with SMTP id dd19-20020a0568306b9300b006dc017a663emr929870otb.70.1704388605828; Thu, 04 Jan 2024 09:16:45 -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: <20240104164937.424320-1-pierre.gondois@arm.com> From: Marco Elver Date: Thu, 4 Jan 2024 18:16:09 +0100 Message-ID: Subject: Re: [PATCH v2 0/3] list: Add hlist_count_nodes() To: Pierre Gondois 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 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 Thanks.