forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/ethernet/marvell/mvneta_bm.h
....@@ -160,16 +160,23 @@
160160 (bm_pool->id << MVNETA_BM_POOL_ACCESS_OFFS));
161161 }
162162 #else
163
-void mvneta_bm_pool_destroy(struct mvneta_bm *priv,
164
- struct mvneta_bm_pool *bm_pool, u8 port_map) {}
165
-void mvneta_bm_bufs_free(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool,
166
- u8 port_map) {}
167
-int mvneta_bm_construct(struct hwbm_pool *hwbm_pool, void *buf) { return 0; }
168
-int mvneta_bm_pool_refill(struct mvneta_bm *priv,
169
- struct mvneta_bm_pool *bm_pool) {return 0; }
170
-struct mvneta_bm_pool *mvneta_bm_pool_use(struct mvneta_bm *priv, u8 pool_id,
171
- enum mvneta_bm_type type, u8 port_id,
172
- int pkt_size) { return NULL; }
163
+static inline void mvneta_bm_pool_destroy(struct mvneta_bm *priv,
164
+ struct mvneta_bm_pool *bm_pool,
165
+ u8 port_map) {}
166
+static inline void mvneta_bm_bufs_free(struct mvneta_bm *priv,
167
+ struct mvneta_bm_pool *bm_pool,
168
+ u8 port_map) {}
169
+static inline int mvneta_bm_construct(struct hwbm_pool *hwbm_pool, void *buf)
170
+{ return 0; }
171
+static inline int mvneta_bm_pool_refill(struct mvneta_bm *priv,
172
+ struct mvneta_bm_pool *bm_pool)
173
+{ return 0; }
174
+static inline struct mvneta_bm_pool *mvneta_bm_pool_use(struct mvneta_bm *priv,
175
+ u8 pool_id,
176
+ enum mvneta_bm_type type,
177
+ u8 port_id,
178
+ int pkt_size)
179
+{ return NULL; }
173180
174181 static inline void mvneta_bm_pool_put_bp(struct mvneta_bm *priv,
175182 struct mvneta_bm_pool *bm_pool,
....@@ -178,7 +185,8 @@
178185 static inline u32 mvneta_bm_pool_get_bp(struct mvneta_bm *priv,
179186 struct mvneta_bm_pool *bm_pool)
180187 { return 0; }
181
-struct mvneta_bm *mvneta_bm_get(struct device_node *node) { return NULL; }
182
-void mvneta_bm_put(struct mvneta_bm *priv) {}
188
+static inline struct mvneta_bm *mvneta_bm_get(struct device_node *node)
189
+{ return NULL; }
190
+static inline void mvneta_bm_put(struct mvneta_bm *priv) {}
183191 #endif /* CONFIG_MVNETA_BM */
184192 #endif