forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h
....@@ -37,19 +37,6 @@
3737
3838 #include <linux/export.h>
3939
40
-#define DEFINE_SIMPLE_DEBUGFS_FILE(name) \
41
-static int name##_open(struct inode *inode, struct file *file) \
42
-{ \
43
- return single_open(file, name##_show, inode->i_private); \
44
-} \
45
-static const struct file_operations name##_debugfs_fops = { \
46
- .owner = THIS_MODULE, \
47
- .open = name##_open, \
48
- .read = seq_read, \
49
- .llseek = seq_lseek, \
50
- .release = single_release \
51
-}
52
-
5340 struct t4_debugfs_entry {
5441 const char *name;
5542 const struct file_operations *ops;
....@@ -62,7 +49,7 @@
6249 unsigned int rows; /* # of entries */
6350 unsigned char width; /* size in bytes of each entry */
6451 unsigned char skip_first; /* whether the first line is a header */
65
- char data[0]; /* the table data */
52
+ char data[]; /* the table data */
6653 };
6754
6855 static inline unsigned int hex2val(char c)