aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2024-10-16 12:05:54 +0300
committerAndrew Lunn <[email protected]>2024-10-17 21:24:24 -0500
commitabb7c98b99f62d30bb070a8dfe08b1033b133c0c (patch)
treef62f723be4a489169d56b4eba189a1d48e003475 /tools/perf/scripts/python/exported-sql-viewer.py
parent7530ea26c810d506df37cc818d1b183c18a53238 (diff)
tg3: Increase buffer size for IRQ label
GCC is not happy with the current code, e.g.: .../tg3.c:11313:37: error: ‘-txrx-’ directive output may be truncated writing 6 bytes into a region of size between 1 and 16 [-Werror=format-truncation=] 11313 | "%s-txrx-%d", tp->dev->name, irq_num); | ^~~~~~ .../tg3.c:11313:34: note: using the range [-2147483648, 2147483647] for directive argument 11313 | "%s-txrx-%d", tp->dev->name, irq_num); When `make W=1` is supplied, this prevents kernel building. Fix it by increasing the buffer size for IRQ label and use sizeoF() instead of hard coded constants. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Michael Chan <[email protected]> Message-ID: <[email protected]> Signed-off-by: Andrew Lunn <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions