summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-11-04 04:40:29 +0300
committerJoerg Roedel <jroedel@suse.de>2024-11-05 15:32:20 +0300
commit6d8bac098e6e44b9a2768e38e9bf77626dc591b7 (patch)
tree880739f4218d9627f98a3e9b37bfd86d0ae56a6a /tools/perf/scripts/python/exported-sql-viewer.py
parent2a32309345ef2977ceb4fba81600066474ac8581 (diff)
downloadlinux-6d8bac098e6e44b9a2768e38e9bf77626dc591b7.tar.xz
iommu/vt-d: Increase buffer size for device name
GCC is not happy with the current code, e.g.: .../iommu/intel/dmar.c:1063:9: note: ‘sprintf’ output between 6 and 15 bytes into a destination of size 13 1063 | sprintf(iommu->name, "dmar%d", iommu->seq_id); When `make W=1` is supplied, this prevents kernel building. Fix it by increasing the buffer size for device name and use sizeoF() instead of hard coded constants. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20241014104529.4025937-1-andriy.shevchenko@linux.intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions