Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1703489lqp; Mon, 15 Apr 2024 14:39:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSxW3cQv0ggvoKXI9sYlJel0mVSx+hQ35oQF2B8fnCSUtOpz+GdkRWx7ENqC8EtDcrO96rErsMU7KYonqP9G/z25iBFnRyhmx1tjY7/g== X-Google-Smtp-Source: AGHT+IEipgbdYyM6jpPK8LJznpAEH46xXvXHSjUaY7GiWZd5iuH3Dagt7oxYFA3hDWugVrlvJ9wh X-Received: by 2002:a54:4716:0:b0:3c6:4c9:9888 with SMTP id k22-20020a544716000000b003c604c99888mr11965516oik.17.1713217174611; Mon, 15 Apr 2024 14:39:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217174; cv=pass; d=google.com; s=arc-20160816; b=Y1I7R7PiDfOLjTdj3SgXBolfRhXUopdj1y9gfJ4rzwv0gLJQ1O/Y5xCM8L5s3PoMQd m07pZu1lSyMUBI6nDgbDc8FeC/E1u2XcpFkNdWyOT+lT7+zI0VP2VE4CFiy6bIItakbQ 2E49FobVPKTOIILvgllHclTGSHuNkmzu8siR1SBuv59ScrP61oi7OgDoRiwEkqrotBZT HcVmW02ZvBHr5016FFw/4soM+nDWlZWZp3RNZUfkDNIfRvycNqKztDzZEBcD6zS2BUou 9IPgJc1p5VAHi9fzxsNyXSjIlSY5rFPndt9rS0DOOh49YOJwmC/VRJzESGDNJyY3s/Mo xa2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=VEqgJ/h+V7v3psTPqF1gMgoMeOBIzIVe/6Q3RDMypvg=; fh=Ynd/iGSagFFfPRJzCcsS8zU69Mw94qGxbRPEUa9EVes=; b=W7QNpDcTj2KCybPy+q+B01r0lyOc9tlAags7T8nYQs5rq4/BRYOQxnpKnMrQ8yBw4e +jRwWd6xuQxh+kIpCQO/pm8n1Tre/2bdTJqGvrrMw7UytzbDWN/Gq2VX9QH8T+8P9MFG rHX4W3xRQ6XruZDZ3aY2O1B/AojzS6VYP88dpUQCw8JK+8b8GM0tYte5Lb5DnwWNYXR7 21PRe+qiCtZJLh9OPo55q6usTdlYoK6SE1UePrAyE3fYmcRJbZZ4NRpS1hlejLvUR8jM 9OgbN2+hPEDdxdSJNE3epexxO7yOSNPrHb5MHnIH4GD+hn9Kr8ZpzWmMLM4OW6B292Rk lbgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ragnatech.se header.s=fm1 header.b=rYfFLbV8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r0Ip3XZ4; arc=pass (i=1 spf=pass spfdomain=ragnatech.se dkim=pass dkdomain=ragnatech.se dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=ragnatech.se); spf=pass (google.com: domain of linux-kernel+bounces-145940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ragnatech.se Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a17-20020a05622a065100b00434aef8f709si10831415qtb.78.2024.04.15.14.39.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145940-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=@ragnatech.se header.s=fm1 header.b=rYfFLbV8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r0Ip3XZ4; arc=pass (i=1 spf=pass spfdomain=ragnatech.se dkim=pass dkdomain=ragnatech.se dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=ragnatech.se); spf=pass (google.com: domain of linux-kernel+bounces-145940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ragnatech.se 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 3F57F1C217C0 for ; Mon, 15 Apr 2024 21:39:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69AB9157494; Mon, 15 Apr 2024 21:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="rYfFLbV8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="r0Ip3XZ4" Received: from wflow7-smtp.messagingengine.com (wflow7-smtp.messagingengine.com [64.147.123.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C71BB156F4B; Mon, 15 Apr 2024 21:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217139; cv=none; b=ADmfLloZlP1JLhtEuPydiCl56/ThBCxHVN+3aqutOOJKUW7A783jKRkyLuAI5LuZ7E2lStsqyhncI16kTfQwc3mKFKDCxLkaFJK58MdajWxtjhYGtd9xpGPPf6H3Z+Q+phqYl0pa/mVBUXaxFgbMEqywFgjprDSWmnzXAm+wcuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217139; c=relaxed/simple; bh=O+dwq1aGabllwC0nEJW3VJzd9UTcfuGauOLvBy+S64o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CpJ1qstE8QAwEi396dCDImpBf1PiDX94R+Fttr1ux2A1IO4SKdHLw2lbk09MI8JAGlkcyQrKQ4iy4a/nw1EVf1FfL+fd0Rm+B9ikYB+mnUfsK12nXynOor+JZnQ4VIdVeGH65+z/j8MAqE8wkb1ML8mYwdpW/TwO7AyazKMm+x8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b=rYfFLbV8; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=r0Ip3XZ4; arc=none smtp.client-ip=64.147.123.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailflow.west.internal (Postfix) with ESMTP id 971642CC0538; Mon, 15 Apr 2024 17:38:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 15 Apr 2024 17:38:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1713217131; x=1713220731; bh=VEqgJ/h+V7v3psTPqF1gMgoMeOBIzIVe/6Q3RDMypvg=; b= rYfFLbV8IA66mlyPr4mgJw9eboPgZrLyc7uTbyNiDXOebVwnFoplsMgqBJxNPxlR XB3IngAS+HlLVvhdxXgMtuBc8scaN4bbEzBL9n8jeMTkSNGjZ4kzMmRHFFMyl8IX x0OqSqYWcACEhm/rtjBHXFlj+7x7HLxbUhPQRrEif28hdQIEHARBuJxZYmtJpUs4 Lum2FW22u6TwYOCeYTCEi+pT0YR+UEZ054oSp8QkVfalXViffQRDfBXgB1k3Lvuq EnT9ERnuQy9SgfzB6lkvUmSKVnkQYy7ZZMOI5asalXNvBIe5GzMwfHCHdoH2ySAZ 5Jvu19U3djr3op/JO7NCKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1713217131; x= 1713220731; bh=VEqgJ/h+V7v3psTPqF1gMgoMeOBIzIVe/6Q3RDMypvg=; b=r 0Ip3XZ4C5SE+G4oDsyKNTbcLej/OGCO7FAvtkFLD2s2wAdMJPCjYi7Py5QigJbxF JRjERZLSc+yB20J8/IDOV+/2Zggi6TduwpooKP8lkr19If1GGuKnOiX80vvrxP1t URQp4B1Z6mZjeRIy9E7EDzUyqI1xpwNS+eqDth9lrMnJwVNU086oLa+gCNPn4XKU 7j4/NWrPyW4Vq0pyp7ozRMkAA87uXvNGewUIBndXBZnlJ6eZkA5OkHXqxSK1T7p3 syAdAR3wsuAiM6dO3tDkAnKvj/pgzl+tgiitJ1DmLCp2PM033uK7b9mcpkd9OkVE Zb3NGns1ARzhr6omcek7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejfecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheppfhikhhlrghs ucfunpguvghrlhhunhguuceonhhikhhlrghsrdhsohguvghrlhhunhguodhrvghnvghsrg hssehrrghgnhgrthgvtghhrdhsvgeqnecuggftrfgrthhtvghrnhepfeetleeujefhueek teeftdeffedvudefjeeffeehlefgvddthfevleduvedvteegnecuffhomhgrihhnpehkvg hrnhgvlhdrohhrghdpfhhrvggvuggvshhkthhophdrohhrghenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehnihhklhgrshdrshhouggvrhhluh hnugdorhgvnhgvshgrshesrhgrghhnrghtvggthhdrshgv X-ME-Proxy: Feedback-ID: i80c9496c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Apr 2024 17:38:48 -0400 (EDT) Date: Mon, 15 Apr 2024 23:38:46 +0200 From: Niklas =?utf-8?Q?S=C3=B6derlund?= To: Ricardo Ribalda Cc: Julia Lawall , Laurent Pinchart , Martin Tuma , Mauro Carvalho Chehab , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Pavel Machek , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 00/35] media: Fix coccinelle warning/errors Message-ID: <20240415213846.GB3460978@ragnatech.se> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415195348.GD22954@pendragon.ideasonboard.com> <20240415203304.GA3460978@ragnatech.se> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Ricardo, On 2024-04-15 23:16:55 +0200, Ricardo Ribalda wrote: > Hi Niklas > > On Mon, 15 Apr 2024 at 22:33, Niklas Söderlund > wrote: > > > > Hi Ricardo, > > > > Thanks for cleaning up. > > > > On 2024-04-15 21:58:58 +0200, Ricardo Ribalda wrote: > > > Hi Laurent > > > > > > On Mon, 15 Apr 2024 at 21:54, Laurent Pinchart > > > wrote: > > > > > > > > Hi Ricardo, > > > > > > > > I'm afraid I won't have time to review any of this for the time being. > > > > Unless you would like me to put uvcvideo reviews on hold ;-) > > > > > > > > Jokes aside, my first reaction was that this feels like a bit of a waste > > > > of maintainer's time :-S > > > > > > This is part of the media-ci effort. > > > > > > It is definitely not the most fun patches to do or review, but someone > > > has to do it :) > > > > > > The whole idea is that we want to get as little warnings as possible > > > from the static analysers, after this patchset we almost achieve that. > > > > I understand and I think it's a good goal to aim for zero warnings. But > > some of the fixes here are IMHO not helpful, for example I find this > > type of change counter productive. > > > > - return ret < 0 ? ret : 0; > > + > > + if (ret < 0) > > + return ret; > > + return 0; > > I was on the edge on those ones as well... > > Maybe we can try to fix the .cocci file to ignore that pattern? > https://lore.kernel.org/lkml/20240415-minimax-v1-1-5feb20d66a79@chromium.org/T/#u Thanks for looking into it! I think this is a good idea. > > Regards! > > > > > > > > > Maybe it's better to disable this type of checks in the linter? > > > > > > > > It is only 2 trivial uvc patches, I can ask someone from my team to > > > review it if you want and trust them ;) > > > > > > Regards! > > > > > > > > > > > On Mon, Apr 15, 2024 at 07:34:17PM +0000, Ricardo Ribalda wrote: > > > > > After this set is applied, these are the only warnings left: > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:223:4-10: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:230:3-9: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:236:4-10: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:245:3-9: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:251:3-9: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:257:3-9: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:272:3-9: preceding lock on line 267 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on line 627 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on line 689 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on line 627 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on line 689 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on line 627 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on line 689 > > > > > drivers/media/pci/ivtv/ivtv-fileops.c:692:4-10: preceding lock on line 689 > > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2776 > > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2786 > > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2809 > > > > > drivers/media/dvb-frontends/stv090x.c:799:1-7: preceding lock on line 768 > > > > > drivers/media/usb/go7007/go7007-i2c.c:125:1-7: preceding lock on line 61 > > > > > drivers/media/rc/imon.c:1167:1-7: preceding lock on line 1153 > > > > > 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) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:77:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:85:5-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:154:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:171:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:180:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:189:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:201:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:220:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:230:5-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:764:5-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1008:43-60: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1014:36-46: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1041:5-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1088:39-51: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1093:5-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1144:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1239:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1267:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1272:4-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/common/siano/smscoreapi.h:619:5-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/common/siano/smscoreapi.h:669:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/common/siano/smscoreapi.h:1049:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/common/siano/smscoreapi.h:1055:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/dvb-frontends/mxl5xx_defs.h:171:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > 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) > > > > > drivers/media/platform/allegro-dvt/nal-hevc.h:102:14-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/media/platform/xilinx/xilinx-dma.h:100:19-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > drivers/staging/media/atomisp/pci/atomisp_tpg.h:30:18-22: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > > > > > > > > > > CI tested: > > > > > https://gitlab.freedesktop.org/linux-media/media-staging/-/commit/055b5211c68e721c3a7090be5373cf44859da1a7/pipelines?ref=ribalda%2Ftest-cocci > > > > > > > > > > Signed-off-by: Ricardo Ribalda > > > > > --- > > > > > Ricardo Ribalda (35): > > > > > media: pci: mgb4: Refactor struct resources > > > > > media: stb0899: Remove unreacheable code > > > > > media: uvcvideo: Refactor iterators > > > > > media: uvcvideo: Use max() macro > > > > > media: go7007: Use min and max macros > > > > > media: stm32-dcmipp: Remove redundant printk > > > > > media: staging: sun6i-isp: Remove redundant printk > > > > > media: dvb-frontends: tda18271c2dd: Remove casting during div > > > > > media: v4l: async: refactor v4l2_async_create_ancillary_links > > > > > staging: media: tegra-video: Use swap macro > > > > > media: s2255: Use refcount_t instead of atomic_t for num_channels > > > > > media: platform: mtk-mdp3: Use refcount_t for job_count > > > > > media: common: saa7146: Use min macro > > > > > media: dvb-frontends: drx39xyj: Use min macro > > > > > media: netup_unidvb: Use min macro > > > > > media: au0828: Use min macro > > > > > media: flexcop-usb: Use min macro > > > > > media: gspca: cpia1: Use min macro > > > > > media: stk1160: Use min macro > > > > > media: tegra-vde: Refactor timeout handling > > > > > media: venus: Use div64_u64 > > > > > media: i2c: st-mipid02: Use the correct div function > > > > > media: dvb-frontends: tda10048: Use the right div > > > > > media: tc358746: Use the correct div_ function > > > > > media: venus: Use the correct div_ function > > > > > media: venus: Refator return path > > > > > media: dib0700: Refator return path > > > > > media: usb: cx231xx: Refator return path > > > > > media: i2c: rdacm20: Refator return path > > > > > media: i2c: et8ek8: Refator return path > > > > > media: cx231xx: Refator return path > > > > > media: si4713: Refator return path > > > > > media: ttpci: Refator return path > > > > > media: hdpvr: Refator return path > > > > > media: venus: Refator return path > > > > > > > > > > drivers/media/common/saa7146/saa7146_hlp.c | 8 +++---- > > > > > drivers/media/dvb-frontends/drx39xyj/drxj.c | 9 +++----- > > > > > drivers/media/dvb-frontends/stb0899_drv.c | 5 ----- > > > > > drivers/media/dvb-frontends/tda10048.c | 3 +-- > > > > > drivers/media/dvb-frontends/tda18271c2dd.c | 4 ++-- > > > > > drivers/media/i2c/et8ek8/et8ek8_driver.c | 4 +++- > > > > > drivers/media/i2c/rdacm20.c | 5 ++++- > > > > > drivers/media/i2c/st-mipid02.c | 2 +- > > > > > drivers/media/i2c/tc358746.c | 3 +-- > > > > > drivers/media/pci/mgb4/mgb4_core.c | 4 ++-- > > > > > drivers/media/pci/mgb4/mgb4_regs.c | 2 +- > > > > > drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c | 2 +- > > > > > drivers/media/pci/ttpci/budget-core.c | 5 ++++- > > > > > .../media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 10 ++++----- > > > > > .../media/platform/mediatek/mdp3/mtk-mdp3-core.c | 6 ++--- > > > > > .../media/platform/mediatek/mdp3/mtk-mdp3-core.h | 2 +- > > > > > .../media/platform/mediatek/mdp3/mtk-mdp3-m2m.c | 6 ++--- > > > > > drivers/media/platform/nvidia/tegra-vde/h264.c | 6 ++--- > > > > > drivers/media/platform/qcom/venus/vdec.c | 15 +++++++------ > > > > > drivers/media/platform/qcom/venus/venc.c | 19 +++++++++------- > > > > > .../platform/st/stm32/stm32-dcmipp/dcmipp-core.c | 5 +---- > > > > > drivers/media/radio/si4713/radio-usb-si4713.c | 8 +++++-- > > > > > drivers/media/usb/au0828/au0828-video.c | 5 +---- > > > > > drivers/media/usb/b2c2/flexcop-usb.c | 5 +---- > > > > > drivers/media/usb/cx231xx/cx231xx-i2c.c | 16 +++++++++---- > > > > > drivers/media/usb/cx231xx/cx231xx-video.c | 10 +++++++-- > > > > > drivers/media/usb/dvb-usb/dib0700_core.c | 4 +++- > > > > > drivers/media/usb/go7007/go7007-fw.c | 4 ++-- > > > > > drivers/media/usb/gspca/cpia1.c | 6 ++--- > > > > > drivers/media/usb/hdpvr/hdpvr-control.c | 4 +++- > > > > > drivers/media/usb/s2255/s2255drv.c | 20 ++++++++--------- > > > > > drivers/media/usb/stk1160/stk1160-video.c | 10 ++------- > > > > > drivers/media/usb/uvc/uvc_ctrl.c | 26 ++++++++++++---------- > > > > > drivers/media/v4l2-core/v4l2-async.c | 8 +++---- > > > > > drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c | 1 - > > > > > drivers/staging/media/tegra-video/tegra20.c | 9 ++------ > > > > > 36 files changed, 132 insertions(+), 129 deletions(-) > > > > > --- > > > > > base-commit: 71b3ed53b08d87212fbbe51bdc3bf44eb8c462f8 > > > > > change-id: 20240415-fix-cocci-2df3ef22a6f7 > > > > > > > > > > Best regards, > > > > > > > > -- > > > > Regards, > > > > > > > > Laurent Pinchart > > > > > > > > > > > > -- > > > Ricardo Ribalda > > > > -- > > Kind Regards, > > Niklas Söderlund > > > > -- > Ricardo Ribalda -- Kind Regards, Niklas Söderlund