Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sed-opal: increase column attribute type size to 64 bits.

Change the column parameter in response_get_column() from u8 to u64
to support the full range of column identifiers.

Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Reviewed-and-tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Ondrej Kozina and committed by
Jens Axboe
661025cd a441a9d2

+2 -2
+2 -2
block/sed-opal.c
··· 1581 1581 1582 1582 static int response_get_column(const struct parsed_resp *resp, 1583 1583 int *iter, 1584 - u8 column, 1584 + u64 column, 1585 1585 u64 *value) 1586 1586 { 1587 1587 const struct opal_resp_tok *tok; ··· 1599 1599 n++; 1600 1600 1601 1601 if (response_get_u64(resp, n) != column) { 1602 - pr_debug("Token %d does not match expected column %u.\n", 1602 + pr_debug("Token %d does not match expected column %llu.\n", 1603 1603 n, column); 1604 1604 return OPAL_INVAL_PARAM; 1605 1605 }