Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2277232lqb; Mon, 27 May 2024 14:10:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpyiGP6GNVU0mx1YmIwuZtXFEDWVINBOnx6wmLRfi+MqpzUGCzOauT/91rcZ3cMiQOTNcuhB6cIiec4iJCZ/+v7ftv9B1o6VFeS7Jq0w== X-Google-Smtp-Source: AGHT+IFqfGA8epHozUPt5vr95FAkq7bSt4T53twrBAl2fquhpr43HTEP3I4quHUahULT4Bs5prFf X-Received: by 2002:a05:6122:458e:b0:4df:18b1:c1a2 with SMTP id 71dfb90a1353d-4e4f02d6e0amr10140515e0c.11.1716844219807; Mon, 27 May 2024 14:10:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716844219; cv=pass; d=google.com; s=arc-20160816; b=y1aYf1+XGzDT9BoTzXHsfWUJ1rm2OS7Z8SmufzQ2kzcwD148HL12B8SPYn90Rlw/hA 1msa2qN/XbBNRrU0WZYiMaJH19KBctAQs8iN5M/WoAvyk1uXnuwKpzah5b786YCaHbv3 Gmdo26eowCoZPHoiqTcshprBquSPkw5xsUCyxuyqkxiZ29n6FwjS+ZYS120bh8GWSEAg xz7496g69xDySfL3C1fzazDPqWO0qW1z1nGyE4DJRjaKuwLv90zevmy5wR3ymYw455V7 Vrkpa0ZL7Skk9g4netheESrcppaDRtjOTgEGftKcFORb3Iy16v/WP2fuOX6kR0CcTkkP gthA== 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=mBvUNOy5oqoGffRnBGlOX8VjvQupq+TiHn+tNWkPE3c=; fh=wRzn049OCdKVmGyrXfG5yeMjLH5r6L8WPDXfgXMTGyc=; b=BA2DH4/rminGMgupdesXs4HZA8tTIJpcmgEsrzt58ZT40/5s2EEvUtqPtZuwOzZImY 5JYeuiC2Z7aLlT1Za++b0d6Yd/hqlT4M21VkWrW9Uboigfjmihsb9MX1NaPAoUylg6So W7vQzckoYL2Jq0mccE9r9QUws8fDy8eQ5jG60dlZlRRWVA3IZ0E4lncWlkUUuK8KFZlV R1GFnZO+eqUvrlfYZtY6SUma5Gkw1CFeieBLH3JPA9Y2QyDCbfEmaIIYGNP0RcGG1rRQ KPLZu1vBVTaY0eS81Bg8q0HgWTC6T42HZdNnB2EYvuRgSUheLT0kjCFwsVLBaUeRGXn8 Oepg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mBdV5Q0O; 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-191429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191429-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 af79cd13be357-794abcabfd6si869409285a.58.2024.05.27.14.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 14:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191429-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=mBdV5Q0O; 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-191429-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191429-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 8B1C81C2131B for ; Mon, 27 May 2024 21:10:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 846E7169398; Mon, 27 May 2024 21:09:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mBdV5Q0O" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.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 DC6B7167DA4 for ; Mon, 27 May 2024 21:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716844142; cv=none; b=Yo3ZQPv7da3h2j2qusyRsUcEnvI6+o9+wmSnqX8T4bosaL6rcSuLwORJypQJjOzPVOiN9NBr5wwLGgiIFxHS2jMbq7okC1gU2ESzjA4iXXhPOV5H68FCO5XuqX9l7at8zA8qrgDwa12rmAY5SPSl6oPt5iLTwQUcEVjV28T++2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716844142; c=relaxed/simple; bh=NkAGUYk+AlN//KOIaRCz0WPanqcOARjklyEqM7RBKzg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TIP0sC5F3hnt3ctoQOUO8B+GZenEGfNGxS5+pvl/CBhkZ/IMepFNJeYmsVx8dXJGiYNo6vj9ThieS91iQHdd2V+8jAIgeiMmMTOrHi7x2Vk5kaRs1k7IT4fGWk8oh/Y9yYEHcke1q+VcK7qYqdYTnZfm/fGFcsLH1kbddEKgSO4= 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=mBdV5Q0O; arc=none smtp.client-ip=209.85.167.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-oi1-f176.google.com with SMTP id 5614622812f47-3c9b94951cfso117293b6e.3 for ; Mon, 27 May 2024 14:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716844140; x=1717448940; 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=mBvUNOy5oqoGffRnBGlOX8VjvQupq+TiHn+tNWkPE3c=; b=mBdV5Q0OpthKSjt4bNervpeNhLMkxzZCj7zF5mtiUDdGm8zVY+Jtxy+9iri/GvUXk+ 08XEHGexV47XhMhwh8U5bozIHvmMIQEau4T7xUyYJqT1H/iepkqc3XkZCVRWwyNVlOEC RCOo1pmkj6zpF9oUgeO3H5JYuoEl9LM+HWvqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716844140; x=1717448940; 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=mBvUNOy5oqoGffRnBGlOX8VjvQupq+TiHn+tNWkPE3c=; b=STyA/QWbu0pp4knmG71YQ8N7/iwvK4/l6FZmOQCfC+bot4AdYpYs4wYZwGPcxH4OW0 bTU8JO7CZu4V21JHHZEtzWupq4dQSK3qaXVGJ2uBLVlZZNMqLbqMd84+4/c2R2rEfFWp PP+YLvQU6cd2xNuw/cC1fvnVQtVGjhrBYeXG1j49hRRjLZjKWI2yFnwM90aMq/DKNd3Z 8O6tjeg3h+R9grD0E4UD9xHJDIkyYRlbsJkkvbdU1fd3GY0wbMma/FNxlppnYeOWDt1G 5JGan+d+hihoHQVFMgIBe9jpVueBTJERGI7cGuV8K2aJkbAHcXyYQYUEplr3IzbtyG3/ yIVw== X-Forwarded-Encrypted: i=1; AJvYcCXL7SrjzqLEb+mKj3AQl8eR7+1pUUyYttwQsA7//JiTUEsJeIcbkGA4pOvUhEVZevziUIXPnlU+VxXeLgnEyJIJ9OFrPCiC+X6qydnd X-Gm-Message-State: AOJu0YxgcRHF7GqaJ2KCQl3ViGmeiUfxkxrkpOtfF6996X1Voi//pIEg x89VyZctVvhxjdwBdpU953kFprgT6YM6TLIrTAaafiT2irpHgw7N8iRel7nH8w== X-Received: by 2002:aca:1003:0:b0:3c9:924c:8310 with SMTP id 5614622812f47-3d1a1e83258mr10375382b6e.0.1716844139979; Mon, 27 May 2024 14:08:59 -0700 (PDT) Received: from denia.c.googlers.com (125.135.86.34.bc.googleusercontent.com. [34.86.135.125]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ad850a6dc7sm9511866d6.93.2024.05.27.14.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 14:08:59 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 27 May 2024 21:08:55 +0000 Subject: [PATCH v3 05/18] media: pci: cx18: Use flex arrays for struct cx18_scb 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: <20240527-cocci-flexarray-v3-5-cda09c535816@chromium.org> References: <20240527-cocci-flexarray-v3-0-cda09c535816@chromium.org> In-Reply-To: <20240527-cocci-flexarray-v3-0-cda09c535816@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 Replace the old-style single element array with a flexible array. This structure does not seem to be allocated in the code, so there is no need to change anything else. The following cocci warning is fixed: drivers/media/pci/cx18/cx18-scb.h:261:22-29: 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/pci/cx18/cx18-scb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx18/cx18-scb.h b/drivers/media/pci/cx18/cx18-scb.h index f7105421dd25..841edc0712ab 100644 --- a/drivers/media/pci/cx18/cx18-scb.h +++ b/drivers/media/pci/cx18/cx18-scb.h @@ -258,7 +258,7 @@ struct cx18_scb { struct cx18_mailbox ppu2epu_mb; struct cx18_mdl_ack cpu_mdl_ack[CX18_MAX_STREAMS][CX18_MAX_MDL_ACKS]; - struct cx18_mdl_ent cpu_mdl[1]; + struct cx18_mdl_ent cpu_mdl[]; }; void cx18_init_scb(struct cx18 *cx); -- 2.45.1.288.g0e0cd299f1-goog