Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp51048lql; Tue, 7 May 2024 09:27:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX70bzAGv8GtgOykkASpeparqPdFb3nrfAfh0Gd5rKiEK1U2c2nD/AqvHXFbTuH+bTvBiCX7edDgEFSlZgpEFrjUU4reksWUZF5SxBu9g== X-Google-Smtp-Source: AGHT+IHnWSRRAkzUcTX5b5nB8Tci0l1zdDRWJWUqLY43OFHl0JYUyDkqsLuYTHJj2iFbFjrNde6f X-Received: by 2002:ac2:46f7:0:b0:520:9caa:2dce with SMTP id 2adb3069b0e04-5217c56711fmr21460e87.36.1715099248375; Tue, 07 May 2024 09:27:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715099248; cv=pass; d=google.com; s=arc-20160816; b=OK1CkQvyr0BrFJVgHu42XvPcEKf02D8eq9+efUyr6dgCUIZPLTdeVgKbe4YkvJU6ES wCDt3auGnD9qJagroO8d+Y3amD5IOqkBMWrW5eJVDUfqmvQt4wEuzLte1tkC5gkbqu2Y Lw7ZAZ6b0LJQ3moEVkL3pr891acRffEPi3qk3RONU1igyy/Glx8KwyTXkOMxWmgRBAdH 0Fj6JeorKGtDjR9T4N9TC5Yj+LbMHassg5OBeSi+tLaE9u7nM3ApvWlguMp3oL1M0LTS 5oEeCw5SLStwkqqdCwAy4R/1K+itGqDShvQhbWeIeJ/YwKbJGpga9KbmpKABME2C2AfF N3Gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=UxHRNPAJkNGXFeTpFgZu5yemut+3Fc0PUQDHkrsHV9o=; fh=j+BVKADVzFP0/ugmeCarYu3OZD6sklWajxQvuMrW2sw=; b=N0nFtsfXMaBiXYRrSTfXRAZBQNN9GNPAkNX+YDf82caf6XJxkOwXT/2lZHAGlrLd19 56wJN4ZHEgQMzoApMr5Sl1Q98+MrdQP60Rxa35rAAiZxlLvZhDFq3tSsXRYV02NxEKhC WBIWhqGXIwNdtKfAZVG23Xa2XBX0a12WmAdMuUKX6o+xnWZGgw5kWVgFrffpdez44Dhw YnxJlfNzsNb5fxKNHolK2SQyRLYVlN5HOXJiF+VmntPh2FBxkBWPVckXNO2Z1WhETYCm oU+vegUxGQt9taTCiuKaLU/Npuqfsv61b7l3IZEBSN1BZzqTES+kemLqpzWYZ+C6at/T pZTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cWb0KdD7; 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-171798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u20-20020a17090657d400b00a59ba744ee3si3511166ejr.168.2024.05.07.09.27.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cWb0KdD7; 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-171798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171798-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E6C2A1F21AB4 for ; Tue, 7 May 2024 16:27:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A135A16C844; Tue, 7 May 2024 16:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="cWb0KdD7" Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 494DB16C698 for ; Tue, 7 May 2024 16:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099231; cv=none; b=I1U6jSDuEtDTGWBZAjj/VsQsYjV9/QyKtIYxzIlOSn/tsCQuQ+4cogeSpr1oSZUHodVwaCaYu/jyIYZkkn+YtJP7q0OQeIVx7y0jCNFjw7wWUe5S1WV0w3i8iDSfUoY6b2+/SrQVc0bHOi+8g/OjdtfyO3DLiLCFB6KfXd0IM1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099231; c=relaxed/simple; bh=VGC9CnUyFz8kv+JZWidTOhc2UDTBbVKz2PNoIhdJ06Y=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=tpWd+7GkOYDv1yI5VOzvOkWHnWH1G/HJ54UEI8c/xu43HVQZOa4BvXupulrsLg4KP1gKgLoJHyLkQzIQKtdp/cWiNSYiH+Ql2ERGrJUI8yGZwXwcskjld9qUC40aNNo0QVZ0eXzq+uSyHrPhj5HmQcm0wL03+Z6e4Gw9FkeEJiU= 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=cWb0KdD7; arc=none smtp.client-ip=209.85.160.171 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-qt1-f171.google.com with SMTP id d75a77b69052e-43cff222427so13955101cf.3 for ; Tue, 07 May 2024 09:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099229; x=1715704029; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=UxHRNPAJkNGXFeTpFgZu5yemut+3Fc0PUQDHkrsHV9o=; b=cWb0KdD782Pf7q7tPoPGpqIC8SJZ2oQLXH2lu8gvX6Fh0Y+sbdGg2CrnxvbrFJJR8h uvDcfT/9wfAXkkVBwHIdsp2zJb1O7kOoAhIUaN4A9ezvuwhgkJjGhA38cIbm18c2kWWu WZx1oPbJfNXMnOw/o/OBTDtvMXVQVS3eYrsWQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099229; x=1715704029; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UxHRNPAJkNGXFeTpFgZu5yemut+3Fc0PUQDHkrsHV9o=; b=ptUkxqxSIPimb0nSYGwoh0tZYxgA609igMBhGs5VAO7TluzOyla6ag2SK1kyQR1n6o zP+CR/IAhk+JCECyqqUyfYQyiL70E9rIpzj9f92kFMsTKlpEBgdUCQSvcyChnC8skD/D gGJBDtX9+V3gO3pKmAIURteTw2uZZLeKxDe0r1tY/Vqut7zIbrcstfF/bUAnInTPQYfs NSA+R3xAgVmgzvGII9qWPa+WpFc0OF4JDc/fiG8FKWIGGfkWFnVYKQITyhhcGr2brpRv 9oIg0knG4AoK9OyXG3IwPi8w2MGPH/p+0hCBgR/NKZyKZ4SwaVrFfdeirgeo4SOoWZj/ 5giA== X-Forwarded-Encrypted: i=1; AJvYcCVskLqvO9ipRli1DQeysChV8eFPk/4FRbBItFku9iy78vtetgKrPNqm9/5etU24xUz0Dl7AJOf9xcYIABJTltSw6SDJIHirneSg1Uw8 X-Gm-Message-State: AOJu0YyfIULddGk7bWjRFSG+e0QbVkzjRB1bXsE3/OY/uRmkhXeoNg2z ZihOK0Ky2fO1CloCNuF+6Ee3o0vHh1y+I2eKipOrGm6I0B8HDcIOJpwf2fLbTLpovW940g9Sg0a +5g== X-Received: by 2002:a05:622a:181d:b0:437:a10c:3794 with SMTP id d75a77b69052e-43dbed1595fmr2832521cf.18.1715099229229; Tue, 07 May 2024 09:27:09 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id hf23-20020a05622a609700b0043d1fc9b7d9sm4160597qtb.48.2024.05.07.09.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:08 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v2 00/18] media: Fix the last set of coccinelle warnings Date: Tue, 07 May 2024 16:27:05 +0000 Message-Id: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> 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 X-B4-Tracking: v=1; b=H4sIAFlWOmYC/3WNQQ6CMBBFr0Jmbc20qYKuuIdh0ZQpTCLUTJVAS O9uZe/yveS/v0MiYUpwr3YQWjhxnAuYUwV+dPNAivvCYNBYvGCtfPSeVXjS6kTcpm6uwdo1pLE hKKuXUOD1KD66wiOnd5TtOFj0z/5vLVqhss4a7Y0OPV5bP0qc+DOdowzQ5Zy/W0KKRLEAAAA= 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 With this set we are done with all the cocci warning/errors. Signed-off-by: Ricardo Ribalda --- Changes in v2: - Fix build error in ppc for siano - Link to v1: https://lore.kernel.org/r/20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org --- Ricardo Ribalda (18): media: allegro: nal-hevc: Refactor nal_hevc_sub_layer_hrd_parameters media: xilinx: Refactor struct xvip_dma media: dvb-frontend/mxl5xx: Refactor struct MBIN_FILE_T media: dvb-frontend/mxl5xx: Use flex array for MBIN_SEGMENT_T media: pci: cx18: Use flex arrays for struct cx18_scb media: siano: Refactor struct sms_msg_data media: siano: Remove unused structures media: siano: Use flex arrays for sms_firmware media: venus: Remove unused structs media: venus: Use flex array for hfi_session_release_buffer_pkt media: venus: Refactor struct hfi_uncompressed_plane_info media: venus: Refactor struct hfi_session_get_property_pkt media: venus: Refactor struct hfi_uncompressed_format_supported media: venus: Refactor hfi_session_empty_buffer_uncompressed_plane0_pkt media: venus: Refactor hfi_session_empty_buffer_compressed_pkt media: venus: Refactor hfi_sys_get_property_pkt media: venus: Refactor hfi_session_fill_buffer_pkt media: venus: Refactor hfi_buffer_alloc_mode_supported drivers/media/common/siano/smscoreapi.c | 10 ++--- drivers/media/common/siano/smscoreapi.h | 18 +-------- drivers/media/common/siano/smsdvb-main.c | 4 +- drivers/media/common/siano/smsendian.c | 8 ++-- drivers/media/dvb-frontends/mxl5xx.c | 2 +- drivers/media/dvb-frontends/mxl5xx_defs.h | 4 +- drivers/media/pci/cx18/cx18-scb.h | 2 +- drivers/media/platform/allegro-dvt/allegro-core.c | 6 +-- drivers/media/platform/allegro-dvt/nal-hevc.c | 11 ++---- drivers/media/platform/allegro-dvt/nal-hevc.h | 6 +-- drivers/media/platform/qcom/venus/hfi_cmds.c | 16 ++++---- drivers/media/platform/qcom/venus/hfi_cmds.h | 46 +++++------------------ drivers/media/platform/qcom/venus/hfi_helper.h | 45 ++-------------------- drivers/media/platform/qcom/venus/hfi_parser.c | 2 +- drivers/media/platform/qcom/venus/hfi_venus.c | 2 +- drivers/media/platform/xilinx/xilinx-dma.c | 4 +- drivers/media/platform/xilinx/xilinx-dma.h | 2 +- 17 files changed, 53 insertions(+), 135 deletions(-) --- base-commit: e695668af8523b059127dfa8b261c76e7c9cde10 change-id: 20240507-cocci-flexarray-9a807a8e108e Best regards, -- Ricardo Ribalda