Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1696239lqp; Mon, 15 Apr 2024 14:20:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUwf9LUimnHJgrIdS36diQ+BFdkCQQhnoohWOHMkmEU2bWY60N5CiVtLzstGe5u98evcIa7SIP1+zCNOaBqRHKVVcPE84M5oEG/Ee8tg== X-Google-Smtp-Source: AGHT+IFbUfhxJPX3hfYuG3WsAx9zm6RhxQdAAyOmv3qkXbw//4QCJxkAfnVT8ygsHpJMmPh+2QUJ X-Received: by 2002:a17:90a:6c96:b0:299:3035:aede with SMTP id y22-20020a17090a6c9600b002993035aedemr8374967pjj.44.1713216032841; Mon, 15 Apr 2024 14:20:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713216032; cv=pass; d=google.com; s=arc-20160816; b=VFcHbLMumG8LkZ58/9MRdIQ3gTYlrYq97LGogn87rIZHuA/fu1+sgvwi3zl6Nvk0F4 rNuNTYdAeRwqk6TRsNgk5mzFGRmhkoWrbBxbWngmNeZx3fDYAfxnYpC0Z2VoAPOxkFQ6 25B201vFKIT4OaEDiwqo19qvupMm/KGmoY0TncR2AsmT5ZmqFW30FsPmWGYZ/E7xTHsW K8IEr1SpHlx41gL0Bp3wOezlwepp9Nouj6MoSwO3/ZxWO5YBa0rG5WtQ0yC+tqa4v1hG 1tECmAI6Jxy88edwrrfuOryIUg0SvVUo6olrfaVKrsnGIZfIq+hDJUGhi0FHgtDUPDNX 0Liw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=DW6PQj3SaOTjmagCaKYOskmDQLmKW6e2Yir85LeE108=; fh=6tlWUi8c6Lxc988WJjFvBNJSgaVYOWwnI9YMmfHnpig=; b=wTg9bzhu2dYy8W1sSoPQEF+9Y+Ql7lXUFBFX/655sPkEjfEiCeyLUb4JM3F5mGyb96 0R45ov6uQmN05iUnp0modUGeYOCwMevWyk6/r3N+2aG9Wjnp/n+bRrA+kjTPqSDq5Mgc yhdoYM9WiuUvkDCW8C10Pj+C5Hbbp1deJfqegaULigYY7GulYCAYxDHU3KQYRcH/Q54Y B380bfY96OtFwChBOVKQRLMkDTWQO0RTafavCzhhs0qdoyaxMtvedtHzVEWUNXUOKPeB dWge3RdluWm+LXxcZfZlgy6Qxmo2s9TMR8aKwwkixb8bzN2tEUImoCPIBQVObQ6sONor 40Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KTHEzNp3; 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-145923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s21-20020a17090aad9500b002a7ea213c53si3513725pjq.158.2024.04.15.14.20.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:20:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KTHEzNp3; 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-145923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145923-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6A8BEB23882 for ; Mon, 15 Apr 2024 21:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C27E525601; Mon, 15 Apr 2024 21:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="KTHEzNp3" Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.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 89701156993 for ; Mon, 15 Apr 2024 21:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215856; cv=none; b=IvZVFf2n+rBuekljJiAw2HMEk2IiRSjFGiIc4oE25yUz+J+Je92ruD6wET5Mar3kd7VQVy8+wmUvnFj/jkhDe15h8Gz4MoKID7Bt1jBOY8K4bI2BQB8VA+dnCNIuLQ0FrHIPiE4zFkM5Z+LD5Ng0Wle67s6YUiVkfu2gafQtREU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215856; c=relaxed/simple; bh=Sy823FEfRHnC8HzR/D1+W7APBmqncD1Wzfp2tmH5PQQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pks3r68Tdvvu/ISX5x6TTDzb9kRQaWYLbAPZlYuitW91g7THg6RNDd8ijVSZYaxy+zvfVQC+Z1n/BDxPGZQjtCtnd6mnWr3gp7XmuMnMQf4eTj3jU0z2ifwVDX6CFvP7yOyjgmm5qB/XFQ1bfFsQO0kP1LJyg2KiQI/KeyKe5EI= 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=KTHEzNp3; arc=none smtp.client-ip=209.85.210.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-ot1-f50.google.com with SMTP id 46e09a7af769-6eb7c4e9015so759407a34.2 for ; Mon, 15 Apr 2024 14:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713215852; x=1713820652; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DW6PQj3SaOTjmagCaKYOskmDQLmKW6e2Yir85LeE108=; b=KTHEzNp3BeQcaveu99B8IPwjTV3kGNNC0Vveg1qzmXA34MKm88/E4JlzmKOh/D3UfL +qHvsi0cEORrmQKPn/+iYT2iViWcku6+eaBoKN8NuCzboDL95G5k78N5Pgg12GIpWpjg j9GuZ/hI4aD3dBe96TzEJFwaTasBjMqf1IVNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713215852; x=1713820652; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DW6PQj3SaOTjmagCaKYOskmDQLmKW6e2Yir85LeE108=; b=D5puTMvQ/J9xP5gal59/FYuLg0281aEaRcWB4xD+IfRZzEDfZuhZr4bBRyFSjVZahM mplVC/abGsd+J6pfSKFgOQBp5MUp9rlfK7dGYS0F1ZJcB7b5OLUfvWNk44XPszyn/5Np TXjEiFzxj548bomBX511OZ1JBDYApRTK7erAOQDf8PMt62C8ZK1PbPjMi8EZAY5TNPO4 IdM88FgZ0J4kb+H2Tc5jPT2efb3ozSFd7nXuU7VPwmZgwAGjM6jwcSM4VINngzAWghBq lUDgP0Kbg5nMzJ5utJfrPGHPCoIF3O10BohfPCklSH5YqEEaiC46HWh91mhYZ5kMlR6B gwKA== X-Forwarded-Encrypted: i=1; AJvYcCXxSAryL7F06Dgp4NIVeik1UWej8wXHf1015kBCPPez2CQsb45xbXZDVvuq/1IEcYUiE1DSF4ZSRpJkcGnIXEBNAh19YklOILBDVKiI X-Gm-Message-State: AOJu0YwH4F80LjrcB/AfDQHJkV1aJfVo1HPn5uTgcWe6r174eo6yim86 ILceSTTwQsTAsYV1hIE50FVYoBfMgzNrRcpAiVzAF26sIN6+7qiQIc65rspjCtkmSF9IznNnaYN 4ww== X-Received: by 2002:a05:6830:18db:b0:6eb:895c:4c4b with SMTP id v27-20020a05683018db00b006eb895c4c4bmr1976550ote.26.1713215852517; Mon, 15 Apr 2024 14:17:32 -0700 (PDT) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com. [209.85.167.173]) by smtp.gmail.com with ESMTPSA id i3-20020a9d68c3000000b006eb842c2c1fsm354655oto.9.2024.04.15.14.17.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Apr 2024 14:17:31 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3c717b7b93aso296926b6e.3 for ; Mon, 15 Apr 2024 14:17:31 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCW1DGIJLkRJ4Vg6qWPSDFhN/UypfXo9viw/AzP3M39yAKLnEJTrKqkcxt7+t9pDYs0+nXsFVO3MN2moLXLR+SwWJn4NOsrNVabQI7MH X-Received: by 2002:a05:6122:882:b0:4c8:90e5:6792 with SMTP id 2-20020a056122088200b004c890e56792mr10380741vkf.7.1713215829531; Mon, 15 Apr 2024 14:17:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415195348.GD22954@pendragon.ideasonboard.com> <20240415203304.GA3460978@ragnatech.se> In-Reply-To: <20240415203304.GA3460978@ragnatech.se> From: Ricardo Ribalda Date: Mon, 15 Apr 2024 23:16:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/35] media: Fix coccinelle warning/errors To: =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Julia Lawall Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Niklas On Mon, 15 Apr 2024 at 22:33, Niklas S=C3=B6derlund 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 wa= ste > > > 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.or= g/T/#u 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 l= ine 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:230:3-9: preceding lock on li= ne 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:236:4-10: preceding lock on l= ine 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:245:3-9: preceding lock on li= ne 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:251:3-9: preceding lock on li= ne 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:257:3-9: preceding lock on li= ne 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:272:3-9: preceding lock on li= ne 267 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on l= ine 627 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:598:4-10: preceding lock on l= ine 689 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on li= ne 627 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:606:3-9: preceding lock on li= ne 689 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on li= ne 627 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:648:3-9: preceding lock on li= ne 689 > > > > drivers/media/pci/ivtv/ivtv-fileops.c:692:4-10: preceding lock on l= ine 689 > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on l= ine 2776 > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on l= ine 2786 > > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on l= ine 2809 > > > > drivers/media/dvb-frontends/stv090x.c:799:1-7: preceding lock on li= ne 768 > > > > drivers/media/usb/go7007/go7007-i2c.c:125:1-7: preceding lock on li= ne 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-a= rray member instead (https://www.kernel.org/doc/html/latest/process/depreca= ted.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:77:5-9: WARNING use fl= exible-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 f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:154:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:171:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:180:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:189:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:201:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_cmds.h:220:5-9: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/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/proce= ss/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:764:5-15: WARNING us= e flexible-array member instead (https://www.kernel.org/doc/html/latest/pro= cess/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/p= rocess/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/p= rocess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1041:5-15: WARNING u= se flexible-array member instead (https://www.kernel.org/doc/html/latest/pr= ocess/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/p= rocess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1093:5-22: WARNING u= se flexible-array member instead (https://www.kernel.org/doc/html/latest/pr= ocess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1144:4-8: WARNING us= e flexible-array member instead (https://www.kernel.org/doc/html/latest/pro= cess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1239:4-8: WARNING us= e flexible-array member instead (https://www.kernel.org/doc/html/latest/pro= cess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1267:5-9: WARNING us= e flexible-array member instead (https://www.kernel.org/doc/html/latest/pro= cess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/qcom/venus/hfi_helper.h:1272:4-13: WARNING u= se flexible-array member instead (https://www.kernel.org/doc/html/latest/pr= ocess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/common/siano/smscoreapi.h:619:5-13: WARNING use flexi= ble-array member instead (https://www.kernel.org/doc/html/latest/process/de= precated.html#zero-length-and-one-element-arrays) > > > > drivers/media/common/siano/smscoreapi.h:669:6-13: WARNING use flexi= ble-array member instead (https://www.kernel.org/doc/html/latest/process/de= precated.html#zero-length-and-one-element-arrays) > > > > drivers/media/common/siano/smscoreapi.h:1049:4-8: WARNING use flexi= ble-array member instead (https://www.kernel.org/doc/html/latest/process/de= precated.html#zero-length-and-one-element-arrays) > > > > drivers/media/common/siano/smscoreapi.h:1055:4-8: WARNING use flexi= ble-array member instead (https://www.kernel.org/doc/html/latest/process/de= precated.html#zero-length-and-one-element-arrays) > > > > drivers/media/dvb-frontends/mxl5xx_defs.h:171:4-8: WARNING use flex= ible-array member instead (https://www.kernel.org/doc/html/latest/process/d= eprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/dvb-frontends/mxl5xx_defs.h:182:4-8: WARNING use flex= ible-array member instead (https://www.kernel.org/doc/html/latest/process/d= eprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/allegro-dvt/nal-hevc.h:102:14-22: WARNING us= e flexible-array member instead (https://www.kernel.org/doc/html/latest/pro= cess/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/media/platform/xilinx/xilinx-dma.h:100:19-22: WARNING use f= lexible-array member instead (https://www.kernel.org/doc/html/latest/proces= s/deprecated.html#zero-length-and-one-element-arrays) > > > > drivers/staging/media/atomisp/pci/atomisp_tpg.h:30:18-22: WARNING u= se flexible-array member instead (https://www.kernel.org/doc/html/latest/pr= ocess/deprecated.html#zero-length-and-one-element-arrays) > > > > > > > > CI tested: > > > > https://gitlab.freedesktop.org/linux-media/media-staging/-/commit/0= 55b5211c68e721c3a7090be5373cf44859da1a7/pipelines?ref=3Dribalda%2Ftest-cocc= i > > > > > > > > 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_chan= nels > > > > 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=C3=B6derlund -- Ricardo Ribalda