Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp261736lqr; Wed, 5 Jun 2024 05:33:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKn8czxznFiVONbTY1VS/9EBP8GOYTrNqxExkBx8N7YzB1pksLRZYD+wIgfO3pHPaeiOe+SrRtqx6yQE3spgK0TILc4MVzmg032D++KA== X-Google-Smtp-Source: AGHT+IHHpqjGPs1YucueBUrZdWtgosraOzNGWT4G4TGJ/HZNcu6ZGcuHOv9WiDI1Deqoq0GN3LWC X-Received: by 2002:a50:a697:0:b0:57a:3424:b36e with SMTP id 4fb4d7f45d1cf-57a8b6a60e4mr1601250a12.13.1717590804999; Wed, 05 Jun 2024 05:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717590804; cv=pass; d=google.com; s=arc-20160816; b=jJZ8581I2ehrZ6BvuDE8VsVmA0c6BtInIM5zWJrnj0ELUtH/0KasLs7e1bFGp+lX9I VykmyKFPeaTqC1k53PQwZGdciQyPBfesIcwf60aFq0s8Pt7xTLEIpOlj1PX60kmyn3F7 igcN6L5aVDRHmHx5c51hp2s6VvDo+ClPC40a2jSbKozDs8EP+QjZpTR1rDbR7MfRTmja XbklOfs/exq2xMCODm1bk8+qGCppgw4jvNGOM4r8u4NsQRHgQAjMw1cXaLyxkvY1DuR7 B5X+RASR2mFONNMXP810KPoFG6C2ll3LmI0TLhsgq1ZUsXwoSWEJcMc+bwDaEHzjyJpE thbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dYxylKhYZq27fOCw67TouYIlf2Np9gkefeXSdwapD9Y=; fh=ggbt69WanMHdn9M2IRIM9cI4PrSImbJIZQkl6E0PHQ4=; b=mnhN0Yc75EFONZJBfYZfIp8HKdoBNR+qe6sNJ23j8tq2Fb3cUF/K6Ov6KQNxiEHAcI 3kH82VVRhWj+aXU1durYiEddn1rxKSX1C6C5MDVuQ9BtLK3VEp2y6VdH4JeNt5parIda /SJ/6ZeAJmQCRXFtdMPdO+cj5IolHiXukMGirespyhC6HuBDDdYvjxoDwgapky7RnCCy dz73VFG2bYVDmdJXGz7KhXICCnEMmOXDgx2eiooOsKzZQCRk3atWwD/m+x1u9Y6VKc8Y qedrAi83ghxiqEZjIzLVeNZ1lbMkgAUe21uCVKN2dXtRYtRfeGvE5bQhNRpYrhnP0HHy G/mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lqmUp035; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aa1acdaabsi92987a12.15.2024.06.05.05.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lqmUp035; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 AA8C71F21286 for ; Wed, 5 Jun 2024 12:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2039C1C1563; Wed, 5 Jun 2024 12:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lqmUp035" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BFC119938C; Wed, 5 Jun 2024 12:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588977; cv=none; b=uaQtarYt//Gom6YWzb8ayKEZ5UoY98AXyn4B20SJTPyX0RZGTT39nlB0Of5A9D+DPV+sLOz5Og1FVtQV2KJ5U1YEE52lRjHZU82TFRn1bcvryh2s99F/bTIX2p/j4OXku5jogRhU8BqDJ84wU1O1Km0xhJ8PAcyfp61pwVwMRWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588977; c=relaxed/simple; bh=cpLQBDYTpOjTj5+0cqgMMLMfiWdRzQ2aqkxE/qjxEpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Hhgv1KkvPchuJ4aZUepcdrqIWsn1zoXHcVRax7/8F84EHLBl7UbNicdpSFwbI+WtmvUWOCb5JMLUeiPumIaP8sl5Ue1XP5BDbHz/g1FxlM/6TGLWDCWFNeLOg+brPAxPgVfTMs/mLH2pbXubjZ9LHNBeNJ2oIkeGQGt72sFkY10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lqmUp035; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 296CDC3277B; Wed, 5 Jun 2024 12:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588976; bh=cpLQBDYTpOjTj5+0cqgMMLMfiWdRzQ2aqkxE/qjxEpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lqmUp035nxaOYeI3ndmNaqokZJeYb9dlNMEga2KXNlm1ox5mqQpd4Toie3YngqjO4 6dKQrHRM4C70UzIJPZu/VOi2wgFCAjyYTmkdTK26ydwHD5kg3ouYu5ILw7f3nFaIQa cEAD9ER7Vee+iNKJfFRBZ1QWrCAQltJX73Z3+ZpQqs/F2JjjWtckwtOMUh6r7n+vbJ ne7xdxWDBY3x550xE5IrZ08gbF0jwlMxf0sYBdxRb09j2aIf5JMduxXqclyzh9zIPy 0M1JhnxpjAMsfH6bnJ/D6Hm4tZqEoZpiD1D1INADYz9nY6B+kYTo9tgzNT/30Hmnwo gneHFCaeDkwCQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Sasha Levin , Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, Hawking.Zhang@amd.com, candice.li@amd.com, aurabindo.pillai@amd.com, Le.Ma@amd.com, li.ma@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-hardening@vger.kernel.org Subject: [PATCH AUTOSEL 6.9 19/23] drm/amdgpu: silence UBSAN warning Date: Wed, 5 Jun 2024 08:02:02 -0400 Message-ID: <20240605120220.2966127-19-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605120220.2966127-1-sashal@kernel.org> References: <20240605120220.2966127-1-sashal@kernel.org> 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 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.9.3 Content-Transfer-Encoding: 8bit From: Alex Deucher [ Upstream commit 05d9e24ddb15160164ba6e917a88c00907dc2434 ] Convert a variable sized array from [1] to []. Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/include/atomfirmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h index af3eebb4c9bcb..f732182218330 100644 --- a/drivers/gpu/drm/amd/include/atomfirmware.h +++ b/drivers/gpu/drm/amd/include/atomfirmware.h @@ -3540,7 +3540,7 @@ struct atom_gpio_voltage_object_v4 uint8_t phase_delay_us; // phase delay in unit of micro second uint8_t reserved; uint32_t gpio_mask_val; // GPIO Mask value - struct atom_voltage_gpio_map_lut voltage_gpio_lut[1]; + struct atom_voltage_gpio_map_lut voltage_gpio_lut[] __counted_by(gpio_entry_num); }; struct atom_svid2_voltage_object_v4 -- 2.43.0