projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b091fb
)
staging/hfi1: add dd_dev_dbg
author
Ira Weiny
<ira.weiny@intel.com>
Mon, 11 Jan 2016 18:04:32 +0000
(13:04 -0500)
committer
Doug Ledford
<dledford@redhat.com>
Tue, 1 Mar 2016 15:35:57 +0000
(10:35 -0500)
To be used in future patches add dd_dev_dbg. dd_* functions properly decode
the hfi1_devdata structure used throughout the driver
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/hfi.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/rdma/hfi1/hfi.h
b/drivers/staging/rdma/hfi1/hfi.h
index 62157cc347278ed6846d53724f7e6d6199635108..52dcc87689f11cdb191fa22ca6a8fd1a3207bf79 100644
(file)
--- a/
drivers/staging/rdma/hfi1/hfi.h
+++ b/
drivers/staging/rdma/hfi1/hfi.h
@@
-1804,6
+1804,10
@@
static inline u64 hfi1_pkt_base_sdma_integrity(struct hfi1_devdata *dd)
dev_info(&(dd)->pcidev->dev, "%s: " fmt, \
get_unit_name((dd)->unit), ##__VA_ARGS__)
+#define dd_dev_dbg(dd, fmt, ...) \
+ dev_dbg(&(dd)->pcidev->dev, "%s: " fmt, \
+ get_unit_name((dd)->unit), ##__VA_ARGS__)
+
#define hfi1_dev_porterr(dd, port, fmt, ...) \
dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
get_unit_name((dd)->unit), (dd)->unit, (port), \