Re: rand_seed declarations not consistent...is that ok?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 28 2014, Grant Grundler wrote:
> cscope tells me:
> C symbol: rand_seed
> 
>   File             Function                  Line
> 0 ioengine.h       <global>                    59 unsigned long rand_seed;
> 1 options.c        <global>                  1660 .off1 =
>                                                   td_var_offset(rand_seed),
> 2 thread_options.h <global>                   103 unsigned int rand_seed;
> 3 thread_options.h <global>                   327 uint32_t rand_seed;
> 4 verify.h         <global>                    34 uint64_t rand_seed;
> 
> Any reason we have 4 different declarations of the same name?
> Thoughts on if/how this should be fixed?
> 
> Even if it's not wrong, it's definitely confusing.

Heh no. But they are not all the same. Could be cleaned up, but the
parser has some expectations and the thread_options.h one has the local
and over-the-net client version (which is why they are different, one
matches the parser and the other is independent). I would suggest we
make 0/3/4 a uint64_t to unify that part. The option could be made
unsigned long long and the type changed.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux