Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp524495lqh; Tue, 7 May 2024 06:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhedrhQ4aR8WhO3b6TMdLUoYv8NuQJiNIJTTJaxZHIDabaCIVN1l7utojHxlUMvfv+0k7ohqBkgG+k5+ewOSsurWAlscGpnB5oJHdAlQ== X-Google-Smtp-Source: AGHT+IGdgKqAiTYsVCJ7ojF+DZDVT293Mew7c+RQ3exlUyvc5xlJdgxKwRoxaKzD5gd3EI5eTxDV X-Received: by 2002:a05:6870:b692:b0:23f:dd5:f7a8 with SMTP id cy18-20020a056870b69200b0023f0dd5f7a8mr9899525oab.37.1715089133655; Tue, 07 May 2024 06:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715089133; cv=pass; d=google.com; s=arc-20160816; b=Wu2JI3PJd11e/SDr8ZLnxlvVD1+tCHw8VSIX2AVOzyCH8ojhnrjLyn3xwlYU9jeANv Lfwyl41jlqgVPmQW93WqRxMdNgJiXOe8KoL2H9btz776a3uGBKf61wOFpIPWB1bc4plr Wgu3kekHcOoam0YuwLvnabDVPRVMCv24rGDCJKhQkAQ/SgsTHVxn7MvY+XccXo+4lKcO qsrvJ3LBP6eVK4lzO11SLeGPeuPwLesWOhECU0FUCpJmP511xwMUwpvluc/y9x5Fbamn dv11L27NXg/kgURX++4cV9iUQpIaCiJyExnx+5vd6R5pFLi8gouSVPN4iT03AJcaQf8Y hO6w== 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=1/P1ujR64RjpeY3CCEbW1xPPMvUuqlT7weCmbLOLgyg=; fh=W/PRk59BC+nFUodgSI9wI0M8hsrCog8j6NaOu0SGWvY=; b=eue7oBFdlhXaBtPL1eaTiUTUWsnZEmkf0BugUXGz98r/tIkCABYVLxyUpCMXbY4ykt PX27BBKe9mdiszNL38wVHIwxBWbA9/6I1LKXn2XZIFPrHBHjyOLhKl1G/4FA3hPD/LHT kqSFND3z80s6MzZL00tqBGgSSjOXPs2iXqa4AT3dcmgJr+sCLiVemlxYaF5QFAUHc5NZ xX7EV0b7AuBXkyzD3PU4xrbdD4gduKlDHcxsX+eE1faetfPUnmNXGa5yV2RNBsQuyTVT 8/EtGZ4x1mMMh+GbJsVgFvGFADnYwIXJ1Fq36Zsk6C3+i2lbgpZt/FuJNTWdZPS0qy3U aDbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bv7ZuYR1; 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-171394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m30-20020a63711e000000b0061df0d5cc36si8435228pgc.447.2024.05.07.06.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bv7ZuYR1; 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-171394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171394-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 039E728950A for ; Tue, 7 May 2024 13:24:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D8E116D33C; 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="bv7ZuYR1" Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (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 E020416C696 for ; Tue, 7 May 2024 13:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087917; cv=none; b=R5v6PNSKwv1kdT2jK2tSPDC8HzMBHxmVjpIdXKG5086XBeCrhUL7U3caBNUXiWQCpGDWSiFaqgjRlin7eTwLAT0YpJvpRMhGsA42n4XoIKzgShzpWRAtmzUVoT0oDXeg8DSVbZfxtLCG5FRqdSwplH42JgEu4WLNqBV3lz5MZGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087917; c=relaxed/simple; bh=OkrWWOrUN5GNEWioxP3gYdPUo0/0BfsqCVC0RCoziIM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EXPRKvYbkp6WIlDrA0gF9wPNe0vuAdSfNbpqS8sCSo2AKE60Uz96x7yyv47l4YvMIl3CsFxLJNcyOgjWaqvSznxI1ighwl4wNOlmzx0trIZAW0Me7RhhoGaf4ng8eyTtxjmEqdkvfYAFNoN6AOAchJKD0pAj86nLw2BA7ROesUw= 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=bv7ZuYR1; arc=none smtp.client-ip=209.85.219.50 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-f50.google.com with SMTP id 6a1803df08f44-69b514d3cf4so42886196d6.0 for ; Tue, 07 May 2024 06:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087914; x=1715692714; 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=1/P1ujR64RjpeY3CCEbW1xPPMvUuqlT7weCmbLOLgyg=; b=bv7ZuYR1JSua4HN2zGrac6dR80LTnt3qfwi0LYYW10A4oCkGiy/9dj0lr5csx0dB6D pvlzvvBoE+0oi9e+NvhdD9hOkpm6ee2zH/O2Z6mYkRvD0/IXdVRgYf/BMt2TPxpheY4M pTXKYP+wd8A6lTiRyokt7qJNrZpmL3F7X+B1A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087914; x=1715692714; 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=1/P1ujR64RjpeY3CCEbW1xPPMvUuqlT7weCmbLOLgyg=; b=CVxaFyrJtxgy54UOhyRFQXQw/F+UsW4P4G3sGQp9yvPkHs0XYJUMm/hxJ+QNgKwzNt IpchyzP2U8SIotOLXloxTiCCsImFepcAIkeJDhvsD7SjaPvVEbfVye7rF2GdcY5Vmwde miZkQ49M984Csb+4z8yHt+bkVoeBg4S/aOyCyirKPUsWYsiK5JF7kRl8kV4qg50Hw5tJ 1bJscr+xAQ5vslmfo52bnoHmocxP8ohEgZqThP8DKp05nUJmHcM114PfIxZBsp0VAZeX 9mfJep6knUxSPlUwG8MUTyUvk97XRrJTgSjQAvWABP+SIOLR4fJRYPPmaY6D2jPDARSE NsQQ== X-Forwarded-Encrypted: i=1; AJvYcCUmfK4NGJCkmEhWEpSpVm5xHB0xJ9injPRlghH0CPTasSb/T4I5XG4meab3zeWf5TNC5FoTinckBp7umdr2/GheRVoUiLUQ1NRNMZpM X-Gm-Message-State: AOJu0YyQ0VUJoKGPuY7XYLPp4pgt8mrR13tpPhh92bJ2bTPQv5wfLzcv syoQnidKFZlzfTmz4sCod4U/EGjc2hbTLVWOwXp+yikWn7yULO6kDi2g7v/hGQ== X-Received: by 2002:ad4:576b:0:b0:6a0:6545:2306 with SMTP id r11-20020ad4576b000000b006a065452306mr15355570qvx.28.1715087913906; Tue, 07 May 2024 06:18:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:33 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:30 +0000 Subject: [PATCH 04/18] media: dvb-frontend/mxl5xx: Use flex array for MBIN_SEGMENT_T 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-4-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 older style one-element array with a flexible array member. There does not seem to be any allocation for this struct in the code, so no more code changes are required. The following cocci warning is fixed: drivers/media/dvb-frontends/mxl5xx_defs.h:182:4-8: 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/dvb-frontends/mxl5xx_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/mxl5xx_defs.h b/drivers/media/dvb-frontends/mxl5xx_defs.h index 3c5d75ed8fea..512ec979f96f 100644 --- a/drivers/media/dvb-frontends/mxl5xx_defs.h +++ b/drivers/media/dvb-frontends/mxl5xx_defs.h @@ -179,7 +179,7 @@ struct MBIN_SEGMENT_HEADER_T { struct MBIN_SEGMENT_T { struct MBIN_SEGMENT_HEADER_T header; - u8 data[1]; + u8 data[]; }; enum MXL_CMD_TYPE_E { MXL_CMD_WRITE = 0, MXL_CMD_READ }; -- 2.45.0.rc1.225.g2a3ae87e7f-goog