diff options
author | Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> | 2023-09-07 10:26:10 +0300 |
---|---|---|
committer | Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> | 2023-09-27 14:11:51 +0300 |
commit | d776f654d08948639d445a750839612977e78a49 (patch) | |
tree | 8d78043f5c44ca19e7fa148413497a0c0f6f779b /drivers/accel/ivpu/ivpu_debugfs.h | |
parent | c78199a78fe8c4f1724820a8f41f81a08a8d6e8a (diff) | |
download | linux-d776f654d08948639d445a750839612977e78a49.tar.xz |
accel/ivpu: Compile ivpu_debugfs.c conditionally
Only compile ivpu_debugfs.c file with CONFIG_DEBUG_FS.
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230907072610.433497-2-stanislaw.gruszka@linux.intel.com
Diffstat (limited to 'drivers/accel/ivpu/ivpu_debugfs.h')
-rw-r--r-- | drivers/accel/ivpu/ivpu_debugfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_debugfs.h b/drivers/accel/ivpu/ivpu_debugfs.h index 76dbce139772..49ae9ea78287 100644 --- a/drivers/accel/ivpu/ivpu_debugfs.h +++ b/drivers/accel/ivpu/ivpu_debugfs.h @@ -8,6 +8,10 @@ struct ivpu_device; +#if defined(CONFIG_DEBUG_FS) void ivpu_debugfs_init(struct ivpu_device *vdev); +#else +static inline void ivpu_debugfs_init(struct ivpu_device *vdev) { } +#endif #endif /* __IVPU_DEBUGFS_H__ */ |