return hv_status;
 }
 
-/*
- * Rep hypercalls. Callers of this functions are supposed to ensure that
- * rep_count and varhead_size comply with Hyper-V hypercall definition.
- */
-static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size,
-                                     void *input, void *output)
-{
-       u64 control = code;
-       u64 status;
-       u16 rep_comp;
-
-       control |= (u64)varhead_size << HV_HYPERCALL_VARHEAD_OFFSET;
-       control |= (u64)rep_count << HV_HYPERCALL_REP_COMP_OFFSET;
-
-       do {
-               status = hv_do_hypercall(control, input, output);
-               if ((status & HV_HYPERCALL_RESULT_MASK) != HV_STATUS_SUCCESS)
-                       return status;
-
-               /* Bits 32-43 of status have 'Reps completed' data. */
-               rep_comp = (status & HV_HYPERCALL_REP_COMP_MASK) >>
-                       HV_HYPERCALL_REP_COMP_OFFSET;
-
-               control &= ~HV_HYPERCALL_REP_START_MASK;
-               control |= (u64)rep_comp << HV_HYPERCALL_REP_START_OFFSET;
-
-               touch_nmi_watchdog();
-       } while (rep_comp < rep_count);
-
-       return status;
-}
-
 extern struct hv_vp_assist_page **hv_vp_assist_page;
 
 static inline struct hv_vp_assist_page *hv_get_vp_assist_page(unsigned int cpu)
 
 extern u64 hv_do_hypercall(u64 control, void *inputaddr, void *outputaddr);
 extern u64 hv_do_fast_hypercall8(u16 control, u64 input8);
 
+/*
+ * Rep hypercalls. Callers of this functions are supposed to ensure that
+ * rep_count and varhead_size comply with Hyper-V hypercall definition.
+ */
+static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size,
+                                     void *input, void *output)
+{
+       u64 control = code;
+       u64 status;
+       u16 rep_comp;
+
+       control |= (u64)varhead_size << HV_HYPERCALL_VARHEAD_OFFSET;
+       control |= (u64)rep_count << HV_HYPERCALL_REP_COMP_OFFSET;
+
+       do {
+               status = hv_do_hypercall(control, input, output);
+               if ((status & HV_HYPERCALL_RESULT_MASK) != HV_STATUS_SUCCESS)
+                       return status;
+
+               /* Bits 32-43 of status have 'Reps completed' data. */
+               rep_comp = (status & HV_HYPERCALL_REP_COMP_MASK) >>
+                       HV_HYPERCALL_REP_COMP_OFFSET;
+
+               control &= ~HV_HYPERCALL_REP_START_MASK;
+               control |= (u64)rep_comp << HV_HYPERCALL_REP_START_OFFSET;
+
+               touch_nmi_watchdog();
+       } while (rep_comp < rep_count);
+
+       return status;
+}
 
 /* Generate the guest OS identifier as described in the Hyper-V TLFS */
 static inline  __u64 generate_guest_id(__u64 d_info1, __u64 kernel_version,