forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/infiniband/sw/rdmavt/vt.h
....@@ -78,6 +78,12 @@
7878 fmt, \
7979 ##__VA_ARGS__)
8080
81
+#define rvt_pr_err_ratelimited(rdi, fmt, ...) \
82
+ __rvt_pr_err_ratelimited((rdi)->driver_f.get_pci_dev(rdi), \
83
+ rvt_get_ibdev_name(rdi), \
84
+ fmt, \
85
+ ##__VA_ARGS__)
86
+
8187 #define __rvt_pr_info(pdev, name, fmt, ...) \
8288 dev_info(&pdev->dev, "%s: " fmt, name, ##__VA_ARGS__)
8389
....@@ -87,6 +93,9 @@
8793 #define __rvt_pr_err(pdev, name, fmt, ...) \
8894 dev_err(&pdev->dev, "%s: " fmt, name, ##__VA_ARGS__)
8995
96
+#define __rvt_pr_err_ratelimited(pdev, name, fmt, ...) \
97
+ dev_err_ratelimited(&(pdev)->dev, "%s: " fmt, name, ##__VA_ARGS__)
98
+
9099 static inline int ibport_num_to_idx(struct ib_device *ibdev, u8 port_num)
91100 {
92101 struct rvt_dev_info *rdi = ib_to_rvt(ibdev);