Snippets for linux 7.1.5 from Alpine x86
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-x86/main/linux-tools/linux-tools-7.1.5-r0.log.
-
utils/idle_monitor/mperf_monitor.c:118:45: warning: left shift count >= width of type [-Wshift-count-overflow] 118 | *aval = ((low_a) | (high_a) << 32); | ^~ -
utils/idle_monitor/mperf_monitor.c:119:45: warning: left shift count >= width of type [-Wshift-count-overflow] 119 | *mval = ((low_m) | (high_m) << 32); | ^~ -
parse.c:88:67: warning: format '%li' expects argument of type 'long int', but argument 7 has type 'time_t' {aka 'long long int'} [-Wformat=] 88 | snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", | ~~^ | | | long int | %lli 89 | dirname, sysdata.nodename, sysdata.release, time(NULL)); | ~~~~~~~~~~ | | | time_t {aka long long int} -
parse.c:91:61: warning: format '%li' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=] 91 | snprintf(filename, len - 1, "%s/benchmark_%li.log", | ~~^ | | | long int | %lli 92 | dirname, time(NULL)); | ~~~~~~~~~~ | | | time_t {aka long long int} -
jit_disasm.c:424:34: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'ssize_t' {aka 'int'} [-Wsign-compare] 424 | } while (count > 0 && pc < len); | ^ -
arch/x86/util/iostat.c:411:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 411 | sprintf(prefix, "%6lu.%09lu%s%04x:%02x%s", | ~~~^ | | | long unsigned int | %6llu 412 | ts->tv_sec, ts->tv_nsec, | ~~~~~~~~~~ | | | time_t {aka long long int} -
builtin-kvm.c:1047:25: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'suseconds_t' {aka 'long long int'} [-Wformat=] 1047 | pr_info("%s.%06ld", date, tv.tv_usec); | ^~~~~~~~~~