From c07615fe6aef77481679842322a808ba932644c7 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 3 Dec 2024 16:46:09 +0000 Subject: [PATCH] thermal: tegra-oc-event: Fix build for Linux v6.13 When compiling the tegra-oc-event driver with Linux v6.13 the build fails with the following error: drivers/thermal/tegra234-oc-event.c:127:48: error: missing braces around initialiser [-Werror=missing-braces] 127 | static const struct attribute_group oc1_data = { | ^ The 'NULL' initialiser is not needed in the above structure because it is not any array. Fix the build for Linux v6.13 by removing the NULL initialisers from the appropriate structure declarations. Bug 4991705 Change-Id: I2ddb99a316aa0124e9a4c1850ba1ea87d16abcbc Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261689 (cherry picked from commit c3d634abe95c557551311acfbad602cd8824b4dc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3263393 Reviewed-by: svcacv GVS: buildbot_gerritrpt Reviewed-by: Yi-Wei Wang Tested-by: Brad Griffis Reviewed-by: Brad Griffis --- drivers/thermal/tegra234-oc-event.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/thermal/tegra234-oc-event.c b/drivers/thermal/tegra234-oc-event.c index c3187bb9..48d71aa3 100644 --- a/drivers/thermal/tegra234-oc-event.c +++ b/drivers/thermal/tegra234-oc-event.c @@ -126,17 +126,14 @@ static struct attribute *t234_oc3_attrs[] = { static const struct attribute_group oc1_data = { .attrs = t234_oc1_attrs, - NULL, }; static const struct attribute_group oc2_data = { .attrs = t234_oc2_attrs, - NULL, }; static const struct attribute_group oc3_data = { .attrs = t234_oc3_attrs, - NULL, }; static const struct attribute_group *t234_oc_groups[] = {