Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp52005lql; Tue, 7 May 2024 09:28:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxKSRijEvqvP9fDMwobRGGD0J7+C8LJJB5O5LqsN3P7ackiQtt6OZaGtdWYtHg1hi4XDfK4exzi/mSXYpayP5pnKd6gSm7DMLh4bQjbQ== X-Google-Smtp-Source: AGHT+IF/9lQhqGBqWFDeJa5+zQsoobUd/mbYkTjVoa8Wre3AIKBPw0ffr1CBnBZQE8Hfl+eGHx5s X-Received: by 2002:a05:622a:1909:b0:43c:7d29:3f9c with SMTP id d75a77b69052e-43d8f5b9935mr49190981cf.25.1715099338817; Tue, 07 May 2024 09:28:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715099338; cv=pass; d=google.com; s=arc-20160816; b=ceBiIKGe+anr22mJqfsJQj+vAZghTWvvrG/JpH0Y9mqOZjxkeWFEZOSVfC29Sneser xGxlvLMITGJTLAi7hVNNk+r4X9TuWZxfuPcySYlPIcuiKjyvV5toNmy20xVY3f6SwLg3 vwFLN308ckWkeXDM2LCyKdW7qSh+ZQK5fuuZTpWeLoi8rhHZ1bjm1UTeP6MF7VQlXz3F HaqQnpkhPmynlPEArhcuURQohSmakprfXjBhW4ZJAgO8tOMpVh0HiSeKcCRp4vZhPbh4 ULuMlzWx/omlDFocZu+PHJZBCO3npAfR5Gce2LFKL0p4Cls8SV+sXCPM9tn9gVx8soDq VSXw== 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=TBazWQ7y7ymEbDYEFq1U9AgQa5frd4GYVCUDUjrjTa8=; b=zfiSZJ7VySyulMI9WhZAMN4hNFn/vy/uYQr1P3Eoiqs8r1MUpSM8g2qpupyiSHKYia oggOaRSfpw6Ty46hYs5m2y/rrVom0OTfLeHrE98h3P9vhLvaHEQ9FerNXrl7ZZpIBgWG V4ul31uaGJJ2/+/yD531lHg5sX1kxTlWefVafzpkZaZc5M6g3a2s4H7/efi8wekXiGrU DEi4E5mTl7ekvhh6WhLTDzjO044bhguLo9UcKa+/FysQe5FV5DykUf9xYkqAKt3PYCcf doVr78OIwA4S7l3wHCVhkhBNNhO9QeUpL79cgzumpY5IG4zI+3p46WCgFqoBFNYp5XNK K5KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QW9gJ5yp; 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-171803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171803-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 h13-20020ac8584d000000b0043c5cc60900si12183227qth.317.2024.05.07.09.28.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171803-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=QW9gJ5yp; 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-171803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171803-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 889E21C239E3 for ; Tue, 7 May 2024 16:28:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0635816DEA7; Tue, 7 May 2024 16:27:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="QW9gJ5yp" Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 972E116D303 for ; Tue, 7 May 2024 16:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099237; cv=none; b=FfYes+qMifTnBDkt9FtUPDJ+5jVpBSINluNgMVASNH2uTFQJWUzi12kGSQYEXrK1lQgp8tg4dimYm6bYZHQFQ88Os35ZeXxfmbzV/ceJ8LeEeT77/K/B4SUjNqK6/asRtfcP+pNSScGWdCG+ejTasN8fPllHpE5ztaon1u2pz+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099237; c=relaxed/simple; bh=Ybzvge6Uw1Eh9FNqgRzW6qmy53LUrGIUlQOKIfHH8ug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dSxiXvB2+s19IVkoYwM5auJ62SFKTQU1v8HI6k/onEvWvUugk6vfM3zJlZOM2UdRk+7m95K7J7G9OCbCUyRkJ8wAcl+TQijrPFug/dbNKowJa84OVBnvpiyM+zG2sWeeJpVmK2z4CoeZNtR8r+7U1cMruxjpiBP/3W4nOIE2Brg= 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=QW9gJ5yp; arc=none smtp.client-ip=209.85.160.170 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-f170.google.com with SMTP id d75a77b69052e-43ab76cac73so31118071cf.1 for ; Tue, 07 May 2024 09:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099233; x=1715704033; 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=QW9gJ5ypl03UwodfkeFY8pxPS83KW6HL+RNZ95hB3frMgnXPejntZrrwmLsoZ6Irg3 M+IJCLVXluMO9DWeHleoeguQlKPdg6CVYTYAb6OVQq+IkHkUH5R4c1bQYWj+UVegOOKy fzfiSQ6a58hSgddB5ZYYMrg4sKZYRfH+usGmk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099233; x=1715704033; 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=C4f57MtU5ZaVhHmxsctcdFi+EGMkCBDL8C0CukiA+vDx/SgmnFtpDwoaWsX5BAfIVY Q7OsaLUX/iDlk9CXGD2wnuo4GhkahouzeID2lat5vO1pc+QxljFjvAAIgqOPDtBAi2GG +wH8/iWul3b+ZE5Y7spxIA2W162wbES34NAQO1x8x3QIvTefyqajhfZ99Yyvk7JWEbz/ z4OZT6EW91PhDOQOPEjbHCnPTFa+nxfjAGTuFngy/RGZFPBf4nhmFMZFLdS1nx3JMuB7 zR6GCzSuMMxorO4UhbZfw+jN1pedRcaka0iGHZB+Q0CQznwVeVHncVC5puJVmJik27H9 r0yA== X-Forwarded-Encrypted: i=1; AJvYcCVQmnMDZHKlfUYJV1H0nPFZtW1V/mtrg48H6HogB5tHGmItJn2B8tfX9J6X54gWmrqNqp7pyrkqvnVBEquYLxpKwYwXo+KSPdEgj7Ua X-Gm-Message-State: AOJu0Yx4ONUE3fRdv548gMsnF50/yBBAHRYOMtKZjwqB7pi1oOQPFr1B nVVpmqsLCsp7TtM9pMQe7voqkNm94C/en+6X1WWIgEpLdwMuxsPta2KECZkayjoxiWUsEVJ2JUM TNA== X-Received: by 2002:ac8:5a15:0:b0:43b:16d1:a6ee with SMTP id d75a77b69052e-43d8f44bd11mr53130171cf.17.1715099233681; Tue, 07 May 2024 09:27:13 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:13 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:10 +0000 Subject: [PATCH v2 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-v2-5-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 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