Re: [PATCH rdma-next 1/2] RDMA/qib: Fix truncation compilation warnings in qib_init.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Jul 2024 15:42:28 +0300, Leon Romanovsky wrote:
> drivers/infiniband/hw/qib/qib_init.c: In function ‘qib_init_one’:
> drivers/infiniband/hw/qib/qib_init.c:586:67: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 0 and 3 [-Werror=format-truncation=]
>   586 |                         snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
>       |                                                                   ^~
> In function ‘qib_create_workqueues’,
>     inlined from ‘qib_init_one’ at drivers/infiniband/hw/qib/qib_init.c:1438:8:
> drivers/infiniband/hw/qib/qib_init.c:586:60: note: directive argument in the range [-2147483643, 254]
>   586 |                         snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
>       |                                                            ^~~~~~~~~~
> drivers/infiniband/hw/qib/qib_init.c:586:25: note: ‘snprintf’ output between 7 and 27 bytes into a destination of size 8
>   586 |                         snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
>       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   587 |                                 dd->unit, pidx);
>       |                                 ~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> 
> [...]

Applied, thanks!

[1/2] RDMA/qib: Fix truncation compilation warnings in qib_init.c
      https://git.kernel.org/rdma/rdma/c/1b8ca05469315e
[2/2] RDMA/qib: Fix truncation compilation warnings in qib_verbs.c
      https://git.kernel.org/rdma/rdma/c/f802078d3cb882

Best regards,
-- 
Leon Romanovsky <leon@xxxxxxxxxx>





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux