Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6007852rwb; Tue, 22 Nov 2022 07:40:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4k0OFDb12hJ3Jt36ajEaBNC7ei1ZduhDO0DIoyydlS1pGBjGmoNpAEvIo60oD449NATjFQ X-Received: by 2002:aa7:d7d3:0:b0:469:906:2ece with SMTP id e19-20020aa7d7d3000000b0046909062ecemr7245784eds.342.1669131634989; Tue, 22 Nov 2022 07:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669131634; cv=none; d=google.com; s=arc-20160816; b=YxXhfVaNVekCVQ6z/i4Cpqj3sgi1igsFfqGrJY8ca/vQBIYFYfchTjbEkUE/Ec+RgA mEu1Tiixvr6yDxTkVCIJS5sSHZS5g55/drhFrCIxI1qF/Hxgwz1wMOjy8uIe+AS4+8VC eJ9zRhCs8rKVKyYSQgHTUwAwk9RMmURIY06OG9fnIfQrQ/zL9egBdHFA9X6ym4yMuSCm OAonoMx+MKZ5K0JIJSGcl4CYISptd7lUybet5A/p5kYxromHOJXwWMWCwzYJr4D/rPKI G0skVfTEQQXTUQUEfZluR6jkpfyjIbfJGtvde0rG0aiuJ0mpCxOC6g6EGv7LoJQ7Zi+v CzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gzPFEJLcxVhXRL6B+w34hbCWzoPzhdqYnm6xrn3UUE8=; b=mnsndE++CWhHSnYjIjh6cTJVKWngfYaEBZNXtqjo2s8GzVhkUvB+PqqdMkha/sUyU6 otsAXWCGpIO7dLueiAc4WSJIRQJM5NEuPIg5VEPeyu0fIVNJQiqP1jYzS8r1LKrV+6hc v/wpOh7Jr9jcCFuCMywGu6hg0H1qWF0eQOq2we2dGEAvui1/o6ZhkpmUPgNUdvWTvgrI uWTa6iFvykrPKnLbHvdqKggLjXLjrsRtjfL6toEVReKa+A9C6a+juF69FrpOLVloEPlR 5f4HniBugN76TPRmOMMfr2RFr+h0QLZ0FMSGZrRVTHSCAOIlt2E1WVODVmu0FMTUSljN Onkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IODGBlFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt12-20020a170906ee8c00b0076f061ffab4si14350695ejb.51.2022.11.22.07.40.12; Tue, 22 Nov 2022 07:40:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IODGBlFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233877AbiKVPYO (ORCPT + 90 others); Tue, 22 Nov 2022 10:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232632AbiKVPYN (ORCPT ); Tue, 22 Nov 2022 10:24:13 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB93520F42; Tue, 22 Nov 2022 07:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669130652; x=1700666652; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rMOdI3P7VdfIy2nfD0+wdUsYo7XnmOvFsyP8v8HsR3g=; b=IODGBlFEXnxIhF+/GPzCoB/MwSfEt5Bt+qRJrcxRMG6ydNVpAPhBXrv7 19QiuU++fFlefpkCoFFnfpsG03eA2NAL80SGY2IvR7mNoMHtRsj3nAcMy LbRBIRko6Mg+4rgKW0JMjubwls3zEPjwHC5dmE7IZShVa3WYMOgHFfZsu GYXkhendRYc+NxuaDf4arlon6U8sYOBfhJeLebnMLDn/R+6SufoLLN/Eh 7vQB4R9FjODYw5UaYD+Rwl/Dk5ugcH5AOUAljfLhVOnRy+Wd46uc0Pk6L QErhHOuAxd6ZUcuidBLJ5wZMQFvc/A/fhJ7m9Klfc1zXmYVaIw+0b6b6o w==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="301389399" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="301389399" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 07:23:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="705004007" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="705004007" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP; 22 Nov 2022 07:23:47 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oxV7h-00FsxN-2Q; Tue, 22 Nov 2022 17:23:45 +0200 Date: Tue, 22 Nov 2022 17:23:45 +0200 From: Andy Shevchenko To: Jani Nikula Cc: Jakob Koschel , Greg Kroah-Hartman , Mathias Nyman , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Kevin Cernekee , Mathias Nyman , Andrew Morton Subject: Re: [PATCH v2 1/4] i915: Move list_count() to list.h for broader use Message-ID: References: <20221114162207.62559-1-andriy.shevchenko@linux.intel.com> <87leoc2pbf.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87leoc2pbf.fsf@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 15, 2022 at 05:46:28PM +0200, Jani Nikula wrote: > On Mon, 14 Nov 2022, Andy Shevchenko wrote: > > Some of the existing users, and definitely will be new ones, want to > > count existing nodes in the list. Provide a generic API for that by > > moving code from i915 to list.h. > > I think I'd find list_length() a much more natural name for this. i915 suggests my variant :-) > *shrug* > > Acked-by: Jani Nikula > > regardless of what you decide to do with name or static inline etc. Thanks! I will check which one looks and feels better and update for v3. -- With Best Regards, Andy Shevchenko