mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
a441a9d224
commit
661025cdbc
@@ -1581,7 +1581,7 @@ static int setup_locking_range_start_length(struct opal_dev *dev, void *data)
|
||||
|
||||
static int response_get_column(const struct parsed_resp *resp,
|
||||
int *iter,
|
||||
u8 column,
|
||||
u64 column,
|
||||
u64 *value)
|
||||
{
|
||||
const struct opal_resp_tok *tok;
|
||||
@@ -1599,7 +1599,7 @@ static int response_get_column(const struct parsed_resp *resp,
|
||||
n++;
|
||||
|
||||
if (response_get_u64(resp, n) != column) {
|
||||
pr_debug("Token %d does not match expected column %u.\n",
|
||||
pr_debug("Token %d does not match expected column %llu.\n",
|
||||
n, column);
|
||||
return OPAL_INVAL_PARAM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user