Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp167085lqo; Thu, 9 May 2024 16:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBZ/FOtLHUHVZ8odjYtDfltLU8Enp17aY3uohY8FhlQ+zbNpAzoiyeVDIErzuzfXxt2aJ0eRsJ81AQvwmR42PsMY9HtBtw+HE7XP4LpQ== X-Google-Smtp-Source: AGHT+IFAkRu80xBmNjd4kf3N3d+K7opofa9+y7I68xV50+qA+IBC4ldx7sr0QMPeapdxWNtL9jXg X-Received: by 2002:a17:90a:c697:b0:2b4:39cd:250c with SMTP id 98e67ed59e1d1-2b6cc144307mr1040131a91.8.1715297783649; Thu, 09 May 2024 16:36:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715297783; cv=pass; d=google.com; s=arc-20160816; b=p6XiMQUC+yekptNu1VdBz0MsslZZgvht3XOGDgKe7v2zce8nm7kc8wCJLXwgPycxR7 /GNjAfmjEvZqBJcvNis9ZpyxQm0PeNWyzL6JaWRnvH9ycCAmIhoA0f2NQmhHi/BcLhgw WwakSKEncXTEo2XVad7z/vidWpVi5605xZG6ZguJOQrC1b8CTl4CKYuWyPUC0HURJjsg syQxp5LZDBNKD9C3sdWG7E/ojhSQVW5BR0eOM9ZRJreBpY15EuoTOvFCcmGVDjqbZPPM 19Z/sDIGu5bBQlSLAujyH9wGplsPJlKLBlhW+oEQwryE/3Z9cEOgL8Auc8nxCwP+w/Fx omiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=5/yUQhJCg2bpB7CcNZxnvaOz3QKtDIeiLjjPtlq976w=; fh=T59aJbduj2auBevDHaLFGmkLsp6FAXLScfvh/5LZMv8=; b=lEij0aEbAFDPIVlCtdIB35bzsXUSA7PcgBD0p917fNL6kA3vbutS8CkIb+ZWSDtUsZ FSmvtxI6+sNn/ub15qGZFj6vwMq3svGt60OlOtIS69ekd0rqc8YlTL8oRD0GvlO4InNn b/fhqzayK1e/ORvTALgBlElWuL6kP4UhisnImrGYXUfZR4s2U/4p7mnv421QMBGdS7Ye udBQ+NQJ3soHuMm6XenzgFyQbATp1bsSUqdGMgtiyWoJCtvzjhI9T5+UFigus7IIbtKY tJvcBDWZ+6oxChpZyR73gjX71l2IjS+IIrwuQfnx5RxhWcEI17dRr20OPgPmkI7t+095 e7VA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FQ0dYwx/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 98e67ed59e1d1-2b671471a68si2388834a91.121.2024.05.09.16.36.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 16:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175074-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=@linaro.org header.s=google header.b="FQ0dYwx/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 A2926284313 for ; Thu, 9 May 2024 23:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7066D130A46; Thu, 9 May 2024 23:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FQ0dYwx/" Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) (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 BB13F86245 for ; Thu, 9 May 2024 23:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715297747; cv=none; b=leMBT/tubbfA54WJE5f8awGGcGgPA2YSuXV7keN1Jn7W9z/dB/Pilh/uDus7CRzyKfM0ww0S8ZvUF8+Rl1y19U1YubJoF0aqy/P7oV/oE/Tekcts0ujN+UOZJ6AqzLX7ITAL4Na2TUQHWAKSHb+hYryZsV2vBNCCISc1npBP/40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715297747; c=relaxed/simple; bh=ELfs6DERZG6TNlamGJTLy8QTFWYUxd9uDNBjBxfK1iA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=L9NJsxk5ujjLPKNdzPEEmDbn76/URE9KKGWNa/wOPm1ozN1njzycvhia5tLvbIbnkJ/BcjzpbPOq7y9oTA+DcZqYxjSzIwG/N0AQAjPJwS3OzVibtQ5fuYe60V6z8GS95HHD7K+urqHFdqkXo3UeYXHzgwYcuwZiIHuIsSp6Ncw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FQ0dYwx/; arc=none smtp.client-ip=209.85.221.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f68.google.com with SMTP id ffacd0b85a97d-34d8d11a523so910740f8f.2 for ; Thu, 09 May 2024 16:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715297744; x=1715902544; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5/yUQhJCg2bpB7CcNZxnvaOz3QKtDIeiLjjPtlq976w=; b=FQ0dYwx/Cilm+NVKwOf44WKdE3oJnqbYQ+Cw8SG9ZY7mKcsb+FkfzojcO32tRtH7o9 YCVJAHsXZr/3xJfZFT2DnXRFRsqPULHmxBdtowfluJdnh848Jtgz8q823gh52w4wumX2 Y2UAv331ARwu7d1FtiG7m6eJErlaICSwexVeMaFtovVrhgwkLqUDxOJhN/8Goe9r0rdT QVleN4Zfsg/OAf/CKfv6L1+DP5hxq7OyTURT/DAwGO0KHYoyjnwqRdXbC00kt1nBib9s DXHSnXgNT2YAse7Mael6s9dG2R/iw6ca0e9FV+bnhyzHKgF8FMvoUBSj8vEnSKggux5N xpOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715297744; x=1715902544; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5/yUQhJCg2bpB7CcNZxnvaOz3QKtDIeiLjjPtlq976w=; b=LYEYIUmeB4WivnnQ9WJRSUhWG//EcM4HBIRTvrjWPzcwDaW4NW7Moiszrk6jm6w1sP 7L1/vL4Ju9U8gkG8rFEStEh3+8PW7MzeW8N2ZQ0qznlYxdZihCraRi7lqYP+3duVf49G vUIol2YaOfVLiH9u783oJpeNW8rLsSdwyFESTNvm0jN/rda5A+CLDFgUYyn1ae80F/k8 w6VnxtG5r4q/uXgr7EsZd32FIv8d1bibWwbbl/UWyb2pzV0EHR9ub36DRckNQtaMGgsd QJwlZ4Ko6PndFcRvV7qCTc3aa1jLCAraes0udOAHuT9cJ6lVCOBArZsezJVfyx2YmijL HYFQ== X-Forwarded-Encrypted: i=1; AJvYcCXnc4ufyw0vT2c7u00IzCHHpLJtVjGFi3CEkyjjMPOqJ8NC5YvJLmq+fz4f/2L0mQUDJdVdVIkoUsZb1D8z72ndSnyuvcITqQmYcrbS X-Gm-Message-State: AOJu0YxFuAXYKIRO3rV1YRqvzFGSt+FKY6IKDAXNg+JV5FcJmmKj1hr0 PFzphUFB07p4LBo1Bt7XrmC84tTj1GChM4eRxnIq4WAQ8iMmN/ogfa89FyYDzgM= X-Received: by 2002:adf:ef4c:0:b0:34c:f34e:68a9 with SMTP id ffacd0b85a97d-3504a62fef3mr746263f8f.11.1715297743844; Thu, 09 May 2024 16:35:43 -0700 (PDT) Received: from [192.168.0.3] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad02csm2870605f8f.67.2024.05.09.16.35.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 16:35:43 -0700 (PDT) Message-ID: <5eec6d69-badd-46f8-9da6-a578d5f7c3ba@linaro.org> Date: Fri, 10 May 2024 00:35:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 09/18] media: venus: Remove unused structs To: Ricardo Ribalda , 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 References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> <20240507-cocci-flexarray-v2-9-7aea262cf065@chromium.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240507-cocci-flexarray-v2-9-7aea262cf065@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/05/2024 17:27, Ricardo Ribalda wrote: > This structures are not used, and have a single element array at the end > of them. Remove them. > > This fix the following cocci warnings: > 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: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: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/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: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) > > Signed-off-by: Ricardo Ribalda There's nothing inherently wrong with defining a protocol upfront in the form of a structure for future expansion. These structures are documentary of the host <-> firmware interface and are of use when implementing new features. I think these structures should just have the "[1] -> []" conversion done and be retained instead. --- bod