Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5530518rdb; Wed, 13 Dec 2023 11:12:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHPtiTR+eCR4gdhqkuP3/pfCBLSnXQzimPhGPFyEQlUgRbBxCT6GFdme8NOBn6wv0bhIWY X-Received: by 2002:a05:6102:4413:b0:464:8960:4827 with SMTP id df19-20020a056102441300b0046489604827mr5848366vsb.7.1702494759652; Wed, 13 Dec 2023 11:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702494759; cv=none; d=google.com; s=arc-20160816; b=lun7Nh05aOBsJWcJKsMiPk+eeWRMJqcTtKpwm7d3LRXCNgZ1ePEt6IZ6TsEalmh/Hn mHbUbdO+AIQb1Q/6kUtho4feB8MT49g/cGcVedwOwrNKSmgpiDC72WDZulkLFcZZaYx3 cDJqjzNMTWFRgxTcXOU0sxNu2ZlChk89BAgV57dld3Uyb9jPnr6NSEuBLyAbYD/zt0YO PzaPCtJnnMIkXcpIe8RU46OyrhWBrY1WJ4fWfEbbICiXqIRrmkhBn6Th+Bs0L8ZuNd2U OywnCS7bEYZjr5vPtNR5S5glHAhqqLukf4or0CxjTkHmyVZujZN1SeS2q0i4UVlAkzYe MLDg== ARC-Message-Signature: i=1; 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=V74jI7dOUcDVvYykBcDKtAteY2dp8oIdyGSlYSnP1uU=; fh=XbREPL+ruZBSCHnIYjbYfeejYQEoXGO6je5e6kVnZkA=; b=PW+fMFEOK26nvERk43QnS5Csjji+6fSyYijgdon23/6WIIQUFyAeZrY4I6jGCq9+Ld uCDG8hH7ToqsQzGM/N6/1fmv1T2HkCbCr6yEajwI+To5mg1xRnfzP6mE9nCUqLX/ESX1 IjETOsr18wLRSPeBGb5IqePHfSov+7q4Md3pFHssBNvo9oBOuqtG4PeywMMaphMAMPsV XWlc5y8Tiu6AJ/F9dtrhXAuKmFI14Beoph+ai6dXQP2vE3dKVenmbZWF6erCn3r/ODNa pfgWgQ6Ub6gqnQJ2boLfTPg3nf9mrG7FHVT0XbaS5Eut/W04kFxbE0d2XNYT8KE32+Gp 4+mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AZ2+DJn7; spf=pass (google.com: domain of linux-wireless+bounces-756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b13-20020a67f98d000000b00465d9b5cca9si2456652vsq.79.2023.12.13.11.12.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:12:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AZ2+DJn7; spf=pass (google.com: domain of linux-wireless+bounces-756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DFC1E1C20B70 for ; Wed, 13 Dec 2023 19:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CDBA2421A; Wed, 13 Dec 2023 19:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="AZ2+DJn7" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6144EE8 for ; Wed, 13 Dec 2023 11:12:35 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-28b0016d989so320570a91.1 for ; Wed, 13 Dec 2023 11:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702494755; x=1703099555; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=V74jI7dOUcDVvYykBcDKtAteY2dp8oIdyGSlYSnP1uU=; b=AZ2+DJn7sgIAoSCkFpEvapHmYH04IaPL1KewtAdrBd0MPLLCVWEINOAcDKTZTNQdlM gd3exLiZnIiZzFiSOj9Uf416tAMwEso5l4hbB9IbKLYD2mYRW/lpgFrTYn4Vo50u8sbW tuTXYEHMv2UPlRJ+gTwJT//ZNq6/9V+ChgoLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702494755; x=1703099555; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V74jI7dOUcDVvYykBcDKtAteY2dp8oIdyGSlYSnP1uU=; b=d2r8HvBE8Yzpk5UTg/+T7PX4XAhdxUBh5guqEnCcZ8bD8raLsDNoXOKrPT25iU/imd RqDtn0UTKoNqW2ieXtwGhUTYmiofRgJTjcu0MSivc7bFp1MDZ49u6tsZUeDaDU40D817 OuV0398q3wdTGZ3z0wKjoA7PeoQjvvQ8ilKIfuPSAX1UvpPGlwJGKgd3IItOrDyKG7pa He3f7a/IT/Hw7Y66DLTwP1Vv4cUTr4ZMUCiDfU6RehHcGw7GnxJzJxYu5j3aDRnai8uS QMznRNFL5NRG9DQApgcUDvvPvrI5aIKz4YQ5V5KkX1YNuUC3T5vJopdKgPEH9JDdFIJ+ hu1Q== X-Gm-Message-State: AOJu0YyXkqJNHnX3ph4UqFRcut5GAP7G8UmNidGlOaXnhHVzsT/1QztO BZi9wBTWp6fYL5h/pTcyO8+W9A== X-Received: by 2002:a17:90a:6fc5:b0:28a:f2cc:e008 with SMTP id e63-20020a17090a6fc500b0028af2cce008mr635500pjk.54.1702494754801; Wed, 13 Dec 2023 11:12:34 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id ik2-20020a170902ab0200b001c74df14e6fsm11170761plb.284.2023.12.13.11.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:12:34 -0800 (PST) Date: Wed, 13 Dec 2023 11:12:33 -0800 From: Kees Cook To: Jeff Johnson Cc: Kalle Valo , "Gustavo A. R. Silva" , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] wifi: ath10k: remove unused template structs Message-ID: <202312131112.F29944F613@keescook> References: <20231213-wmi_host_mem_chunks_flexarray-v1-0-92922d92fa2c@quicinc.com> <20231213-wmi_host_mem_chunks_flexarray-v1-4-92922d92fa2c@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@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: <20231213-wmi_host_mem_chunks_flexarray-v1-4-92922d92fa2c@quicinc.com> On Wed, Dec 13, 2023 at 09:06:42AM -0800, Jeff Johnson wrote: > Currently both the wmi_bcn_tmpl_cmd and wmi_prb_tmpl_cmd structs > define: > u8 data[1]; > > Per the guidance in [1] both instances of this should be flexible > arrays. However during conversion it was discovered that neither of > these structs are actually used, so just remove them. > > No functional changes, compile tested only. > > [1] https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays > > Signed-off-by: Jeff Johnson Unused! :) Reviewed-by: Kees Cook -- Kees Cook