]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sed-opal: increase column attribute type size to 64 bits.
authorOndrej Kozina <okozina@redhat.com>
Fri, 6 Feb 2026 14:18:02 +0000 (15:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:29:59 +0000 (14:29 -0600)
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>
block/sed-opal.c

index 53a73422911e0acb718325f5b544592b74eec750..6146a1b30421d968a731c068e4d3081dadcb465d 100644 (file)
@@ -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;
        }