Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp167577lqo; Thu, 9 May 2024 16:37:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2wTCdHzs1wuuAUJ1j1+dbczAyfvMEuxZsxnJYd8RAm3z6FCPJn39/Fs4xdHCeu5khvJM2pc4KSqeUs5cTHd536ChjdK30t1eA2UXVpA== X-Google-Smtp-Source: AGHT+IGOeFnRuyWSf57Npk4vY1Gjlu7B4Ta6iyUyb/SZshx9XcsZ1XUg8Ls7Rb/M/N/rWGtNULGD X-Received: by 2002:a05:690c:660e:b0:61b:33e1:4eee with SMTP id 00721157ae682-622aff5a9edmr12784017b3.14.1715297859870; Thu, 09 May 2024 16:37:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715297859; cv=pass; d=google.com; s=arc-20160816; b=bqFUGaT7/qTpydhnpO4I2YFi7k8zsQq1tGE0/+DbjZ29Pk5GZOdoTzQjo8UuOI1TYQ A1BcRUFH1GjOpZypEtilB19hgtTnUqKw2kfZcH4kDwzu1w9rJR4HW4EIq9MvoRndomkp qirYg4Wt7yPQXgqe2xLB+YmXQPJZwz2qf10sq1LSxUnkq8oXlMkT0wGmP3TpN0Mmfbw/ 1x1MqLjt0/lPHI8BsCi5HD8ycDqpk6Hwlhkibolld5izUwmaFdBHmsH+kCbCRwh4hkpj /db4r4Vs+thKek+ajF/k937X/czSROU567lSWG3bP6jDGwBuDrziDNLtvXV1ocuedr9n 8slg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9CZ8C9ETfpVeLTKNLsaMAg6oPGHuO9y7DEyZK/YPQD8=; fh=1XV3gDY+g8h8mYBJ3nfsjigQnCMisA+cb/6u7JyfmTo=; b=wtzxeFC1Gbmw9GL1zLgNquiOHkkL9shlIrhTvJBX6Ng1tERK4yYhwtKJCId74Uf7zZ vSUCzgN1eUs7f/G6fSWoPUZQ9QZGUkqY1Oz9WPi0oJR6wllGjIJ3rmSMmRknG2kHg94c YBddQWGiEkBP/zTg5jLVVjQspl8AsSA9Y8Ow+dFrR+jbsqGyT+N0lpQ1xPoILFvXBWF8 4StY07xYHzECgxopmvHR3ELx+H201XhD6J6+n3yE0RugLnEOcGMpBJlC68eX4qrBPEP4 /x9Ga1RqfNC1Fiz10aGwR7zNFQIk+ZdV1evdr+93Jck1+qXoqNsiaxWv2NIHbqW7yIsG aczw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P0Ne2Qjv; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56acfd5si23546861cf.525.2024.05.09.16.37.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 16:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P0Ne2Qjv; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 EBA1A1C22B62 for ; Thu, 9 May 2024 23:37:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B82213048F; Thu, 9 May 2024 23:37:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P0Ne2Qjv" Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) (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 0AFCB12838D for ; Thu, 9 May 2024 23:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715297840; cv=none; b=O/KX4F1E2TnmJbJQUD8q9N8SelvPY8yGGRR2lH3g8FM92qWAmvDsjfyjqjihiGt5gXRCpP+kFSsWGtNZxmIF0A3zKnq4wZ4Uy2GW4EQT0vgvZrg/FViWrYZ5q/oDlrFlzI2LTIhQ1eRxgXW3ihBFNSDcCUimPpVafiCqHXj2ePQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715297840; c=relaxed/simple; bh=Epogh9BdoUc3R/FE4T/AdSUKmqdQETFTOEDp6PuP3aE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K9CVDaK6fw1/yM72Iau7ceQ8JTq2U57iJZXtBIp7FdZ6y169M+6E5+Zcv8bQLZiXLabQgi0+vRRhXL67hfgC4yemEHmQUSvh7P8sn4AM2MGud1e8CKoAQFYN5Yh34UQf8awUG5igggc9fd0sUHR9r4uHmvugvtntO40ACpfLGH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=P0Ne2Qjv; arc=none smtp.client-ip=209.85.221.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f68.google.com with SMTP id ffacd0b85a97d-34e040ed031so1037883f8f.0 for ; Thu, 09 May 2024 16:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715297836; x=1715902636; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=9CZ8C9ETfpVeLTKNLsaMAg6oPGHuO9y7DEyZK/YPQD8=; b=P0Ne2Qjv48Oyrl/DgjfgF2OeEnOwQDEbpxDN9/FLpbnQwd9HQ7CXE/HNPAlSE7fVmC i2rL1f6J+Wud2tz8j+TsN8+n72oRQb/KAS3CeJx+zcgnPZWhuayy9P6MLzg6f760cdBX a5c9XkvGMRomSCB78OMi3ySayH5YVMF2kAfzUR6hUYMQNi5aQ9qytgXIQ/l0kBn18kLm mgL9vg61Rwzmuuwe6Qcb3XOT4tIlmW5vyEcbu+27rucIshpSUK+vBOnyaSS20gOdMhuc GzWoqbMs13swQA24a1gDrjQv02DFvQAfajQsR9L4l9tR0Ks6Wz6Z/22aGe6j5nS2TnGK qYeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715297836; x=1715902636; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9CZ8C9ETfpVeLTKNLsaMAg6oPGHuO9y7DEyZK/YPQD8=; b=Dn8SEiIdYrD+CZ/XBXTZSXm/FHCExIfrrvB7z+OQQVDZFP2teKNpeawMqzTPVcXpxq aLSvccPmKNwPK+pGTho0SnADe45if9MGNE64zYGonA0yZSbndkEqwSnfglwdiu0gZMzP ob6C9OgA+Vf7UlWzeSKEDC8liP9SSJVtcZGF7CQ8cQPbLIP5a+G5CUapRZ2qNKnonI6r YyLuqhR+yD2WfcHH1c/hQ/odRaVcOAf6mbbGe6FarHdl0GXXL4B9LDjxn80qrTmkjy98 +VPC/fMz7A8s0/2VEvD0UynPKakd/1VGxyFLe3lPw1xcvHhsvLJO08keh2vcgegveDJy /oyw== X-Forwarded-Encrypted: i=1; AJvYcCV2oxtlmnxpty4wWlcpF1dPTJBzywUZxEGel2qULCzETud/UnITsDHG1zAaaGg8H/eW1Y2AIOVSdF083guMSumy803qNnOa1qAwMO1i X-Gm-Message-State: AOJu0YzTnLeeGAQ09RvqoMcYe7qmEBufx5StQZyoUk8vCsAUr3oPlniO 4XilqqtuL/0Go+iYw+bieiUnD/hG373R1nP2r4fLKsf2cF3o1PMqdVR9FdRD0E0= X-Received: by 2002:adf:f60d:0:b0:34d:aaca:2f6f with SMTP id ffacd0b85a97d-3504aa667e9mr558206f8f.69.1715297836445; Thu, 09 May 2024 16:37:16 -0700 (PDT) Received: from [192.168.0.3] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbd60sm2899990f8f.90.2024.05.09.16.37.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 16:37:16 -0700 (PDT) Message-ID: <284a3096-cc2d-45bf-9075-fcd1bc60a599@linaro.org> Date: Fri, 10 May 2024 00:37:15 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/18] media: venus: Use flex array for hfi_session_release_buffer_pkt To: Ricardo Ribalda , Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab , Laurent Pinchart , Michal Simek , Andy Walls , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Hans Verkuil References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> <20240507-cocci-flexarray-v2-10-7aea262cf065@chromium.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240507-cocci-flexarray-v2-10-7aea262cf065@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/05/2024 17:27, Ricardo Ribalda wrote: > Replace the old style single element array with a flex array. We do not > allocate this structure, so the size change should not be an issue. > > This fixes the following cocci warning: > drivers/media/platform/qcom/venus/hfi_cmds.h:204:5-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > Signed-off-by: Ricardo Ribalda > --- > drivers/media/platform/qcom/venus/hfi_cmds.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.h b/drivers/media/platform/qcom/venus/hfi_cmds.h > index 41f765eac4d9..6dff949c4402 100644 > --- a/drivers/media/platform/qcom/venus/hfi_cmds.h > +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h > @@ -201,7 +201,7 @@ struct hfi_session_release_buffer_pkt { > u32 extradata_size; > u32 response_req; > u32 num_buffers; > - u32 buffer_info[1]; > + u32 buffer_info[]; > }; > > struct hfi_session_release_resources_pkt { > Reviewed-by: Bryan O'Donoghue