We must declare bau_operations after the other BAU structs so that we may
reference them in the bau_operations function declarations.

Signed-off-by: Andrew Banman <[email protected]>
Acked-by: Mike Travis <[email protected]>
---
 arch/x86/include/asm/uv/uv_bau.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/arch/x86/include/asm/uv/uv_bau.h b/arch/x86/include/asm/uv/uv_bau.h
index 57ab86d..33234bc 100644
--- a/arch/x86/include/asm/uv/uv_bau.h
+++ b/arch/x86/include/asm/uv/uv_bau.h
@@ -385,17 +385,6 @@ struct uv2_3_bau_msg_header {
        /* bits 127:120 */
 };
 
-/* Abstracted BAU functions */
-struct bau_operations {
-       unsigned long (*read_l_sw_ack)(void);
-       unsigned long (*read_g_sw_ack)(int pnode);
-       unsigned long (*bau_gpa_to_offset)(unsigned long vaddr);
-       void (*write_l_sw_ack)(unsigned long mmr);
-       void (*write_g_sw_ack)(int pnode, unsigned long mmr);
-       void (*write_payload_first)(int pnode, unsigned long mmr);
-       void (*write_payload_last)(int pnode, unsigned long mmr);
-};
-
 /*
  * The activation descriptor:
  * The format of the message to send, plus all accompanying control
@@ -644,6 +633,17 @@ struct bau_control {
        struct hub_and_pnode    *thp;
 };
 
+/* Abstracted BAU functions */
+struct bau_operations {
+       unsigned long   (*read_l_sw_ack)(void);
+       unsigned long   (*read_g_sw_ack)(int pnode);
+       unsigned long   (*bau_gpa_to_offset)(unsigned long vaddr);
+       void            (*write_l_sw_ack)(unsigned long mmr);
+       void            (*write_g_sw_ack)(int pnode, unsigned long mmr);
+       void            (*write_payload_first)(int pnode, unsigned long mmr);
+       void            (*write_payload_last)(int pnode, unsigned long mmr);
+};
+
 static inline void write_mmr_data_broadcast(int pnode, unsigned long mmr_image)
 {
        write_gmmr(pnode, UVH_BAU_DATA_BROADCAST, mmr_image);
-- 
1.8.2.1

Reply via email to