🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12795

Re: [PATCH net-next 2/2] net sysfs: simplify creating empty wireless directory

#12795
From: Heiner Kallweit
Date: Sun, 08 Nov 2026 16:02
48 lines
13546 bytes
On 08.11.2026 15:21, Greg Kroah-Hartman wrote:
> On Sun, Nov 08, 2026 at 03:12:04PM +0100, Heiner Kallweit wrote:
>> On 08.11.2026 15:06, Greg Kroah-Hartman wrote:
>>> 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...
>>>
>>
>> For compatibility reasons. See 38c1a01cf10c ("wireless: add back sysfs directory")
> 
> How long do we have to keep that?  That was a very long time ago, 2012,
> why not just remove it entirely now?  And if the sysfs core hasn't
> needed this since then, why give other people the opportunity to abuse
> it this way as well?  That doesn't feel like a good idea to me.
> 

Seems Fedora learnt at the same time (end of 2012) to live w/o the compat wireless directory.
https://github.com/fedora-sysv/initscripts/commit/4e96fcecee7ab70295a5f2c52748cd57cbab60bb
So it should be time now to remove it. I'll submit a patch for it.

> thanks,
> 
> greg k-h
Technical Details
Message-ID: <3e6370f9-0905-41ad-a87c-c51c0a41513c@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358797-linux-kernel-netdev=dewy.ru
References: <0a0a7987-abb2-49c8-bc16-3938233ae9c5@gmail.com> <675f4353-125e-4168-a617-c0d1fb519045@gmail.com> <2026110816-crate-tightly-8560@gregkh> <d85b02e5-d9ab-4535-ab82-9b8184fbd1a8@gmail.com> <2026110812-angles-guru-473b@gregkh>

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-358797-linux-kernel-netdev=dewy.ru
From: hkallweit1@gmail.com (Heiner Kallweit)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 2/2] net sysfs: simplify creating empty wireless
 directory
Date: Sun, 8 Nov 2026 17:02:43 +0100
Organization: Usenet Network
Message-ID: <3e6370f9-0905-41ad-a87c-c51c0a41513c@gmail.com>
References: <0a0a7987-abb2-49c8-bc16-3938233ae9c5@gmail.com>
 <675f4353-125e-4168-a617-c0d1fb519045@gmail.com>
 <2026110816-crate-tightly-8560@gregkh>
 <d85b02e5-d9ab-4535-ab82-9b8184fbd1a8@gmail.com>
 <2026110812-angles-guru-473b@gregkh>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="155226"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:y2FzMoqjnjQBNik/mN59VWNt1Og= sha256:CjPdaadp/WB2dJ97d3LVoz3DRxRspWw9mjfLfDZ6dHM=
	sha1:hm76hLY6QUfuq41nGnG389j2H1w= sha256:4XQFUjT3whVIrF6UxYOmmZqc2PFPMg5lYf5IiGtR1Tc=
Content-Language: en-US
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 E0B3A114024; Sun,  8 Nov 2026 19:03:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.049
X-Spam-Status: No, score=-2.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FORGED_GMAIL_RCVD=1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	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 (2048-bit key)
	header.d=gmail.com
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 ry8zlpUgdBwX;
	Sun,  8 Nov 2026 19:03:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358797-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 146A7DD121; Sun,  8 Nov 2026 19:03:04 +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 2E3E82DBF7; Sun,  8 Nov 2026 16:02: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=1794153768;
	b=xKUdrDJRHeheCL+R6yRGh4K6jEAGkmlVVeh/eKIguiUWj4jjaqW709XqY7TrZZ/6etMY
	 v7bKKN0gYxtxN9EtgpF6goU+PXrScv8jtPvfqjYPyyytDQdAzjdSShv8O+x2KVFgVBnVj
	 5rDV5LYOU9ZWEKW/Lv8bqKAjLOb8BY4Rm6xinVDY9tg6rfKfNzPiQsNOvJSDq6MjqWj8o
	 fhIJPSDA3xXu2VARwQi/JEhPXgmDMKHq3GSoHywJ15Eo4N3DJ+pFQyR1g/w3N9sQ1hUBL
	 HroKCOR0p3Vxa6E+mY5xVfYIEzo2ZCnw+le8WtlmhcNqZ/qWjvVkYmp8c/7A044yAXQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794153768;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=J4NyFDuTUY3lwLAeO38/EuphRDS2yiibt54EKH6XAwg=;
	b=fsHIako1SiNf3v2X69sYbBabIdS0VnMjFLpOOvxCGHChbj2M+XNlgIgQb5XfkBPJ1t/S
	 /hJ3cI+Fcb5NT6wxaj4KB9wmxI19SBfWGLS00bOsQJv3euvQOvTYxbMNX6bCDC+rLU/Q9
	 u4NFLcrsWzAQ6tz525ElrbfsTvbBBh0hoXQCJJyWxVJWIBdXHhlgnYPn6hEHIZpuARJ3R
	 4/Y3LO9HaRp/WNCVnt/TsX0mv9gzxv5Wwt6PCtK+MXCUSfnFMHwtS+/cUqM1abxVl8Lg3
	 kJPCPigMSshr0S61B8d8xs/XmryFJcFCeTG75pEke3Nx6VwVUIa7wj0qLR1KndXlHxA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qXrVrinl;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 05B7C606A330;
	Sun,  8 Nov 2026 16:02:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qXrVrinl
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794153767;
	b=OlZ/W0c57DBGY/2hhdlT03gE9pBXvRWzMmuQ8Gcei+2OiQAI4/G83jyOBOB2ughStVcs
	 63Hu2zRG1tFzewGacMyj/8fNXm6QrHC5GnRwTXGXNl2o1/dUVrxFoEL6Vhgn6IsNgEoPP
	 0Q41woKPUW90xj3j1jeaFW5XULn6YjK5+bFfZ+/oMjH4gvDVSs9n9awAmaMbFGU3RooF2
	 yKd1OKvJHulUGHq59wYu+iZRSWGcg+4r1iJt8JxhYFQruNJPxsvAkK3Gg5tYmALtOWw5g
	 IzIsLun/3JRGJSqsmd8VfS366qyM/i0h3gKtb0C7QAxa0pQMvwa6qjFEC8OFNlNbpTw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794153767;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=J4NyFDuTUY3lwLAeO38/EuphRDS2yiibt54EKH6XAwg=;
	b=nbF+V2pPhdGopRH6ZAoOTHk14owawo+IVrSRwsnmron/ppbOwLaGEGCPT8gGPQz+kWHG
	 EooVFJRPxUZyeFWLmJh1WbhgLrKQ+OL+jtTedJbM9kM6nXdHGoLatFP+HioaYlATEAeJn
	 6VAnv6eXk87xX7qLTnDSOjhWxZz0o9vN62i+/2tR0Gh4nAZA2VjrGq9ApIaHHlgfd8lTi
	 hBmvo1UIRH9cNZNVHI2mcbS2a4umFaEEETXhLiXITN2Lrz5t7KxHDsNYTlNxi5rzRxwTe
	 BZILicJyqTuHqwOlCw6VhuKvVDWegW7Sm2gDlTYsRRTqEknehrBA8NTvxoXbkKlpPUA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qXrVrinl;
	arc=none smtp.remote-ip=209.85.221.51
X-Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C498C606A320
	for <netdev@vger.kernel.org>; Sun,  8 Nov 2026 16:02:46 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C498C606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-48e4831c028so170054f8f.0
        for <netdev@vger.kernel.org>; Sun, 08 Nov 2026 08:02:46 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794153765; x=1794758565; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=J4NyFDuTUY3lwLAeO38/EuphRDS2yiibt54EKH6XAwg=;
        b=qXrVrinlnoFYJR0zwhqsYePzZPuH2zknXhHrNS6QnT2kPYj96nbj7rjAHL1HDd6dGM
         8t7eqj/zr0EkTZlB03P+un6k4zDtCRe7UZ5ho1yh+7K+1E7BgWtdZpjdd0cn5tg8pbi+
         NKqRk8Thqmhus2d98SUE8+pTfyI7LJt10Rt9bjMeWCqsVfp/DmOjdZX5mC/sLr5z5LPl
         fmEpe4I7pONmjE4D8CJUVmXV7R/ROr3kmoi5cCuWQBZ3mzBd3kMuX5CjWDikPzgA+nGq
         vOZTKs9OnotDm7w5ghWF0VHcm64ka/dIPRTy3HlH7WMggsh/0ELtHKdPyYYWH4d5Zb7D
         IPag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794153765; x=1794758565;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=J4NyFDuTUY3lwLAeO38/EuphRDS2yiibt54EKH6XAwg=;
        b=ieIVn+budN9K7NURGPCIzb+/ZJmfGDTUzj25LMnS/5NYtvPS++GH+6QYx1DwAI+QZb
         l258IBn2Z39ypxmti0BziSF+e/SbsmbUOPaYXzugd8AqIr0krIZIKINwWHsp6KRXUJZY
         QcZ1KNx0ZN4FhG+2EU74639DLoRdnSEaYvQ7NZpDIVCTm+WWbYoGxUmgjOtd/erIsXij
         v8MbZifgORa7PCcsLtJKisPIZXDf5ynssl1ldO32W1vAqLC+j+gxPz8q5ONwHxsENcUU
         ly2GQXU8/f/cYn3sQcNKRlIkZebP+A7LY29BI4tHifcfUDURHzyKjFS01kbfJf7x3/Ec
         gB+Q==
X-Forwarded-Encrypted: i=1; AL+hErGVTqnxEPhxlFWwSJIk63KYvj5ohm6kC72cd/3AIXeSqUqogK5gpxqsRba0e00M75kbWJnl61M=@vger.kernel.org
X-Gm-Message-State: APuU4Z9vswVR/Cy/2vikU0lDqr16pW3NF2jaRmDAsIGtgNCMmKFRUf5l
	rIyNXq1HmFuznuqZpv8axOFE4//n+9QSC1+qvrOV2I/htiUhVDezklNT
X-Gm-Gg: AYBFou2LC9OUBccilUyvGRx7Nthiv/hj5mr9p4dSa+YyysrNuiekbZMcmdsUrOQFocp
	CyuPOUzHqnEtYoE6gpUkGfW1qPpY/yS8SqOi3yUwTBKvkfasaBSPXMMGtV3pqrtKgZtXYY8w9Ok
	ZfsQhS8vpk6KnX1mG7ZPcz2tyeC2BDsGIpiaEXrrPpEGdNy3tkEwpod2AM6TM1V8QQfsokexNtq
	dMNgp3Xp4TvZGGri5So+CmwhFhnrIqI9zEimEjitRcsraegkt6RkjG+0m7GJpiFEAbaPhRYSSe4
	+YAy0dIRyRJz36i0TTb+dm5u8sX0zMV1CLWkOtzgcJiHO9Pjn8wtYE4tyTKDxZjEBTxnMgDmXOk
	a46hsLiE9UmR/kVlZGVYMqDbTd2Qt1Xo8XgCXYinr6AkLVKxAF5862p7ldi3QMiHGiNIhoST4jd
	NsmFXdvuiDZeUOp+8kyrmyuSR5T6YmNAcuPfk80GZJ+d5a9QtW0W8XWPIiPMGIqxlHF9UqQAcbk
	KCJ/c2l3rvVEktNPsQvZek0M1V9cnkuvulbnq2GXG5VetfB+QvLBjSJK2nhdBghcEoH5uT1LcVM
	33MHV+ybqKNRBhj2sp4Rw98+/3te3N0aIdb81XAZZBQaN9gVutZhID1XEslrkQxLU2tSPp9lDVW
	/o9MUCqg788I4iofq07HM121HM1TLcp1VO0wmC+S7hLVWmutFb5ROIOcEuc/++S+N2gI=
X-Received: by 2002:a5d:5f90:0:b0:48e:4a8a:e17f with SMTP id ffacd0b85a97d-4958083082amr3604985f8f.4.1794153764903;
        Sun, 08 Nov 2026 08:02:44 -0800 (PST)
X-Received: from ?IPV6:2003:ea:8f45:7100:cde5:5d75:8598:b64f? (p200300ea8f457100cde55d758598b64f.dip0.t-ipconnect.de. [2003:ea:8f45:7100:cde5:5d75:8598:b64f])
        by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49597d0a775sm4952992f8f.55.2026.11.08.08.02.43
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 08 Nov 2026 08:02:44 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
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-In-Reply-To: <2026110812-angles-guru-473b@gregkh>