Skip to content

Commit 78e9b21

Browse files
arndbdanvet
authored andcommitted
accel/habanalabs: add more debugfs stub helpers
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: 3b9abb4 ("accel/habanalabs: expose debugfs files later") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Tomer Tayar <ttayar@habana.ai> Acked-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20230609120636.3969045-1-arnd@kernel.org
1 parent fdf0eaf commit 78e9b21

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/accel/habanalabs/common/habanalabs.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3980,6 +3980,15 @@ static inline void hl_debugfs_fini(void)
39803980
{
39813981
}
39823982

3983+
static inline int hl_debugfs_device_init(struct hl_device *hdev)
3984+
{
3985+
return 0;
3986+
}
3987+
3988+
static inline void hl_debugfs_device_fini(struct hl_device *hdev)
3989+
{
3990+
}
3991+
39833992
static inline void hl_debugfs_add_device(struct hl_device *hdev)
39843993
{
39853994
}

0 commit comments

Comments
 (0)