From: Jens Axboe Date: Tue, 22 Dec 2015 16:04:27 +0000 (-0700) Subject: parse: ensure that option group/category hold 64-bit X-Git-Tag: fio-2.3~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b5f4ef37543b46f9ef44cabf691a92d6592fb286;p=fio.git parse: ensure that option group/category hold 64-bit options.c:3459:12: warning: large integer implicitly truncated to unsigned type [-Woverflow] .group = FIO_OPT_G_INVALID, Signed-off-by: Jens Axboe --- diff --git a/parse.h b/parse.h index 3ba80479..77450ef5 100644 --- a/parse.h +++ b/parse.h @@ -1,6 +1,7 @@ #ifndef FIO_PARSE_H #define FIO_PARSE_H +#include #include "flist.h" /* @@ -69,8 +70,8 @@ struct fio_option { int (*verify)(struct fio_option *, void *); const char *prof_name; /* only valid for specific profile */ void *prof_opts; - unsigned int category; /* what type of option */ - unsigned int group; /* who to group with */ + uint64_t category; /* what type of option */ + uint64_t group; /* who to group with */ void *gui_data; int is_seconds; /* time value with seconds base */ int is_time; /* time based value */