Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2277749lqb; Mon, 27 May 2024 14:11:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOdCr2TibVLJ1wjw6vok8dsj2b0wPXlsAdh9QWltmDOwLFyABFcGIU+1uBulDyvcGfzZ5ioc7+gAGtILPAEr8cjWFTJp4nhsrJM9W6kA== X-Google-Smtp-Source: AGHT+IGSgz7Wh/baEjniCNhVKRJ+IPYjI7iphF4TpbyIeMVctG8IRvEVXKhJSp+KsW0mGA3omr4q X-Received: by 2002:a05:6808:b1b:b0:3c9:9640:7ed3 with SMTP id 5614622812f47-3d1a5670d5amr13366278b6e.15.1716844289667; Mon, 27 May 2024 14:11:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716844289; cv=pass; d=google.com; s=arc-20160816; b=zdWSqiY2/BArIqpjaV6WUMBmQIeienLuItGFGK5/bV/Lr2J67/1VXOHC3oU25pknTl 2pYSaN/Zu+BL1ytJkM82dNiqLLmZ8LOpD9SgPbG/pIy/LXWXGBYZsI/GrQvMOupvdEA4 +v19aNhSo3FZrkzyjQr63ZnFDrsTKJS2+mUy8GRCx0HAWF/Oh+T/0GP7OccOti0YGgoX PBtAIJUPdVWrQtT7iDz96AYCxJYwXdbwD8rIf632ucNPux8OVPnvNHJk0hZ96MzXcF7w lMGNFwAIsytJtq9kocmRyZeCputP0RBq9m8amNdFgRyWkLeo4Y2ws+svMcMXg1/FXwwb Ca1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=XMFMYDIwbtVXl28Ek+P0OgpFhtX85UfGfaQmbV83XSE=; fh=xP2YpvT0W8h133NZ2s6pJggHeILseO6hogCPS3tebEs=; b=ATAPdKD9ANeuVZDLDDVmCsG22Q1YtExP5IMkx49NosRg4laCiWjZ9RBIP7wDO61Fr6 /3471a42Wo2m982h1oCngBXA3FPXFYm6t9RTb+xC4VmKC+xzABNaZuB7H0L8AeRj49GZ LHhnaArXLotw8vrtPQJZP8FmCXVUMnObGn3p4m44j+ygdDvfeuTzXQi15S7dF/f8CXVl y7i7b3osluyLg9qBZK52y2LDnbqljKK6Yf95br9eNFGLq5XVJUCtmXzvdAYclr3iWF2D RlNimaNAB5nnQ9wCiHe3+rZlRM5ekrYBW2GKW9Kqj58+MC02VcJFE1qHQcfQJv/zxnqN vxnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FuPPnW1q; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-191434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191434-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162b38afsi87737886d6.460.2024.05.27.14.11.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 14:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191434-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=@chromium.org header.s=google header.b=FuPPnW1q; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-191434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191434-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 5DAE01C21484 for ; Mon, 27 May 2024 21:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FF0316B73B; Mon, 27 May 2024 21:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="FuPPnW1q" Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 252A016A37B for ; Mon, 27 May 2024 21:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716844147; cv=none; b=Ni1HpEmFpp9PTsnsLF2Dxhie/lrdauoB+Vw6ivTTxy7Cr+5OBY5vcCrF4YqFsaeIvpUHye8rQEYjLbtAAgmPjO5xjVRfp3K2+FsTveOuMHj3Y8HoZrKDc6C78aONtIiA+sTGZ3oQqeQMmzL3Owu2iCvpCHJzo2xWjZHvAjSnToY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716844147; c=relaxed/simple; bh=GfWDLk1ryOZK/reOhUzf6575mRAlpuhUtQvw/mzD/JU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ur+i/W0i/Qj1fODOUVgRO8zR8h+5mj5kngoWhn6TTBUWYS00JwKHLxpWu9uJ0zQXu9Vam00NACKwToaCSH9xyuvPU+mKk8N/5uR4xcuXOxVbhWONK8tfrZXRRI8mlN/D1J5Jl/q88XoW2SVCEFFPVDcMvSf//ZPV7RU5xEfta6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=FuPPnW1q; arc=none smtp.client-ip=209.85.219.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-6ab9ce67eefso1000996d6.0 for ; Mon, 27 May 2024 14:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716844145; x=1717448945; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=XMFMYDIwbtVXl28Ek+P0OgpFhtX85UfGfaQmbV83XSE=; b=FuPPnW1q3CpFaLTKWY+eYBc3McMHDz0a07FfsK5d9oIcKbl3c0U31kb4zbRYRatuqz MSYJGA0QcpI44QO74cwVx/WEEjYWAFVuEQ5sA3QGa51wW4uFlfauWBAcbI+bK5Qb1UNl tZ12Knt+JdknPe6txx0hBpPwfsQgmWvoZe4Ho= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716844145; x=1717448945; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XMFMYDIwbtVXl28Ek+P0OgpFhtX85UfGfaQmbV83XSE=; b=G3G9dqtvPHsB88OdMAdKs9vQixNLIovorySqBtuVbJyi91IBLGNqasAJnOVrCF5gWt 697ZBMwzhINcPAz4W5hRTkWSzQCMCAlplOwuj7BzNaJNLluWuIdDw/4ufpXrhT1Ekq0e wqiC0mMLisrCfy27YFC3OuavNm1Y5rTeLyIVHUzzAK0ZKAqGwVBNjguJsP8/+P3j2H+E oO+mwq2ynU7Yf6YYp7o9TSSYPz9TufGod0zbtC2as5H4Nln9FMJEkyinNiQx6VGQvmnL exzrf0ukjEkXzz2NzuAKyRyYgA3e1PIfjHwhwQOcKpqYx7u9W+Y/w0p+VzaQ+2ls7m0X dHhw== X-Forwarded-Encrypted: i=1; AJvYcCX97o9GtuwvNZqu139w+YmHM89GrvsjoiT2Kow+G0FaRlqZMyBCv7Ax5b2qHv+8WAj4OBrtlHkB0X7XrZMDwKgGdThRKy7IBq/v5eEF X-Gm-Message-State: AOJu0YyeU3K+jocAEDriy5QiFqke2vVOv4UD/+YMdsivbwqRgQD1mO9K KnBubvCCfzwZnPCLoqSUVnprZ2lxPBdN1uYj5WGZrdjwxduJf+X9Xx2mntiJ7Q== X-Received: by 2002:a05:6214:3b89:b0:6ad:716e:e13d with SMTP id 6a1803df08f44-6ad716ee163mr71569556d6.60.1716844145035; Mon, 27 May 2024 14:09:05 -0700 (PDT) Received: from denia.c.googlers.com (125.135.86.34.bc.googleusercontent.com. [34.86.135.125]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ad850a6dc7sm9511866d6.93.2024.05.27.14.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 14:09:04 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 27 May 2024 21:09:00 +0000 Subject: [PATCH v3 10/18] media: venus: Use flex array for hfi_session_release_buffer_pkt Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-cocci-flexarray-v3-10-cda09c535816@chromium.org> References: <20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org> In-Reply-To: <20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org> To: 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 , Ricardo Ribalda X-Mailer: b4 0.12.4 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 { -- 2.45.1.288.g0e0cd299f1-goog