projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74feaeb
)
[PATCH] blkparse: fix pointer cast warnings
author
Nathan Scott
<nathans@sgi.com>
Fri, 23 Sep 2005 06:33:20 +0000
(08:33 +0200)
committer
Jens Axboe
<axboe@suse.de>
Fri, 23 Sep 2005 06:33:20 +0000
(08:33 +0200)
blkparse.c
patch
|
blob
|
blame
|
history
diff --git
a/blkparse.c
b/blkparse.c
index 362dcd6eb0f8a0e0fedf03468381c833b44c40b1..95034136e775cd5d96be50bbc695cacb20e3ef66 100644
(file)
--- a/
blkparse.c
+++ b/
blkparse.c
@@
-1415,7
+1415,7
@@
static inline void bit_free(struct blk_io_trace *bit)
/*
* abuse a 64-bit field for a next pointer for the free item
*/
- bit->time = (__u64) bit_alloc_list;
+ bit->time = (__u64)
(unsigned long)
bit_alloc_list;
bit_alloc_list = (struct blk_io_trace *) bit;
}
@@
-1424,7
+1424,8
@@
static inline struct blk_io_trace *bit_alloc(void)
struct blk_io_trace *bit = bit_alloc_list;
if (bit) {
- bit_alloc_list = (struct blk_io_trace *) bit->time;
+ bit_alloc_list = (struct blk_io_trace *) (unsigned long) \
+ bit->time;
return bit;
}