Commit d6381d50 authored by Andi Kleen's avatar Andi Kleen Committed by David S. Miller

[NET]: Fix obvious 64bit bug/warning in farsync.c

parent 420788a6
...@@ -317,7 +317,7 @@ struct buf_window { ...@@ -317,7 +317,7 @@ struct buf_window {
}; };
/* Calculate offset of a buffer object within the shared memory window */ /* Calculate offset of a buffer object within the shared memory window */
#define BUF_OFFSET(X) ((unsigned int)&(((struct buf_window *)BFM_BASE)->X)) #define BUF_OFFSET(X) offsetof(struct buf_window, X)
#pragma pack() #pragma pack()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment