hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/infiniband/hw/hfi1/debugfs.h
....@@ -49,16 +49,6 @@
4949
5050 struct hfi1_ibdev;
5151
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
-
6252 #define DEBUGFS_SEQ_FILE_OPS(name) \
6353 static const struct seq_operations _##name##_seq_ops = { \
6454 .start = _##name##_seq_start, \
....@@ -89,8 +79,6 @@
8979 .release = seq_release \
9080 }
9181
92
-#define DEBUGFS_SEQ_FILE_CREATE(name, parent, data) \
93
- DEBUGFS_FILE_CREATE(#name, parent, data, &_##name##_file_ops, 0444)
9482
9583 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size,
9684 loff_t *ppos);