mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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 <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261689
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user