Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp40480rbz; Tue, 7 May 2024 09:58:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhJ22/wi3tt5RxaauQCDmw5WL7PL9afAcsm6kRHsER7mWq5oJVqXbws3UtEx/ItNNlCvnyLi1L8I2t68FLgCkJXU4DytZryPLgPwFxTA== X-Google-Smtp-Source: AGHT+IGt81ErC7rWfMAKyV62sVnFUPQWnER6XNS1keEZymDoJCZ2d/pfsRmen9MICzPI8h2YzYZk X-Received: by 2002:a17:90a:c006:b0:2b5:6d47:9e1c with SMTP id 98e67ed59e1d1-2b6163a2b85mr160443a91.1.1715101097308; Tue, 07 May 2024 09:58:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715101097; cv=pass; d=google.com; s=arc-20160816; b=eDpvWoaAnasqkAedKpLD+3V41rfA3azvj59YU8fjM47RxodENH/W0oeyK6HXfXtOac UHx5ML6Q3QS77oaTNLUXKVIDqYT+8otkYmZutOogPUSSdK6iESnA1TYBzCLiGVZiGvtg IGPmhKl+uUWkdhvgbR/yVTigAxvbB8rIxmkgubasZ2OK0vZH8Pu0bDfVQevci9xzMV/N bRsyUD5rrqqiKUIP2u/uYJ9LQynisIBAUcbU/jSdgmNwf+YHR3I2Jp4KnnJ+E/DipUnG 7Pynb4FJZJtWUFQiuqM1iX09C5AjeFWlzth0nyCWiQVvn3+ryp6Fcy8dktpUwT+o7oGR 9w5A== 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=WR87o59ttHnNvNigBqZHzwph/s3gT6BLw9Ga86sRtPA=; fh=ZN2Nnk6b4APXr/PlwTovl0h8avUo47Fi69grtR4tAiM=; b=0O9mNRn9TBh+n9im8VCra9dR7nQfZ+uhpf5mMP/vcRbDr5AA4E6rmlL2UP/Z7jD5LR 3vZfJW3Gp0NHpKziU30EeOjV3gb0KTjIbUuMa4URDp59MTWVhC+CGso6816rEMyHuPhI IUoOo3O6o/pBMzaOH83VrFHNZP3ujDcHJhjtajUNC4VCUAvDYWByZbSt+xD5Bs+zJPyp vODRMQykFw+zITjA7mOnhfzhoYZh+XiupSjBiCkqnhMHPm9BffE/Q/4KOq31BIITQsTX RIgvAJaNCvFHfwAKdqkPPFXy/doF6aWOmkrzotCSFVpo6azoQXxNslVdwPG82z/XLRht Cr2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X0fcPP6X; 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-171808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171808-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 mp3-20020a17090b190300b002b1628b0e07si12717897pjb.175.2024.05.07.09.58.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171808-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=X0fcPP6X; 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-171808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171808-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 E9900B285F4 for ; Tue, 7 May 2024 16:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D43C116F0F2; Tue, 7 May 2024 16:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="X0fcPP6X" Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 4CD0D16E86E for ; Tue, 7 May 2024 16:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099240; cv=none; b=FNz6DG0nqnGvRtxsm16q0l73d5WS9EaXAu16lOpIWFVPCD/6RU4niPdN3kMXQS7evxRbcmkeS/X3Q4zpfumWNJw/1cM5x8D3WvwT9pAJ+TDctciY5nOvJnjbtOiy3xXcHiNi9J3D8WLU4XyjtiQZUQDYClA2T34oOtZpy9Vuov4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099240; c=relaxed/simple; bh=9NQhYiz/IbLF6F7xrUyCvcZeCyvNKJflJvFw3WrA/2Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=htqnNuMngUNHpJ4D2+zrG9SFRJ9503o+K8ncnyVl7B+ein5CHAsdW/ZUXnLGIXV6VHacU0SanbJT1ANowKBgHJvbWaJAz4oZW1z34EOlzA6J85DLULGS6VwbmTTPMEZOZBGx33qkkaAlwMm7VVI/pVuPg88b9vqNCJKjAfo7Sq0= 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=X0fcPP6X; arc=none smtp.client-ip=209.85.160.170 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-qt1-f170.google.com with SMTP id d75a77b69052e-4365c1451d4so22802941cf.2 for ; Tue, 07 May 2024 09:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715099238; x=1715704038; 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=WR87o59ttHnNvNigBqZHzwph/s3gT6BLw9Ga86sRtPA=; b=X0fcPP6XV9gErF/+4W1Z2PmcakgwH2aR6w5ezvGuPZgIgzfX67v7HlVU9wXeFvw0QH kjerepixGiDuoMQQBv35iqKyJ2r/dXb0IP3Y39y91FJjN9db8u6c2BQuka7Spfg7FjoU eowjiNN+hFx3oyTZf85+N3+nqDs+thzQI/e0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715099238; x=1715704038; 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=WR87o59ttHnNvNigBqZHzwph/s3gT6BLw9Ga86sRtPA=; b=Oqlcmww7VcoT4barDLBeGGyy60xSCky7Y6xPabgW2Uh2hQLdmZMEBPPItnIFubHhXU DnJwSwH43n1JNEvk7cjMO7lhUDImvdZhsEoCZ6AvKQ8pXuxMKtrX8YnKLRBL15i+n/VU nhT9MedyWbB5c0WYxL3GlE05y5CUMYMpCofA8yD9zfR36/Avex+wTnDMHtt6Da0oOA5Q Q2yVwP6SfGXvfoeWbMKA1kAQiIfyhouZJSs4ujspB1WoiW30/HjJi7nVM6cw4nYGKI5G wA14uTuXtkqBaOVZ9cCz42TrGMmnUU5DaH+sDDIGlM+441H/mUYo37pHL2I3LM/wBn8u cd6w== X-Forwarded-Encrypted: i=1; AJvYcCUQNgmcX8AWO2lP7/YopRbdx1vAPfKCUSEcmk+Pa1QTPah22FUTTqrZQQ7yP77RKAJvkZmeHNBh9pXUvT2pZDWZehY686l/e0/Aa2Yz X-Gm-Message-State: AOJu0YxsKG53W9A7PWda9tfbcFyxs2XU+UmiyCyFMWp8LA5b8KbxGb99 fLBB2VspZ93WdPuSq0T/LYGXimyTF4DY0RV82l67DAMuGTYzKIZR2Tyb1DvUgQSdKTSXsXMpVeE M2w== X-Received: by 2002:a05:622a:1aa9:b0:43a:dade:7ad2 with SMTP id d75a77b69052e-43dbf51448dmr2415871cf.18.1715099238350; Tue, 07 May 2024 09:27:18 -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 hf23-20020a05622a609700b0043d1fc9b7d9sm4160597qtb.48.2024.05.07.09.27.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:27:17 -0700 (PDT) From: Ricardo Ribalda Date: Tue, 07 May 2024 16:27:15 +0000 Subject: [PATCH v2 10/18] media: venus: Use flex array for hfi_session_release_buffer_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: <20240507-cocci-flexarray-v2-10-7aea262cf065@chromium.org> References: <20240507-cocci-flexarray-v2-0-7aea262cf065@chromium.org> In-Reply-To: <20240507-cocci-flexarray-v2-0-7aea262cf065@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 Replace the old style single element array with a flex array. We do not allocate this structure, so the size change should not be an issue. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_cmds.h:204:5-16: 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 41f765eac4d9..6dff949c4402 100644 --- a/drivers/media/platform/qcom/venus/hfi_cmds.h +++ b/drivers/media/platform/qcom/venus/hfi_cmds.h @@ -201,7 +201,7 @@ struct hfi_session_release_buffer_pkt { u32 extradata_size; u32 response_req; u32 num_buffers; - u32 buffer_info[1]; + u32 buffer_info[]; }; struct hfi_session_release_resources_pkt { -- 2.45.0.rc1.225.g2a3ae87e7f-goog