* pretend we don't support reading the HCA's core clock. This is also
         * forced by mmap function.
         */
-       if (PAGE_SIZE <= 4096 &&
-           field_avail(typeof(resp), hca_core_clock_offset, udata->outlen)) {
-               resp.comp_mask |=
-                       MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET;
-               resp.hca_core_clock_offset =
-                       offsetof(struct mlx5_init_seg, internal_timer_h) %
-                       PAGE_SIZE;
+       if (field_avail(typeof(resp), hca_core_clock_offset, udata->outlen)) {
+               if (PAGE_SIZE <= 4096) {
+                       resp.comp_mask |=
+                               MLX5_IB_ALLOC_UCONTEXT_RESP_MASK_CORE_CLOCK_OFFSET;
+                       resp.hca_core_clock_offset =
+                               offsetof(struct mlx5_init_seg, internal_timer_h) % PAGE_SIZE;
+               }
                resp.response_length += sizeof(resp.hca_core_clock_offset) +
                                        sizeof(resp.reserved2);
        }