Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
* Return data area 'header_num'
*/
static inline void *io_u_verify_off(struct verify_header *hdr,
* Return data area 'header_num'
*/
static inline void *io_u_verify_off(struct verify_header *hdr,
- struct io_u *io_u, unsigned char header_num)
+ struct io_u *io_u, unsigned int header_num)
{
return io_u->buf + header_num * hdr->len + hdr_size(hdr);
}
{
return io_u->buf + header_num * hdr->len + hdr_size(hdr);
}
}
static int verify_io_u_crc7(struct verify_header *hdr, struct io_u *io_u,
}
static int verify_io_u_crc7(struct verify_header *hdr, struct io_u *io_u,
- unsigned char header_num)
+ unsigned int header_num)
{
void *p = io_u_verify_off(hdr, io_u, header_num);
struct vhdr_crc7 *vh = hdr_priv(hdr);
{
void *p = io_u_verify_off(hdr, io_u, header_num);
struct vhdr_crc7 *vh = hdr_priv(hdr);