From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BEC0C7EE23 for ; Thu, 27 Apr 2023 04:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242844AbjD0EfY (ORCPT ); Thu, 27 Apr 2023 00:35:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242831AbjD0EfU (ORCPT ); Thu, 27 Apr 2023 00:35:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FFB420E; Wed, 26 Apr 2023 21:35:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 06CFC63A88; Thu, 27 Apr 2023 04:35:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEE9C433D2; Thu, 27 Apr 2023 04:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682570117; bh=ZWJxz5ju6P+OVD/7NyM+5pJxespwIzDbwPpmWrff8AQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=g0cjfv5y37f+NrSBWiH89ab/8q42L903hYb7ePaa9kPABfrRO61HbYi8vC4lkNUCs bvXgXyB+CcQc9K1w6M6nkkG30PqNzKs5L9NI+u0p1vVLxY8b1xuTzSXVbKUVGMZ8/h s7qfaR3rBfICkl1OSC99qK3+emSwvaRGM8Hs6aAVVDEA86pvQPGJPxWhS1BQ0t8zXG mGOPMiy560BfH5hrfUzfs3MJc+1swAWe5yMVIvHjn0+Ns+Xvk9x/mKzzSJnLAZANtv FlyFprBecySuLn85aHHzWXvgybWFeUzYZ2Xk/PMIq7CYIEkZ0CVp9QsdzRA59pI+Fa lgs7YxiTamPOA== From: Kalle Valo To: Christophe JAILLET Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] wifi: ath11k: Use list_count_nodes() References: <941484caae24b89d20524b1a5661dd1fd7025492.1682542084.git.christophe.jaillet@wanadoo.fr> Date: Thu, 27 Apr 2023 07:35:09 +0300 In-Reply-To: <941484caae24b89d20524b1a5661dd1fd7025492.1682542084.git.christophe.jaillet@wanadoo.fr> (Christophe JAILLET's message of "Wed, 26 Apr 2023 22:48:59 +0200") Message-ID: <87v8hiosci.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Christophe JAILLET writes: > ath11k_wmi_fw_stats_num_vdevs() and ath11k_wmi_fw_stats_num_bcn() really > look the same as list_count_nodes(), so use the latter instead of hand > writing it. > > The first ones use list_for_each_entry() and the other list_for_each(), but > they both count the number of nodes in the list. > > While at it, also remove to prototypes of non-existent functions. > Based on the names and prototypes, it is likely that they should be > equivalent to list_count_nodes(). > > Signed-off-by: Christophe JAILLET > --- > Un-tested I'll run sanity tests on ath11k patches. I'll also add "Compile tested only" to the commit log. Oh, and ath11k patches go to ath tree, not net-next. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches