Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp40364rbz; Tue, 7 May 2024 09:58:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqgYHl+zzUaF78/R9kgY7RkN1Cb7D5IZpwa6cfHa88F+R00elkmvSCy1jJVkmeQcBcHhYRPFq051YmLTqBjtVQlofcKFsrcIadgJg4PA== X-Google-Smtp-Source: AGHT+IH3gp9C5afCF5T3CcWLhpbCVJDZVZJ8GddYox7C5qcu1PIu2HBX43lL2TV6xpF1KZm14+Dt X-Received: by 2002:a17:90a:588a:b0:2b3:28df:96b1 with SMTP id 98e67ed59e1d1-2b61639ffb6mr175440a91.7.1715101084837; Tue, 07 May 2024 09:58:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715101084; cv=pass; d=google.com; s=arc-20160816; b=U32eVmVSiDeNRMYBzjMn2s2BIAgrsAjsvMKvssFjXG83FYX1+hZHfPBAS54gmonXw0 sMcHKFNIoY7gmhQXcCN0/kWkBJVGGpd9Vt7yHT6BpxeSSIQIVCk+nOeqqD2GfHrJAMYx 1o30HjTYrBX+7Ws6FEvnuHzUS42pXEHR0vUrmSkZeFGSS5KSOq12KzDyGweZe6Ok5ptY AYcKO4VbOf0+UGUJa4pixfed26km0eXhgZSUWZgGlJMUk/A3xZh2UpeT602/gb1SQalW /JJtm+1B2uk0q6bPSM1igdBxjHioGsX0BuOb5BXI8dDQKMwyMnnU0n6EQFHpqf0ShMnz V/Lg== 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=ksOWhtvDjU4SOAc5LYb/tmHPugkENGAwplW75xl0q6I=; fh=vKmSEpChtvDn3Rd1YJ1skGM6J9a9xdGTt62FFxYtZP8=; b=XAvOax5jEa1p4SjRG5q96zPb5elARvfRC6yaJyWttC82+kSjE3e2xyYJ3hcnyDKNBk N/EtUB3IFkYomjwvN9HW6Ze6IlF0zL+l5XzNxjFTNZxhufyWleWzSREWI8gSsqErqlZi k54dZRWX5lnCx+zPnnjkAwZ/RApl6FHnJnu2Mus6UTimQqGTOMjGc+sLEJMOOBgyLMoM 6PXVefbvxQSAZgJjVEMglozsjdS/zKd9jdMK0+rCXR22dzkA5lf8mT0CUmea5OPiXlsa zXBfqccREx5xe87k8+TxT5bRprrcYwj81vsakxe+l9NX4X+Ep21CP8SCF+u5pRFkDt56 J4WA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W00zVTc9; 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-171813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171813-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 h13-20020a17090aa88d00b002b5723dbfd2si3738826pjq.130.2024.05.07.09.58.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171813-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=W00zVTc9; 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-171813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171813-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 B8D3BB2B252 for ; Tue, 7 May 2024 16:31:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5ACD5172BC1; Tue, 7 May 2024 16:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="W00zVTc9" Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 A04D316EC0E for ; Tue, 7 May 2024 16:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099245; cv=none; b=JfJLvB+SRlzzEZXUlkdfdKhEbJ2jncrNUYs7m5NAZrtOJjWP4a8SuEMS/jcVOc3hvsgKszz6aPlpQlWu/5hKEJn8Q/u3vZo6d2Zyw0XXJm0drMOwsUM6GX9ySOn+gvGsw9DKl4HK0efLnZMmjAXplhDyf4+fjr0b36pFtBXrtIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099245; c=relaxed/simple; bh=NAI8v6owc4vhrxHrnDBAOrLbBtSLWdHrs5V1XLgw6yE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Maek1+H6pLkGICRIVGjihmYU4cB1oprA+E0C5lhYW52FiSOvTG5LQJSkLqqVBa1CSjLglsA3IPJsvQ7w7+JAY7n3FGgVJIPQms77/78mV3btJLq8nvMnpKPIlYQrJxx75134PCtQfz8BJI29NgHXNDLNyXF/ZZCHj9oYwKbFpCU= 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=W00zVTc9; arc=none smtp.client-ip=209.85.167.182 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-oi1-f182.google.com with SMTP id 5614622812f47-3c861a87d6dso2191536b6e.0 for ; Tue, 07 May 2024 09:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099243; x=1715704043; 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=ksOWhtvDjU4SOAc5LYb/tmHPugkENGAwplW75xl0q6I=; b=W00zVTc9aMERGDSydzmCMFZRwcnm7aUra8kagSRdRTv8THCXr/AiIc7K81+Ciy7IEv i21FIFrJDTB1jBhQOJf7uuV0ngZwZ14aTFeeB6Ey7VIaTr1TKvfBwPdJ/vyHIu8Plgko Hbv98E4ThhatFk1snKI4i2Dgw+vUS4ICR9ZTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099243; x=1715704043; 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=ksOWhtvDjU4SOAc5LYb/tmHPugkENGAwplW75xl0q6I=; b=OqkWazJWIh7w67PEpfIiomGrbrVviv/6K+EKKyyW0MOm7oULiXOXZg0qV17qSNKhqe 7KebSpJrhgbOX+0aRLkTrupbGrLiMSbOMnFuINvmDqOwrQ/9zekwSlWb1Gurm8jYnOG0 RolELHYLckaBSU3NhWE1+oMPpJ5HDRdLNzOiVN38+gRJFdKVUd58dD8Q3cki99rI7tI2 GqYMo5xtlrt8AVisBR81wd6TIy2Pa/Xvt3DbEic2CUPmY1uhlMFLPa0OPT7wVd14p/V0 21QoY0fXM4VnhVNmY7z0uTX8tMTdAgGumHxArtCAeARVLw6NqVhU8T1njjZ8salO3bEa st7w== X-Forwarded-Encrypted: i=1; AJvYcCXghPsvoFVLhtOax13k8tIRj+S1Z+BXIpn3h6zjBaRV2yE+OLq8pw4PpfeiJF61UjlheE3EWOVN2Q8qs/vgbGUnifgVE4UfcTvDiDZP X-Gm-Message-State: AOJu0YwNwQEG+A8gG9IA9e67Shh5ETNnh/OUZo7Gycgzg9xs5Rmp5ZIe v28UuvXc6OwBsS9efTfM3Bn1tskDnvBffRssyAXyWwuJhm0uNS7OEv45Xu373w== X-Received: by 2002:a05:6870:c392:b0:23f:eea9:ae74 with SMTP id 586e51a60fabf-2409915a7e1mr57362fac.46.1715099242010; Tue, 07 May 2024 09:27:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:21 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:20 +0000 Subject: [PATCH v2 15/18] media: venus: Refactor hfi_session_empty_buffer_compressed_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-15-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 with a padding field of the same size. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_cmds.h:146: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 15271b3f2b49..02e9a073d0c1 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.h +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h @@ -143,7 +143,7 @@ struct hfi_session_empty_buffer_compressed_pkt { u32 input_tag; u32 packet_buffer; u32 extradata_buffer; - u32 data[1]; + u32 padding; }; struct hfi_session_empty_buffer_uncompressed_plane0_pkt { -- 2.45.0.rc1.225.g2a3ae87e7f-goog