From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (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 C0289393DE4 for ; Fri, 22 Aug 2025 07:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755846873; cv=none; b=ZMEaW61cL+JV1QSkvLEqFNdfkeEAJs8+t0z+fi5JQfwX0LTG08tvYG1gd+POCdkkNxOHJR4ic6/taO236RtJQyrAFj9BsIrcTdFYotE2RTaqWJnQlpZKH6vNB/4uFEELRIHBMdRr+6wObtyXMvjXVKE3AVIInHX3IHYitXHQJR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755846873; c=relaxed/simple; bh=K3JGXfg5ueJ9Trt7ntIKgcOSsX63ZzfBfJETVGNzTvE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Yj/FcpTAGjs/Qwxx562e5JNXRVYUVHBngn78OP70mN38arTnxrdxlwsh1N8bGy8u5tpjkZvPv9eRxgyH4fRNhqZkRAseyyQMJ7jvTGkSeJkaAp0fi4eK83QNFIUmHFCocQa8ovPOTay8GVGURGxW5WN7PRhaCWYhwxy6kfhmVxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=dHfgWtgJ; arc=none smtp.client-ip=212.77.101.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="dHfgWtgJ" Received: (wp-smtpd smtp.wp.pl 44574 invoked from network); 22 Aug 2025 09:14:20 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1755846860; bh=LqtWAHV/ZOPkZ5sTWV89Ib8PULJOZ58k/apc29IXCpY=; h=From:To:Cc:Subject; b=dHfgWtgJ9z8ShrsdQfUMjCHhjtGJ+Nx7P1/FPK3Wlip7ptGw2tO+KMw/dkO5k1gae tyyDY7DBM0IwfzL36Odt47iM7hjLUAtpmMEZ87vYykM1Rn2EOgcXZFClSYVKitUEo+ 99wpF/VBAr9cQu1BvDxZWijaSqgovPZdT4F4PAgDjQ5SUVo3scgsd8bJ+QfpobAFnz ertwy404fN3wTbrRz4Z1Onem52GBeebj2TVC0FJkmi3Bn5CytRJnGtYzkta0Rn0oLH DQEYW+kHC7XcKj+hYIBQ7c+W8yq8Leo1Fp/SFoios6DcyA6DGp8c2J34HJAYlE8Ihy RiTZ2Fl/2zVEA== Received: from 89-64-9-131.dynamic.play.pl (HELO localhost) (stf_xl@wp.pl@[89.64.9.131]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 22 Aug 2025 09:14:20 +0200 Date: Fri, 22 Aug 2025 09:14:20 +0200 From: Stanislaw Gruszka To: "Gustavo A. R. Silva" Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings Message-ID: <20250822071420.GA46129@wp.pl> References: Precedence: bulk X-Mailing-List: linux-hardening@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-WP-MailID: aa1691429c86c2fecbca16863494ab9c X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000001 [ETJx] On Mon, Aug 11, 2025 at 02:10:39PM +0900, Gustavo A. R. Silva wrote: > Remove unused structures and avoid the following > -Wflex-array-member-not-at-end warnings: > > drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:68:39: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] > drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:60:39: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] > > Signed-off-by: Gustavo A. R. Silva Acked-by: Stanislaw Gruszka > --- > .../wireless/intel/iwlegacy/iwl-spectrum.h | 24 ------------------- > 1 file changed, 24 deletions(-) > > diff --git a/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h b/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h > index 1e8ab704dbfb..f00eb878b94b 100644 > --- a/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h > +++ b/drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h > @@ -50,28 +50,4 @@ struct ieee80211_measurement_params { > __le16 duration; > } __packed; > > -struct ieee80211_info_element { > - u8 id; > - u8 len; > - u8 data[]; > -} __packed; > - > -struct ieee80211_measurement_request { > - struct ieee80211_info_element ie; > - u8 token; > - u8 mode; > - u8 type; > - struct ieee80211_measurement_params params[]; > -} __packed; > - > -struct ieee80211_measurement_report { > - struct ieee80211_info_element ie; > - u8 token; > - u8 mode; > - u8 type; > - union { > - struct ieee80211_basic_report basic[0]; > - } u; > -} __packed; > - > #endif > -- > 2.43.0 >