habanalabs: print if device is used on FD close
authorOded Gabbay <ogabbay@kernel.org>
Thu, 18 Feb 2021 08:24:02 +0000 (10:24 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:22 +0000 (14:09 +0300)
commit278b5f7acbe1ae299aae8b9669a3e67d5a2635ff
treeea5cf99e91963b3e8fd86dae5643a6b931f6dc23
parentd3ee681afd7dcf62b592d343d8091c0361efc07a
habanalabs: print if device is used on FD close

Notify to the user that although he closed the FD, the device is
still in use because there are live CS and/or memory mappings (mmaps).

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h