From patchwork Tue May 7 13:18:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13657031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47DC4C25B4F for ; Tue, 7 May 2024 13:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1B1p4gof8WESKHtBhwVsJmfAqh1RhYN+Slb9ZZxsrk8=; b=RPG7LrKfQX2W/9 FEB1PabHKqhIFMTuvb2zxxjjfIUpNxSFZnSQ6/3F2+b6DUw7c4KxtqO3ybOYiMKL2eewjAyk/ZcXC Itbhl9AKO0oYZxdxuIRThl/BQH80ie0mc7iQ+OzgTH1I3KTnfo4XSCy0OZBI0jUbN7sgjrEByLxeE AC5VHN0UQlcO3h4MkTfHM1jKjxulCy9kmZZgqRZOs2d/hS42f2zQuzGGLqjDl8FOueMseEEFcyypr kHGH1XVlPWuxQD1Zn423h//bfYhcTvbMySgH5FzScAbxeQElt33JTD9evlMgTyXlFTyZy+fBITjvp dDtb0pmrHRApD9cr7i6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4KjO-0000000BAi3-3cP5; Tue, 07 May 2024 13:19:42 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4KiI-0000000B9hZ-2glW for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 13:18:39 +0000 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-78f04924a96so273395085a.0 for ; Tue, 07 May 2024 06:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087910; x=1715692710; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=8f9hc3zYS1+xO9Qa+U18bGlg+mDWX5tgKVnZHr3X7Vw=; b=VktfCCCdGT0gIx5Vm72iD//es2NiMxFkERM+B1LNhcMQyeWABuCbXmKtxPC0m8HWWb 1mMSYvgMKXsXf1Kk7DEq02HPV6RZK+wElrIyybQ5/BzBVm4dtwf59VgKJ6C/PLDaAen4 XNaZkvoqQIY00kkPmTHqP/0m6O1fm7GtdG9bU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087910; x=1715692710; 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=8f9hc3zYS1+xO9Qa+U18bGlg+mDWX5tgKVnZHr3X7Vw=; b=RlZdbfwBseqrVsmGWb7gDiUZKJ4m7fcRsX7wugxU3765ywdWOw0pC18YSPlDC7BmRU X7ZgkFQ3lf7hFZFiBLoAcjAi/MObx7HaUXu3EhWOA3AysW5OeEwh1aLOIfPM3JTVUbTv PQVm+Qy+bG68P5m7aLS0FkxDD15guuTWr468VOhw8pEhK0BBMxW4bNj4sVKGsusWcmAG nsMG1KjlE1aesD5hIhVVpv4mfaoGpkKxFs1ArrHXy+fLKBywUlZkY/MoLYgcpPflm/E+ 4oSN84xvbnhVrGNnuz36mkHczF3870XNTtNt9W7KVbADKsUBeEZwNTe/mHRumX5UvqOm 7tJA== X-Forwarded-Encrypted: i=1; AJvYcCWBmYWFmuiC1zmhI8QQa5h0WpPNpGrICx00QFFmP3Ty2GJ6jrRy3nCOhKdDg1wYYbGRrAcmgduY9BE/H4h6xlkC/mFQUZaVzTfptgBQDiBb+R8H5P8= X-Gm-Message-State: AOJu0YwEVCFqbNYgzAe9JHN7DDx8Vxq5BysFPO+mjmelYnsdoC/keSpU XCN+8jCaKnRPQph3yNQ5mHFuo/ccUn1ws0/gs0prPhqMta2wv/CsXPmZ4/IqBw== X-Google-Smtp-Source: AGHT+IEWyU2AaY4LDvGiS+okmI+kA1r/WIVU3XwN1sQPnZg87ruugUrDP1DKKW0TPSio4xfKwE/sTA== X-Received: by 2002:ad4:5b8d:0:b0:6a0:c8ac:de5 with SMTP id 13-20020ad45b8d000000b006a0c8ac0de5mr16242277qvp.32.1715087909722; Tue, 07 May 2024 06:18:29 -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 t15-20020a05621405cf00b006a0d19c3139sm4655105qvz.118.2024.05.07.06.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:29 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH 00/18] media: Fix the last set of coccinelle warnings Date: Tue, 07 May 2024 13:18:26 +0000 Message-Id: <20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACIqOmYC/x3MMQqAMAxA0atIZgupKFavIg6hphoQlRSkUry7x fEN/2eIrMIRxiqD8i1RzqPA1hX4jY6VjSzF0GDTYoe98af3YsLOiVTpMQM57MmxRcdQqks5SPq P0/y+H5EtvOVhAAAA 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_061834_970199_B3EBCB6A X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With this set we are done with all the cocci warning/errors. Signed-off-by: Ricardo Ribalda --- 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/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 +- 16 files changed, 48 insertions(+), 132 deletions(-) --- base-commit: e695668af8523b059127dfa8b261c76e7c9cde10 change-id: 20240507-cocci-flexarray-9a807a8e108e Best regards,