Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp524111lqh; Tue, 7 May 2024 06:38:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhLNw2ABfhuDmcV653yDGpumGHG+CGpgQPOmtWDN5W85UdJ3XwsijcbKA+ylYQ0CyPzFsCwybj9kVeYgpsXHrTthJpnLNda44RUiPlEA== X-Google-Smtp-Source: AGHT+IGaearzN9cEmr0Ytj8oHHdaF0HofMX/kTCPwVdSOCjVioDgD/o3oZlo8YrhYqQ9z/obnC/g X-Received: by 2002:a05:6a20:12cd:b0:1af:b4f4:e73 with SMTP id adf61e73a8af0-1afbdcfddfemr3746503637.21.1715089094648; Tue, 07 May 2024 06:38:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715089094; cv=pass; d=google.com; s=arc-20160816; b=ytcb8ZzxIktJs9UOecfhH124UmWnaqynaQ+5ywb7MESTocrBep3a/1HAtVGTN+e2We PtNMaDhObPgwKuPG3r8Gwu+ajXTwt1Mct5d1LzBLdhm0cwoHV9i431RzqEivqOHo9K5V FvQbrav5n89wdfLRHtly4mnsfVkQKYjkfIKC8Vo7MqvzLXZHmRbMwtTIb29fsYvGeejm Rp+DVYombwtA3NXSFntrB8uzJOHk2rlCvtaf2USKrC5eDHwLexqO6xxvgZoR9i6Mu/Oe ZEHw2EJC+fw/axL1mTIyDo7PuGDh2G4PBktxBRUBT2G9mVO19k/rw//NztUeC0hwPveF 9jDQ== 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=s9iTVXQu1GwoC5Usu5k9yF6ih40T/I+UoJfnvU1uL3M=; b=kEg8qSDB/xgPIWDm4yNxl3Q8GDbBXDVPcVAMNQha6Yy+7wPp15NMKFHZHfmoPJc49q vGuz7QyeKK1Csn9vsNV1AZPDsFemzzUls8nXSQSpn46Jj8qGnor3e77Eg8NX51vvhP+d k9+7bv7OLz6MGI/5h9EwCYE3unjw/Z3nKarWl45+me2lx+5F9IZnS2ruba4haLvpGAOF mAZK/X+DwbOyz1ci0G9KU6kBPmb1owULfWFX9zk3RgsGJps3+Qlimlw9axun5drrcg0J qgAZUr1mcNGKSFT36t7N8d0vZ9q0Jn7D4XHw3pb5nzgwLqkhqQWGoHbxvcX7Aw8WH38U aZ0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I65H6rof; 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-171407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171407-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. [139.178.88.99]) by mx.google.com with ESMTPS id ca30-20020a056a02069e00b005e42b5db0ffsi11240611pgb.40.2024.05.07.06.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I65H6rof; 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-171407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171407-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 2284628CE2D for ; Tue, 7 May 2024 13:28:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4BB616F8E5; Tue, 7 May 2024 13:18:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="I65H6rof" Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (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 E7D3C15ECE1 for ; Tue, 7 May 2024 13:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087925; cv=none; b=oeu67ZwfuNV636+XWCae1+rFSkyAhu3qgG4qZ3efqYNLyRBteCNHonrQuxiRST+cTvg+H5otX6Zv39eB1iGO3M/QL+igKJJE6qxKh44LPYsHt87oVWKFp33qnImUjr8Yam+4wLoetppEfPNGjS7JliAGopWw0oYmhhs9tFvVH20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087925; c=relaxed/simple; bh=yspSc0vXW80bDStJJU6njW8ROGAmYm1HyjTlHpef53U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fwg0hdqlPPRkn0UbcvpWyy03ijVWnnSErZ5gC9VgKEcj8RVkKY+vYTilj3Le7C1YtYiQHftbO1IP+V0GNzHtvz22oKGdhNkKUPNycIfQQKv8fSoj3k6zvUH+FVulDtpalbBwduqRoN7HipPf2ZCpmEY6UlFHYUzj4KY1r/y/39E= 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=I65H6rof; arc=none smtp.client-ip=209.85.219.41 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-f41.google.com with SMTP id 6a1803df08f44-69b50b8239fso29891476d6.0 for ; Tue, 07 May 2024 06:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087923; x=1715692723; 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=I65H6rofeep41/6v6/LZuouHXo+dQExIclgd2rGra9OW1eOnPYVVEv/Rik8spS+1+c IWzHOTuICIyl5VcEPSF3ctMSYrkEt4IA8EN/qRKYvxocv3l7hQbP/D8mIsK4yxSHdW8S 1J4qwjQhDcZMoYD2dLjqaSbb2dImNFlxQ+aAc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087923; x=1715692723; 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=b+ka1C9bIdEe2hDA+Dx4EQ0HxsQ1mwlfBECiwxKma4MklgHDxvpoPnYiieZ2J7mw8N aHm841U0UiGsK2e9xSY2bJahAwfQ500IJXykwVb9bB/fP4nqs+jLPOxaG9nhjDhZv88q NWrWFdSaBoi1ACjCqAE2CCfXIC8FBWlKr+tnpWQRykwoVuWt01KYl4WFKng7I88nayS8 NbclcaY4a43bGrK2h986V1HffM2vc5TT9O3elkyJaWUuMgaz2iV1i1HWn0jsa+r+p2Ed kk/Ly/5PvGhuss0W2lQpICYsw+XF9E0mZKXtY69sikKKDsTG3M1hhbDXYdHs8bjfpL9U VEqw== X-Forwarded-Encrypted: i=1; AJvYcCWj64REPVv5n04I7u0RoGjzxdz9UTpweMZZhF42N6iNb/aRXG66nw5mxJdoWK5RvOf5nqNFkLUUV9sicvvNJVUZ8Ysv4PKHoBpx7v9o X-Gm-Message-State: AOJu0Yz42pmqpBiYGXSA13t+hr2EX0DFOrUKV4rMrQsSbMWUbOFW/A6F 9lP8XpkAsnr6uyHHLW3zFV1CkFk55952NZZ2E0kf3w20n1PicXrRy2AZN/50eQ== X-Received: by 2002:a05:6214:288:b0:6a0:f057:402f with SMTP id 6a1803df08f44-6a14608b428mr41532076d6.32.1715087922869; Tue, 07 May 2024 06:18:42 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:42 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:40 +0000 Subject: [PATCH 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-v1-14-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 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