drivers/net/ethernet/cavium/thunder/thunder_bgx.c:1434:23: note:Thanks Alok,
directive argument in the range [0, 255]
snprintf(bgx_sel, 5, "BGX%d", bgx->bgx_id);
^~~~~~~
drivers/net/ethernet/cavium/thunder/thunder_bgx.c:1434:2: note:
‘snprintf’ output between 5 and 7 bytes into a destination of size 5
snprintf(bgx_sel, 5, "BGX%d", bgx->bgx_id);
compiler warning due to insufficient snprintf buffer size.
Signed-off-by: Alok Tiwari<alok.a.tiwari@xxxxxxxxxx>
I agree this is a good change.
However, by my reading the range of values of bgx->bgx_id is 0 - 8
because of the application of BGX_ID_MASK which restricts the
value to 3 bits.
If so, I don't think this is a bug and it should be targeted at net-next.
With a description of why it is not a bug.
Conversely, you think it is a bug, then I think an explanation as to why
would be nice to add to the commit description. And A fixes tag is needed.