Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp45668rbz; Tue, 7 May 2024 10:05:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvuc8eHgN+iNxNe4DY2SF40PQriQmFBkp8zLPPgymJF8gPyuyT2JHr54++b6aelFq6ECWSZeKPLI50M0aJtK3e6dvDClmeuye1ej/SyA== X-Google-Smtp-Source: AGHT+IFuw9ryYFhGxo7fbV4A3jsbWjRkWyVqMnKakVKhoKDXo4nqfgFvUbgqXyIuNnGFTZUAmdBo X-Received: by 2002:a17:902:d511:b0:1e8:37ea:d10 with SMTP id d9443c01a7336-1eeb0bad4c9mr2135795ad.56.1715101514889; Tue, 07 May 2024 10:05:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715101514; cv=pass; d=google.com; s=arc-20160816; b=g0/7jk2Ei7tzjdSj2zgtpUS1WuhgKYjdjoEaUwyKnnm8aan8uw3YJ0MKqAxka34yld SO3gm+6xlJ0ixnw67MiuEj6R9zaZ9DZL3JJE4wqdNoUG4DEzbe0FCI/EfD+kJS7ZWcim LFTaGi5Fqcb1jUfu9OTAlyCzCCXpU8XVKhsHkPxpzpKChocGjMocs7W1uyhyJpOh607S YLOs3yk5B5GZGM8Nw0sTbXecEwEfRdsoMKhTsFta/G5A7kbwGPgUUQ5EaeWZVdHEFFuo v2Eo/LcDayceEQQvxDJS5LGOt9nOz2RKumm0YUkgf6hP6pgyrNb1L0iQ9KQp9aaZuIB2 7aig== 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=7NkWJe8JlogUB1KQ6tzpQTV71nluZthbO4z82dt8idE=; fh=8kva0WLfFnpfT7XPWmKh7ZCc9F9nE78osHLgPFnxBaA=; b=MUpbttQBLeJ5sA3POl/DXBPiYfZZYMGQhFEkrKPeKd2IfWoXpGIyCzEMvl1YrPF4P2 o40v5NwCzqVxpj4TG/k0oCnAAcKTGBHsSieg81LFgWZiCKgEsvDLABCW5FcM9B8S5wdE irJ1WdtBr+56WVMSlajwIXIxtqjNGlMTqu6HCmCq5QZEGrGjtK8QhO4DqzxAZIuk12Tg me83I0jZ9p49BzSd1/ruB1LCRi6rLiVmsbM77i8NsgcsY819zYvAoo6+xz0Qw09CNCDp NV7jTvQJbaS3TuAXdl2WLbz4kNxaIAh1GPbV1qMniZ4ghQ+5jLGN37fuZG/FZahnxNUe C1AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ih1Uydkd; 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-171811-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y8-20020a655288000000b005e857e42aa7si11123669pgp.55.2024.05.07.10.05.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 10:05:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171811-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ih1Uydkd; 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-171811-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171811-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 37BE6B2965E for ; Tue, 7 May 2024 16:31:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D27316F8F6; Tue, 7 May 2024 16:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Ih1Uydkd" Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 2A95A16F26D for ; Tue, 7 May 2024 16:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099243; cv=none; b=qNmp6PFUpDTw+hepcnVp9teGh+AKv5bMc0kNJcT5w4rrFZXvJGqzqDOLQtRfMABH1wTJJzboVYOV2T1U/+tuSXv79iMIcIok7gESMredixqpX+pOls9ba6wwBDp2SWnC3Y/YYx4Y2HDr9ny5DirQF1QIg77utzeK6E52ufkj3UY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099243; c=relaxed/simple; bh=yspSc0vXW80bDStJJU6njW8ROGAmYm1HyjTlHpef53U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kFQ1fBA1LFgtpo27wOHukFHk3T3psA97623TPvXKitRxu/FqE8oDmLTQqoMBKUJGhAVFpCQztnafaBIrCi1yJmyCCJE0tWThha1Fa/E3D3mL5f41R7IzmcWnOS7Emf4ZNGeZ/yR9df7TBQUf0Rf0QCTSgKdKrNK/GhUlY1b1pIM= 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=Ih1Uydkd; arc=none smtp.client-ip=209.85.160.176 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-qt1-f176.google.com with SMTP id d75a77b69052e-43d3a33d41dso19517501cf.1 for ; Tue, 07 May 2024 09:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099241; x=1715704041; 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=7NkWJe8JlogUB1KQ6tzpQTV71nluZthbO4z82dt8idE=; b=Ih1UydkdSYL7D6Y4C6DxytlIs1qR81AfUGZZba3QfeLyiuXoWX1OriB+ok/TmrGPBD uAedXrg3bP3EnX7vIEybdyzlW8IeiUfUX6bE82uhK9Rab+xdcKrxxrb2Czdn41bLZ+gR gwlvrUJeUkXf6+lDwp+4UtgqeLc5RmM/aSX78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099241; x=1715704041; 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=7NkWJe8JlogUB1KQ6tzpQTV71nluZthbO4z82dt8idE=; b=e6HTl0ymQivTdqCmP3hEVXNnzxB5zedbI6Y6hLv3qKq3gshV/KXTam0dSK+otI4QnP XDMMc16IdMVy5IV3TYv4RXGFEFgMA9Um2K39lvdNd87gGl3ujJ9vbhIZv3g18vbVZlcm EitqkUoXpW26yjfTSdMSS0Fv8TFpsjHrCDqTT3ozKe6O5CkXwNGE24g1PAJUqBzIkvRR hJIUjTL298nirNWsG/ryJ4SolXTceRY6G+ooGWslYT1O5fDpaTKRZ6Xtt2KUexpChU6v sl5/mOUU6XspRhrHa1NOq0BncPQTg5IvhLxuwfhIX6lOWLB8sBkLhkDXWGcoRsdjEFly TF1A== X-Forwarded-Encrypted: i=1; AJvYcCVjr/mRM0GR5OZBzAMSY9hYQ9EDPgub9TivJsre/gwWJH/ZN+2uaxaF9afc6eSAeIlqx9kbUvyf+quUIe6v3Qp5RoQKhgKIi8rmQPVB X-Gm-Message-State: AOJu0YwHEnB0crOMjR6xmUAkTjLYG9RBC/bqsNojVp5H5NEmtH/TU4SX Izb3CXvB2mSzORxgFwcTm/uD3SJ61+CP1gXVawpAgKI+fPCx0D+tT+G4O9e9YA== X-Received: by 2002:a05:622a:1650:b0:43a:f441:b3ac with SMTP id d75a77b69052e-43dbf4e70d5mr2464831cf.32.1715099241340; Tue, 07 May 2024 09:27:21 -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 hf23-20020a05622a609700b0043d1fc9b7d9sm4160597qtb.48.2024.05.07.09.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:20 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:19 +0000 Subject: [PATCH v2 14/18] media: venus: Refactor hfi_session_empty_buffer_uncompressed_plane0_pkt 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-v2-14-7aea262cf065@chromium.org> References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> In-Reply-To: <20240507-cocci-flexarray-v2-0-7aea262cf065@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 The single element array data[1] is never used. Replace it whit a padding field of the same size. This fixes the following cocci error: drivers/media/platform/qcom/venus/hfi_cmds.h:163: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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.h b/drivers/media/platform/qcom/venus/hfi_cmds.h index e1dd0ea2be1a..15271b3f2b49 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.h +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h @@ -160,7 +160,7 @@ struct hfi_session_empty_buffer_uncompressed_plane0_pkt { u32 input_tag; u32 packet_buffer; u32 extradata_buffer; - u32 data[1]; + u32 padding; }; struct hfi_session_fill_buffer_pkt { -- 2.45.0.rc1.225.g2a3ae87e7f-goog