CC /usr/src/kernels/5.16.0/tools/objtool/check.o
check.c: In function ‘validate_call’:
check.c:2867:58: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~
In function ‘call_dest_name’,
inlined from ‘call_dest_name’ at check.c:2855:27,
inlined from ‘validate_call’ at check.c:2939:3:
check.c:2867:50: note: directive argument in the range [-268435456, 268435455]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~
check.c:2867:17: note: ‘snprintf’ output between 10 and 19 bytes into a destination of size 16
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check.c: In function ‘validate_call’:
check.c:2867:58: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~
In function ‘call_dest_name’,
inlined from ‘call_dest_name’ at check.c:2855:27,
inlined from ‘validate_call’ at check.c:2951:3:
check.c:2867:50: note: directive argument in the range [-268435456, 268435455]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~
check.c:2867:17: note: ‘snprintf’ output between 10 and 19 bytes into a destination of size 16
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check.c: In function ‘validate_call’:
check.c:2867:58: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~
In function ‘call_dest_name’,
inlined from ‘call_dest_name’ at check.c:2855:27,
inlined from ‘validate_call’ at check.c:2945:3:
check.c:2867:50: note: directive argument in the range [-268435456, 268435455]
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~
check.c:2867:17: note: ‘snprintf’ output between 10 and 19 bytes into a destination of size 16
2867 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/usr/src/kernels/5.16.0/tools/build/Makefile.build:97: /usr/src/kernels/5.16.0/tools/objtool/check.o] Error 1
make[2]: *** [Makefile:56: /usr/src/kernels/5.16.0/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:69: objtool] Error 2
make: *** [Makefile:1334: tools/objtool] Error 2
make: Leaving directory '/usr/src/kernels/5.16.0'