Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp167861lqo; Thu, 9 May 2024 16:38:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWMCdGygAxNXZz7XKlxkm/n+tLxjNNK9wlg+/X/UlRWbpwZo383+ptczRfpz7UmhYs3uLBzkBZg5DVbeEK7Udfglrqk0pU1Uy3ZjDyew== X-Google-Smtp-Source: AGHT+IF4vT1PB/n1BViisE56ROloHoQ5Hz7D5nUedbtmhdCS6AeY9CUffzPdkfzZIiJyty2y/CHG X-Received: by 2002:a05:6358:27a6:b0:191:96d4:b14d with SMTP id e5c5f4694b2df-193bcff520bmr107476155d.30.1715297908956; Thu, 09 May 2024 16:38:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715297908; cv=pass; d=google.com; s=arc-20160816; b=HQHA1JFegqeOqOyUaJDG53uVFTF49Hq2jQSLRTGgdaLRWN5ALInrKAlsxBdHmHFbz/ dn8i1wHZhTdZwGih+da3FppF+XBWZyq7OiD79BnSEaRk6BHzgT2TwuUAQihfAnMH9L9A Ru1tz1duxFTLkkqTe0EG3DnpThfg85fRQiaHVEOTQkC3Wa4Pram/yVhL5T/AhNn8RLnS bUv55Zm961H6QF/zb0w8a4yjVh3FG6llvnh3rYmkJpKBNpQKevgELd6RcBPqok0CqJV+ Vg5ba7m2gPl+GEAUTcWVBpMn/+tVM6AoLMawbxOsHvW9pz2Xqhl6EMcrNaIplak6gWaa Vx1g== 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=yfanHmHbpXKbKUeSgjFcBc7DGojl6kbad8r19/0s0Bo=; fh=LPijjr6SZdSbJSKKk/r0J1Zuqs8yNigoofVQNKZZ7cg=; b=ULVBR7fFfqpqY+yxeqagdctmUAJk7MMzI9L3yG8q6U/zCOv8VwufDz97YvoTh9IyAY Ddxu7Jwun/hL3JnsOebnGNKCoHOYuqt9AJpovNF9Y7RUjsCOB16wePGr26cHY75CszmX vR9So7rynKsklO3SvgkRY+7dPH7aYq80GGxvtMTYiXUQdQulRrSG/f0jU33vorfFzav2 +R4JaMMML0/PNbxccRivM+Kbpgti6EYbOf+givA/G6WvDw1LqQ/ae4lJVp7FNFnHfWbH besqejlCSIVk9BR3txVAS/cOh2Hv9cqbo3DnkxGJlnzSYqUsNq4kecIQ/ZELIyTlUg5K irww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5qCEt+f; 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-175076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e837a9si2228838a12.102.2024.05.09.16.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 16:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5qCEt+f; 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-175076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175076-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CF021283CFF for ; Thu, 9 May 2024 23:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FA3B130AD3; Thu, 9 May 2024 23:38:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="A5qCEt+f" 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 C02F886245 for ; Thu, 9 May 2024 23:38: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=1715297899; cv=none; b=aOyhvPOuxC5JnU8TgB2E4oHUALIeuULFn+kRYStQpzjLxpgiJDJuVz0rHVj04C0U8V8YTS7IrPxy6MojToXIgQjBT+AWKzLRDrzXqIrdNM2Z3UCvkyi2f/9DR7q64XoMgi6QlEV0tEM7acdg7FHzJ/dXJHi6x+4nswP1X6ZtY/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715297899; c=relaxed/simple; bh=sNEjidbN7tu2jNbATHcFmBZnyREdrkbUQ9Itle2yXRw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uHTe+uHrQvezh429PXFDglW2RJELwZb9W/Z8u3qtOJaGGfRgswExdJb3X1l8UgNgU8fTkusd7VqPXzeZY0jgzuqp/fh+TDzIwpAOqzXhpuTDynS7TWC6wo2g6E/RtF9Db1WMO5QZFqYAH5dA+LIvENXr+MYlMlIfpQBHjfKPqXw= 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=A5qCEt+f; 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-34dc8d3fbf1so1036257f8f.1 for ; Thu, 09 May 2024 16:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715297896; x=1715902696; 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=yfanHmHbpXKbKUeSgjFcBc7DGojl6kbad8r19/0s0Bo=; b=A5qCEt+fEDkfRSfqjEguYZojwzV0feyAGA9DnT7nHxUnVN+ktjGBhFY/4GP1+2EGjA AqgVKsMKxuqSSwNPt1z/cozaYpVqN7uLglIAs9GQQ5zoYWnDDqH69JrHSeaERx7Oz5lF ZfC8pDnkAl+o1zZ2+Jxjc/RVv2dQyxBalPd3BBgSvI4ff8fUDcqs3NnfxaYViikSGLza NULdqkFlJuIhA88wiMs71CbV+mwWSY+Ml0JlSlmvPHEYGakl9ocmm7RaRtfBgqVmmZen xTdP1x0r4otxqHCSn/PcSyQPGjfKZ9kpAWOoVTOkm9Ztk2Hp4gFzoYE4y12ppX3ziC7y /1Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715297896; x=1715902696; 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=yfanHmHbpXKbKUeSgjFcBc7DGojl6kbad8r19/0s0Bo=; b=CkSozmA4ZrVzQbIM9voxx1u05P/Iy6XHpaUDQ3fPOXp5cSKAgjvt7AVzVG3nMZm/DS O6AMZsYajnX5R1T2fBMrUQ1VbBA3Zwpd6xrLfOpVYFgEyTyXUTcVXBFNKLKA1VDvf1l/ vj9DOfn+WyZtPrdHH/5zSnoKTrLnUUTpskupy3v39OmhyTxgIeWkQn5e/gxf+2V5uiUc x4teFzs7lZV8wUKewjSCxj+cXZJ4zpkoIBDDd0dmXW/qFqIXGxv6AspqCFnL33/Wd8nb YHXBLZ7clY3JCvFHRunc+FnLeqiZI9XgcmVcq0bARB//xW6QnYp/hXuUIzWxJztpya0B Hcaw== X-Forwarded-Encrypted: i=1; AJvYcCWun5fLt1HN1QXFDFH7peUu/nnNZaMvdRZK569xK9M40PCrzUUYqKQgf1lDUcM1sNLs2krBVstO0XyT6wITwxJ8u3uucK5Iv0IP/8FK X-Gm-Message-State: AOJu0YxTyYvzESGoiPyH3UX/Xl6swqwSmAt0xCiG6cF0dNYDPgIVOapf UBNtolbpkYyaxvGtPlTL7GCW+izl2qxScyWInEvMlv78KS96y0CTs56eJ0QKBoY= X-Received: by 2002:adf:e486:0:b0:34d:ab5b:d8f3 with SMTP id ffacd0b85a97d-3504a632b5dmr627399f8f.21.1715297896142; Thu, 09 May 2024 16:38:16 -0700 (PDT) Received: from [192.168.0.3] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bd4fsm2936986f8f.7.2024.05.09.16.38.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 16:38:15 -0700 (PDT) Message-ID: <86f3fe7a-dc10-44a5-907e-4f336e590b7b@linaro.org> Date: Fri, 10 May 2024 00:38:14 +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 11/18] media: venus: Refactor struct hfi_uncompressed_plane_info 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-11-7aea262cf065@chromium.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240507-cocci-flexarray-v2-11-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: > This field is never used, but if we remove it we would change the size > of the struct and can lead to behavior change. Stay on the safe side by > replacing the single element array with a single element field. > > This fixes the following cocci warning: > drivers/media/platform/qcom/venus/hfi_helper.h:1003:43-60: 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_helper.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h > index 7c0edef263ae..eb0a4c64b7ef 100644 > --- a/drivers/media/platform/qcom/venus/hfi_helper.h > +++ b/drivers/media/platform/qcom/venus/hfi_helper.h > @@ -1000,7 +1000,7 @@ struct hfi_uncompressed_plane_constraints { > struct hfi_uncompressed_plane_info { > u32 format; > u32 num_planes; > - struct hfi_uncompressed_plane_constraints plane_constraints[1]; > + struct hfi_uncompressed_plane_constraints plane_constraints; > }; > > struct hfi_uncompressed_format_supported { > Reviewed-by: Bryan O'Donoghue