forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (c) 2014-2015 Hisilicon Limited.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
84 */
95
106 #ifndef _HNS_DSAF_RCB_H
....@@ -112,7 +108,7 @@
112108 u32 ring_num;
113109 u32 desc_num; /* desc num per queue*/
114110
115
- struct ring_pair_cb ring_pair_cb[0];
111
+ struct ring_pair_cb ring_pair_cb[];
116112 };
117113
118114 int hns_rcb_buf_size2type(u32 buf_size);