From: Ondrej Kozina Date: Fri, 6 Feb 2026 14:18:02 +0000 (+0100) Subject: sed-opal: increase column attribute type size to 64 bits. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661025cdbc976eadbdfb4c8fcf6d4ead5c67e645;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-and-tested-by: Milan Broz Signed-off-by: Jens Axboe --- diff --git a/block/sed-opal.c b/block/sed-opal.c index 53a73422911e0..6146a1b30421d 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; }