From f521823831079e3d51e982d2bd404c27587e1364 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 GVS: buildbot_gerritrpt Reviewed-by: Yi-Wei Wang Reviewed-by: svcacv --- 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 f598a5df..c4a60763 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[] = {