diff options
| author | Ondrej Kozina <okozina@redhat.com> | 2026-02-06 15:18:02 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-03-09 14:29:59 -0600 |
| commit | 661025cdbc976eadbdfb4c8fcf6d4ead5c67e645 (patch) | |
| tree | 29bb2d76fccf5b28c35d9264401fbae69ec666ec /block | |
| parent | a441a9d22433fea561de131e27fff41715c2d186 (diff) | |
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>
Diffstat (limited to 'block')
| -rw-r--r-- | block/sed-opal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/sed-opal.c b/block/sed-opal.c index 53a73422911e..6146a1b30421 100644 --- a/block/sed-opal.c +++ b/block/sed-opal.c @@ -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; } |
