.. | .. |
---|
49 | 49 | |
---|
50 | 50 | struct hfi1_ibdev; |
---|
51 | 51 | |
---|
52 | | -#define DEBUGFS_FILE_CREATE(name, parent, data, ops, mode) \ |
---|
53 | | -do { \ |
---|
54 | | - struct dentry *ent; \ |
---|
55 | | - const char *__name = name; \ |
---|
56 | | - ent = debugfs_create_file(__name, mode, parent, \ |
---|
57 | | - data, ops); \ |
---|
58 | | - if (!ent) \ |
---|
59 | | - pr_warn("create of %s failed\n", __name); \ |
---|
60 | | -} while (0) |
---|
61 | | - |
---|
62 | 52 | #define DEBUGFS_SEQ_FILE_OPS(name) \ |
---|
63 | 53 | static const struct seq_operations _##name##_seq_ops = { \ |
---|
64 | 54 | .start = _##name##_seq_start, \ |
---|
.. | .. |
---|
89 | 79 | .release = seq_release \ |
---|
90 | 80 | } |
---|
91 | 81 | |
---|
92 | | -#define DEBUGFS_SEQ_FILE_CREATE(name, parent, data) \ |
---|
93 | | - DEBUGFS_FILE_CREATE(#name, parent, data, &_##name##_file_ops, 0444) |
---|
94 | 82 | |
---|
95 | 83 | ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size, |
---|
96 | 84 | loff_t *ppos); |
---|