summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-04-06 17:37:49 +0200
committerSuren A. Chilingaryan <csa@suren.me>2016-04-06 17:37:49 +0200
commitf48b49e7c5a7eb4ab123d23b1980c0abfb4f348f (patch)
treea152f4dc5bcfafb42430fa8d03f8eb66c2742551 /driver
parent371661a51fd962dc23dcd2f761b1a8f1def3191a (diff)
downloadpcitool-f48b49e7c5a7eb4ab123d23b1980c0abfb4f348f.tar.gz
pcitool-f48b49e7c5a7eb4ab123d23b1980c0abfb4f348f.tar.bz2
pcitool-f48b49e7c5a7eb4ab123d23b1980c0abfb4f348f.tar.xz
pcitool-f48b49e7c5a7eb4ab123d23b1980c0abfb4f348f.zip
Fix compilation of rdma.c in the driver
Diffstat (limited to 'driver')
-rw-r--r--driver/rdma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/rdma.c b/driver/rdma.c
index c601188..4cbd8c4 100644
--- a/driver/rdma.c
+++ b/driver/rdma.c
@@ -46,6 +46,7 @@ unsigned long pcidriver_resolve_bar(unsigned long bar_address) {
int dev, bar;
unsigned long pfn;
unsigned long address;
+ unsigned long offset;
address = (bar_address >> PAGE_SHIFT) << PAGE_SHIFT;
offset = bar_address - address;