Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp371983lqt; Thu, 6 Jun 2024 06:19:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJ43Y2ZtszkVVELDewesXVOp2Jx51WVEeosI00CMUH+QYkvjX5uilCtZQ6njze4UJqFLkokzPn/lOv6grlgSBq/m6YsFO1L2OA1DcgTA== X-Google-Smtp-Source: AGHT+IETlk1jZ7chlLUaDrcV7XZLN/Mv9H5VWPXJhZSf2DRNMFlJGJ7LQu3ZYo/O6F6x0yN/rw7L X-Received: by 2002:a17:906:19c3:b0:a68:5c65:d467 with SMTP id a640c23a62f3a-a699f67ffb5mr342875766b.4.1717679995379; Thu, 06 Jun 2024 06:19:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717679995; cv=pass; d=google.com; s=arc-20160816; b=N9xy86iyFAAwvRcefsUK4CxEb996+KlbVf3ZEwkVhr/0c62H9TzwjG6eDcZlx3eA1h ypVvnzzH1C9kT2L/t/4+jMabh4VglT8XuOECokvXhGrWgJJ3E8EwdfnSGEXb5IpUz2IQ DGr8WS/qStjHFQ7Vh4q+kgPHWZrA1DelcJX+cxD4U1pKyBFN6KjUw8mIg5JKurAEfxvg M8kaHILj3SC7qd4pRuDPR1WQwj2lRqHgGC8OZz6usTybpknleUNGWkePB47zOTrXF6eN AsfCso4kAbo0d+rr5B3FzmtCwUGJ7zrKAc6Dpb431+8u/DxXngk9sEeF5RB+SNkCe8gX tKdQ== 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=rV++zhXkLm63xkLNQev5FMXGRPhSAuf2+6p1s7sOLOM=; fh=S2a/0DgZ09tiiB68ux7bs7hmktheU577DhU3L9LWxNA=; b=JPD7+cY48Mk6+DJeovzewVTj8/SfGKvDc8I3WRxM8Dlj7oOHqPpku4C3xgu5d3k9Bk IFZvlNDCGR4zLHOhCxd9gx014AlHQM4c1BxldDWqQVKCWDs/37rLlH3fq/5NHxRlrp0S wiGWpNwSQvqFQ6CcORQw8L48cI89sC2PI10fN6vNBIHr9BR3OCZNFWn4i1iItlyhW62j djPv8hoIW4Oy8n5d1V8bCo33gAkP6TP2BnzcwU4/DC2CFmn8ppQzqeRVPPvg6GfsydVA B4SR2DoV3fspYkO+9J2ObrRCowZjY3jqLr94SppItv1Fzw6DE+QAzI0dt1jvHKlH8aBU aj8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ntd/dDPP"; 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-204347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806dba44si63700166b.282.2024.06.06.06.19.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ntd/dDPP"; 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-204347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204347-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1E2121F22029 for ; Thu, 6 Jun 2024 13:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A26FB197A7A; Thu, 6 Jun 2024 13:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ntd/dDPP" Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (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 6A221195F24 for ; Thu, 6 Jun 2024 13:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679860; cv=none; b=IMIwOIZ/EQ32mtQ7vcCvu/4USHzam0VArYWkmJSywesPruOYhogCM+2uKY1GJOW8Gpj7EUk7YUyWhz7S432QYY+NEtNBVwApZqI/545Cfst1yN/HmT6x+7Xdrp14iU9Tq71vld4oJZKFRjzS2KSwwYlcp1FLzBstQgIOP2lwSZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679860; c=relaxed/simple; bh=rr+ZAD9eEY9wxQwSyBHAujNTY1n691T+07WEbe4AI+g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F1gr8oqRaZRcU1lO6iHx7niMIlVqFxtUuEJ+8QHZFwBHDM/5VGdYeeR7KppMqVLuyznIWy5egfM/IDlqHUPlh2MfCJXSn6zhaNsycOasx4n9BMV7ArWprTd7E9RG5j9kghoWxmyvlHodneMS/hho1um6CUE7kOzeKr8WUUjFX4s= 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=ntd/dDPP; arc=none smtp.client-ip=209.85.219.46 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-f46.google.com with SMTP id 6a1803df08f44-6adc63c2ee0so3109406d6.3 for ; Thu, 06 Jun 2024 06:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717679858; x=1718284658; 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=rV++zhXkLm63xkLNQev5FMXGRPhSAuf2+6p1s7sOLOM=; b=ntd/dDPPjOuAXrysYvbBo83QdWpNwlilfdrgAUQYRbdE0RAfoenU+qfyECYt2/kU5r 4TStcYC0Gs8kNraSTw6Fie4A8jMmytxs6UO4DHIJDDCdQgKIsqfClLQkP6jtmko+q/OV A73vOxGemKnuZQYGGsJ8PrIZ3h6uygmC/JDOU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717679858; x=1718284658; 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=rV++zhXkLm63xkLNQev5FMXGRPhSAuf2+6p1s7sOLOM=; b=oJ5zmaC1krGPZ0u3+gIKGaFLfxMrT3f9PitWxwPE0svawB4EV0RNcMpXgtLVvnWjFa ujg5F/gmRtQ0pe+PIHjCbL+SqMRiNaAIZ5ussA78/vcL98ExZNmOna3EeUmf8La7PDRX 6VXmFkWzd5XkIwQpXdSCz6TN/l1opY5s69GrZh6l7/jer/mnVCHZ7C6DMUubEPtoTKP9 6KKCUUQVECcrru7ZxX2d7u6JI4s1ZdD/bSlKbIzA9JtqCQEWpQwkVZyOlyjenXp+6tNn dBkaeSmt7WWN0lqtD/+2+OlPi1zotd2ghzS/GJwCNBzwin7ekxPJnc9kMF+LnoWMUwT5 Vhmw== X-Forwarded-Encrypted: i=1; AJvYcCWtUUxMBrEUtFM9fcVUkgF0WwtC04JcZdek9qz8kfXyu8fXHSCAtgl9pOcrYlZuXBq2vX49+HCW2BpqTPQlcxT2ybnCY30/ABMKFMH8 X-Gm-Message-State: AOJu0Yyj47fzy3v6rKxZGs1qCRvgSt7T56QLTXHLZiF9LBALrly1rt6E TLf491ubZ8rL3N24vkRUu8EAs3+U+YlSag5pm1bQB5oTP211TB+b4XgCUnY53g== X-Received: by 2002:a05:6214:3c8e:b0:6af:b8b3:338e with SMTP id 6a1803df08f44-6b04aeb2647mr34544096d6.53.1717679857474; Thu, 06 Jun 2024 06:17:37 -0700 (PDT) Received: from denia.c.googlers.com (123.178.145.34.bc.googleusercontent.com. [34.145.178.123]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b04f6607f5sm6118036d6.31.2024.06.06.06.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:17:37 -0700 (PDT) From: Ricardo Ribalda Date: Thu, 06 Jun 2024 13:16:41 +0000 Subject: [PATCH v4 07/11] media: venus: Refactor hfi_session_empty_buffer_uncompressed_plane0_pkt 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: <20240606-cocci-flexarray-v4-7-3379ee5eed28@chromium.org> References: <20240606-cocci-flexarray-v4-0-3379ee5eed28@chromium.org> In-Reply-To: <20240606-cocci-flexarray-v4-0-3379ee5eed28@chromium.org> To: Mauro Carvalho Chehab , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 The single element array data[1] is never used. Replace it whit a padding field of the same size. This fixes the following cocci error: drivers/media/platform/qcom/venus/hfi_cmds.h:163: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 --- drivers/media/platform/qcom/venus/hfi_cmds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.h b/drivers/media/platform/qcom/venus/hfi_cmds.h index f5708fdfb197..8768ee052adc 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.h +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h @@ -160,7 +160,7 @@ struct hfi_session_empty_buffer_uncompressed_plane0_pkt { u32 input_tag; u32 packet_buffer; u32 extradata_buffer; - u32 data[1]; + u32 data; }; struct hfi_session_fill_buffer_pkt { -- 2.45.2.505.gda0bf45e8d-goog