Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp53103lql; Tue, 7 May 2024 09:30:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLEOVOPJP9mym/9EPkmC58nWzkZTeTm6tM+DIibY6ZkT2/xugs8LtvcfR91wZmXcjhTDEB8lHaJgyYnAnPsAVPPVJVJu2McAvK/RzRNw== X-Google-Smtp-Source: AGHT+IFEj1gDqt4HRA6OeXc//KbM5NtCw1/iqFS70WpByQejlycA0Xwdmp+H1B66Ib7mkWojz1IX X-Received: by 2002:a05:622a:64b:b0:43a:f102:30e8 with SMTP id d75a77b69052e-43dbed1cf1emr2316221cf.20.1715099435841; Tue, 07 May 2024 09:30:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715099435; cv=pass; d=google.com; s=arc-20160816; b=XrFnjbqJPrV3rb8cBoK5w0muXNwPDV4KmdgA1KKfMGXlde3Pcz2ddMVzflbouEwswG R5iT2mZ0dkLGQOYoS6Fthz1w4vGCo4UCZwFAy2wFIGNXxOWV64jWSNAsqfFINm6CBpev l0uYm3Y06VQss1u9FEMr9yOdSWa+7kS3WtO8HHlsDsxf9GXoC/ZPKd5eZqIHD+jt4d4O 1TrGKwhY17ItN6dM27t8vLlsA3UI1PRC6KjcDMP28YHF766trLE/3gOW0LpWQsPvdcXv X1BfhrM7tDU/gg9PhdM/qGAORIG7wlpULpHK9TEyYPzfoJHrt1UgLxLnzWv/b7Y6nqnJ AcTw== 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; fh=vWjc+DHfYhrvEWRDOmtU+N/Z57oU0BGeylcLU7ThI+w=; b=qfOXZx/oae9FUSKGu603C6pUmAAwUOoUmBY9Ga64ZY183xlJCZIl6cJpKIuyw07oji KHI8wUWs2+K4UAkZ9ywIi5LYk2qaiGHvHZOonR0oRwKktjV1Tl4joWotFEKMOsPf0VjA Nd59OGQWtBw0h7yetjwljFt20PsKX/Bv4QpfS4TL/tGv9x3MeMjSXCKooyUjAbraw43Q +Lossr0ZxUj28Lf/hjGZX5+P2d4tcDDaZ782Pi3VB6BQ0MqY/XB+QJyZ+LdDikDaBg3C 1uiL8uYDwAV9ZVSaVN3nkiq+P9autRLqZBJq9mfsP61k5pMnJUc6XVQ0zyBvAMbVnmi3 r5Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eWRLL4sY; 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-171809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171809-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 d19-20020ac85d93000000b0043b00083232si12196578qtx.101.2024.05.07.09.30.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:30:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171809-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=eWRLL4sY; 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-171809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171809-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 6B98F1C23E87 for ; Tue, 7 May 2024 16:30:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 921B216F287; Tue, 7 May 2024 16:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="eWRLL4sY" Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 0CAD316E89F for ; Tue, 7 May 2024 16:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099241; cv=none; b=FlHXugATG8gnhztpHQpT7hN5ABoL/aFtKQ/OfaOJ7y8Mb+cgGZ9Tf345DodW7mgIm09vlhQW+7kdYRPcLJuh2HsWpkFsDcc0XJifIeubMdtLgO9YvxP8cB/io5liDqxg8lQcpN+0bOTnapOzmbuYxHaM7oosFNULAogVDdV2+lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099241; c=relaxed/simple; bh=ty0RG2AjLK5Y8dTp7JoVE8oXrIivf7wrKgPB1ia8aog=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mNkQwSgnX7GAD3aw5C1tSSfUECIBhOCrfH4GcOv8NchW4cndu46qsrxm6wFCXt5JWBQCD4rlrv9uonC2WRuaJe8aDZoOxtN18IzTC+AzrVsSyE1pN42PighKOvfN9YmwlYUuYYMqP73KoJWCE9+w7L7n6NAgcVZ1l6l9ch4gMGQ= 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=eWRLL4sY; arc=none smtp.client-ip=209.85.160.173 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-f173.google.com with SMTP id d75a77b69052e-43c5c5496a3so15194611cf.0 for ; Tue, 07 May 2024 09:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099239; x=1715704039; 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; b=eWRLL4sY5006yFpYtGO03NVIrSE+P/SXeJiMtBBShfMEu19+18l3U18AE23B4LO8ba tU8nSqMyERKIxFsGEDjeDMJDh6l2gpLS2CBUSUQvssQt4z0tFXfM1cOb2262uh+gsxaD o4R/SQZpOEAaUsrCYC6En4VCqbo1+06KlRdq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099239; x=1715704039; 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; b=TW6iqF/xFEJ1vPtkqdGt1SfcX3WOZ09719aLpKcASiTp7lRjKm7vfbtC5k68cZyj/6 8i4yoLfU5VkNh+L9ylGGUEXwe84tP3diDE8BzYWEwmPpcrWJK7mRhR6notVX1jvl9Cku VeEAtdeGlYkydwJIHPIrrf9G24acjEhruyK61eItCnbMq7xshsczqeR2XfrT1t/+Jdh4 HFUsd8a0724G27Gc+s11akn00o8E8b2vQmpap7NjEhtKEFJka4mhwmopsVmQ/+cxwtM3 YhEhgSqxEo6Lgx79d+uWzhhUk/tFBBWHY3B+btgxm1YRcV4sRp/Rz7w36wi7aJaCp1B3 K+2Q== X-Forwarded-Encrypted: i=1; AJvYcCVNO73TCDgY/pC6SPfc6QWfm5ZatudmEXE25tbZ1hpk5jar05aJXkkxDEcjSxHNxg5pMbv9i8n+ppbJbWZqEf9k4HQVRSepIqc9nuPB X-Gm-Message-State: AOJu0YzUKs2ZTC2PI3aQliL43rnUnIGheuT6+Hih49pfSmCUzCOuEUs1 4QdK4tMcsyK6kisC6XL3VVO1orOntWlmspwZb+IJsm/a+/XyvO+3BpafarKUVw== X-Received: by 2002:a05:622a:301:b0:43a:c878:d7c6 with SMTP id d75a77b69052e-43dbf0bb523mr2235441cf.66.1715099239035; Tue, 07 May 2024 09:27:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:18 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:16 +0000 Subject: [PATCH v2 11/18] media: venus: Refactor struct hfi_uncompressed_plane_info 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-11-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 This field is never used, but if we remove it we would change the size of the struct and can lead to behavior change. Stay on the safe side by replacing the single element array with a single element field. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_helper.h:1003:43-60: 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_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index 7c0edef263ae..eb0a4c64b7ef 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -1000,7 +1000,7 @@ struct hfi_uncompressed_plane_constraints { struct hfi_uncompressed_plane_info { u32 format; u32 num_planes; - struct hfi_uncompressed_plane_constraints plane_constraints[1]; + struct hfi_uncompressed_plane_constraints plane_constraints; }; struct hfi_uncompressed_format_supported { -- 2.45.0.rc1.225.g2a3ae87e7f-goog