From patchwork Tue Jun 18 13:37:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13702247 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 54BAB166303 for ; Tue, 18 Jun 2024 13:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718717872; cv=none; b=ip4r9fNh3dJJ1Llub7q95W0tTINBPfKtZRA8K98P5p/v1X+wWQnxBWKMpYgSX9MxhlGh3Kp9Tovcftow2GvSBBfSPxq/mVOYy93JFSTNtifqCYrKA9edyLw7eLB2hMdaOMMGe1WpPTDCxnBWHQp6/XbMwb/H6vrWUYdTOUJzibQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718717872; c=relaxed/simple; bh=j5csWzs5Y5FgVeCATjwZ5TPGuFEPTVbCMgWLgEyntJE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QaXPUlqQE1QjXq9BlY6+PCA9t2gc8Q8a6JaS5FCo/2FnQaLrxUIXbIrcS+HTZLDHTPN2lrkpOjyGyrimF+MAOHi4KUrK+9mNshrPdg3z9GMsqiN/55shw11lDGAiKkh1uNQWX/q+C2Y0CKK8w5AiZUDcQaDvM2ZgxgNjNkAqMx0= 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=a54VkgDI; arc=none smtp.client-ip=209.85.222.174 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="a54VkgDI" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7955ddc6516so387894285a.1 for ; Tue, 18 Jun 2024 06:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718717870; x=1719322670; 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=sEpVQCs2WHPPTvu4z+KjnxCNs4018NndKnoPIviIAFs=; b=a54VkgDIdcJLmnBtk3hWVmnaf6Ri+61erAq7EnEXo69vUuyTHWWj+DtcEzqObFdpHs JXmQkMzPKM/Gz6SINJUCqngT0+8xfi+M75cQYoGGM/fmjVreNoExzp/7IUQxXAwJB/iY ShczuByLTizbLWyU5fyoR+ShS+K35V+PcIC9Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718717870; x=1719322670; 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=sEpVQCs2WHPPTvu4z+KjnxCNs4018NndKnoPIviIAFs=; b=cBwO3bWfVh4QUSZ8Hxhjc+XFH1qTCGV0tWcJmM0kaXtfAEfnEhcLT1RC4gsddnrsmv p9saD7PFBI7i4qTphjeokijMuJo9PajtxDNrIYWnixC2oV1+S+kwSRLkG/8kNCuf243C kJ4hETST4z8ncQs6axf6G1cjE3sOO3GAxpY8NNjMasljLgNKWUG6RQ6Lyd+NPqOEyD2x HVSRfgKnrnMZMg9yK5U9rRKBfvEKIAx5Z6xzifarXkUdYm5vGlz7vxe8eWeMWlweeqYS uywORrWdwdfyllwoZvtp1WWiRjxBOBc0aBUdRFHqlN/Z1cs7MiqMu/GQR/YZGbjh2u2p B2gA== X-Forwarded-Encrypted: i=1; AJvYcCW8A17XST2WdEvmbniyLgBSYxysJ1m49JXo/6s0kZAuAXWHsyDFjY8QlSsNl9Tv1zT1smaPpdMXGTzjEryCkDmO+NfKencFZ6TmkV3VUw== X-Gm-Message-State: AOJu0YxxPgARHHU0pVqSW9VTC9xP4otbmfFlgKRISoOxNTRkQur+tLZU iYJUJ0cziHXDppIishyNd8GdcvLMf/PzRi1Ie/J1v/6QNtqBMsQopRfmv84lXQ== X-Google-Smtp-Source: AGHT+IH+ATJpISlghCZ51TrPxjKevVpBG/hMTEI2lIHtfsOfK8SDQ4iCfGcEmZ7/L9d2wqjt2jNSAg== X-Received: by 2002:a05:620a:2587:b0:792:9482:a9a7 with SMTP id af79cd13be357-798d243a9f1mr1406570885a.44.1718717870280; Tue, 18 Jun 2024 06:37:50 -0700 (PDT) Received: from denia.c.googlers.com (123.178.145.34.bc.googleusercontent.com. [34.145.178.123]) by smtp.gmail.com with ESMTPSA id af79cd13be357-798abc06e93sm521666385a.82.2024.06.18.06.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 06:37:49 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v5 00/10] media: Fix the last set of coccinelle warnings Date: Tue, 18 Jun 2024 13:37:43 +0000 Message-Id: <20240618-cocci-flexarray-v5-0-6a8294942f48@chromium.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKeNcWYC/4XOzW7CMAzA8VdBOS+T43w03Yn3QBws16WRBkHpq ECo777AZRMUcfxb8s++qlFKklF9ra6qyJTGlA81/MdK8UCHnejU1VYI6MBDozkzJ91/y5lKoYt uKUJDUQxEUXXrWKRP57u42dYe0viTy+V+YDK36WtrMhq0I4eG0fQdhDUPJe/Taf+Zy07duAnfE FiJhoQwIPcQ/AJh/xG4QNhKcEfQsrc+mqUv3B8RIDwTrhLWNq2IF+kwPhDzPP8Cy9CkWXoBAAA = To: Mauro Carvalho Chehab , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.13.0 With this set we are done with all the cocci warning/errors. Signed-off-by: Ricardo Ribalda --- Changes in v5: Thanks Vikash - Remove patches already merged - Fix typos and remove hfi_resource_ocmem_requirement - Link to v4: https://lore.kernel.org/r/20240606-cocci-flexarray-v4-0-3379ee5eed28@chromium.org Changes in v4: - Remove patches already merged - Combine dvb-frontend/mxl5xx patches and use flex on both (Thanks Hans) - Link to v3: https://lore.kernel.org/r/20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org Changes in v3: - Do not rename structure fields. (Thanks Bryan) - Link to v2: https://lore.kernel.org/r/20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org Changes in v2: - allegro: Replace hard coded 1 with a define. (Thanks Michael) - Link to v1: https://lore.kernel.org/r/20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org --- Ricardo Ribalda (10): 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/platform/qcom/venus/hfi_cmds.c | 8 ++-- drivers/media/platform/qcom/venus/hfi_cmds.h | 38 +++---------------- drivers/media/platform/qcom/venus/hfi_helper.h | 52 ++------------------------ drivers/media/platform/qcom/venus/hfi_parser.c | 2 +- 4 files changed, 14 insertions(+), 86 deletions(-) --- base-commit: 24147897507cd3a7d63745d1518a638bf4132238 change-id: 20240507-cocci-flexarray-9a807a8e108e Best regards,