Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp518174lqh; Tue, 7 May 2024 06:29:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVw5IH0ZKXV7NGTnsdUD0AwLzYAHagsI8ORX8RogHDWmkw3HqVESXjXW6Y3gPRKR6lo36Jrosy3jl9sPuZPKApaZpPn6pxwtxS/zQh1/Q== X-Google-Smtp-Source: AGHT+IH4/TT8C9Bhrb96P+4U8W+gp7rs5bseUEmrYY/uL65B6sm95PFOP6o1twLgEqiVtqucm9vz X-Received: by 2002:a17:90a:dc04:b0:2b2:468c:9fdd with SMTP id i4-20020a17090adc0400b002b2468c9fddmr10572609pjv.8.1715088554226; Tue, 07 May 2024 06:29:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715088554; cv=pass; d=google.com; s=arc-20160816; b=fqiU85uBk1zdqRha7lDPxQV3p/wHjP/P0ahBwBqrYuSTVOiwetG/ssFyb7GmZOO6jz 4qpt1fYrgz6Yh3ECkXG4lQgU658Oh2mxgbDZUgRsT9HuXCprKJelOBRMpQNDT2nOMhi2 eBgm2yu7b94t9WpaF5m4L5aNGpXB4vR9pP9VWT5WBSSEF7Wm74G2yG9hnpMAqRilXU0G g4mcqZ8fwKwiZZcSJeHD0rG9QWz/YzjFC9M92tsipmSKyskU22QYTMQFzig8cThCNdlI jQ7HASGaLx2Rrat0bYj07sdzV724tenKVXwKGKKAAaYrbbfK/IXtrvnxhTTx9HyMs3i/ ByVA== 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=8f9hc3zYS1+xO9Qa+U18bGlg+mDWX5tgKVnZHr3X7Vw=; fh=DSRycin8TK/8fyBq6tNGDVRvhLSNwGUbxn2YTwwOro0=; b=Ifd6hczMsDg6eAAdW35jnRtFssG5bm1y/rDlfc2cp6Q8Bh4YE96BgqchEBZN5FPlPU /rEuYk6K5Nwhmy4VcQOlQ+p3MC+vsczTqxTxi8f8ACj+ATwSq5qxprA2pfS4YxNSBPd5 DjfC2tTZ3pO96aVIegnRCr+ppj5ud4l7Hv5WNl2lXV3sL8l8HrqHOb5VcHriYS0qyRlT H6Ss15vze5swKPbi0jbJyvCrTy6u05w8HSiVhQgGCyS7ESY9ICIMIZY7i7YK7Ua3Iuca yBCOMEOISTcDkefsXdwkEK8ppa4dSzfVkaEZZ+B4+nAIGr66Sz0y2hh4hHmBp/Y3axpt Lv5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZRX3fQkb; 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-171390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t4-20020a17090ad50400b002a25f744524si9629455pju.185.2024.05.07.06.29.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:29:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZRX3fQkb; 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-171390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171390-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 790FB284D4C for ; Tue, 7 May 2024 13:23:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C57AF16C690; Tue, 7 May 2024 13:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZRX3fQkb" Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (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 B56F9168B08 for ; Tue, 7 May 2024 13:18:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087913; cv=none; b=JGPO6XG9Mqx0yP7OCpMGmgf5rlG5IFWNo3BVziBCHOWtbwlvbVZtTGa4cCHTXEOVAgyCZKFPrN7RWmq3ySPtf03bw4cVS+inta3yVPzdijh7R0hYc4rPLUYwnm/KR7IMZU8bV9AewLr1Jj4q3dMuBjMgPDw6ujI8WzdvVvtMTL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087913; c=relaxed/simple; bh=bAi2ZdpBL5YU/Wxi/XteXVj/icGKTIMcJ8j0y8QoFIQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=bcF22GllQbbgyPFqaxiA+gO3Lp4wD7jt9A5Lv1OL/im6u9DK0nMkTn/49QcSbIg8Q/aleVl7vux+iXINelewaCWrV/LUhRqXs4cSrAIni0vDA08rPNITkBzDRwUL7Bapal+PxiSIW92k49pUpjMDrOSwJQHGgJuF6/hDxl3v6es= 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=ZRX3fQkb; arc=none smtp.client-ip=209.85.219.48 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-qv1-f48.google.com with SMTP id 6a1803df08f44-6a0d1032362so10593666d6.3 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=1715087909; x=1715692709; 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=8f9hc3zYS1+xO9Qa+U18bGlg+mDWX5tgKVnZHr3X7Vw=; b=ZRX3fQkbILhVfArWs1t8tD5o2EDIYKsjfkp6aXyd4PRWnf+MYlIP4LvZgzIpNz9ppB BgkXuGqoyfeyH8V/pCj63430wJ6DfP/XSGvROpioq+osGTTRXtMcHEYTVmww5MHeG+p/ PMDCMlI6AB4vDRweg5NzuG/llx6IuK9Pagz1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087909; x=1715692709; 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=GuyM96TjiC3ekKI2hXvazF4US6NVvmefqQVFn23BQBeGVP2ZPM5dd/X2wT7NbLBpkt FqYZRUQoPEkJ4r0MuDBaKnmwWFfhCcjyIGvGTUUADpeatV1n/v06W08RROS79YBH/F1Z rFCH4POzKYSJ4ebLmDGfM70pWRtqraQJ80Fm+h9Q9ZqLi9yZdUhZop4n/M1ow16OcMOm T5Bx4mxKfODFBM6UfU9j46C20I+WATiIPViwl9sF/P/AwbqP3DQ4fdb1H0O29DkO+y/x S1UqSzQdipeKPtH8wAL2winaqZ4oUK3N6P/QjHiDm+0AsWYfEN46Agh0cCKfUNFo1Xoi AwdQ== X-Forwarded-Encrypted: i=1; AJvYcCVyLROpXem3YABGvnG+/ziVK9I1sKik+0pJ/BE2m5LxSG5wXJJtA+4k3ZFochMExHViphWPzGttMm7BiTjVhrBiDAewIFj5GAjBNqlc X-Gm-Message-State: AOJu0Yzu1MKAHxq74H+zuSb403dtyegNVQzNPIQz0ShQ7VMZz3xb/Ij1 bTIfkZkK+yKKnZtemTdlNSs6obsBwD5UdH9VWHqodR2mQos5QYhFR6bcEh366X4deJBNjr89npW dOw== 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> 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=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 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, -- Ricardo Ribalda