Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp517014lqh; Tue, 7 May 2024 06:27:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzgxPgqCwtOd75bd5a9Xcy8/5i6UA3vEwaXSTwvBpwLQwAmDEFQjGCL4q4HJ9zsKqZkR5efwTZXKlV9o8GxzrbiO52KtFVPr99GZoAQw== X-Google-Smtp-Source: AGHT+IEdeZxzUHTIG7og6jVeBNYLLSJaE9/8CGMNNpsyoKPgZybT+6+dgv1Zx74LLsm+Aie4J1Bu X-Received: by 2002:a05:620a:3bc1:b0:790:797d:2c4a with SMTP id yf1-20020a05620a3bc100b00790797d2c4amr11675297qkn.14.1715088436843; Tue, 07 May 2024 06:27:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715088436; cv=pass; d=google.com; s=arc-20160816; b=wHwMGfOohjUQDwRExuVMy1dscmCDBtHgpZC9IpfSwiYQROfhhKh/TceJI5b4znx0MW urc9vUySa2GwtaE1o36PPlPu3w4nHe5yr9+5TKF4ndEkk5M39jgzOq5TQ0N8q9b98M8j 8BldiX5Oy/+k5pscITD9GnPjTj+tJxIbx44itZCOgyBwm8x+rld/A2aL/zNe7bLHXpYl jhGDHqMRwOqiIYDNoJ2KMDcYLI7Et9khCjboyOlHA8ZBrD5FvC8uYB6y/u0OOpfVo8Ne t9fFCHwUa1l/oCahrPdeMPOM1cDHLKdHr0ArWWXAK8UzFzza/NEE2W9mJwnpHNHcICnt mpNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=kaj6FcAMdKWO/HBrdvIpPTLyis7BoUMkhPcms6B+rAo=; fh=ZZ9It+8nTYB+unpaXjE2cXNpVnHjltlQrwK1/XJgAAM=; b=iyJbbocR1dG+AMXj0MUjowsfyA9G3Chzf4nUasdFkqHC+T1LbEKkSmi6ez9fBrEFpK ZQbd8eeFTTB75g30w/yav2rKYyblxuJYmhNvosuzFOpaQgVWmJM7PKYD7Rb93pP0mDnt 0Lu5n+xXrhe1MK9NUdtv1FBdJEE8200MxiWF7NEoEtYKEDJObtTxB00rzL+ssDZn00H4 aCA3wdVNACM0WZmZqgYsPj0/Ycv0muAuwRO0NnjBLs75vdEm2WMfwasYPsuV5/Mj18xp DMOjG4cYWbsZ878u4KsWo55rQoVqgnx0Edjz9JoFh83wcqvi1DblHOWD745bbQLgCaW0 OECA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c+Tqbuas; 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-171401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vu21-20020a05620a561500b00792a73f9c4csi1737956qkn.469.2024.05.07.06.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c+Tqbuas; 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-171401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171401-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EE57B1C23C82 for ; Tue, 7 May 2024 13:26:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C1D216EC06; Tue, 7 May 2024 13:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="c+Tqbuas" Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (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 864DA168B06 for ; Tue, 7 May 2024 13:18:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087921; cv=none; b=qmZX3fVScVKCwxayN+172yY5LaaUhQPoHM1w+ymy0nvagaC1lDUYAjedXCGVl4v5vf1rnjNugJNremRfPGCzlGzASjsBWrOKV9mT9GHTHiqlvWt5E4MhD/wF5u4YLTdCqHz7Kvf47kdH24yiHRcAZWrE5YuIbJPbrh08BUBFDc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087921; c=relaxed/simple; bh=wXllf/Q1F0asZS1sTnO9eU/dGVrc8mBHMAVhM0rUTv8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cNKKpwmdqBy7RTlRMrUs765yK2MQJwmLUnunAAAIWVyAI958O7XvH76/FJBeywassdVDbpLtPKx76VbtU1InkDKTiPq81FHGjxcbbg0IFXyGqz5nhnEK3go3+hX5v7mfqLz3MbaJk/pkHtBz/S7OETcCOTwfjj+8XCRbnCyrWAU= 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=c+Tqbuas; arc=none smtp.client-ip=209.85.219.49 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-f49.google.com with SMTP id 6a1803df08f44-69b44071a07so33063086d6.3 for ; Tue, 07 May 2024 06:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087918; x=1715692718; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kaj6FcAMdKWO/HBrdvIpPTLyis7BoUMkhPcms6B+rAo=; b=c+Tqbuasm1vB3Kq9xl8HU2XfnueGFIeVOd8xESHGvQgPVG4rJRFgya6pUXWjuNlTaU UDFV4PnKfp5rcJTqvIUYeiutXrpYRl5XZE5FmBnwBFWsJbgc1ZSQaj58DWvKWoM95PAn vhV3SCgsgiZqaC0GNEpy2XicKPlnvyk2mQXjQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087918; x=1715692718; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kaj6FcAMdKWO/HBrdvIpPTLyis7BoUMkhPcms6B+rAo=; b=P51L2DlCtOKFiLKLLRmbkNICOk23EYuyn9YLy+MPanCSdIh+64f5kBlzAndF5Tto8I fFwmWGDpagZQmGjno5VUAb6Wk0yyWhEqO5KAPanXKS/8x1imyxnGNkTjqEE3YMuT6gjb sqs56jP9vgiZ0FBAAh1+bVdwqxPVspkJEM4pWQmXhGchkMBPWuBQXNpvJRA8QsZQ81UO LWZeElQJjlMrjZZVv5b5ffuLDGoN24RRKwV4/SrZiaYqaYvpb0xfurjBfKWJxxP6kKug MrKPons5SffWRyIQULoZ8oCsP51Npzg1sZApAxdStCx6rxNtTVW055HYeA36gYLcX0bv OXfg== X-Forwarded-Encrypted: i=1; AJvYcCXdetWr5y4SBgCAyDcWFeymy8obyigxhvf/0ul1PAtn694X3gHoSRxLYI9PKFSeafvc5e7eeyYgSsk/MdCdv/Nve/lWI8S3R7wLIVNp X-Gm-Message-State: AOJu0YwTKLSRa5wzOuKP2ja19zqON3i7YQT+uEfNl0dUXLcVDCeRD+Ld XW7d8knPYvk9DOq1E7r/qlS4ORDsUFdO+o4rp7hRF03aWNJCJGW1PvpLz4uEeWrIHbAfuVOTv7s kxA== X-Received: by 2002:a05:6214:e69:b0:6a0:cd65:5996 with SMTP id jz9-20020a0562140e6900b006a0cd655996mr15329957qvb.8.1715087918540; Tue, 07 May 2024 06:18:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:37 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:35 +0000 Subject: [PATCH 09/18] media: venus: Remove unused structs 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 Message-Id: <20240507-cocci-flexarray-v1-9-4a421c21fd06@chromium.org> References: <20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org> In-Reply-To: <20240507-cocci-flexarray-v1-0-4a421c21fd06@chromium.org> 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 This structures are not used, and have a single element array at the end of them. Remove them. This fix the following cocci warnings: drivers/media/platform/qcom/venus/hfi_helper.h:764:5-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1041:5-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1088:39-51: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1093:5-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1144:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1239:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_helper.h:1272:4-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_cmds.h:85:5-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_cmds.h:180:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) drivers/media/platform/qcom/venus/hfi_cmds.h:189:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) Signed-off-by: Ricardo Ribalda --- drivers/media/platform/qcom/venus/hfi_cmds.h | 26 ----------------- drivers/media/platform/qcom/venus/hfi_helper.h | 39 -------------------------- 2 files changed, 65 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.h b/drivers/media/platform/qcom/venus/hfi_cmds.h index 20acd412ee7b..41f765eac4d9 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.h +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h @@ -77,14 +77,6 @@ struct hfi_sys_get_property_pkt { u32 data[1]; }; -struct hfi_sys_set_buffers_pkt { - struct hfi_pkt_hdr hdr; - u32 buffer_type; - u32 buffer_size; - u32 num_buffers; - u32 buffer_addr[1]; -}; - struct hfi_sys_ping_pkt { struct hfi_pkt_hdr hdr; u32 client_data; @@ -171,24 +163,6 @@ struct hfi_session_empty_buffer_uncompressed_plane0_pkt { u32 data[1]; }; -struct hfi_session_empty_buffer_uncompressed_plane1_pkt { - u32 flags; - u32 alloc_len; - u32 filled_len; - u32 offset; - u32 packet_buffer2; - u32 data[1]; -}; - -struct hfi_session_empty_buffer_uncompressed_plane2_pkt { - u32 flags; - u32 alloc_len; - u32 filled_len; - u32 offset; - u32 packet_buffer3; - u32 data[1]; -}; - struct hfi_session_fill_buffer_pkt { struct hfi_session_hdr_pkt shdr; u32 stream_id; diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index e4c05d62cfc7..7c0edef263ae 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -759,11 +759,6 @@ struct hfi_multi_stream_3x { u32 enable; }; -struct hfi_multi_view_format { - u32 views; - u32 view_order[1]; -}; - #define HFI_MULTI_SLICE_OFF 0x1 #define HFI_MULTI_SLICE_BY_MB_COUNT 0x2 #define HFI_MULTI_SLICE_BY_BYTE_COUNT 0x3 @@ -1036,11 +1031,6 @@ struct hfi_codec_supported { u32 enc_codecs; }; -struct hfi_properties_supported { - u32 num_properties; - u32 properties[1]; -}; - struct hfi_max_sessions_supported { u32 max_sessions; }; @@ -1083,16 +1073,6 @@ struct hfi_resource_ocmem_requirement { u32 size; }; -struct hfi_resource_ocmem_requirement_info { - u32 num_entries; - struct hfi_resource_ocmem_requirement requirements[1]; -}; - -struct hfi_property_sys_image_version_info_type { - u32 string_size; - u8 str_image_version[1]; -}; - struct hfi_codec_mask_supported { u32 codecs; u32 video_domains; @@ -1135,15 +1115,6 @@ struct hfi_index_extradata_config { u32 index_extra_data_id; }; -struct hfi_extradata_header { - u32 size; - u32 version; - u32 port_index; - u32 type; - u32 data_size; - u8 data[1]; -}; - struct hfi_batch_info { u32 input_batch_count; u32 output_batch_count; @@ -1234,11 +1205,6 @@ static inline void hfi_bufreq_set_count_min_host(struct hfi_buffer_requirements req->count_min = val; }; -struct hfi_data_payload { - u32 size; - u8 data[1]; -}; - struct hfi_enable_picture { u32 picture_type; }; @@ -1267,11 +1233,6 @@ struct hfi_buffer_alloc_mode_supported { u32 data[1]; }; -struct hfi_mb_error_map { - u32 error_map_size; - u8 error_map[1]; -}; - struct hfi_metadata_pass_through { int enable; u32 size; -- 2.45.0.rc1.225.g2a3ae87e7f-goog