mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix two syntax errors in frame-and-sect decoding macros.
Both are in the non-grant-tables cases of cset ae51fa1d32b23066c4342bbeb5f4dc401b82ea37. Signed-off-by: andrew.warfield@cl.cam.ac.uk
This commit is contained in:
1 parent
281d3b20f0
commit
5fa8dca989
2 files changed
+2
-2
No files matched your search
@@ -137,7 +137,7 @@ static vdisk_t *xlvbd_probe(int *ret)
|
||||
blkif_control_probe_send(&req, &rsp,
|
||||
(unsigned long)(virt_to_machine(buf)));
|
||||
#else
|
||||
req.frame_and_sects[0] = blkif_fas(virt_to_machine(buf), 0, ((PAGE_SIZE/512)-1);
|
||||
req.frame_and_sects[0] = blkif_fas(virt_to_machine(buf), 0, (PAGE_SIZE/512)-1);
|
||||
|
||||
blkif_control_send(&req, &rsp);
|
||||
#endif
|
||||
|
||||
@@ -47,7 +47,7 @@ typedef struct blkif_request {
|
||||
unsigned long frame_and_sects[BLKIF_MAX_SEGMENTS_PER_REQUEST];
|
||||
} blkif_request_t;
|
||||
|
||||
#define blkif_fas(_addr, _fs, _ls) ((addr)|((_fs)<<5)|(_ls))
|
||||
#define blkif_fas(_addr, _fs, _ls) ((_addr)|((_fs)<<5)|(_ls))
|
||||
#define blkif_first_sect(_fas) (((_fas)>>5)&31)
|
||||
#define blkif_last_sect(_fas) ((_fas)&31)
|
||||
|
||||
|
||||