From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 D8CA0846F; Sat, 6 Jan 2024 14:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Xm4fBVLg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704553196; x=1736089196; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JnCYGoOQs0yi8PaGnxuB0NsSgyv/YTGrF0XZ0KOj6K8=; b=Xm4fBVLgnwUlNPHMOx9qpsyDQErqfanP9HfdKdSIzKhMMrAleriDv0R4 Zf3j/XwIKd96KeqGoskwW7227XczsL4ywFJkU3DDLeysqJNF5J29PwZMv BjTAYryJ7etAD9kvq3XJp8NTnM6g843TpyeFifA1hsz5MEyveyRUVUTAb C6Y0Diip2FVSLcaDXoOtKLuCbOj88c/4UVlqbheaKDLsHM+dmeIRTdhfx L3SO6Ot45wDc15BCrUkxvLx57YhI73F0pDi2Iw3i5whDP5R0NFmaYS55d bI8mYANg3wnXTFMkVjLaq4OwAs6sUXZKp5E6TfxojmTaHi4pm5K2jJ3W4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="5017136" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="5017136" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:59:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="846816279" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="846816279" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:59:51 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rM7nJ-0000000BvkH-23ko; Sat, 06 Jan 2024 16:37:01 +0200 Date: Sat, 6 Jan 2024 16:37:01 +0200 From: Andy Shevchenko To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Coly Li , Kent Overstreet , Kees Cook , Marco Elver , Jani Nikula , Ingo Molnar , linux-bcache@vger.kernel.org Subject: Re: [PATCH v2 0/3] list: Add hlist_count_nodes() Message-ID: References: <20240104164937.424320-1-pierre.gondois@arm.com> Precedence: bulk X-Mailing-List: linux-bcache@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240104164937.424320-1-pierre.gondois@arm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Jan 04, 2024 at 05:49:32PM +0100, 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. With or without a nit-pick being addressed, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko