Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp307282lqp; Wed, 22 May 2024 05:28:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMC0QrTwvjqsYZtmXAcQo1AI4CxTHCsO+m3jcTp090Gxjd6swsIN7bzqkcLPEXFraqAmFhWK3QFnQoGPWZlq2g+PGs8ahCK7pXHOrSZQ== X-Google-Smtp-Source: AGHT+IGw3MfNZ5RH12pAJSLky3PBjQFeBcY1d0UIBbMG8tpbUIPSyAV4/fIHkgeMwytMWAESxEnE X-Received: by 2002:a05:6122:36aa:b0:4da:9d3e:a7df with SMTP id 71dfb90a1353d-4e2184ed3b3mr1652548e0c.5.1716380930102; Wed, 22 May 2024 05:28:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716380930; cv=pass; d=google.com; s=arc-20160816; b=ji2App6E1u73J0+aaz6FXxW9LyESSs75IkyJjGXiPvLeZxnWcW8Ohccp3+iQ/HMJe2 fDJ0dgJzJlAciJxLbUCfnWGOHm8kHxdyivRMOUmu/jvUSZdF96S9tTfO8+4G7Rz6jQKM wnXP5g0xX7Ve1CT3OiByIzhwKoS1tbJYPCzAZ8B0TOfyx/v8EPkeu80D7lbtxo8qopUY 4La0HnH14ipDkDFSaeDY8oWwc6lJpW8diJOk+fqgCio+JW23re1DPTi++CsNZpUtOsQ3 RnggBMyfPS4Ehezhkhh0GrAxdRLTtWdHjWGvi4N9WTgcNlMHe5UNUcxekPJxNTiceM92 N8eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=iVUa+HtknJVyE1LRWMYlqdPQQktkEpm5BV1SvyrxPpw=; fh=xQ6+UksguFz+/oIutvSiGed5+snuygPB7G9y9yv0oko=; b=rSKA2j3VcV/4okJ9DVzkwASlYUKZuDklTJb3DV9NARFqjf4NzuTQh6Woqyv7wziBO3 iWOrl5Xz+CXTWFAJCnHJ+nELYLjprToQA8E4J8swO6YfFhPo0+PyRETSZbA8c8Mds9PK MQK/DlJNF4ApS0qYXOaIV2+6GyQs9iXiYSAwgqJD51aHpP+7NgL16THX7qtNoGMqMevX BXiJR62lPM4x++OjPl8ouDVWwQhLDHmzp7NvWlx5Nw9Djv01prryHaB3jiSJTZMq8lHc r7gURPNy7qVB7dEiw7Q1AXn2jg2IR2/lZLeFH49LDByAtDzW65hj+rtNhfDP0+GEWRji +CwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lb9wHJRP; 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-186221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186221-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 af79cd13be357-792bf3567b2si775818985a.537.2024.05.22.05.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186221-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=lb9wHJRP; 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-186221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186221-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 9EFF91C226DE for ; Wed, 22 May 2024 12:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BDCB13D63A; Wed, 22 May 2024 12:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="lb9wHJRP" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 1F0C013D61E for ; Wed, 22 May 2024 12:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716380920; cv=none; b=CqOGW/DEf8Sp3TDuH0tuFTQHyEU8IQqSmrcED6DAq1nRk4yPmkiSEQSrsNZRye7mbNkuUlnKIH/JLMcuKNqkWcUo6iTQPoDqQ8TTy+sjfoswAyeA0d0jvEuoVF76b7rrBN7XqRrtD+KshKqNT0Z1NfMs1RCT6tu9kGZ0iGEq5bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716380920; c=relaxed/simple; bh=bdxw+Q0XGRmuFjdwhmwLig3zIBnPf0qvOWQa/FwvDVI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OATT4Pe/ooVlyRG1kqBUX130niVuRMjc3yEJG8I1v+A02EHpV2LQ+7sXY2NmQyFs9MtoZUJXeUpDF6M4N4mgdmkC4W8u8V+UrKoAStmmQV3RbiGH2H/WamBKxiCmIHndWs0ZDEvcFv63BAtOPddd1r3hEG2u/0libOHxd/a6vKA= 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=lb9wHJRP; arc=none smtp.client-ip=209.85.128.181 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-yw1-f181.google.com with SMTP id 00721157ae682-61bed738438so48928967b3.2 for ; Wed, 22 May 2024 05:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716380918; x=1716985718; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iVUa+HtknJVyE1LRWMYlqdPQQktkEpm5BV1SvyrxPpw=; b=lb9wHJRPvHUbkdRKmc1DN6IHkrnY+H4M4Wn6d44g1MYRn+D7vqJNFpXgn6a4sg1x2y I/S9I19BjY6n3lDpBJUdBL9Xcg0wUtzyl8ERef8luDwdx5szkwmRlWjenUq9yniqRq9k e7DXNW5GE+MfszupgjTcayR7EGg/iTVp3dMiQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716380918; x=1716985718; h=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=iVUa+HtknJVyE1LRWMYlqdPQQktkEpm5BV1SvyrxPpw=; b=VMU4Z98r+Zj2PlK0mJNyJ80AGInqRCQ6Kaluk8YE5beJto9xNGygmba1Ekz92ja5JI 5+RgNvg0m3cUqk/DWa5qR1IF9xM1J48nLIet5HuJ1WbWQL37PJWV8aASBUL1cE4rr32L 1FXAI1ZcHeyziu3oD5Fhsih12qzguhxxy/BR99icKdxf0qQUQRtIpa72ZZh0tu2t7QFs 4Xjvm+DknUv1QI+K6fj0gBl6dtQsd9GvB9SpahJtNDVIFdUdOsIw9AN0suNtX6vLs29p EVEWg6zaOFvpjD6+rAuOxHjUUsirinPA4BJB8BjpwkOcwV35s6zU6ew1vTzl5I0KBt2r u/Ng== X-Forwarded-Encrypted: i=1; AJvYcCXPVKGOzoIspB8vT2o6JAqmYZEPZfePctR3d/kXl3bJRCy6a8kdUEbau7eYa+6oKv8TL6RsPtxXfe7lkuKCJzbLqwJHKCgTKR7gWra/ X-Gm-Message-State: AOJu0Yx+wPG9e5sPyAMx3A4riG/ItVyhidTbxNR+P3FxF3fW4fDBDhkF /Wniwrl5bMezEBDr6RITWXaz+txiDB5NjjrUfC4+JvMdWjacj4AdRcqpEpZF7qPcp2zGtM2X4bI = X-Received: by 2002:a0d:f984:0:b0:624:4154:fcf0 with SMTP id 00721157ae682-627e487cf49mr17822927b3.35.1716380917819; Wed, 22 May 2024 05:28:37 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6209e5b0b25sm57650377b3.132.2024.05.22.05.28.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 05:28:36 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-61bed738438so48928527b3.2 for ; Wed, 22 May 2024 05:28:36 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUQ1mOQPpo+l4Nhl8JMTyPi3+wieiV//cNq7J1ew30OAAviODLiGiWjQYWviw9N557uvCrE2HWgcLglBZWcdfG4eRVJiCkfAWgVeQmc X-Received: by 2002:a25:dc8f:0:b0:de6:1534:e0ec with SMTP id 3f1490d57ef6-df4e0a760e3mr2044809276.13.1716380915690; Wed, 22 May 2024 05:28:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> <20240507-cocci-flexarray-v2-9-7aea262cf065@chromium.org> <5eec6d69-badd-46f8-9da6-a578d5f7c3ba@linaro.org> <0e6ad5e7-ab20-495c-aa76-77531a53d459@linaro.org> In-Reply-To: <0e6ad5e7-ab20-495c-aa76-77531a53d459@linaro.org> From: Ricardo Ribalda Date: Wed, 22 May 2024 14:28:22 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 09/18] media: venus: Remove unused structs To: "Bryan O'Donoghue" Cc: Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab , Laurent Pinchart , Michal Simek , Andy Walls , Stanimir Varbanov , Vikash Garodia , Bjorn Andersson , Konrad Dybcio , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Hans Verkuil Content-Type: text/plain; charset="UTF-8" Hi Bryan Thanks for your review On Fri, 10 May 2024 at 01:56, Bryan O'Donoghue wrote: > > On 10/05/2024 00:35, Bryan O'Donoghue wrote: > > I think these structures should just have the "[1] -> []" conversion > > done and be retained instead. > > They won't have the same sizeof() then so ignore that thought. > > I still would suggest dropping the `something[1]` in favour of > `something` because these structures document the protocol between host > and firmware and therefore are useful even if unused in the code. The structures will be in the git log for the rest of the days. So if someone has to use them, they can recover them from there. Right now, they are not used and they are triggering a warning. I would argue that untested code is broken code. I'd rather remove the code. > > --- > bod -- Ricardo Ribalda