Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp515678lqh; Tue, 7 May 2024 06:25:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbk6f4/tlvpI4DKAZzppxY3FqPHIbHqCOA1OA1ib0HMpuzh+y0eR+5jNcN4RslAM9ywqju1iwA1GXQROrC8CknxUJubMRESetRpPn0Vw== X-Google-Smtp-Source: AGHT+IEQzYdK26h1qnHYotgibTNgs971OGaTJZBg2Rd2p0fYysQGdhqgTyji53i1mKzkcyidpoU0 X-Received: by 2002:a05:6102:322e:b0:47e:f36e:620c with SMTP id x14-20020a056102322e00b0047ef36e620cmr14240366vsf.13.1715088312203; Tue, 07 May 2024 06:25:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715088312; cv=pass; d=google.com; s=arc-20160816; b=K8kWIcjpaTV2hZX+NY4zkIe4RK6fpls+WDkc9CGzupqWlAcoYMhaiKBKB9zPFX3BtC NXofX93wG9hEpfmPZpR2kdiG/DY0GaJfYNLbxbI43DberuB6iM8gIkqDW9X3wPp9talK AOzsOwbgYBQAktGwAc8o19pJybqppxiNIcXSP8AU84tFuqw4yb8RQUgN58c1ZPc+oyTL YWcB+/S7Jy74QnksxO6xRVop3N9SSrM5lbV2jsgMtnnufRbu6FHvxLqIyF1FVzGJDZUt M3VKvm7vnpM3lXF0yQFmcJ3bq3AJ7Yh3ZyUbTt1Mo2m0ViG/E33S5Bah9iezizKydmzW MQFw== 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=yEp5ZozBkj0x9D1ws5SUxXE7DcMsbsSxhL1FOw8KqVY=; fh=E0r0tG/R4TjfKmjy4gqtdfmzqeLflKVg86EqfkGbLcM=; b=FcNUJL943uJGHOiFr9eR7TqKGiiBtMNnTWvrCRqjdbsmOKUCWM0gORxndumqkx9MqO SY/j3BgcjLqjXhfjE8OiE+Abu3ct+W5vASdpW+DP9i2+LB4RfscmNclsbs4v6RjGOB7H bMFQDtASYQPzbLkvB2Rj9BHW+ZYYbPhGDcBrROZpR/ZQcRBB8DXb0fZ7Fjz8hX1+BTCN liqs2rytFFIZEMbWfAnkDeJpFVo70huor//0Li5yFEt1Sd8u5xsuay2sbdcA6EfHP3RW HwOEpMWcAOKoLplEyW58NwgoaGXVbeJqStUWcCfCZzcBk+Dq11bL12LaBJkAcNs0/QhD s30g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C97A5fds; 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-171395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171395-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. [147.75.199.223]) by mx.google.com with ESMTPS id iy14-20020a0562140f6e00b006993d4fe1b7si11359460qvb.514.2024.05.07.06.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C97A5fds; 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-171395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171395-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 D98651C22CF5 for ; Tue, 7 May 2024 13:25:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E429516D4F0; Tue, 7 May 2024 13:18:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="C97A5fds" Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (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 B195815ECCD for ; Tue, 7 May 2024 13:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087917; cv=none; b=atvmr80x2MHNtHFrKW3r8YY5ir49Zk4gghqme0w7Qkvzp80uHACsiKB71rzR0PyrAblrpkwEobZJblh2ry5u52EgrBq3Yao6RKKjL8tENNR3r0CtE7piBN7CHxSuoHfTZntti7j7NXteAq4VW/7DvNHpr4geLKAWAF0ShYRaCSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087917; c=relaxed/simple; bh=Ybzvge6Uw1Eh9FNqgRzW6qmy53LUrGIUlQOKIfHH8ug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LxuYjogc6jblOcIv4wOa8YI9Kl4WQVfikZdI1KM3EREHgZnzDHFa3Yi1qWRI6utcbqbsCxr+T7zZ/kxlvJr/jLEwUCVKoPaDu0ZxGOmOV722dvpKjf+0ITQaNWWZ/h59dMeKsJExyTW21EFxbzrxlsfEvXV6tOSEZKd3oeP2OIM= 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=C97A5fds; arc=none smtp.client-ip=209.85.219.51 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-f51.google.com with SMTP id 6a1803df08f44-69b514d3cf4so42886426d6.0 for ; Tue, 07 May 2024 06:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087915; x=1715692715; 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=yEp5ZozBkj0x9D1ws5SUxXE7DcMsbsSxhL1FOw8KqVY=; b=C97A5fdsOzRnQKPK00h0Illilfv/nREdZlJuUq8WKtUN7u6XhQiiXxSFudESkXztcZ MkzZbHHscl73Sn3QFmR5Xmt/f+drafqj8Jl+bZX7X20pVjc8NdrqK5EsaYpnEBb5YwKK +YReYJQsTHFj38bWpF5yoHvLtmkhKdeWS0Uj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087915; x=1715692715; 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=yEp5ZozBkj0x9D1ws5SUxXE7DcMsbsSxhL1FOw8KqVY=; b=nafUCcO9wBtip+LXP4rAfUUdt5niaoo5GA0HUXjJbkR0USOwzglibiidHua76nhAY3 Frv0vl19rwXUFgNxl7KHXNQpfxb3CreDe09YzHtMBZERfH0n3dqhCv/SGOzAQ1UUWnQ/ SEuUiEERgLO9+9ApfJLFekU7AcuUPXMLHQYf2415zL66Gk9I8eAny16A37HOzObza5pe UOSH+CNxfsXga2QFR3iw0yrXZfcNO+9GFMltXzT07z+DmnIOJW4N87Xae47LHfWJwn14 +gJ+OFT3JtAVum9LbNWq3wVK3p2tEv6XjMdjHLH2AtFsw2ncFW6jCloJCCq4ZZ3mObxC hIsg== X-Forwarded-Encrypted: i=1; AJvYcCVQ2xQyAv2JzjZD9d/pSrrM2FOmPo2/qsLkTXy+iLp1o3x9FBB6u+zeMN/U52JBNVkfWnNGgKVzRo1KXns0im9p0O73zTEo5A6IrE+i X-Gm-Message-State: AOJu0YygMwRdsyAseCIbqcWYbRgTW3OM2ZpfebocR0ZPQyD+UI4JlxCM 5Vc02iMNvquUS4HVe9Cf8iyjaq3k2aCJu7xdZfJlEmHNsqRu8mCv4Ks+KcZuiA== X-Received: by 2002:ad4:4c48:0:b0:6a1:1f45:84b3 with SMTP id cs8-20020ad44c48000000b006a11f4584b3mr9905483qvb.5.1715087914592; Tue, 07 May 2024 06:18:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:34 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:31 +0000 Subject: [PATCH 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: <20240507-cocci-flexarray-v1-5-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 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.0.rc1.225.g2a3ae87e7f-goog