Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp188316lqo; Tue, 7 May 2024 17:16:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpV44wnQgMpQ5LlccK6NOS4mjbWHj1Bgzyb7YCx5WbGZnNRO9IOnbWnTYqjPu3RrzMp7LXe/Z5wlNknHxc6ioazoMPQsDZvPZ6la3Sog== X-Google-Smtp-Source: AGHT+IG579mZ64Pa5baGqd8zbOT20y99Wuy0EYGs3shf9naPmCcQYIgL+Oo1TgqGUB8t0eX4EpNz X-Received: by 2002:a17:90a:458f:b0:2ac:ccc6:7b10 with SMTP id 98e67ed59e1d1-2b6166c8247mr1079823a91.27.1715127385815; Tue, 07 May 2024 17:16:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715127385; cv=pass; d=google.com; s=arc-20160816; b=TVWqV1Wuw3O4So6W763FHRb7L3ioycM9OlpoSLILAfTtbsqh3XUlu/eLG3RM0jc8l6 7kewxGbrnZsR3XOm2+ch4dzYM5eqLXI30OV39+BiVMnZpiUbuJUMQnfANT/ew+cs4P2X inDXTYaOGb+oi8JBh5LaycChovHCVqpjVnsitaXV6ls3vRV5w/WvyNXl5aYRco/nG6mp E6BVOBMzh3bf97tM2Mlv2O6VpiIq+fUZzfFLAHlFwYbU/smtlVk718MkPzhQ2WMyMSND lEpo8d/GydKQZi/pQ6Xe2X9aKXbKXiqbBNJ+s5rGOrtWntaI9wyX3SCAVXlrrWXd9cDI PHDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=RjaNxiubBE8zR0p3XADs31vQ7z+sLk35eBJ9Rtnmm5s=; fh=uxBDUp9SSmWDRY8j39E45afy2uNX+S0CpivCgMtX5Ho=; b=zAZv9BpmByg5YexwK7rQpalL88JCyR/2fmU+0yF1zpoZhbyUyPFhYb7fBZYPoRLcFa h11VZrOD91Gnlk8d1pMv5EmKm9FnvV+BociijGQQJGIBNvTwEKeS1kDO84yCaNpPGYyX oLeUE3OVZa9zIOOfeilYBLi69kAW0yJUuv0vah5qI9nS0+rL1J9GxbbRC0ueQDd16drr yu+NlJmiDP2apoEAI3CCVFXvDhj1qiOERYvCXklEdcqAE3/0V3Z/k+H3YDk21JhuMyey +1ACXb1DZsJWP16o0TLOucsWHNeRGW6hdsz7tY69Purr5fLg7FEJjooLp2X5QQ4r9tAa jRHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oddbit.com header.s=20180920-g2b7aziw header.b=czZj2bFr; arc=pass (i=1 spf=pass spfdomain=oddbit.com dkim=pass dkdomain=oddbit.com); spf=pass (google.com: domain of linux-kernel+bounces-172530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172530-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v4-20020a17090a00c400b002b2cea7f553si194399pjd.155.2024.05.07.17.16.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 17:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172530-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; dkim=pass header.i=@oddbit.com header.s=20180920-g2b7aziw header.b=czZj2bFr; arc=pass (i=1 spf=pass spfdomain=oddbit.com dkim=pass dkdomain=oddbit.com); spf=pass (google.com: domain of linux-kernel+bounces-172530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172530-linux.lists.archive=gmail.com@vger.kernel.org" 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 0C3A9286E12 for ; Wed, 8 May 2024 00:06:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7124B1350C6; Tue, 7 May 2024 23:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=oddbit.com header.i=@oddbit.com header.b="czZj2bFr" Received: from smtp91.ord1d.emailsrvr.com (smtp91.ord1d.emailsrvr.com [184.106.54.91]) (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 B6265134404 for ; Tue, 7 May 2024 23:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=184.106.54.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715125620; cv=none; b=oC7OxrN3VfE2jApWQ0Od+w4I822SFz8NZLCsuzEaBSn1Y65aKi36nvRF0nsa4SDlAke+49C9CifXE9l/keFitCPWT5QUG6hpuKPBb4oZ6tGdtA2M+6XnYwSKp7waT/4FgIcKfE4yJejcugHxddOgd0UoEfSiG8WysRjOg0IMY+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715125620; c=relaxed/simple; bh=/TOv6fP0vQebAxVEplVjdQOI2uzzY71yM9grBNcY6Zw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RWqqIJprOMd0TSYp87kJ3btzXi56rEO9302PCnMRG69cgSooObvTZ+8yllATcE/EHYIEVfr90vHkXyagi9LGaKc8ekPo/EDII9swMgT4lNS9q16n7O4keNtOfIBpDz53LZ5PHc8fi910kWIDodeW+0DixbkRE+xfK0gq4urWeGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=oddbit.com; spf=pass smtp.mailfrom=oddbit.com; dkim=pass (1024-bit key) header.d=oddbit.com header.i=@oddbit.com header.b=czZj2bFr; arc=none smtp.client-ip=184.106.54.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=oddbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oddbit.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=oddbit.com; s=20180920-g2b7aziw; t=1715125612; bh=/TOv6fP0vQebAxVEplVjdQOI2uzzY71yM9grBNcY6Zw=; h=Date:From:To:Subject:From; b=czZj2bFrbwg8I9OB+pHUp343UlDFKC46ap8dR/xAGn1p+Bt65WKBMMTzsautPOHFk J19fxMTqeqj6IJlS/daQySD6lbc2hSAAjcmQcHuB146QbwpBuJc3VDRh88oN11dLia CWKVB/6mf1cbASHBLSrmGA6TMpJ5mAOFFouVrDKs= X-Auth-ID: lars@oddbit.com Received: by smtp12.relay.ord1d.emailsrvr.com (Authenticated sender: lars-AT-oddbit.com) with ESMTPSA id AD4E3E0099; Tue, 7 May 2024 19:46:51 -0400 (EDT) Date: Tue, 7 May 2024 19:46:51 -0400 From: Lars Kellogg-Stedman To: Duoming Zhou Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hams@vger.kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, jreuter@yaina.de, dan.carpenter@linaro.org Subject: Re: [PATCH net v5 1/4] ax25: Use kernel universal linked list to implement ax25_dev_list Message-ID: References: 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: X-Classification-ID: 0df3cc1c-0dba-498b-89fb-d2d91bbb82a1-1-1 On Tue, May 07, 2024 at 03:43:11PM GMT, Lars Kellogg-Stedman wrote: > On Tue, May 07, 2024 at 03:03:39PM GMT, Duoming Zhou wrote: > > typedef struct ax25_dev { > > - struct ax25_dev *next; > > + struct list_head list; > > Would it make sense to replace this with: > > LIST_HEAD(ax25_dev_list); Sorry, *this*: > +static struct list_head ax25_dev_list; -- Lars Kellogg-Stedman | larsks @ {irc,twitter,github} http://blog.oddbit.com/ | N1LKS