Article View: linux.kernel.netdev
Article #12756Re: [PATCH net-next 2/2] net sysfs: simplify creating empty wireless directory
From: Greg Kroah-Hartman
Date: Sun, 08 Nov 2026 14:06
Date: Sun, 08 Nov 2026 14:06
32 lines
8721 bytes
8721 bytes
On Sun, Nov 08, 2026 at 02:46:03PM +0100, Heiner Kallweit wrote:
> Now that an empty directory can be created with attrs being NULL,
> make use of this new functionality and remove the dummy attribute list.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> net/core/net-sysfs.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
> index 5c0402389c6..f58b59e1126 100644
> --- a/net/core/net-sysfs.c
> +++ b/net/core/net-sysfs.c
> @@ -910,13 +910,8 @@ static const struct attribute_group netstat_group = {
> .attrs = netstat_attrs,
> };
>
> -static struct attribute *wireless_attrs[] = {
> - NULL
> -};
> -
> static const struct attribute_group wireless_group = {
> .name = "wireless",
> - .attrs = wireless_attrs,
Why does this want to create an empty directory? Surely you aren't
adding attributes later to it, right? If so, that's not ok either...
thanks,
greg k-h
Technical Details
Message-ID:
<2026110816-crate-tightly-8560@gregkh>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358750-linux-kernel-netdev=dewy.ruReferences:
<0a0a7987-abb2-49c8-bc16-3938233ae9c5@gmail.com> <675f4353-125e-4168-a617-c0d1fb519045@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358750-linux-kernel-netdev=dewy.ru From: gregkh@linuxfoundation.org (Greg Kroah-Hartman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 2/2] net sysfs: simplify creating empty wireless directory Date: Sun, 8 Nov 2026 09:06:43 -0500 Organization: Usenet Network Message-ID: <2026110816-crate-tightly-8560@gregkh> References: <0a0a7987-abb2-49c8-bc16-3938233ae9c5@gmail.com> <675f4353-125e-4168-a617-c0d1fb519045@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="136318"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bqpXHi58phe7HESwjB+1H9OU6Xg= sha256:gfzw/ChwkkpVVic4xVKrOzJ4ajuFuHpFjremASR+ch0= sha1:8sZ8xR3Uv4B89+yyXMTNobQgre4= sha256:BLRAUccs/9iDx32HHL/TOWw5jo+Fe63VtC7sAxbThQc= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 43BBC113593; Sun, 8 Nov 2026 17:08:02 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.152 X-Spam-Status: No, score=-3.152 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linuxfoundation.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JwN8WqsN5HqA; Sun, 8 Nov 2026 17:07:51 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358750-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 280C6113566; Sun, 8 Nov 2026 17:07:42 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 2B75D48A31; Sun, 8 Nov 2026 14:06:48 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794146807; b=Ku4mPgQ/N2NlL1wrgfxGrigRed3do5kOsLVbjRd8RQPhZmK2jfDTHK4DiGf7XQ9aSQJj /dJ1NcjMEz35NkYU49Rd/QN6ewL87gyXzJwaL/D8U7lbvQFymmZBsHu37bYU/0JyqHPTJ O4qt79ixHeDmh8gmtGFXiM95CTBCrXMeDeTTPVfAKiRIfDE10CTs7r48PQld3lO8ra57E N2T8sRF7qr6SoUg1B6j0EglhMx09MmiUd7NMoC1c5rGqYGis5GrhjhXCX/ea5SoqM6Tqi kluf4N/8FVEHDu19UZ1FAp+cgI5ENYm7HFhVZo92F3pIPUlV89Yfy+SgiXvqWdcGw4g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794146807; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=CKqvphMgjr/QNuebPWa6HLZr3WLoXlzpW/YvgjEUBqY=; b=TYXTPIHmrqRozB2Tdm90ZO0/L0EPGSfiv37MKaBJei8N5xH7EtwefqdfzEPVwn1gjwEo bOxwlOm3RLKUoT7aDeU7OlQYIN0JaN8tGMq7kJGKd/fTvgPu/UH/FGN7ye0dGU06VTcEW OX6QGYnZmXA2eKzE2rnH5PHXr7uTRRSSFuFkhCHOCnCLfhRnjeNysQe+O0kK36sV7+yVI rrT9GQi5rmVvxbmbMuLEJeYXrwwaCIpN1GkbtvXDQtJbapoXyFr34WEWEru9uOprt0pDs XTG5ATVdWedd539toCw3xUAAcXBdkuONhY7oCutvv213BGtm0VUGkTxMTi0cFmoG9XQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TOHaDMWO; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64586606A33E; Sun, 8 Nov 2026 14:06:47 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TOHaDMWO X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794146806; b=1+mMMDdnI7lMftCcYyEyN3ILky1vlrMrwTWhBmcg10w5xJtG0sNxekqQJ0sbvSJEzex0 PiQady/fd3kvXsIAjb1LIbx0BDZUB+raxBUXwZCIq4jgH5uIYfX7B2AkdwKx+KaThpnwy Dhzeeji7jquoNquaK9E21naOLItYQW+gKtocEg4OD9aGT8Qk8XAOKan6+kwMWziP2IRFV yhIA6y6ZvMzWLVUhGuRD3jjMGPqRCln/D4SjAdqYRAAdYMR8YKoJq2ZIl+vl2vDIZp6Pp Ru1XyxGTV3DdGxCeDTflD+aGXgA85BFM3iHoavtezReYwNAplmN/efpWV8TPJYVZgEw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794146806; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=CKqvphMgjr/QNuebPWa6HLZr3WLoXlzpW/YvgjEUBqY=; b=J7XvmMYCi3A/2KL5+lOziG9fBUlUYqOP70WYXeJptIt3vlHifCZ1Z+k+01b5zw+UnN3u XLOAmSszy9VxhCEKjyct4KJ5MrrDXLqF/ea+VQR5Lq8v7JGs4zDSgXFCywW3ryf/6CRvI KAB4RrzZw0mkiDFAtr0MTAWzPa3fj82rBo9rgGgW6uN1kg+YNXOK9hzpF41C4N34IJwCJ NaHJCJBpIz30u5oHcuI4N8NCP76kf5x159R2lPh5SVVoOxy7u0nXOdWOV/2CE1IekG7Jx WLRgrwgsRZTltOSkCm0gOfe3xXiKkIOkG7DG4Aks91L+wjXVzF5CU/uIDTza/lElYLA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TOHaDMWO; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32CF8606A330; Sun, 8 Nov 2026 14:06:46 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCA871F008BD; Sun, 8 Nov 2026 14:06:45 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794146805; bh=CKqvphMgjr/QNuebPWa6HLZr3WLoXlzpW/YvgjEUBqY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=TOHaDMWOQ0FCB7WkU5FLy1od8vFY6BgoDsmPLCrr7Z4DEzi7wxeKW5bmH6cx/36xd 5CHEBu+9kTDwVFtTx/ZgvOrqKnyUQqrAm99xC86VA84wyjfolW9+AypyuhvUMin9ai OYZz/C5wUGLMB6nog9zy7VK17im2ACxnuP7XdKAo= X-Cc: David Miller <davem@davemloft.net>, Andrew Lunn <andrew+netdev@lunn.ch>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Johan Hovold <johan@kernel.org>, Paolo Abeni <pabeni@redhat.com>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, driver-core@lists.linux.dev X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <675f4353-125e-4168-a617-c0d1fb519045@gmail.com>