From patchwork Wed Aug 14 11:39:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 819221 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (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 55FC013D881 for ; Wed, 14 Aug 2024 11:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723635569; cv=none; b=QHHwWePb7IQS2xZ78vRMzoywpmMHxWrq23/vK5OjSaCcMV3AOl/H2YVCKl+XVo3HyzKn9N8naXZt3mXpoIqfFLqY1+XTlmpurvEo2Fh30J4VzX+XiKa7VmB0BmqXll+o4R+jym1aIiZDWLoPNnMLf01RTnKDu/CykWy3X8uQLug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723635569; c=relaxed/simple; bh=Fn+BWVx+icfWGuBcquJ0dO16K9xhh0CkAqA0Pv8bYkA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=iqDqyAw9t5qjSvbxwWtzOD2vXeGcBavb7WU9SwCiKkpASXDxV4SxPrFnhNX2EH+ObY5INta0aIfwHUHF9piUVk7+kQVkh7MRniXeL4JxBrQsf70S+383f2j5EMgBOBZBYT6pQRog4Ur/IcbbWSSThJTtC3nQaFzEBk4VLIe0d/o= 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=AM0/RTe4; arc=none smtp.client-ip=209.85.219.50 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="AM0/RTe4" Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-6b78c3670d0so39017596d6.1 for ; Wed, 14 Aug 2024 04:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1723635567; x=1724240367; 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=crV4WcEqzX/y78Gc0a5APg4xrltVatIzUyaXTSeTgJk=; b=AM0/RTe40JT7Le1eh0j2X1U11UBGq7kVfawfjRWl2z905gVXrCX2GHcuu/sfqiG7dL RB7VKhjtKY7BQqtVNxtNTtoU58M6NdkjnUd8Zu7jpm4vspT1pitO3cwyqh1n+L993KgG 4k4iOyqvK+tbNAGaKg4IdOnGEAa1gJQBiS5zs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723635567; x=1724240367; 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=crV4WcEqzX/y78Gc0a5APg4xrltVatIzUyaXTSeTgJk=; b=pARY+02W8ABFNf+Sm++Vq8WBFrTnTKkD0xv1P+92hPFq1C+ypvm4HRlxlzvmekvGqf tPRf8TkVz6Mjk6a0WOHlfrWhOXqJN5XvykhIZ0X2N3q2gg7G54Xkyjj8dYo2ZnCRDjiz tRxGmK0z/9zLzyO8fGrKAAWt7QFhyYvXTR/hBSvykn0Qzh+Up+3D0XjSB1THFhE3kqSQ VpaHN+n8Dg+/CXpI/tS/cuj+rAB+FlrkVFbyGarC01DDLaJ1ROx2PuvTt5ezEbULI7Zt kKVh1Ye1tpzsdXqL4eXAAjgtBUweR6Cr15ENiq+94FmDuzNeXebcSFM502CT5aWYhqLJ byQg== X-Forwarded-Encrypted: i=1; AJvYcCUY2CPl41fjTjJ1Kf7kOij05+m0jAvbaQ4tjUaXv9vjzzHMEIFHIItAPbNgkmKF6yp8xdcrLAtHvfA69CMlIfLYk7rICn/Im2w41IxC2g== X-Gm-Message-State: AOJu0Ywz9MoqW+S6eQp5SKwFMnOLOHlh0jRvbVM53A8rUEbmunmCV190 9lDnRc1V9j8f6tdzGLkR/8H68fjn8ReWmIj0J3IpWrH8RrhvSHfETovLEabnBg== X-Google-Smtp-Source: AGHT+IGQx9KGk3bWnxAIeaEOEjBRP8USeRec4fbWI4sj4c36diyFOYNnmiGxNgNPSm4TjDiH8PPqLA== X-Received: by 2002:a05:6214:310a:b0:6bb:9e88:c101 with SMTP id 6a1803df08f44-6bf5d26b2b5mr23418286d6.50.1723635567257; Wed, 14 Aug 2024 04:39:27 -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 6a1803df08f44-6bd82ca0daasm42167916d6.68.2024.08.14.04.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 04:39:26 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v7 00/10] media: Fix the last set of coccinelle warnings Date: Wed, 14 Aug 2024 11:39:20 +0000 Message-Id: <20240814-cocci-flexarray-v7-0-8a1cc09ae6c4@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=H4sIAGmXvGYC/4XOzWoCMRDA8VeRnE2ZTL499T3EQ0gmbkCNZO2iy L57oxdL3dLjf2B+M3c2Uis0ss3qzhpNZSz11MOuVywO4bQnXlJvhoAKNFgea4yF5wNdQ2vhxn1 wYIMjAY5Y3zo3yuX6FLe73kMZL7Xdngcm8Zj+bU2CA1dBoYgocgLzGYdWj+Xr+FHbnj24Cf8hs BM2UECDMYPRC4T8QeACITsRUwAftdROLH2hXoQB806oTkhpPZEmSugWCPMinJDvhOlEIg8yJ5e 8+03M8/wNV4KJr70BAAA= To: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.13.0 With this patchset we are done with all the cocci warning/errors. To: Stanimir Varbanov To: Vikash Garodia To: Bryan O'Donoghue To: Mauro Carvalho Chehab Cc: Hans Verkuil Cc: linux-media@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ricardo Ribalda Changes in v7: - Invert other of tags. SoB is now the first for all the patches - Link to v6: https://lore.kernel.org/r/20240813-cocci-flexarray-v6-0-de903fd8d988@chromium.org Changes in v6: Thanks Bryan - Rebase - Instead of removing the unsused structures convert them to flex arrays - Link to v5: https://lore.kernel.org/r/20240618-cocci-flexarray-v5-0-6a8294942f48@chromium.org 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: 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 media: venus: Convert one-element-arrays to flex-arrays drivers/media/platform/qcom/venus/hfi_cmds.c | 8 ++++---- drivers/media/platform/qcom/venus/hfi_cmds.h | 18 +++++++++--------- drivers/media/platform/qcom/venus/hfi_helper.h | 20 ++++++++++---------- drivers/media/platform/qcom/venus/hfi_parser.c | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) --- base-commit: c80bfa4f9e0ebfce6ac909488d412347acbcb4f9 change-id: 20240507-cocci-flexarray-9a807a8e108e Best regards,