Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp533836lqh; Tue, 7 May 2024 06:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLYJ7HAuf14VtJIT3aSGUHuUFUDVWzBApgLYTB9PRKs+oTJPXdSpJvjKGSPC9cJLvrVZJM0goQwUPFU8KC7rXU37Borg591doe7WYkNw== X-Google-Smtp-Source: AGHT+IHXoIU9SCVoOxpQIhEdOLyJVuMS38ZILGRTfXI2MZJYRNLBEFq5Yr0IhHpLR8pB0Wk+9hVl X-Received: by 2002:a05:6a21:2d8c:b0:1af:62a6:e2 with SMTP id ty12-20020a056a212d8c00b001af62a600e2mr13881765pzb.56.1715090093176; Tue, 07 May 2024 06:54:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715090093; cv=pass; d=google.com; s=arc-20160816; b=BpEBqgHXYgBHhv1m4QOgb8BM4oNqnux56iVNxdhTmmoNQupZpU6+Gh2j3oeKLBhU2N O6TMFGGpRMg+PA13hMiDmC6BtMGsdDJ6AAIFBpGQztETrBmR4qYTVG822tM+6c/mV9Nh DAuZcZux912k5kS67XnYpXK2w7FB5/D98wx6S0hN0EVCBfxKeR6zNdPuk7pWVjg/irSr z3dR4DyltQzEbP0TuFkWFQ1iq06OouiwSMIJHfCn8iBX1ZSrnxw7wN9dgJnJ6isZ4DD2 u3MIwxzgIL8QnAx9ExSYmUMonAv7/YC87n42bu/H9cRf67JRGJ2tHfLPEdr2VU9jiqfp qzYw== 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; fh=gO0azcPn15AJoogdazAJxWe3PM2BN+DDMB9GyG9DgLc=; b=BDKvLY6Slz+FKzBirRZah5vQXHKwhQttb0fRpZCFXSrOeBYbkU2WY+zbx7IuiPnA6d 0m2awJMcf3YkcEebHDe8XgbLVKD2RY/IUmgVWJhRJI68nK2VhzRFJo+cxb5t7gtivKUH lD0qiKJtvKhEKpDBvZPu8aqMPWxOxZsbIKxGXa0rBScoj1jUHz+D7xBsxDtFO8xR/bvN 2oOD9JNO44IhyW20VBW7ynVSN/8j/yUMsO3jugWBruShkpCFhrCE1H/fg+0qxiMJ0fId UwJ9Hm3PgHW/rhWbWWaiNgYxeP6FveYoFZb+kDCt5UqBEmxrBoAY1u8ODj894M79LXuM ueLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=obSyJrvw; 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-171404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171404-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x5-20020a62fb05000000b006f0a192b1d3si10424417pfm.98.2024.05.07.06.54.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=obSyJrvw; 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-171404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171404-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 AC27AB2B368 for ; Tue, 7 May 2024 13:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C969716F282; Tue, 7 May 2024 13:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="obSyJrvw" Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (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 4976616E89A for ; Tue, 7 May 2024 13:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087924; cv=none; b=OP0pYC5JRxr1SVd/mZWjJRfM2V6BqrLyxtyvlsPoxYWFn9lAAP+iJcbxridA8fInIMmo9ViSrBkK3+tCP+enk95EO6bWnR24esVEQoNk189LurvRKQB1Pv8zWX68kqqda6BMM9Sws7Ji3scIIE7jc5m9czkUiMPjZRPUB3lQNf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087924; c=relaxed/simple; bh=ty0RG2AjLK5Y8dTp7JoVE8oXrIivf7wrKgPB1ia8aog=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N+5N8zNm4RX2hjZnDNGSuyqasUExFBkLM/cLj7U72rUKw8BsMpCtVSOcbKGAfmxcewLLR2Rj0DKs7ETlF+XSzwgnl7R4CZDrY9e1uz9fHMY8BlRBVc5J7fqQmsevQVI5bvSADxb/y4p4HQaebQpx0mTZlzX+C02XUEfkfjcueeA= 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=obSyJrvw; arc=none smtp.client-ip=209.85.219.45 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-f45.google.com with SMTP id 6a1803df08f44-6a0a7cf89deso10403896d6.0 for ; Tue, 07 May 2024 06:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715087921; x=1715692721; 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; b=obSyJrvw1dCDY3GDBwzEKkjnlj6UPysGGaSPXZ6xUOMQdUsEe8bA8J2OqNB0Xb2Esk A1sbLdCj+pLI2tJICTch1W9z28IuONUQbSSi4ZPcy6xAQk7SUY9a85KXHuuj+/7zaagK 7AjXfLsmpxpduU+CC1WRMNS1COCFJMiotwhL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715087921; x=1715692721; 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=sqFGKWXdCy9k153fMpH4CQDZP31MGLQ/EHV/2T77xUQ=; b=qyud8DGFDR/dWZikxXFuywCXc2+hRS7kD5aN3e5O5PwG/6OZGX6PD1oCDOMLruTQSb LJ41ZwNaN5m4lrIcwPD01Y6Q1ZjLGVAl5sltYjKRM6De64NErB2bPj0YRqzxXDMdZzUv gVV0z2SDuV5kksFiyuvB0CAYGa30t6jDQs/gTj/J7GZyhe4f/rclPJ357j1iOd0NMDW/ 4rXg1BVjk3AEui9B/mCpAn873IoGF7MqjnjdWKmLCAR69g8mhwtYYfWLSI5MVnlKoQ1V A0RjiU9cdP6FO4FhGFuXp18JZooEfDH17nIO+KrgVHY52bjsd0MYg7x6oLWZgtQ8fz6+ NLWQ== X-Forwarded-Encrypted: i=1; AJvYcCVVjoY8Jzm/ZuNliyKHP26Tol6eNzEGz85cFskiASOey5N0r7QEyuxr9lcoCKCXjGNrZMs/9s/UaBX6QM/w422g1aNeKM1wxeJkk9fc X-Gm-Message-State: AOJu0YxLqdSwG88LrvM3kJ1/ywP8IwE/ex+kC4umURppvNwnVQIzvYW8 gumLdG25Rfxy+V51Dnkv+JfjlvnepMOdR0ozkjUpccv+Oh6+yvoOnkkhewV7tg== X-Received: by 2002:ad4:5e8a:0:b0:6a0:b705:27db with SMTP id jl10-20020ad45e8a000000b006a0b70527dbmr17551263qvb.13.1715087920745; Tue, 07 May 2024 06:18:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:39 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 13:18:37 +0000 Subject: [PATCH 11/18] media: venus: Refactor struct hfi_uncompressed_plane_info 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-11-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 This field is never used, but if we remove it we would change the size of the struct and can lead to behavior change. Stay on the safe side by replacing the single element array with a single element field. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_helper.h:1003:43-60: 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/platform/qcom/venus/hfi_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index 7c0edef263ae..eb0a4c64b7ef 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -1000,7 +1000,7 @@ struct hfi_uncompressed_plane_constraints { struct hfi_uncompressed_plane_info { u32 format; u32 num_planes; - struct hfi_uncompressed_plane_constraints plane_constraints[1]; + struct hfi_uncompressed_plane_constraints plane_constraints; }; struct hfi_uncompressed_format_supported { -- 2.45.0.rc1.225.g2a3ae87e7f-goog