[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230609120636.3969045-1-arnd@kernel.org>
Date: Fri, 9 Jun 2023 14:06:32 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Oded Gabbay <ogabbay@...nel.org>, Tomer Tayar <ttayar@...ana.ai>
Cc: Arnd Bergmann <arnd@...db.de>, Ofir Bitton <obitton@...ana.ai>,
Ohad Sharabi <osharabi@...ana.ai>,
Dafna Hirschfeld <dhirschfeld@...ana.ai>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH] accel/habanalabs: add more debugfs stub helpers
From: Arnd Bergmann <arnd@...db.de>
Two functions got added with normal prototypes for debugfs, but not
alternative when building without it:
drivers/accel/habanalabs/common/device.c: In function 'hl_device_init':
drivers/accel/habanalabs/common/device.c:2177:14: error: implicit declaration of function 'hl_debugfs_device_init'; did you mean 'hl_debugfs_init'? [-Werror=implicit-function-declaration]
drivers/accel/habanalabs/common/device.c:2305:9: error: implicit declaration of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_file'? [-Werror=implicit-function-declaration]
Add stubs for these as well.
Fixes: 553311fc7b76e ("accel/habanalabs: expose debugfs files later")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/accel/habanalabs/common/habanalabs.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/common/habanalabs.h
index d92ba2e30e310..2f027d5a82064 100644
--- a/drivers/accel/habanalabs/common/habanalabs.h
+++ b/drivers/accel/habanalabs/common/habanalabs.h
@@ -3980,6 +3980,15 @@ static inline void hl_debugfs_fini(void)
{
}
+static inline int hl_debugfs_device_init(struct hl_device *hdev)
+{
+ return 0;
+}
+
+static inline void hl_debugfs_device_fini(struct hl_device *hdev)
+{
+}
+
static inline void hl_debugfs_add_device(struct hl_device *hdev)
{
}
--
2.39.2
Powered by blists - more mailing lists