On Tue, 17 Jan 2023 18:00:15 +0100, Arnd Bergmann wrote: > Printing a size_t value that is the result of the sizeof() operator requires > using the %z format string modifier to avoid a warning on 32-bit architectures: > > drivers/scsi/qla2xxx/qla_mid.c: In function 'qla_create_buf_pool': > drivers/scsi/qla2xxx/qla_mid.c:1094:51: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'unsigned int' [-Werror=format=] > 1094 | "Failed to allocate buf_map(%ld).\n", sz * sizeof(unsigned long)); > | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ > | | | > | long int unsigned int > | %d > > [...] Applied to 6.3/scsi-queue, thanks! [1/1] qla2xxx: fix printk format string https://git.kernel.org/mkp/scsi/c/d794a23113b1 -- Martin K. Petersen Oracle Linux Engineering