From patchwork Thu Jun 6 13:16:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13688474 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 7CA6A195808 for ; Thu, 6 Jun 2024 13:17:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679853; cv=none; b=QejeJfceqTHgiD4uOsmYa8cCDYZOiOno8QhKhhPM5hI3WnUnveopAA/bQUvHakKpRjpfLPGbN/AKcCcW/i96kcyTZPv+iN8878Gdde+EgyczBcPQosdX0Ye/RZTyA7VQBsMkGeDX11FQQ4DQlpyxouq3Bu7eLtw72h32/w257Uo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679853; c=relaxed/simple; bh=SAejXvaGIkk/FmNtQiseSS7vb8NuZINDurAfuZH6sKc=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ThMOkx1PyxGiSdqueOKK5ArgI9EGx93JqzTR66Zp8tL7Bdi+/Ajs8Q5pWHlHveCLLM+b08hDpDYNp2U01WRRbRJmJvbObJyfy5wxBVsXskRMhznpk5UOAE0Q0C3A2EEWdGlvVuFcJLfGebwGUchDDlFfUwhNRhsoVB6i1Ej/Km0= 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=OWBinAfU; arc=none smtp.client-ip=209.85.160.178 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="OWBinAfU" Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-43fb094da40so17369011cf.0 for ; Thu, 06 Jun 2024 06:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717679849; x=1718284649; 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=O3rA2wtN8OcyqgNSHm5jFE8HCUqDzvFj4F+hpoah2wQ=; b=OWBinAfUZnM3lGrnaQ4egD6DbUdqUhoeMMkcUHWA5efmjwrV1KgpWrA+qo7sRbXX5K 75VnAL/ZPTsHV02J8IUWuAnMMBYVm1ClpLkHcsvTflBis1gPcW9dKkE44tg2soDnKoJy kSDMTFYvRYS4bV4+i3a+kLqD7TOZCzdCFiBaU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717679849; x=1718284649; 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=O3rA2wtN8OcyqgNSHm5jFE8HCUqDzvFj4F+hpoah2wQ=; b=OCseVysTObRwkvlp+MNzYGlG8SylxO9VEkfEAUd85qhy93y6+YFX1mnzmAlyBciEg8 rsxi8LyXlk30zuriJ3OeTHVoxVDxnWC1wInJR1LFBj+PxqTRcDEGvpX8aOYlm4QAfwGo MMsCrHUxkJL2+yLbrKUuBGBkW6GnLGdxKJBSkopNE7BllAyfq1VM0FzoevoAMT53cvSD DTG7JRC5dXyQEC4LTRAiUwcFDGf+30xHvNwa0QGlhRpU7qZv6IhfiGEoJt2//H8/7F+U QGjASdaUUGa7F38J9BjWntjnlBAchOGGIjFnPW/p7EKtc1CT96FAX9tUDFFzvDe5fC4D 7+OA== X-Forwarded-Encrypted: i=1; AJvYcCX6FE7KND9VB3SkBm/ONDkfHqfqPCXL+kDgrxuCklKfmwz9HFlu6XZKF6iawkWj6WjJ3J+rAKIPlMl/AwEYTkd+0iyotro3SIe+ztPQSQ== X-Gm-Message-State: AOJu0YyCFE5LuDhRgYJHbD4N0AEO43WV2gz6BEu0MQKl6YZvbnpDiv2m n62uOg8NSY+eqi/S2k2c9Y0P/CSy2koenQ/5CwsxEy3bnx1TlrAEMb03FSMPWQ== X-Google-Smtp-Source: AGHT+IEQW5U6dbkoc06U16r3Rl91JLSt2iOy7tMg1PUb2EP+OFpp8lGChaJqjTKIQLv1wVZB5kLEXQ== X-Received: by 2002:a05:622a:1388:b0:440:2a5b:ed6 with SMTP id d75a77b69052e-440361fbc96mr45674931cf.5.1717679849384; Thu, 06 Jun 2024 06:17:29 -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-6b04f6607f5sm6118036d6.31.2024.06.06.06.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:17:29 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v4 00/11] media: Fix the last set of coccinelle warnings Date: Thu, 06 Jun 2024 13:16:34 +0000 Message-Id: <20240606-cocci-flexarray-v4-0-3379ee5eed28@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=H4sIALK2YWYC/4XOzQ6CMAzA8VcxOzvTlW9Pvofx0JQCS4SZoQRCe HcHJ2MwHv9N+mtn1Yu30qvzYVZeBttb14WIjwfFDXW1aFuGVggYQwKZZsdsdXWXkbynSReUQ0a 5GMhFha2Hl8qOm3i9hW5s/3R+2g4MZp3+tgajQccUo2E0VQnphRvvWvtqT87XauUG/ENgIDISw hS5gjTZIaIPAneIKBBcEhScREluvr9YluUNm/I8ijcBAAA= 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.12.4 With this set we are done with all the cocci warning/errors. Signed-off-by: Ricardo Ribalda --- 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 (11): media: dvb-frontend/mxl5xx: Refactor struct MBIN_FILE_T and MBIN_SEGMENT_T 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/dvb-frontends/mxl5xx_defs.h | 4 +-- 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 | 45 ++------------------------ drivers/media/platform/qcom/venus/hfi_parser.c | 2 +- 5 files changed, 16 insertions(+), 81 deletions(-) --- base-commit: 24147897507cd3a7d63745d1518a638bf4132238 change-id: 20240507-cocci-flexarray-9a807a8e108e Best regards,