Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp733079rdb; Sat, 6 Jan 2024 07:00:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxMGGWSpSxNzqP5DK8JUOeVg8+Ab9+OQCnjaZ3H+cds/pgjbGjXinprl39/KA9vb7suDEQ X-Received: by 2002:a05:620a:2408:b0:781:5528:56a1 with SMTP id d8-20020a05620a240800b00781552856a1mr1389122qkn.140.1704553236683; Sat, 06 Jan 2024 07:00:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704553236; cv=none; d=google.com; s=arc-20160816; b=eW2DUvJwu9wafj4pkq5rTcWqqxYZUvDxgM51QQ2xotz/lCYT4OFKWvXsv+IwycuW2v /8QA6P0sbj80B8mf+C+XH9WWXp+OmkzcETaDN9NnEda9cE8Mwg+Q2kHtSyXsUOJoYkZV PPFjR/nxBfmkLDepsIxT2u3y5WhTkCkovIDuPMVKuB+Dgo4//0JCuyU480Zbcg6Wgbj3 Pz4BIMnLBKCnjuGNb1HqPCRtWwJWnNM8SGVSKSaByrUw8j8yVE4bHvBaEenEzbilEc6j 6tdAZrEM0HO7YOgPEbdptEuotet1EwjD/luxoTvrYRuHcheCMkY0s39f6+7zIYGOcy9b DiQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=f0ZfUPrvxTSIW3SDPnlZTITwiMWjQknVbZ1iw28ZlaM=; fh=UxHv/mkN8n4hIrZYieSL7FsBrlkTc/oZQP9ZHT1uQc8=; b=TD4c0D7kWuB6iEiO5bDyJdygOPv11BjTnUEy0IrrUuzVMqEmfSnUcPLNmbd+YdOTUf DvkyM4lMFRKPGDBtswaBZnG7YhUmQPVlFJSWoIEIgcpNmJIjvlfpaZhmRNViEf+Fjd0q LMqfCgpvh+DIsNTX/niqe4G0JYcZIgvcpu32KLvAMDYox5LBHlLr27+8Ij0E2N0sON0y QNZMMw4Mb/NeeGirNn32ztoZuGTnVTlGFUWkZOpz/T9LqqD5nywhCMwndjCWVrHf2kIB I2iXu/OimFjSzdOKzcQRNtXv0g0BzqXgN6VlivrrLB0oUazsbuQH06ssb40XY5AYC0EQ tDJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xm4fBVLg; spf=pass (google.com: domain of linux-kernel+bounces-18612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s14-20020a05620a29ce00b00781718f5e89si4064361qkp.573.2024.01.06.07.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 07:00:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xm4fBVLg; spf=pass (google.com: domain of linux-kernel+bounces-18612-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E9EA1C2172D for ; Sat, 6 Jan 2024 15:00:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D73D847C; Sat, 6 Jan 2024 14:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Xm4fBVLg" X-Original-To: linux-kernel@vger.kernel.org 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 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-kernel@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