From 4b5bdb939340fa083e0645b744cbdbcae68f4e83 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 3 Dec 2024 18:05:33 +0000 Subject: [PATCH] nvadsp: t264: Add missing bits.h header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With Linux v6.13, the Tegra264 NVADSP driver fails to build and the following errors are observed: In file included from drivers/platform/tegra/nvadsp/dev-t264.c:4: include/linux/reset.h:30:49: error: implicit declaration of function ‘BIT’ [-Werror=implicit-function-declaration] 30 | #define RESET_CONTROL_FLAGS_BIT_ACQUIRED BIT(2) | ^~~ In file included from drivers/platform/tegra/nvadsp/dev-t264-aon.c:4: /include/linux/reset.h:30:49: error: implicit declaration of function ‘BIT’ [-Werror=implicit-function-declaration] 30 | #define RESET_CONTROL_FLAGS_BIT_ACQUIRED BIT(2) | ^~~ Fix this by adding the missing 'bits.h' header. Bug 4991705 Change-Id: I08a6cb59339f8e5221fdc3f39b2a7323cae0cd1f Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261688 Reviewed-by: svcacv GVS: buildbot_gerritrpt Reviewed-by: Viswanath L --- drivers/platform/tegra/nvadsp/dev-t264-aon.c | 1 + drivers/platform/tegra/nvadsp/dev-t264.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/platform/tegra/nvadsp/dev-t264-aon.c b/drivers/platform/tegra/nvadsp/dev-t264-aon.c index d1a68e7f..272095cb 100644 --- a/drivers/platform/tegra/nvadsp/dev-t264-aon.c +++ b/drivers/platform/tegra/nvadsp/dev-t264-aon.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only // SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +#include #include #include "dev.h" diff --git a/drivers/platform/tegra/nvadsp/dev-t264.c b/drivers/platform/tegra/nvadsp/dev-t264.c index 4f253e64..659ffc41 100644 --- a/drivers/platform/tegra/nvadsp/dev-t264.c +++ b/drivers/platform/tegra/nvadsp/dev-t264.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only // SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +#include #include #include #include "dev.h"