Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7826573rdb; Thu, 4 Jan 2024 08:50:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8adQF7iQ4KnuHCfJbkxz1ukEDiAY+8i0fJTs6rLsT5S1C/zsq8OqWIrG9at72EB5YL96m X-Received: by 2002:a17:903:2341:b0:1d4:bd4a:df44 with SMTP id c1-20020a170903234100b001d4bd4adf44mr974297plh.14.1704387036097; Thu, 04 Jan 2024 08:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704387036; cv=none; d=google.com; s=arc-20160816; b=Kd4u73laSPbIxAlQwEywDyj1SliB3THdWd6s4Bg5NRYyRb774ibSBofA3vST5BrrpW UuvbE5lsK308FkSfeeQeoLwckblHLD4/8GcFldT24sEfqjq323edi/VK6x9TgHpjcYPV oRVM4snoaMRDzIwR5TDR3AQfMmwiLAYa5T530s+SG67OOh3GqSgOCXSfT78NNdUdP+nk XK6O4RjMHZTZ36fbf81AVlQX3pu3R9GTTfzyByVoA4yLG0TJeNaARvQ87iMvfHbh/pzK aniHnxmE06ezKaAQZuhJ/pJ5ZYinKkQ1zRbqLxRinNip/V0nzxY9/KXr4KALOKVN+deM rxug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=1Icme4OLCc/HJVlXqKvQ0d6LqsrM/FGdAwNEqyw3OPI=; fh=/mAjyR17xtI9a4PQTjzAv7iZXnnO/C2gwWJqwpRc+LU=; b=QC/fvLCLI59QjSgRolpJRC/xjNfba4QeUTHgQ2TSq7YFmtGiuQ988USWmGcVtZ8jFd cys8kF7/N/ahVuBZEQE1OQXUGyit8QK41kqSUst2qz4E44InDyBrPeQwOsrozS0vsA3t D0JTABQJycKsEbaUibaf5OncHAMh5AyZxeffp3tz7I/gGv0HyGLxMJN4TvPf4VOk6Ib6 KjWGJCqAE6Tl2msetLg+sjSpJ1bBYjVXSRNEafSca0XNwqj4jUQoY+qQXcsEJGGLl6z0 GdQeI1W6064sF5O2RNfr2NZDvCl3Ay7sgEJiepqx5HiU7kC8fmsL6XYExp6fyY7lYBfA ikzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h10-20020a17090ac38a00b0028cfec7772bsi236718pjt.117.2024.01.04.08.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 08:50:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C0D68287BB4 for ; Thu, 4 Jan 2024 16:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58EF52555B; Thu, 4 Jan 2024 16:50:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F2D525119; Thu, 4 Jan 2024 16:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30D88C15; Thu, 4 Jan 2024 08:51:12 -0800 (PST) Received: from e126645.arm.com (unknown [10.57.76.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 497183F64C; Thu, 4 Jan 2024 08:50:22 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Pierre Gondois , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Coly Li , Kent Overstreet , Kees Cook , Marco Elver , Jani Nikula , Andy Shevchenko , Ingo Molnar , linux-bcache@vger.kernel.org Subject: [PATCH v2 0/3] list: Add hlist_count_nodes() Date: Thu, 4 Jan 2024 17:49:32 +0100 Message-Id: <20240104164937.424320-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. 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(-) -- 2.25.1