Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp948839lqo; Wed, 8 May 2024 23:18:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3Hln1Hw4nML53he1bwA60aaCy3Ci4QTurZkE5/2rsdU/cfFZgqW6cIDT/CjW1VCyfjMjyYE98xKU4VDSfio7cTch5LdFdXdVf5s+row== X-Google-Smtp-Source: AGHT+IEoqz4zoyQKC8uBbxqo9I8Xmy/lzBiv/UXPI0HRPMmUSBL3gJwA6ckyprAcpoBEEx2lcxCV X-Received: by 2002:a17:906:408a:b0:a59:dba0:1544 with SMTP id a640c23a62f3a-a5a117934famr139555466b.31.1715235522160; Wed, 08 May 2024 23:18:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715235522; cv=pass; d=google.com; s=arc-20160816; b=elCN1Hf7/pWE8Esq3zJPMY56zR7ItcM0AKAT3YFqsZV5r5rf+4g5wZ0KnxsEyEQlTg bDEftnqv5GeQp8GJpDjSJFiHAHkEk27ohbwQgwlu5eYx69Va7hkd/druqsKLUcJd6VJF 58ze8qyd7uBR+DyCz54kTG2KwgLwijYJVeqXJM4Z6IywrK4H4bAtqU2bCEhu1LaXvJvV 8Ql7u3fxBBfBYX+3lHnnmGPBX0dyOI8eQ9MhE6n5z1UJx5y/lC38RPdcRqRuxO1xSp6L f7Q+bJSgumUzjaMTlkrIXHXlJvazsDKsR9zsGgjBQhiFanIesDXkZpDyzdnAmqVh3kV5 hmBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:subject:cc:to:from; bh=qTdNqyBhHn5TKGA4WKP5WiLi8Kg97VHFmUcv+8zYrHk=; fh=JTMFD6UPnFb6QpcYCxmlruTbqrtaU+irzSDQuf5Fxek=; b=aK4wEAZFEzjErfWnsshu2d6Jv0ocUuc3nlRk3oiEVCQdkkmMb51g9gqdEnmUwD/yfH s/Hb6eDEngSAEp04hUrMwh+dgD0VdD8O+xRZSzCSfP7xIYLK4XwCDG4Kh0V+04wa9259 Zh9H7d2VJQJXgXl+okSi6OZqVNYakCZ9Dmm7BMLGuyOuwy5iUC+GUeeA8pQDxAJcsZbF YrHQ3kc3VQeK6/6EfPXb2ekcxh5xyFsk+tbvZgzxwQGGeMXcwZz3asm/l/pgRsU4fTqR ecrJRljYfPddr3ftXGLZhcHJ5Q2WJ1b3NxQiuWkoBXQNr+n6KC9D4R+DQQ2vqoyPnbpT QLeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-7373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7373-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be693bsi45549766b.812.2024.05.08.23.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:18:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-7373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7373-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF0771F2389D for ; Thu, 9 May 2024 06:18:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 736171494C7; Thu, 9 May 2024 06:18:39 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB1661494BF; Thu, 9 May 2024 06:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235519; cv=none; b=g4nhVJjkLBeKpp+TpPgWbAu/ptt+ev3XEKqSC8WbQG7a4KhtUBr8Wbr7O5yOCbQ7aqjJEapAzgSXeDNWsPrYKwncM7R4ep+AWL72slNr0yFNyeYKl/SNbJ6Ft/5OtL9/xh+QfZ//T/hUCsCHKUQao7tEfV/+K5FfTOkRNHUujZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235519; c=relaxed/simple; bh=gPqv6nzvHzay/hvE5oduB03E6BeJvF7ve6vMLpAxcpI=; h=From:To:CC:Subject:In-Reply-To:References:MIME-Version: Content-Type:Message-ID:Date; b=PscVYsXc6EXNrebunPz2G0qVX+9fCjXDAeWoCfFnoEJUog38sWx4FSVXTSSNyMMBg4zIUYOchL9RC6sZGoxKXg3ABaepY4Jg4Evhf635v8VcnNeopMwu2zViUp2BzVP1DAByu6yJUhFortvzXx1/krYQT/XeFm4YwJqCcDMvvwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 4496INeS41288956, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 4496INeS41288956 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 May 2024 14:18:23 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 9 May 2024 14:18:23 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 9 May 2024 14:18:23 +0800 From: Ping-Ke Shih To: Breno Leitao , Ping-Ke Shih , "Kalle Valo" CC: , "open list:REALTEK WIRELESS DRIVER (rtw88)" , open list Subject: Re: [PATCH wireless-next] wifi: rtw88: Un-embed dummy device In-Reply-To: <20240425082910.2824393-1-leitao@debian.org> References: <20240425082910.2824393-1-leitao@debian.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Message-ID: <4f5f34de-16ef-49aa-a438-455597b81935@RTEXMBS04.realtek.com.tw> Date: Thu, 9 May 2024 14:18:23 +0800 X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Breno Leitao wrote: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_device from the private struct by converting it > into a pointer. Then use the leverage the new alloc_netdev_dummy() > helper to allocate and initialize dummy devices. > > [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ > > Signed-off-by: Breno Leitao > Acked-by: Ping-Ke Shih > Tested-by: Ping-Ke Shih 1 patch(es) applied to rtw-next branch of rtw.git, thanks. d0bcb10e7b94 wifi: rtw88: Un-embed dummy device --- https://github.com/pkshih/rtw.git