sched_tc3.c: In function 'multiply_matrices': sched_tc3.c:178:6: warning: old-style function definition [-Wold-style-definition] 178 | void multiply_matrices() | ^~~~~~~~~~~~~~~~~ sched_tc2.c: In function 'multiply_matrices': sched_tc2.c:175:6: warning: old-style function definition [-Wold-style-definition] 175 | void multiply_matrices() | ^~~~~~~~~~~~~~~~~ CC testcases/kernel/sched/sched_stress/sched_tc3 CC testcases/kernel/sched/sched_stress/sched_tc2 sched_tc4.c: In function 'read_raw_device': sched_tc4.c:184:6: warning: old-style function definition [-Wold-style-definition] 184 | void read_raw_device() | ^~~~~~~~~~~~~~~ sched_tc5.c: In function 'invert_matrix': sched_tc5.c:180:6: warning: old-style function definition [-Wold-style-definition] 180 | void invert_matrix() | ^~~~~~~~~~~~~ CC testcases/kernel/sched/sched_stress/sched_driver CC testcases/kernel/sched/sched_stress/sched_tc4 CC testcases/kernel/sched/sched_stress/sched_tc5 sched_tc6.c: In function 'read_file': sched_tc6.c:314:29: warning: unused parameter 'filename' [-Wunused-parameter] 314 | int read_file(int fd, char *filename) | ~~~~~~^~~~~~~~ sched_tc6.c: In function 'unlock_file': sched_tc6.c:401:31: warning: unused parameter 'file' [-Wunused-parameter] 401 | int unlock_file(int fd, char *file) | ~~~~~~^~~~ sched_tc6.c: In function 'fork_realtime': sched_tc6.c:287:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 287 | sys_error("fork failed", __FILE__, __LINE__); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sched_tc6.c:290:9: note: here 290 | case 0: | ^~~~ CC testcases/kernel/sched/sched_stress/sched_tc6 CC testcases/kernel/sched/autogroup/autogroup01 In file included from ht_utils.c:9: ../../../../../include/old/ltp_cpuid.h: In function 'cpuid': ../../../../../include/old/ltp_cpuid.h:10:39: warning: unused parameter 'info' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~^~~~ ../../../../../include/old/ltp_cpuid.h:10:59: warning: unused parameter 'eax' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:10:78: warning: unused parameter 'ebx' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:11:40: warning: unused parameter 'ecx' [-Wunused-parameter] 11 | unsigned int *ecx, unsigned int *edx) | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:11:59: warning: unused parameter 'edx' [-Wunused-parameter] 11 | unsigned int *ecx, unsigned int *edx) | ~~~~~~~~~~~~~~^~~ ht_utils.c: In function 'is_ht_cpu': ht_utils.c:31:33: warning: 'edx' is used uninitialized [-Wuninitialized] 31 | ht = (edx & 0x10000000) >> 28; | ~~~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c:28:37: note: 'edx' was declared here 28 | unsigned int eax, ebx, ecx, edx; | ^~~ ht_utils.c:30:45: warning: 'ebx' may be used uninitialized [-Wmaybe-uninitialized] 30 | smp_num_siblings = (ebx & 0xff0000) >> 16; | ~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c:28:27: note: 'ebx' was declared here 28 | unsigned int eax, ebx, ecx, edx; | ^~~ In function 'is_ht_cpu', inlined from 'check_ht_capability' at ht_utils.c:47:6: ht_utils.c:31:33: warning: 'edx' is used uninitialized [-Wuninitialized] 31 | ht = (edx & 0x10000000) >> 28; | ~~~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c: In function 'check_ht_capability': ht_utils.c:28:37: note: 'edx' was declared here 28 | unsigned int eax, ebx, ecx, edx; | ^~~ In function 'is_ht_cpu', inlined from 'check_ht_capability' at ht_utils.c:47:6: ht_utils.c:30:45: warning: 'ebx' may be used uninitialized [-Wmaybe-uninitialized] 30 | smp_num_siblings = (ebx & 0xff0000) >> 16; | ~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c: In function 'check_ht_capability': ht_utils.c:28:27: note: 'ebx' was declared here 28 | unsigned int eax, ebx, ecx, edx; | ^~~ CC testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.o CC testcases/kernel/sched/hyperthreading/ht_enabled/ht_enabled.o LD testcases/kernel/sched/hyperthreading/ht_enabled/ht_enabled In file included from ht_utils.c:9: ../../../../../include/old/ltp_cpuid.h: In function 'cpuid': ../../../../../include/old/ltp_cpuid.h:10:39: warning: unused parameter 'info' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~^~~~ ../../../../../include/old/ltp_cpuid.h:10:59: warning: unused parameter 'eax' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:10:78: warning: unused parameter 'ebx' [-Wunused-parameter] 10 | static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:11:40: warning: unused parameter 'ecx' [-Wunused-parameter] 11 | unsigned int *ecx, unsigned int *edx) | ~~~~~~~~~~~~~~^~~ ../../../../../include/old/ltp_cpuid.h:11:59: warning: unused parameter 'edx' [-Wunused-parameter] 11 | unsigned int *ecx, unsigned int *edx) | ~~~~~~~~~~~~~~^~~ ht_utils.c: In function 'is_ht_cpu': ht_utils.c:28:33: warning: 'edx' is used uninitialized [-Wuninitialized] 28 | ht = (edx & 0x10000000) >> 28; | ~~~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c:25:37: note: 'edx' was declared here 25 | unsigned int eax, ebx, ecx, edx; | ^~~ ht_utils.c:27:45: warning: 'ebx' may be used uninitialized [-Wmaybe-uninitialized] 27 | smp_num_siblings = (ebx & 0xff0000) >> 16; | ~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c:25:27: note: 'ebx' was declared here 25 | unsigned int eax, ebx, ecx, edx; | ^~~ In function 'is_ht_cpu', inlined from 'check_ht_capability' at ht_utils.c:45:6: ht_utils.c:28:33: warning: 'edx' is used uninitialized [-Wuninitialized] 28 | ht = (edx & 0x10000000) >> 28; | ~~~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c: In function 'check_ht_capability': ht_utils.c:25:37: note: 'edx' was declared here 25 | unsigned int eax, ebx, ecx, edx; | ^~~ In function 'is_ht_cpu', inlined from 'check_ht_capability' at ht_utils.c:45:6: ht_utils.c:27:45: warning: 'ebx' may be used uninitialized [-Wmaybe-uninitialized] 27 | smp_num_siblings = (ebx & 0xff0000) >> 16; | ~~~~~~~~~~~~~~~~~^~~~~ ht_utils.c: In function 'check_ht_capability': ht_utils.c:25:27: note: 'ebx' was declared here 25 | unsigned int eax, ebx, ecx, edx; | ^~~ CC testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.o ht_affinity.c: In function 'HT_SetAffinity': ht_affinity.c:75:41: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 75 | system("ps > /dev/null"); | ^~~~~~~~~~~~~~~~~~~~~~~~ ht_affinity.c:103:41: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 103 | system("ps > /dev/null"); | ^~~~~~~~~~~~~~~~~~~~~~~~ CC testcases/kernel/sched/hyperthreading/ht_affinity/ht_affinity.o LD testcases/kernel/sched/hyperthreading/ht_affinity/ht_affinity CC testcases/kernel/sched/pthreads/pth_str02 CC testcases/kernel/sched/pthreads/pth_str01 CC testcases/kernel/sched/pthreads/pth_str03 hackbench.c: In function 'sender': hackbench.c:149:34: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 149 | if (done < sizeof(data)) | ^ hackbench.c: In function 'create_worker': hackbench.c:196:25: warning: this statement may fall through [-Wimplicit-fallthrough=] 196 | barf("fork()"); | ^~~~~~~~~~~~~~ hackbench.c:197:17: note: here 197 | case 0: | ^~~~ hackbench.c: In function 'ready': hackbench.c:121:13: warning: 'dummy' is used uninitialized [-Wuninitialized] 121 | if (write(ready_out, &dummy, 1) != 1) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hackbench.c:54: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/unistd.h:378:16: note: in a call to 'write' declared with attribute 'access (read_only, 2, 3)' here 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ hackbench.c:117:14: note: 'dummy' declared here 117 | char dummy; | ^~~~~ CC testcases/kernel/sched/cfs-scheduler/cfs_bandwidth01 CC testcases/kernel/sched/cfs-scheduler/hackbench CC testcases/kernel/sched/clisrv/writen.o CC testcases/kernel/sched/clisrv/readline.o pthserv.c: In function 'noprintf': pthserv.c:45:21: warning: unused parameter 'string' [-Wunused-parameter] 45 | void noprintf(char *string, ...) | ~~~~~~^~~~~~ CC testcases/kernel/sched/clisrv/pthcli CC testcases/kernel/sched/clisrv/pthserv newns.c: In function 'main': newns.c:42:14: warning: unused parameter 'argc' [-Wunused-parameter] 42 | int main(int argc, char *argv[]) | ~~~~^~~~ In file included from tomoyo_file_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ In file included from tomoyo_accept_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ tomoyo_file_test.c: In function 'stage_file_test': tomoyo_file_test.c:105:23: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 105 | (void)read(pipe_fd[0], &error, sizeof(error)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC testcases/kernel/security/tomoyo/newns In file included from tomoyo_new_file_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ In file included from tomoyo_filesystem_test.c:25: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ tomoyo_filesystem_test.c: In function 'child': tomoyo_filesystem_test.c:40:24: warning: unused parameter 'arg' [-Wunused-parameter] 40 | static int child(void *arg) | ~~~~~~^~~ tomoyo_new_file_test.c: In function 'stage_file_test': tomoyo_new_file_test.c:165:15: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 165 | (void)read(pipe_fd[0], &error, sizeof(error)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tomoyo_new_file_test.c:182:15: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 182 | (void)read(pipe_fd[0], &error, sizeof(error)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC testcases/kernel/security/tomoyo/tomoyo_accept_test CC testcases/kernel/security/tomoyo/tomoyo_file_test In file included from tomoyo_new_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ tomoyo_new_test.c: In function 'test_execute_bin_true': tomoyo_new_test.c:118:15: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 118 | (void)read(pipe_fd[0], &error, sizeof(error)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tomoyo_policy_io_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ CC testcases/kernel/security/tomoyo/tomoyo_filesystem_test CC testcases/kernel/security/tomoyo/tomoyo_new_file_test CC testcases/kernel/security/tomoyo/tomoyo_policy_io_test In file included from tomoyo_rewrite_test.c:24: include.h: In function 'read_sysctl': include.h:108:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 108 | /* ignore */; | ^ CC testcases/kernel/security/tomoyo/tomoyo_new_test CC testcases/kernel/security/tomoyo/tomoyo_policy_memory_test CC testcases/kernel/security/tomoyo/tomoyo_rewrite_test CC testcases/kernel/security/dirtyc0w/dirtyc0w_child CC testcases/kernel/security/dirtyc0w/dirtyc0w CC testcases/kernel/security/umip/umip_basic_test smack_notroot.c: In function 'main': smack_notroot.c:21:14: warning: unused parameter 'argc' [-Wunused-parameter] 21 | int main(int argc, char *argv[]) | ~~~~^~~~ smack_notroot.c:23:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | setuid(1); | ^~~~~~~~~ CC testcases/kernel/security/smack/smack_notroot CC testcases/kernel/security/smack/smack_set_socket_labels cap_bounds_rw.c: In function 'main': cap_bounds_rw.c:93:13: warning: unused variable 'i' [-Wunused-variable] 93 | int i; | ^ cap_bounds_rw.c:92:13: warning: unused variable 'ret' [-Wunused-variable] 92 | int ret = 1; | ^~~ cap_bounds_rw.c: At top level: cap_bounds_rw.c:40:12: warning: 'cap_last_cap' defined but not used [-Wunused-variable] 40 | static int cap_last_cap; | ^~~~~~~~~~~~ check_pe.c: In function 'main': check_pe.c:42:14: warning: unused parameter 'argc' [-Wunused-parameter] 42 | int main(int argc, char *argv[]) | ~~~~^~~~ check_pe.c:42:26: warning: unused parameter 'argv' [-Wunused-parameter] 42 | int main(int argc, char *argv[]) | ~~~~~~^~~~~~ CC testcases/kernel/security/cap_bound/cap_bset_inh_bounds CC testcases/kernel/security/cap_bound/cap_bounds_rw CC testcases/kernel/security/cap_bound/check_pe CC testcases/kernel/security/cap_bound/cap_bounds_r exec_with_inh.c: In function 'main': exec_with_inh.c:41:14: warning: unused parameter 'argc' [-Wunused-parameter] 41 | int main(int argc, char *argv[]) | ~~~~^~~~ exec_with_inh.c:41:26: warning: unused parameter 'argv' [-Wunused-parameter] 41 | int main(int argc, char *argv[]) | ~~~~~~^~~~~~ CC testcases/kernel/security/cap_bound/exec_with_inh CC testcases/kernel/security/cap_bound/exec_without_inh verify_caps_exec.c: In function 'main': verify_caps_exec.c:399:14: warning: unused parameter 'argc' [-Wunused-parameter] 399 | int main(int argc, char *argv[]) | ~~~~^~~~ verify_caps_exec.c:399:26: warning: unused parameter 'argv' [-Wunused-parameter] 399 | int main(int argc, char *argv[]) | ~~~~~~^~~~~~ verify_caps_exec.c: At top level: verify_caps_exec.c:54:13: warning: 'usage' defined but not used [-Wunused-function] 54 | static void usage(const char *me) | ^~~~~ In file included from verify_caps_exec.c:46: filecaps_common.h:6:20: warning: 'get_caps_fifo' defined but not used [-Wunused-function] 6 | static const char *get_caps_fifo(void) | ^~~~~~~~~~~~~ print_caps.c: In function 'main': print_caps.c:42:14: warning: unused parameter 'argc' [-Wunused-parameter] 42 | int main(int argc, char *argv[]) | ~~~~^~~~ print_caps.c:42:26: warning: unused parameter 'argv' [-Wunused-parameter] 42 | int main(int argc, char *argv[]) | ~~~~~~^~~~~~ In file included from print_caps.c:40: filecaps_common.h: At top level: filecaps_common.h:6:20: warning: 'get_caps_fifo' defined but not used [-Wunused-function] 6 | static const char *get_caps_fifo(void) | ^~~~~~~~~~~~~ CC testcases/kernel/security/filecaps/check_simple_capset CC testcases/kernel/security/filecaps/print_caps CC testcases/kernel/security/filecaps/verify_caps_exec CC testcases/kernel/security/filecaps/inh_capped prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:341:48: warning: '%s' directive output may be truncated writing up to 3207 bytes into a region of size 123 [-Wformat-truncation=] 341 | snprintf(bdir->path, MAX_PATH, "%s/tmp_%s", | ^~ In file included from /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/stdio.h:906, from prot_hsymlinks.c:40: In function 'snprintf', inlined from 'create_sub_dir' at prot_hsymlinks.c:341:2, inlined from 'init_base_dirs' at prot_hsymlinks.c:373:3, inlined from 'setup' at prot_hsymlinks.c:233:2, inlined from 'main' at prot_hsymlinks.c:181:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output 6 or more bytes (assuming 3213) into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:387:51: warning: '%s' directive output may be truncated writing up to 419 bytes into a region of size 128 [-Wformat-truncation=] 387 | snprintf(path, MAX_PATH, "%s/%s%s", | ^~ In function 'snprintf', inlined from 'init_files_dirs' at prot_hsymlinks.c:387:4, inlined from 'setup' at prot_hsymlinks.c:235:2, inlined from 'main' at prot_hsymlinks.c:181:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 5 and 3631 bytes into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:398:51: warning: '%s' directive output may be truncated writing up to 419 bytes into a region of size 128 [-Wformat-truncation=] 398 | snprintf(path, MAX_PATH, "%s/%s", bdirs[dir].path, | ^~ In function 'snprintf', inlined from 'init_files_dirs' at prot_hsymlinks.c:398:4, inlined from 'setup' at prot_hsymlinks.c:235:2, inlined from 'main' at prot_hsymlinks.c:181:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 2 and 3628 bytes into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:404:41: warning: '%s' directive output may be truncated writing up to 3207 bytes into a region of size 121 [-Wformat-truncation=] 404 | "/local_%s%s", users[usr].name, file_ext); | ^~ In function 'snprintf', inlined from 'init_files_dirs' at prot_hsymlinks.c:403:4, inlined from 'setup' at prot_hsymlinks.c:235:2, inlined from 'main' at prot_hsymlinks.c:181:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 11 and 3218 bytes into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:437:33: warning: '%s' directive output may be truncated writing up to 419 bytes into a region of size 128 [-Wformat-truncation=] 437 | snprintf(buffer, size, "%s/link_%d", path, count); | ^~ In function 'create_link_path', inlined from 'create_check_slinks' at prot_hsymlinks.c:450:4, inlined from 'test_run' at prot_hsymlinks.c:256:20, inlined from 'main' at prot_hsymlinks.c:183:2: prot_hsymlinks.c:437:32: note: directive argument in the range [-2147483647, 2147483647] 437 | snprintf(buffer, size, "%s/link_%d", path, count); | ^~~~~~~~~~~~ In function 'snprintf', inlined from 'create_link_path' at prot_hsymlinks.c:437:2, inlined from 'create_check_slinks' at prot_hsymlinks.c:450:4, inlined from 'test_run' at prot_hsymlinks.c:256:20, inlined from 'main' at prot_hsymlinks.c:183:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 8 and 437 bytes into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ prot_hsymlinks.c: In function 'main': prot_hsymlinks.c:437:33: warning: '%s' directive output may be truncated writing up to 419 bytes into a region of size 128 [-Wformat-truncation=] 437 | snprintf(buffer, size, "%s/link_%d", path, count); | ^~ In function 'create_link_path', inlined from 'create_check_hlinks' at prot_hsymlinks.c:479:4, inlined from 'test_run' at prot_hsymlinks.c:257:20, inlined from 'main' at prot_hsymlinks.c:183:2: prot_hsymlinks.c:437:32: note: directive argument in the range [-2147483647, 2147483647] 437 | snprintf(buffer, size, "%s/link_%d", path, count); | ^~~~~~~~~~~~ In function 'snprintf', inlined from 'create_link_path' at prot_hsymlinks.c:437:2, inlined from 'create_check_hlinks' at prot_hsymlinks.c:479:4, inlined from 'test_run' at prot_hsymlinks.c:257:20, inlined from 'main' at prot_hsymlinks.c:183:2: /home/buildroot/autobuild/instance-2/output-1/per-package/ltp-testsuite/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 8 and 437 bytes into a destination of size 128 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CC testcases/kernel/security/prot_hsymlinks/prot_hsymlinks CC testcases/kernel/security/securebits/check_keepcaps make[5]: Nothing to be done for 'all'. CC testcases/kernel/security/dirtypipe/dirtypipe make[8]: Nothing to be done for 'all'. make[8]: Nothing to be done for 'all'. make[8]: Nothing to be done for 'all'. make[8]: Nothing to be done for 'all'. CC testcases/kernel/security/integrity/ima/src/ima_boot_aggregate CC testcases/kernel/security/integrity/ima/src/ima_mmap make[7]: Nothing to be done for 'all'. CC testcases/kernel/sound/snd_seq01 CC testcases/kernel/sound/snd_timer01 make[5]: Nothing to be done for 'all'. CC testcases/kernel/tracing/pt_test/pt_test make[5]: Nothing to be done for 'all'. BUILD libltpuinput.a make[5]: Nothing to be done for 'all'. uevent01.c: In function 'verify_uevent': uevent01.c:53:19: warning: 'dev_path' may be used uninitialized [-Wmaybe-uninitialized] 53 | dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../../include/tst_test.h:23, from uevent01.c:16: ../../../include/tst_device.h:52:5: note: by argument 1 of type 'const char *' to 'tst_find_free_loopdev' declared here 52 | int tst_find_free_loopdev(const char *path, size_t path_len); | ^~~~~~~~~~~~~~~~~~~~~ uevent01.c:33:14: note: 'dev_path' declared here 33 | char dev_path[1024]; | ^~~~~~~~ CC testcases/kernel/uevents/uevent01 CC testcases/kernel/uevents/uevent02 CC testcases/kernel/uevents/uevent03 CC testcases/kernel/watchqueue/wqueue02 CC testcases/kernel/watchqueue/wqueue01 CC testcases/kernel/watchqueue/wqueue03 CC testcases/kernel/watchqueue/wqueue04 CC testcases/kernel/watchqueue/wqueue06 CC testcases/kernel/watchqueue/wqueue07 CC testcases/kernel/watchqueue/wqueue05 CC testcases/kernel/watchqueue/wqueue08 CC testcases/kernel/watchqueue/wqueue09 /usr/bin/make -C "/home/buildroot/autobuild/instance-2/output-1/build/ltp-testsuite-20220930/tools/apicmds" -f "/home/buildroot/autobuild/instance-2/output-1/build/ltp-testsuite-20220930/tools/apicmds/Makefile" all make[5]: Nothing to be done for 'all'. CC testcases/kernel/power_management/pm_get_sched_values make[5]: Nothing to be done for 'all'. CC testcases/lib/tst_random CC testcases/lib/tst_sleep CC testcases/lib/tst_rod CC testcases/lib/tst_checkpoint CC testcases/lib/tst_device CC testcases/lib/tst_kvcmp CC testcases/lib/tst_net_ip_prefix CC testcases/lib/tst_getconf CC testcases/lib/tst_net_iface_prefix CC testcases/lib/tst_check_drivers CC testcases/lib/tst_get_unused_port CC testcases/lib/tst_get_median CC testcases/lib/tst_hexdump CC testcases/lib/tst_supported_fs CC testcases/lib/tst_net_vars CC testcases/lib/tst_get_free_pids CC testcases/lib/tst_timeout_kill CC testcases/lib/tst_check_kconfigs CC testcases/lib/tst_cgctl make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/ltp-testsuite-20220930/testcases' make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/ltp-testsuite-20220930' make: Leaving directory '/home/buildroot/autobuild/instance-2/buildroot'