forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/infiniband/core/mad_priv.h
....@@ -73,19 +73,19 @@
7373 struct ib_mad_recv_wc recv_wc;
7474 struct ib_wc wc;
7575 u64 mapping;
76
-} __attribute__ ((packed));
76
+} __packed;
7777
7878 struct ib_mad_private {
7979 struct ib_mad_private_header header;
8080 size_t mad_size;
8181 struct ib_grh grh;
82
- u8 mad[0];
83
-} __attribute__ ((packed));
82
+ u8 mad[];
83
+} __packed;
8484
8585 struct ib_rmpp_segment {
8686 struct list_head list;
8787 u32 num;
88
- u8 data[0];
88
+ u8 data[];
8989 };
9090
9191 struct ib_mad_agent_private {
....@@ -103,7 +103,7 @@
103103 struct work_struct local_work;
104104 struct list_head rmpp_list;
105105
106
- atomic_t refcount;
106
+ refcount_t refcount;
107107 union {
108108 struct completion comp;
109109 struct rcu_head rcu;
....@@ -221,6 +221,6 @@
221221 void ib_mark_mad_done(struct ib_mad_send_wr_private *mad_send_wr);
222222
223223 void ib_reset_mad_timeout(struct ib_mad_send_wr_private *mad_send_wr,
224
- int timeout_ms);
224
+ unsigned long timeout_ms);
225225
226226 #endif /* __IB_MAD_PRIV_H__ */