Skip to content

Commit c1805bf

Browse files
arndbogabbay
authored andcommitted
accel/habanalabs: add missing debugfs function stubs
Two function stubs were removed in an earlier commit but are now needed again: drivers/accel/habanalabs/common/device.c: In function 'hl_device_init': drivers/accel/habanalabs/common/device.c:2231:14: error: implicit declaration of function 'hl_debugfs_device_init'; did you mean 'drm_debugfs_dev_init'? [-Werror=implicit-function-declaration] 2231 | rc = hl_debugfs_device_init(hdev); drivers/accel/habanalabs/common/device.c:2367:9: error: implicit declaration of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_file'? [-Werror=implicit-function-declaration] 2367 | hl_debugfs_device_fini(hdev); | ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent 1630d14 commit c1805bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/accel/habanalabs/common/habanalabs.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,6 +4041,15 @@ void hl_debugfs_set_state_dump(struct hl_device *hdev, char *data,
40414041

40424042
#else
40434043

4044+
static inline int hl_debugfs_device_init(struct hl_device *hdev)
4045+
{
4046+
return 0;
4047+
}
4048+
4049+
static inline void hl_debugfs_device_fini(struct hl_device *hdev)
4050+
{
4051+
}
4052+
40444053
static inline void hl_debugfs_add_device(struct hl_device *hdev)
40454054
{
40464055
}

0 commit comments

Comments
 (0)