Message ID | 20240507-cocci-flexarray-v1-18-4a421c21fd06@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 28340C25B4F for <linux-arm-kernel@archiver.kernel.org>; Tue, 7 May 2024 13:21:30 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y+y2ZDUvltj1ZCT1ojJHtresOj6mldQyxz3PcjlJeCY=; b=GEZvEiLLmBkfyH McHmcPF3hbOlWRcCwxPMRbe0PsnWMCkXzzVvYlTP5vW1ijS7Rp2CCxOIt+9My/RVTOfDWprm5sBQ8 aEyNN9mAWc6DnBdZHMiwjTnv2f7nfRd+zCecFOhw225sSTD/KE/YlK+ad5UT+XMoHxuHQrAMi3s2V zsUNdlW4K36pda0OQnGhIoE7OxogYz51+JW3+sFrGXocg1lHlSbXBtNkol8bdHJTxPmcoQTNFrITm DTprAH+MnDxHe+lYBGNwYfohNbrm3+BCHFJ5TXxOXZIqXj4MW/SVcRfjY32kerid9x9QWpErRKQTo J7W3eV67drAogmkoqtfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Kkr-0000000BBjg-0veR; Tue, 07 May 2024 13:21:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Kid-0000000BA3F-1ilV for linux-arm-kernel@bombadil.infradead.org; Tue, 07 May 2024 13:18:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:In-Reply-To:References:Message-Id :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=24yjDTHuOCF+C8SbX9O7bVVIA87jnk99ezK2b/3Gma4=; b=pEH2YBGdjYTMw8l4Bf9ZeXuryx 8Df4YD6j8S67vOBqXs/40rrk+eP+yoWCt2x0ULr4WnZOu93C95oqyOkNtnbRsEaV62+5S+2Pg/XZ0 6FK/xEltu6US8myN8ftNEINRAKO2DmEPWqtksmtOi3sUX49D5IVQrpnysWk1sofm6eeYANGWjmtAf tA3OTrigLd3Sn/2PbjQRWVKkmqdORzyWFbpt8WYY9lsDssIEm+6dIQkftw+d3Zhv53EjZA8G3g0js wsU3K0wsN/8WRZnlD5UfPXZvPv8CmHgBZvp7wv3r2ZkBvFSZIsVdetBKzYFMNSr7RERixn4SvgbHc VRzv94SQ==; Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4KiX-0000000DIVV-42Jc for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 13:18:54 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-6a073f10e8eso12916616d6.2 for <linux-arm-kernel@lists.infradead.org>; Tue, 07 May 2024 06:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087926; x=1715692726; darn=lists.infradead.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=24yjDTHuOCF+C8SbX9O7bVVIA87jnk99ezK2b/3Gma4=; b=NwJPY1RdAnqzfkavSZk7I1uh1YCKOtbE+ZzGvxacO1SOW/7GKQbZe7E8+o65AOCHFF cNkJ4Q3OQakZ+YIGt3vSxHoaBokTVj8J/ymcg3D5v7qOzJdwr9ZnbwrbwWKFPLvC5jEw qj/yxADWC+ewwDsjkr7UmLB/N/LMxyWfXoYw8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087926; x=1715692726; 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=24yjDTHuOCF+C8SbX9O7bVVIA87jnk99ezK2b/3Gma4=; b=FDVP1iqYcwM4sj0Btbjr3MmqRq3FddETxwFH3mt31FuFmOpB1OEXst9Oq637CpY84W enjTbq5+Qj3op4CVI+RMN3ISop02SS4PVPRT9shEYs4XQ4eh0cKHUUgwk/P58bvh3SFD 3wwy5ZyPDR1o50Zu9eR1D8/Ln8cLoPHTmBhSzZZqp7aMX8+1YQGuFCkbzE8xKFavicde /p83+kpYGtItkynCR8Nk0/71U/Tl29lyfRy1lDc5Pbg3Ybrnx4xmuQBlFJI6zf1/wCZw YerKCYIpIZetBmt5YF5dyRDcDsyAW2JvC5hm1yw7ANWsoSUIaLsfhTB3zmYt0NcQU0DW vHbA== X-Forwarded-Encrypted: i=1; AJvYcCWAgHmQkidp4qseewXTJmc4qVZl0cm+wyxDA0AyVEx6g2N6jMlpOM1Y4eYyVdGvzmiXTGrjnRzxlC4Ev1ERYH5+9hSS/ngrIYgbsxgJceoh2fjEjcI= X-Gm-Message-State: AOJu0Yz3RmtgZe1iVnfu7XTEIK5L1FLAeOe9YiJ5APfYk/Ej49S8eddC 3LTpNLMfJhT0A/fKHwK0GGXw18Iq0dTTJ+Z0bFiUDQqPY70tUHwuZyhHFUKyPg== X-Google-Smtp-Source: AGHT+IE6WEUHWsRpAsJ5BK3gENbuRTlCVd8egHvgiFgdym5FLM6gUWkr0leru0COMDpv6wPoQvFI8w== X-Received: by 2002:a05:6214:d6a:b0:6a0:c903:7243 with SMTP id 10-20020a0562140d6a00b006a0c9037243mr17142784qvs.55.1715087926638; Tue, 07 May 2024 06:18:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:46 -0700 (PDT) From: Ricardo Ribalda <ribalda@chromium.org> Date: Tue, 07 May 2024 13:18:44 +0000 Subject: [PATCH 18/18] media: venus: Refactor hfi_buffer_alloc_mode_supported MIME-Version: 1.0 Message-Id: <20240507-cocci-flexarray-v1-18-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 <m.tretter@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Michal Simek <michal.simek@amd.com>, Andy Walls <awalls@md.metrocast.net>, Stanimir Varbanov <stanimir.k.varbanov@gmail.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> 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 <hverkuil-cisco@xs4all.nl>, Ricardo Ribalda <ribalda@chromium.org> X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_141850_073605_036489A8 X-CRM114-Status: GOOD ( 12.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: Fix the last set of coccinelle warnings
|
expand
|
diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index dee439ea4d2e..9545c964a428 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -1230,7 +1230,7 @@ struct hfi_interlace_format_supported { struct hfi_buffer_alloc_mode_supported { u32 buffer_type; u32 num_entries; - u32 data[1]; + u32 data[]; }; struct hfi_metadata_pass_through {
Replace the old style single element array at the end of the struct with a flex array. The code does not allocate this structure, so the size change should not be a problem. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_helper.h:1233: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 <ribalda@chromium.org> --- drivers/media/platform/qcom/venus/hfi_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)