habanalabs: change function to static
authorOded Gabbay <ogabbay@kernel.org>
Wed, 2 Feb 2022 08:32:53 +0000 (10:32 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:04 +0000 (14:22 +0200)
handle_registration_node() is called directly from the irq handler
in irq.c, so it can be static.

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

index c28f3a1c7a0370ca18b2cd0c1a9c9ac39606d28d..e2bc128f229123f2db1183edef34fcb1cbfa19df 100644 (file)
@@ -175,7 +175,7 @@ static void hl_ts_free_objects(struct work_struct *work)
  * so here we'll be filling a list with nodes of "put" jobs and then will send this
  * list to a dedicated workqueue to do the actual put.
  */
-int handle_registration_node(struct hl_device *hdev, struct hl_user_pending_interrupt *pend,
+static int handle_registration_node(struct hl_device *hdev, struct hl_user_pending_interrupt *pend,
                                                struct list_head **free_list)
 {
        struct timestamp_reg_free_node *free_node;